1 2010-01-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3 * ComboBox.cs: When the normal drop down window is closed, make sure
4 that the auto complete list -if any- is closed as well, instead of
5 stay open without need.
7 2010-01-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9 * TextBox.cs: When showing the autocomplete listbox, make sure it's on
10 top, by calling the raw XplatUI.SetZOrder for it, since we can't
11 properly call BringToFront on it as it is parentless. This fixes an
12 issue when using this feature with ComboBox's own parentless listbox.
13 Fixes the remaining bits of #489339.
15 2010-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22 * XplatUIStructs: Implement support for different kind of audible
23 alerts in Windows, and update the requiered classes.
25 * TextBoxBase.cs: Update calls to XplatUI.AudibleAlert.
28 2010-01-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
30 * ComboBox.cs: When use manually setting DropDownHeight, ignore the
31 MaxDropDownHeight property - also rename our field 'count' to
32 'visible_items_count' to avoid confusion as much as possible.
33 Fixes an issue with several items, showing an incorrect layout.
35 2010-01-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
37 * RichTextBox.cs: SelectedText should set Modified to true. Observe
38 that this is happening just here, not for the Text property, and
39 neither for the TextBoxBase impl.
42 2010-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
44 * ToolStripMenuItem.cs: Put the Checked/CheckState logic in a single
45 place and synchronize the events properly. Fixes a lack of
46 coordination between the events - which should be fired together.
48 2010-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
50 * TrackBar.cs: Move our events code to a single method, allowing it to
51 optionally fire the Scroll event. This way we both avoid the
52 duplicated calls to OnScroll and also will be able to fire Scroll
53 *before* OnValueChanged in other places.
56 2010-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
58 * RadioButton.cs: When drawing, if Appearance is Button use the old
59 normal routine in the theme engine, instead of using the one in 2.0,
60 since this last one doesn't support proper rendering of the control as
64 2010-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
66 * GroupBoxRenderer.cs: Properly use SystemColors.GrayText to draw to
67 text of the group box if it is disabled.
70 2009-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
72 * Control.cs: When changing the cursor and updating it, do update the
73 cursor immediately even if there's a child control under the current
74 cursor position - this is exactly what .net does.
77 2009-11-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
79 * DataGrid.cs: In OnLeave, do cancel or end current edit, depending on
80 the commit_new_row value, instead of just trying to cancel if a new
81 row had been added. This is important when modifying existing rows and
82 then moving the focus out of the control.
84 2009-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
86 * XplatUICarbon.cs: Implement the overriden AudibleAlert
87 function in XplatUICarbon. Currently it throws
88 NotImplementedException which will kill a WinForms application showing
90 Patch by Erik Ylvisaker (erik@agatelib.org).
92 2009-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
94 * DataGrid.cs: In CurrentCell, the check to do nothing in case we are
95 in the same cell as specified *and* not editing is wrong.
97 2009-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
99 * DataGrid.cs: When removing the cells, don't do anything if the
100 specified row is the extra cell we use to add new ones.
102 2009-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
104 * DataGrid.cs: CurrentCell should be *used* if the new value is the
105 same as the current one, since we could need to activate the edition
106 in the current row. Also, when beginning the edition, do nothing if,
107 basides having an empty source, we are sure we don't have the new
108 cell, which could obviously start it.
109 Fixes other bits of #323154.
111 2009-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
113 * DataGrid.cs: When we get notified by a change in the position of our
114 data source, don't set CurrentRow if the source is empty, as there's
115 no need to do anything else in the first place, and second, the logic
116 in the CurrentRow setter (public property) will add a new row by
117 default in this case (that is, when the source is empty).
118 Fixes part of #323154.
120 2009-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
122 * ToolStripMenuItem.cs: Don't try to use SystemColors.MenuText if fore
123 color is SystemColors.ControlText, as this system color detection
124 should be done *completely*. This is specially important when
125 detecting colors in systems running Gtk+ and dark themes.
127 2009-11-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
129 * DataGrid.cs: Add a new internal property to get the maximum possible
130 visible rows in the grid. We cannot use VisibleRowCount since this
131 value can, depending on the scroll position, return a +1 or -1 value,
132 so we need an absolute way to know whether we need a scroll bar or
133 not. Also, update VLargeChange to avoid code duplication.
134 Fixes a vertical scroll mismatch happening trying to add a new row
135 while the scrollbar has reached its maximum value.
137 2009-11-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
139 * DataGridTextBoxColumn.cs:
140 * DataGrid.cs: Position the cursor in the add row should *not* show
141 yet another new row - that will happen till we get any real input data
142 from the user. When that happens, we will also mark the new row as
143 ready to commit - otherwise, when the cursor moves to a different row,
144 the just added row will be discarded. This is exactly what .Net seems
147 2009-11-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
149 * DataGrid.cs: The large value for our vertical scrollbar should
150 depend on the number of visible rows, instead of trying to re-use the
151 value of VisibleRowCount, which is the value of *current* visible
152 rows, and can easily end messed up if new rows are added/removed.
154 2009-11-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
156 * DataGrid.cs: When moving the scroll, *dont* ever end the current
157 edit - this could seriously mess up our current edit cycle, specially
158 when adding new rows.
160 2009-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
162 * TabControl.cs: In OnKeyDown call the base implementation first -
163 this way we let the user tell us whether we should handle the key or
167 2009-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
169 * DataGrid.cs: Implement removal of rows the Correct Way by creating a
170 copy of the indexes, as any direct write access to the source will cause to
171 reset the entire selection - also, do the linear de-selection in
172 reverse order to avoid any index mismatch in the source, due to out of
173 synchronization removing the rows.
175 2009-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
177 * DataGridTextBoxColumn.cs:
178 * DataGrid.cs: Don't use this add-pending behaviour to try to add a
179 new row until we have the first input char - it was helping us to fix
180 other issues we have/had, but it's not matching .net.
182 2009-10-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
184 * TextBoxBase.cs: When returning the preferred height, and we are
185 supposed to be borderless, return the TopMargin value - usually in
186 borderless mode it has a value of 0, but in the ToolStrip controls we
187 need to set the margin manually.
190 2009-10-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
192 * ToolTip.cs: ShowAlways works at the form level, not at the control
193 level. Fixes #544565.
195 2009-10-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
197 * ButtonBase.cs: Usually the click routines are handled in Control,
198 but in this class we are handling it ourselved, thus we need to have
199 the same calls, and we were missing the call to MouseClick.
200 Patch by Eric Petit <surfzoid@gmail.com>.
202 2009-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
204 * ComboBox.cs: When setting Text and data source is being used, if the
205 passed value is not matching any of the items in the source, don't
206 pass it to GetItemText, since it's useless, as GetItemText expects a
210 2009-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
212 * ListView.cs: When retrieving an item in virtual mode, as part of the
213 process calculate its layout, instead of trying to do it later.
214 * ListViewItem.cs: There's no need to try to infer whether we need to
215 compute layout or not anymore - we just do it every time we are
217 This way we should be fixing View changes with cached items, which
218 were storing the previous value, and not updating their contents
221 2009-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
223 * ColumnHeader.cs: Remove the double linear search in the Index
224 property, by removing the call to Contains, which is not needed.
225 Also, Columns collection can never be null.
227 2009-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
229 * ColumnHeader.cs: When calculating the width and height of the
230 column, try to expand to the right and use all the free space if we
231 are the last column *and* the resize mode is set to -2/header content.
234 2009-10-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
236 * ListView.cs: When retrieving the top item, take into account the
237 offset represented by the header control, to retrieve the proper
238 value. Patch by Christoph von Wittich (Christoph at ApiViewer.de)
239 Fixes the remaining bits of #543773.
241 2009-10-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
243 * ListView.cs: TopItem setter should set the value as the top, not
244 only ensuring its visibility.
245 Fixes part of #543773.
247 2009-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
249 * ListView.cs: For virtual mode, when navigating the items using keyboard,
250 don't use the matrix of positions, and instead calculate the positions
251 based on the number of cols and rows, taking advantage of the fixed
252 positions of items. Use the same idea to implement FirstVisibleIndex,
253 so we avoid iterating over all the items. Patch by Stephen Robinson
255 Fixes part of #467418.
257 2009-10-12 Dick Porter <dporter@codicesoftware.com>
259 * Splitter.cs: Adjust offsets when more than one splitter is
260 present in a control. Fixes bug 509472.
262 2009-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
264 * ListView.cs: When computing the value for groups height don't use
265 text_size field, since in LargeIcon view it sometimes contains a
266 double height value - use Font.Height directly, and also improve the
268 * ThemeWin32Classic: The same as above.
269 This way the space between the group header, the line, and the items
270 area is not that big in LargeIcon view.
272 2009-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
274 * ListView.cs: When retrieving the fixed positions for the items in
275 virtual mode, use the row value to compute the coords of the item,
276 instead of the col value, as opposed to SmallIcon/LargeIcon views.
278 2009-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
280 * ListView.cs: The location of the items should be computed on the fly
281 in virtual mode - that decreased speed overall, but reduces the load
282 time.that decreased speed overall, but reduces the load time. Also,
283 handle the cases where we were using data structures we don't need to
284 use/create for this mode.
285 Fixes part of #467418.
287 2009-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
289 * ListView.cs: Tile view and VirtualMode can't be applied together.
290 Patch by Stephen Robinson <mono@esar.org.uk>.
292 2009-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
294 * ListView.cs: When calculating the layout for Details view, don't ask
295 for the items *at all* in case we are in virtual mode. This should
296 re-enable the proper behaviour of virtual mode.
298 2009-09-26 Jonathan Pobst <monkey@jpobst.com>
300 * TreeNode.cs: When we invalidate a node, make sure we start at
301 0, instead of the node's Bounds.Left, which does not include
302 the +/-, checkbox, or stateimages.
305 2009-09-24 Ivan N. Zlatev <contact@i-nz.net>
307 * DataGridView.cs: Compare the name and not displayname of properties
308 when checking if the column is already bound.
310 2009-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
312 * RichTextBox.cs: For SelectedRtf, after inserting the stream, adjust
313 the position of the caret by adding the needed chars represented by the new line chars,
314 according to the system, using rich *or* hard new lines as needed. Also do a
315 check to be sure we don't move the cursor position beyond the limits
316 of our text. This should avoid problems with text being pasted,
317 regarding the position of the caret.
319 2009-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
321 * RichTextBox.cs: When SelectedRtf is set, and we are in the 0
322 position in the x axis, force to re-use any already available line,
323 even if it is not empty. This way pasting text into our textbox in the
324 beginning for non empty lines should work fine.
326 2009-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
328 * RichTextBox.cs: When we are inserting a flow of rtf text, and we are
329 *not* loading it from a file, try to re-use a line if already
330 available, since the default behaviour of the parser is to create new
331 lines for the document.
332 This should fix a regressions we found after the last fix for #513030.
334 2009-09-14 Tom Hindle <tom_hindle@sil.org>
336 * ToolStripOverflow.cs: Fixes #536036 by adding null ptr check.
338 2009-09-11 Ivan N. Zlatev <contact@i-nz.net>
340 * PropertyGrid.cs: Hide the splitter when the help is hidden.
342 2009-09-11 Ivan N. Zlatev <contact@i-nz.net>
344 * InternalWindowManager.cs: Call Invalidate-Update instead of
345 Refresh for MS compitability. Note also that Refresh is virtual
346 and several controls override it in order to provide data refresh
347 functionallity on top of the redraw and they do not expect this
349 * Control.cs: In Refresh Invalidate the control and all children
350 insead of calling Refresh for each of them.
353 2009-09-11 Ivan N. Zlatev <contact@i-nz.net>
355 * PropertyGrid.cs: Always set the help panel properties on the
356 internal control, because they are inherited and can change with
360 2009-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
362 * RichTextBox.cs: When processing rtf, don't add a new line if we
363 already have one for that position. This way we avoid overriding by
364 mistake our lines when copying/pasting.
367 2009-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
369 * TextControl.cs: When inserting new lines, look for the end of file
370 char, and remove chars after it. This is unlikely to happeng either
371 loading a file, pasting text or pressing a char, but can happen using
372 the TextBox.Text property.
375 2009-09-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
377 * Line.cs: In DeleteCharacters, cache line.Length for every tag, since
378 tag.Start changes will modify it indirectly and then we would end up
382 2009-09-03 Ivan N. Zlatev <contact@i-nz.net>
384 * BindingSource.cs: Implement support for chained data sources.
385 * ListBindingHelper.cs: Add support for ICurrencyManagerProvider and
387 [Fixes part of bug #536547]
389 2009-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
391 * RichTextBox.cs: When saving the text to a file using SaveFile use
392 Environment.NewLine to separate the lines. This way we should be
393 saving the files according to the system.
394 Fixes the remaining part of #511515.
396 2009-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
398 * RichText.cs: Remove some unix new line characters and use
399 Environment.NewLine. Fixes part of #511515.
401 2009-08-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
403 * TextBoxBase.cs: Modified should *not* be modified from the Text
404 property, as our new tests show. It should be to false, however, in
405 Append and Clear; and Paste, Cut, Undo, and direct user input should set it
406 to true. Also, as opposed to what the .net docs say -but proven by our
407 tests-, the changes should be generating a ModifiedChanged event
408 (thus we set the property, instead of the field).
411 2009-08-27 Ivan N. Zlatev <contact@i-nz.net>
413 * DataGridView.cs: Fire the CellDoubleClicked event.
416 2009-08-27 Ivan N. Zlatev <contact@i-nz.net>
418 * DataGridView.cs: Add support for column DataGridViewAutoSizeColumnMode
419 DisplayedCells and DisplayedCellsExceptHeader.
422 2009-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
424 * TextControl.cs: When removing a simple char, actually record the
425 action in the undo manager. This way we both support undoing the
426 removal of chars using backspace/delete, as well as keeping data
427 integrity when other undo tasks are performed.
430 2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
432 * Control.cs: Remove the ancient code in ResetText, which was setting
433 the internal field to String.Empty, instead of doing it for our Text
434 property, as .net does (which also causes a TextChanged event and all
435 the other related routines).
438 2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
440 * TreeNodeCollection.cs: Correctly implement Contains by using a
441 linear search - there's no possible way to use a binary search, since
442 the node instances are not implementing IComparable, nor have a
446 2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
448 * DataGrid.cs: If we are *not* changing a row
449 already added to the source, and thus we are adding a new
450 row instead, try to move to the previous row when Esc is
451 pressed -if possible-.
452 Fixes some bits of #322974.
454 2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
456 * DataGridTextBoxColumn.cs:
457 * DataGrid.cs: Moving the cell to the add row (the last one) should
458 not immediately add a new row - this should happen until the very
459 first change happens in that textbox.
460 Fixes part of #322974.
462 2009-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
464 * ToolStripDropDown.cs: When assigning the owner item, use its Font as
467 2009-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
469 * ToolStripItem.cs: When the owner changes its Font, call the
470 OnFontChanged event, so we let our users know that we likely have a
471 new font - since Font is an ambient property.
472 * ToolStripDropDownItem.cs: When our Font changes, propagate that
473 information to our DropDown control, if any.
476 2009-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
479 * ThemeWin32Classic.cs: When the user clicks on a new cell, we should reset any
480 previous selection, just like .net does. Also, in the cases where a
481 cell is being edited and it keeps the selected status, use the normal
482 colors for it, and use the selected colors for the rest of the columns of
484 Fixes the remaining bits of #323051.
486 2009-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
488 * DataGrid.cs: When getting ProcessKeyPreview fired, call Edit() if we
489 are not editing already - so the edition is actually active on our
490 column style textbox. Also, it seems the code handling process the
491 grid keys is repeated, but instead of removing it, just comment it for
493 Fixes part of #323051.
495 2009-08-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
497 * AsyncMethodResult.cs: Store a exception field in case the called
498 method actually caused an exception. This way we can throw it later.
499 * XplatUIDriver.cs: Check if the async method result has an exception
500 - throw it if needed.
501 The idea is that Control.Invoke throws the exception from the thread
502 that called it, not the main MWF thread.
503 Patch by Tom Spink <tspink@gmail.com>. Fixes #497175.
505 2009-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
507 * DataGrid.cs: In mouse move we need to shift the selection in case
508 the pointer is on the row headers.
511 2009-08-11 Ivan N. Zlatev <contact@i-nz.net>
513 * SplitContainer.cs: Avoid updating the splitter distance if it hasn't
514 moved. Updating the distance was causing a re-layout which was resetting
515 the clicks counter and preventing DoubleClick from every firing.
518 2009-08-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
520 * DataGrid.cs: When a new TableStyle is added, don't create new
521 columns for it unless it is empty - this is the correct way to both
522 respect the columns if they were provided by our user, or create them
523 for him in case the column collection is empty.
526 2009-08-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
528 * DataGrid.cs: Actually call BindColumns in the handler for
529 ListManager.MetaDataChanged, since the current code is already taking
530 into account the scenario when a custom table style is used - this was
531 confusing us before, and that's why we commented the call to
532 BindColumns. Also call CallAreasAndInvalidate, to properly reflect the
536 2009-08-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
538 * DataGrid.cs: When setting the data source, if we have a user
539 provided table style available, force a complete bind in case the
540 column styles for that table style is empty.
542 2009-08-09 Ivan N. Zlatev <contact@i-nz.net>
544 * DataGridViewCell.cs: Handle null and DBNull values.
546 2009-08-07 Rodrigo Kumpera <rkumpera@novell.com>
548 * ListBindingHelper.cs: Fix the 1.0 build by making this type available
551 2009-08-07 Ivan N. Zlatev <contact@i-nz.net>
553 * CurrencyManager.cs: Remove duplicate code.
555 2009-08-07 Ivan N. Zlatev <contact@i-nz.net>
557 * DataGridView.cs, DataGridViewCell.cs, DataGridViewColumn.cs:
558 Massive population performance boost. From seconds to ms.
561 2009-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
563 * DataGrid.cs: When handling mouse down on a column, don't do any sort
564 even if the list supports it if we are empty. This way we avoid an exc
565 sorting the empty list, and keep the UI compatible with .net.
567 2009-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
569 * DataGrid.cs: In Edit () check we have any row before trying to use
570 the current row. Fixes a IOOR exc with an empty data grid.
572 2009-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
574 * DataGridColumnStyle.cs: Don't call CheckValidDataSource when setting
575 the owner DataGrid - even if this seems to be the right thing to do,
576 .net is not doind this check at this point, but in later operations.
579 2009-07-28 Mike Gorse <mgorse@novell.com>
581 * ToolStripMenuItem.cs: Added UIA CheckOnClickChanged event.
583 2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
585 * Application.cs: Make FilterMessage internal for 1.1. Fixes the 1.1 build.
587 2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
590 * XplatUIWin32.cs: We need to filter the messages using
591 Application.FilterMessage for our DoEvents implementations. Observe
592 that I don't like the idea of XplatUI call the upper level Application
593 class, but at this point is easier and simpler to do this call - based
594 on the fact it's only one simple call.
597 2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
599 * TreeNodeCollection.cs: When removing the selected node, set the
600 SelectedNode value of TreeView to null if there aren't more nodes left -
601 this is better than to clear the selected node in Clear, since we need
602 to handle the situation in the Remove methods as well.
605 2009-07-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
607 * ToolStripItemCollection.cs: Find should do a case insensitive
608 search, and should throw an ArgumentNullException if the parameter is
611 2009-07-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
613 * PropertyGrid.cs: Use click handlers for each ToolStripButton instead
614 of using a global handler for the ToolStrip. This way the buttons can
615 be recovered and can have its PerformClick method called properly.
618 2009-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
620 * X11Dnd.cs: Implement support for XdndActionList, so we can get the
621 complete list of the supported actions in the drag source, and use the
622 action passed in the Position message only as a fallback. This will
623 help us with dnd operations with non winforms apps.
626 2009-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
628 * ToolStripItemCollection.cs: Use a List<> instead of an ArrayList in
629 Find. This should fix the exception we were getting when trying to
630 convert the ArrayList to an array of objects (since we were losing the
634 2009-07-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
636 * RadioButton.cs: Setting Checked when none of the sibligs is checked
637 should happen *not* in GotFocus, but in the Enter event. This is
638 specially important since we should get that Checked behaviour even if
639 no handle is created yet - and thus, no actual GotFocus call happens at
643 2009-07-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
645 * ComboBox.cs: Adjust manually the top border for out internal
646 ComboBox, since removing the border from it leaves it without any
647 margin. This is not noticeable in a default ComboBox, but it is in an
648 instance shown on top of ToolStrip.
649 Fixes the remaining part of #507462.
651 2009-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
653 * TextBoxBase.cs: Expose the margin top width as a property, to keep
655 * ToolStripTextBox.cs: Since we are actually using no border in the
656 default TextBox impl, and we are drawing the border ourselves, we need
657 to manually set the top margin.
658 Fixes part of #507462.
660 2009-07-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
662 * PrintPreviewDialog.cs: Record when left was pressed, so we can
663 simulate Tab+Alt when moving the focus throughout our buttons and
665 Fixes the remaining bits of #509142.
667 2009-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
669 * TabControl.cs: When computing the width of each tab page, use the
670 page's Font instead of the tab control one.
673 2009-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
675 * MenuAPI.cs: When handling the Keys.Left key, don't close the menu if
676 the current menu is specifically a ContextMenu (this is what .net does
677 as well). This way we also avoid a crash caused by MenuTracker trying
678 to use the menu when it was already hidden.
680 2009-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
682 * PrintPreviewDialog.cs: Remove the code used to handle the
683 DropDown menu, since we are now doing it by default in ToolBar, and
684 just call the base impl as needed.Also, deactivate the dropdown menu
685 before moving the focus to a different button in our toolbar, as .net
688 * MenuAPI.cs: Make as internal the needed bits to deactivate a
689 ContextMenu, and also to keep some beauty in our api.
691 2009-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
693 * ToolBar.cs: When handling the key down message, if we are on a
694 drop down button, either show the DropDownMenu or pass the key to its
695 ProcessCmdKey method as needed.
696 Fixes the remaining bits of #509985.
698 2009-06-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
700 * ToolBar.cs: Isolate the event logic related to OnButtonClick. Also
701 set current_item when navigating with the keyboard, so we can use it
702 properly later. Finally, handle both Enter and Space to fire
703 OnButtonClick *only*, without any other impact, as .net does.
704 Fixes part of #509985.
706 2009-06-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
708 * MenuAPI.cs: Close any active menu when we get a simple Alt.
711 2009-06-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
713 * ToolBar.cs: In OnButtonClick only change the Pushed value for
714 buttons with toogle style. We were previously doing it for
715 DropDownButton's buttons, but that's not what .net is doing.
718 2009-06-26 Atsushi Enomoto <atsushi@ximian.com>
720 * XplatUICarbon.cs : support multi-byte text input.
723 2009-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
725 * ListBox.cs: When creating DrawItemEventArgs, pass either
726 Theme.ColorHighlightText or ForeColor depending on the selected state
727 of our item, as .net does.
730 2009-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
732 * ComboBox.cs: When handling WM_CHAR, process the message first, and
733 send it to the textbox only if it wasn't handled.
736 2009-06-18 Jonathan Pobst <monkey@jpobst.com>
738 * ComboBox.cs: Only do my big sort at the end of AddRange if
739 the combobox is actually set to Sorted.
741 2009-06-18 Tom Hindle <tom_hindle@sil.org>
743 * XplatUIX11.cs: Enabled Text to coexist with custom data formats.
746 2009-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
748 * ListBox.cs: When calculating the scrollbars for non MultiColumn
749 mode, force the use of the horizontal scrollbar only if
750 ScrollAlwaysVisible is true as well.
753 2009-06-17 Jonathan Pobst <monkey@jpobst.com>
755 * ComboBox.cs: When using AddRange on a sorted combobox, don't
756 try to use our inefficient sorted insert method, just append
757 it and sort the whole thing at then end.
760 2009-06-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
762 * ToolBar.cs: Expose as internal the code used to show a dropdown menu.
763 * PrintPreviewDialog.cs: Handle the down/up arrow keys for our
767 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
769 * DataGridView.cs: Scrolling fixes.
772 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
774 * DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and
775 optimize for batch adding rows.
777 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
779 * DataGridView.cs: Avoid calling ReBind twice during the initial data
783 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
785 * DataGridView.cs: Suppress invalidation during data binding.
786 [Fixes part of bug #512807]
788 2009-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
790 * PrintPreviewDialog.cs: Tune the navigation among the buttons and
791 controls that are part of our ToolBar, so we can mimic the behaviour
792 observed in .Net, by handling also the arrow keys and doing the
793 preprocess for them too.
794 Fixes the remaining bits of #509142.
796 2009-06-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
798 * ToolBar.cs: Expose the current item as internal.
799 * PrintPreviewDialog.cs: Tune the TabStop property for
800 PrintPreviewControl/ToolBar so we match the .net scenario regarding
801 Tab navigation. Also implement support to navigate throughout the
802 items in the ToolBar.
805 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
807 * DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs:
808 Implement items syncing in the non-databound scenario.
811 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
813 * DataGridView.cs: Call OnCellValidating and OnCellValidated and
814 handle the Cancel accordingly.
817 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
819 * DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
822 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
824 * DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs,
825 DataGridView.cs: Fire CollectionChangeAction.Refresh collection
826 changed when Clearing the collections so that the DataGridView
827 can know and reset the current cell.
830 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
832 * BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor
833 with the PropertyDescriptor parameter instead of index, because the
834 latter will set some irelevant indices. Fixes a bug uncovered by recent
835 fix to ListChangedEventArgs.
837 2009-06-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
839 * DataObject.cs: When looking for any specific format, do a case
840 insensitive search, as .net does.
843 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
845 * CurrencyManager.cs: In AllowNew firstly check if the list is a
846 IBindingList and proxy to AllowNew. IBindingList has slightly differet
847 logic and eventhough it's an IList IsReadOnly should not be used in this
848 case as it might be True but AllowNew could be True as well.
849 Fixes a bug uncovered by a fix to the Array class.
851 2009-06-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
853 * ListBindingHelper.cs: In GetListItemType do a null check when
854 looking for IList.Item, since the impl could be explicit, and thus
855 private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
856 Fixes the remaining part of #507120
858 2009-06-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
860 * DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
861 to match them in all the cases, as this is exactly what .net does.
864 2009-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
866 * ListBindingHelper.cs: In GetListItemType handle gracefully the case
867 where an instance of IEnumerator returns a null value for its Current
868 property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
871 2009-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
873 * ComboBox.cs: Properly detect whether we need to use our vertical
874 scrollbar or not, specially for DropDownList/DropDown styles,
875 depending on the value of DropDownHeight.
878 2009-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
880 * ToolTip.cs: Call the base implementation in Dispose, but do it
881 before anything else to avoid a regression. This way we do the default
882 routines related to any System.ComponentModel.Container.
885 2009-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
889 * DataFormats.cs: Implement support for serializable types in our
893 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
895 * ColorDialog.cs: Actually add the help button to the form, so it can
899 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
901 * PrintPreviewDialog.cs: Don't use Dock.Fill for the
902 PrintPreviewControl, since it will be hidden in the top by our
903 toolbar. Use manual location and anchoring instead.
906 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
908 * FileDialog.cs: When saving the size of the dialog, use the
909 ClientSize instead of Size, so we have always the same size for the
910 form. Patch by Alex Shulgin.
913 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
915 * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
916 show a beep, similar to what .net does.
919 2009-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
921 * ContainerControl.cs:
923 * ToolStrip.cs: Implicit mnemonic processing should happen for every
924 ToolStrip child, not only for MenuStrip, so we are going to do that in
925 ToolStrip.ProcessMnemonic, where we already had that exactly
926 functionality, but we are only just checking that either this instance
927 is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
928 remove the extra code, since we are not going to use it now.
929 Fixes the remaining bits of #503663.
931 2009-05-21 Neville Gao <nevillegao@gmail.com>
933 * ContextMenu.cs: Cleaned up UIA properties.
935 2009-05-20 Dick Porter <dick@acm.org>
937 * XplatUICarbon.cs: Add more locking around MessageQueue
940 2009-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
942 * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
943 duplication of code, as well as actually getting the focus back in
944 *any* scenario where the drop down is closed.
946 2009-05-18 Tom Hindle <tom_hindle@sil.org>
947 * ScrollableControl.cs: Ignore setting properties HScroll and
948 VScroll when AutoScroll is true.
951 2009-05-18 Jonathan Pobst <monkey@jpobst.com>
953 * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
954 disabled graphics look closer to the ones that .Net produces.
957 2009-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
959 * DateTimePicker.cs: When calculating the max width for the year part,
960 use the current value, since *all* the possible values are exactly a 4
961 digits number. This way we avoid a ArgumentOutOfRangeException trying
962 to check against different values.
965 2009-05-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
967 * MessageBox.cs: When handling ProcessDialogChar, check that
968 CancelButton is not null before trying to use it, to avoid a null ref
969 exception. We don't need to do that on the ok/yes buttons, since they
973 2009-05-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
975 * ListBox.cs: Handle the key down event in WndProc instead of doing it
976 in an event handler, as we need to avoid any operation in case
977 the user has handled it in its own OnKeyDown handler, and this can't
978 be achieved since our handler would be the first one always.
979 * FontDialog.cs: Update the calls since our method handling key down
983 2009-05-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
985 * Application.cs: We should dismiss the active ToolStrip when we
986 receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
987 keyboard short cut can be properly processed by another menu item.
988 Fixes part of #503663.
990 2009-05-13 Andreia Gaita <avidigal@novell.com>
992 * HtmlDocument.cs: If the objects are strings, wrap them in ""
994 2009-05-13 Andreia Gaita <avidigal@novell.com>
996 * HtmlDocument.cs: Fix InvokeScript call (duh).
998 2009-05-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1000 * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
1001 * ComboBox.cs: If auto complete is being used, it is needed to update
1002 the actual value of the combo box, doing it immediately if the user
1003 presses Enter, or doing it when our combo box loses focus. Finally,
1004 when handling Enter and Escape keys for the combobox, don't try to
1005 hide the listbox if it is not visible in the first place.
1006 Fixes part of #489339.
1008 2009-05-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1010 * ToolStripDropDownMenu.cs: Use the height returned by
1011 ToolStripItem.GetPreferredHeight to calculate our own height.
1013 2009-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1015 * TreeNode.cs: When setting Checked, do a double null check, since the
1016 current node can still get a null parent handling
1017 TreeView.OnAfterCheck.
1020 2009-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1022 * Control.cs: When assigning ContextMenu, do a null check before
1023 assigning its container field.
1025 2009-05-08 Brad Taylor <brad@getcoded.net>
1027 * DateTimePicker.cs: Add a UIA-specific property to ensure that if
1028 is_checkbox_checked is changed, we won't break.
1030 2009-05-08 Andrés G. Aragoneses <aaragoneses@novell.com>
1032 * ToolStripItem.cs: Prevent NRE when our holder is a
1033 ToolStripDropDownButton and we get Select()ed.
1035 2009-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1037 * ToolStripControlHost.cs: DefaultSize must return the current size of
1038 the Control, not the value returned by GetPreferredSize. Also connect
1039 a handle to the control Resize event, and use it to fire
1040 OnHostedControlReize.
1041 Fixes the remaining bits of #483146.
1043 2009-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1045 * ToolStripDropDown.cs: When performing the layout, use
1046 ToolStripItem.GetPreferredSize ().Height instead of
1047 ToolStripItem.Height, since we are already using it that way in this
1049 Fixes part of ##483146.
1051 2009-05-08 Brad Taylor <brad@getcoded.net>
1053 * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers. Send
1054 OnUIASelectionChanged when ShowCheckbox is true and the checkbox
1055 recieves focus. Part of fix for #502029.
1057 2009-05-06 Mike Gorse <mgorse@novell.com>
1059 * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
1060 Add PerformClick and PerformDoubleClick to PopupButton.
1063 2009-05-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1065 * TabControl.cs: call Focus() to emit GotFocus event at the
1066 proper time when SelectionIndex changes. Fixes #499887.
1068 2009-05-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1070 * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
1071 have valid values, even if BoundSpecified is not including
1072 Size/Height/Width - this is useful when we are in a control using Dock
1074 Fixes part of #483146.
1076 2009-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1078 * ComboBox.cs: When losing the focus, if our textbox is not null,
1079 close its auto complete list, if any.
1080 Fixes part of #489339.
1082 2009-04-27 Andrés G. Aragoneses <aaragoneses@novell.com>
1084 * ListView.cs: Make OnColumnClick +internal to be used by a11y.
1086 2009-04-27 Brad Taylor <brad@getcoded.net>
1088 * ToolStripButton.cs: Emit an internal event when CheckOnClick is
1091 2009-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1093 * XplatUIX11.cs: Properly support UTF8 when handling the
1094 SelectionRequest event - this is helpful supporting some window
1095 managers, such KDE, that explictly request the text in utf8, as
1096 opposed to gnome, that supports ascii.
1099 2009-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1101 * ToolStripDropDownItem.cs: When assigning a new
1102 ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
1103 Capture duties performed by Application/ToolStripManager are handled
1104 nicely and we don't end up in an inconsisten stat.
1107 2009-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1109 * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
1110 any ToolStripDropDownItem when receiving a mouse down event in an
1113 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
1115 * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
1117 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
1119 * ToolBarButton.cs: rename a method to include UIA prefix.
1121 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
1123 * ToolBarButton.cs: change visibility of some UIA methods from
1124 protected virtual to private.
1126 2009-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1128 * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
1129 fire OnDropDownOpened/OnDropDownClosed depending on the new
1130 visibility. This also ensures that any direct access to this instance
1131 will fire the mentioned events for the OwnerItem.
1132 * ToolStripDropDownItem.cs: Remove the invocations to
1133 OnDropDownOpened/OnDropDownClosed, since they are handled in
1134 ToolStripDropDown, as well as updating the
1135 OnDropDownHide/OnDropDownShow calls to be in the right order.
1138 2009-04-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1140 * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any
1141 shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the
1142 event is the same as the owner of the menu item. Also set properly
1143 SourceControl for ContextMenuStrip, as well as add an internal field to
1144 contain the control that owns the ContextMenuStrip (we need to know this
1145 even before the public property is assigned).
1146 Fixes bits of #393775.
1148 2009-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1150 * StatusStrip.cs: Use the same icon as .net when the mouse is over the
1154 2009-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1156 * ComboBox.cs: When calculating the height of the ComboListBox,
1157 specially for the 2.0 profile, use MaxDropDownItems if the
1158 DropDownHeight property hasn't been set, and use the later if it has
1159 been set. This way we support both properties.
1162 2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1164 * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
1167 2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1169 * ContainerControl.cs: Implement support for Control.CausesValidation,
1170 by adding a pending list of controls to be validated in the top
1171 container control, and postpone validation as needed.
1172 Also remove any control in the validation chain in case it gets removed
1173 from its owner before the pending validation actually happens.
1176 2009-04-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1178 * ListBox.cs: The default instance StringFormat field used to draw our
1179 items should use the StringFormatFlags.NoWrap value, so it doesn't try
1180 to put in a different line the text that doesn't fit our bounds, but
1184 2009-04-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1186 * CheckedListbox.cs: When executing OnItemClick check that the index
1187 is different to -1 before trying to retrieve an item using that value.
1188 Fixes a ArgumentOutOfRangeException thrown when the horizontal
1189 scrollbar was visible but not needed, and then a clicked was received
1192 2009-04-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1194 * MaskedTextBox.cs: If Insert is pressed, change the internal
1195 overwrite mode for our default value.
1196 Fixes some bits of #477395.
1198 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1200 * ListView.cs: In EnsureVisible avoid any direct access to items if we
1201 are using virtual mode - otherwise use the bounds stored in a specific
1202 item in a given index. This is specially important when using groups
1203 or when items are re-arranged, since the position in the items
1204 collection can be different than that one being displayed.
1205 Fixes the rest of ##491978.
1207 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1209 * ThemeWin32Classic.cs: Include the previous check for ListView in a
1210 2.0 define as needed.
1212 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1214 * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
1215 Fixes part of #491978.
1217 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1219 * ToolTip.cs: New fields to store the title/icon information.
1220 * ThemeWin32Classic.cs: Implement support for tooltip's title and
1224 2009-04-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1226 * TabControl.cs: When removing a tab that was previously selected, set
1227 internally the value of selected_index to -1, to avoid trying to
1228 access the previous one when trying to set the new one (and was
1229 already removed from the collection). This is what .net seems to do
1233 2009-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1235 * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
1236 separated, and we cannot fallback on Text if Rtf is requested but not
1238 * Clipboard.cs: Actually use the format specified by our user when
1241 2009-03-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1243 * X11Clipboard.cs: Actually look for the RtfText format when calling
1244 GetRftText in our clipboard formats list, instead of using the
1245 generical Text format.
1247 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1249 * TextBox.cs: Process auto completion properly when we are using the
1250 internal source provided by ComboBox, and also remove some repeated
1254 2009-03-30 Tom Hindle <tom-hindle@sil.org>
1256 * DataGridView added Support for Invisible Columns to
1257 AutoFillColumnsInternal method.
1259 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1262 * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
1263 its own file, since it is adding some functionality and thus is not a
1264 simple struct as before.
1265 * XplatUIX11.cs: Add support to store different formats that could
1266 have been specified by the user when puting data in the Clipboard -
1267 this is important when more than one format is supported (such plain
1268 text and rtf text). Update in the needed places, as well as simplify
1272 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1274 * XplatUIX11.cs: When handling the SelectionRequest event, use
1275 SelectionRequestEvent instead of SelectionEvent, so we get the right
1276 data for the app asking for clipboard data. Set the member of
1277 SelectioneEvent.property to indicate the place where we are storing
1278 the information as well - this is specially important for gnome/kde
1279 apps using the TARGETS atom to ask for the supported permission before
1280 actually asking for a specific format.
1283 2009-03-28 Ivan N. Zlatev <contact@i-nz.net>
1285 * DataGridViewCell.cs: We don't support drawing all types of cell borders,
1286 so fallback and at least draw something instead of nothing.
1288 2009-03-27 Ivan N. Zlatev <contact@i-nz.net>
1290 * DataGridView.cs: If the column header isn't visible allow resizing
1291 using the cell column border. Also be sure to reset the cursor properly.
1294 2009-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1296 * ToolStrip.cs: When disposing, iterate over the items in reverse
1297 order, since disposing the items modifies the collection.
1298 * ToolStripItem.cs: Remove from the owner when disposing.
1301 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1303 * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No
1304 longer throws a NotImplementedException.
1305 Based on a patch by Tom Hindle <tom_hindle@sil.org>
1308 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1310 * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws
1311 NotImplementedException.
1313 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1315 * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs:
1316 Fix SortMode clash handling.
1319 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1321 * DataGridView.cs: Do not show the vertical scrollbar if there is only
1322 one row or less. For the sake of MSNET compatibility.
1325 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1327 * DataGridView.cs: When the current cell is moved out of the editing row
1328 be sure to reset it back to a place holder row.
1330 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1332 * DataGridView.cs: If IsHandleCreated and the very first row is added
1333 to the grid in a non-databound scenario - select the first cell.
1336 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1338 * DataGridView.cs: If we are not databound and empty once the first row
1339 gets added select the first cell.
1342 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1344 * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
1345 DataGridView. They do not belong to a DataGridView.
1348 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1350 * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs:
1351 Set indices and associate with DataGridView only after the item is
1352 add to the internal list.
1353 [Fixes part of bug #486645]
1355 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1357 * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount.
1358 FullRowTemplate already contains all the cells.
1359 [Fixes part of bug #486645]
1361 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1363 * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal
1364 to perform Pre and Post removal actions to allow the current cell to be
1365 moved and all events fired properly before the column is removed.
1367 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1369 * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and
1370 Post removal action to allow the current cell to be moved and all events fired
1371 properly before the row is removed.
1373 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
1375 * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
1378 2009-03-18 Jonathan Pobst <monkey@jpobst.com>
1380 * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
1381 placement of popup windows on OSX.
1383 2009-03-18 Matt Guo <matt@mattguo.com>
1385 * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
1388 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
1390 * DataGridView.cs: Implement the CellMouseDoubleClick event.
1393 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
1395 * DataGridView.cs: Fix scrolling to take into account that the
1396 scrollbars are actually inside the client area of the datagridview.
1398 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
1400 * DataGridView.cs: Implement mouse wheel scrolling.
1403 2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
1405 * DataGridView.cs: When DataSource changes the rebinding should happen
1406 not if IsHandleCreated but if BindingContext != null.
1409 2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
1411 * DataGridView.cs: Browsable(false) properties should be skipped when
1412 autogenerating the columns.
1415 2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1417 * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
1418 user should use a different handling, trying to use every pressed char
1419 as a unique and only one prefix to compare against the items. Also,
1420 refactor some input check code to avoid duplication.
1423 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
1425 * DataGridViewCell.cs: In OwningColumng Handle invalid column index
1429 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
1431 * DataGridViewBand.cs: Update our State whenever a property changes.
1432 * DataGridView.cs: Don't be so generous in reseting Displayed, because
1433 it will spawn lots and lots of unneeded State changed events.
1436 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
1438 * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs:
1439 Add support for invisible rows and columns.
1442 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
1444 * DataGridViewCell.cs: Escape literal { in ToString.
1445 * DataGridViewTextBoxCell.cs: Fix ToString.
1448 2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1450 * MenuAPI.cs: When navigating items using the keyboard properly handle
1451 the case when no item is selected - this way we should try to select
1452 the first or the last item depending on the direction, but no the
1453 second or third one, etc.
1455 2209-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1457 * Form.cs: When calling ProcessCmdKey, just after checking for any
1458 MainMenu, check if there's an active ContextMenu that is *not* owned
1459 by the form - this is needed when a non-focusable control owns a
1460 ContextMenu but its ProcessCmdKey method can't be called since it
1461 can't receive any input.
1464 2009-03-13 Neville Gao <nevillegao@gmail.com>
1466 * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
1467 * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
1468 ContextMenu is displayed.
1470 2009-03-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1472 * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
1473 WM_HELP message for the associated window, don't call
1474 NativeWindow.WndProc *at all*, since this could send a WM_*
1475 key-related to Control.WndProc. Also, return the keypress message, in
1476 case it needs to be preprocessed for any menu.
1479 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
1481 * DataGridView.cs: When removing the first displayed row and moving
1482 the current cell up one we must invalidate the first displayed row
1483 index before calculating the row heights, etc.
1486 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
1488 * DataGridView.cs: Fix three column bugs:
1489 - Rows should be cleared (but not removed) if columns become 0.
1490 - The current cell should get moved
1491 - ColumnCount increase was adding too many columns.
1493 2009-03-07 Ivan N. Zlatev <contact@i-nz.net>
1495 * DataGridView.cs: Fix RowCount decrease which wasn't working well
1496 in both scenarions - with and without editing row.
1498 2009-03-06 Ivan N. Zlatev <contact@i-nz.net>
1500 * DataGridView.cs: Be compatible with MS in that the scroll to
1501 selection has a synchronous effect. The trick here is that in
1502 order to avoid unnecessary calculations each time a row/column
1503 is added/removed we recalculate the whole grid size just before
1504 just before the scroll to selection.
1507 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1509 * RichTextBox.cs: LoadFile(string path) should pass by default
1510 RichTextBoxStreamType.RichText, without caring about the detection or
1511 extension of the file.
1513 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1515 * RichTextBox.cs: When calling LoadFile, remove the extra EOL
1516 introduced by StreamReader, since it will convert the EOF to an EOL.
1519 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
1521 * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
1522 preferred size twice.
1524 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
1526 * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
1527 string if we aren't on a ToolStripDropDownMenu.
1529 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
1531 * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
1532 code from Item to Button. Patch from Alex Shulgin.
1534 2009-03-05 Jonathan Pobst <monkey@jpobst.com>
1536 * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
1537 * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
1538 not a ToolStripDropDown.
1539 * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
1541 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
1543 * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
1545 Based on a patch by Tom Hindle <tom_hindle@sil.org>
1548 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
1550 * DataGridView.cs, DataGridViewElement.cs:
1551 - Always calls OnDataGridViewChanged() if the new DGV is
1552 not the same/null as the current one.
1553 - Do not throw NREs when setting TopLeftHeaderCell to null
1554 - Unset the DGV for TopLeftHeaderCell when replacing it
1555 Based on a patch by Tom Hindle <tom_hindle@sil.org>
1558 2009-03-04 Jonathan Pobst <monkey@jpobst.com>
1560 * ToolStripDropDown.cs: When dismissing control due to ESC, don't
1561 hit a NRE if we are a ContextMenuStrip and do not have a parent.
1564 2009-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1566 * ListView.cs: When removing items from a ListViewItemCollection
1567 contained in ListView (not in ListViewGroup), before actually removing
1568 the items remove them also from their -if any- associated groups. If
1569 the item is present in ListViewGroup.Items but not in ListView.Items,
1570 then don't remove it - this is *exactly* what .net seems to do.
1571 Fixes the remaining bits of #478689.
1573 2009-02-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1575 * ListView.cs: In our MouseDown handler in ItemControl use the item in
1576 the very specific *real* position where the mouse was pressed, using
1577 GetItemAtDisplayIndex for that purpose, instead of directly accessing
1578 Items - this is specially useful when groups with Details view is
1579 used. This is what we do in other places when using groups.
1580 Fixes part of #478689.
1582 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1584 * MaskedTextBox.cs: Properly replace selection when a new valid key
1585 is pressed - even when IsOverwriteMode is false. This is what .net
1588 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1590 * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
1591 true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace,
1592 since Set will keep the previous value in case of error (just what we
1593 need), but still call MaskedTextProvider.Clear if
1594 RejectOnFirstFailure is false - match .net.
1596 2009-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1598 * MaskedTextBox.cs: When setting Text use the very precise algorithm
1599 that .net uses: iterate over every char of the new value, trying to
1600 use every char, and use a normal call to MaskedTextProvider.Replace
1601 call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected
1602 in case of error in both cases, as well.
1605 2009-02-25 Neville Gao <nevillegao@gmail.com>
1607 * ColorDialog.cs: Added UIA Framwork Property:
1608 UIASelectedSmallColorControl.
1610 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1612 * MaskedTextBox.cs: Forgot to update the call of the new method
1613 introduces in the previous patch.
1615 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1617 * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
1618 key. Also create a new method to avoid code duplication between
1619 OnKeyDown and OnKeyPress.
1622 2009-02-24 Ivan N. Zlatev <contact@i-nz.net>
1624 * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected
1628 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1630 * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
1631 actually inversed, so put it the right way. Also, don't automatically
1632 look for the next editable item after adding a new one, but way for
1633 the next insertion (this is what .net does) - this is not needed when
1634 MaskedTextProvider.InsertAt is called however, since it already looks for the
1635 next editable position.
1636 Fixes the remaining bits of #477383.
1638 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1640 * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
1641 MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
1642 property after the text was modified, adjust the testPosition value
1643 depending on what method was called.
1644 Fixes part of #477383.
1646 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1648 * ListView.cs: For EnsureVisible, adjust the view port bounds based on
1649 the existence of the column headers, as well as using this information
1650 to adjust the vscrollbar value, so items never get hidden by the
1654 2009-02-23 Ivan N. Zlatev <contact@i-nz.net>
1656 * DataGridView.cs: Make the ScrollBars property work properly.
1658 2009-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1660 * TextBox.cs: Some code lifting for AutoComplete's support. First,
1661 when handling non-navigation keys, save the original Text typed by the
1662 user, and don't motify it BEFORE. This was a design mistake, since the
1663 re-assignation happens only when navigating the append/suggest list,
1664 not while creating the matches. Also, process the Delete key just like
1665 the backspace one. Finally, when handling WM_CHAR, ignore both Escape
1667 Fixes some missing bits of #469967.
1669 2009-02-22 Ivan N. Zlatev <contact@i-nz.net>
1671 * DataGridView.cs: Fix row removal in the data-bound scenario.
1673 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
1675 * DataGridViewCell.cs: Use strict equality comparison in order to
1676 prevent superfluous CellValueChanged events.
1678 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
1680 * DataGridView.cs: Do not reset the columns when the data list changes,
1681 but only the rows. Fixes multiple bugs related to sorting, custom
1682 column styles being reset and more.
1684 2009-02-19 Jonathan Pobst <monkey@jpobst.com>
1686 * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
1689 2009-02-18 Andrés G. Aragoneses <aaragoneses@novell.com>
1691 * ToolBarButton.cs: Oops, use the correct event (fix r127298).
1693 2009-02-17 Andrés G. Aragoneses <aaragoneses@novell.com>
1695 * ToolBarButton.cs: Event for Enabled property (needed to fix
1698 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1700 * TextBox.cs: When handling WndProc with autocomplete activated,
1701 event if the new text is not causing any change in the look up
1702 algorithm, save it as we normally do when numbers and letters.
1705 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1707 * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
1708 Invalidate the proper bounds in the TreeView, not only resetting the
1712 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1714 * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
1715 BackColor property. This is what .net does in both 1.1 and 2.0.
1716 * TreeView.cs: When selected_node is not the same as highlighted_node,
1717 we need to handle the back color in a different way, trying to use the
1718 node's BackColor if it's not Color.Empty.
1721 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1723 * TreeView.cs: When canceling selection in our MouseUp handler,
1724 invalidate also the previous selected node bounds.
1727 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
1729 * DataGridView.cs: End or if end fails then cancel the current edit
1730 operation before clearing the data source.
1732 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
1734 * DataGridView.cs: Data-bind only after the handle is created.
1737 2009-02-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1739 * TreeView.cs: When handling the MouseMove event, check if
1740 focused_node and selected_node fields are null - usually they are non
1741 null, since we have always a selected node, but canceling selection by
1742 handling BeforeSelect event leaves the two of them as null.
1745 2009-02-06 Neville Gao <nevillegao@gmail.com>
1747 * TabControl.cs: Control enabled to support accessibility.
1750 2009-02-05 Ivan N. Zlatev <contact@i-nz.net>
1752 * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation:
1753 - Use ArrayList.Insert instead of the Item property so that the item
1754 is actually inserted and not an existing item replaced.
1755 - Call DataGridView.OnRowsAddedInternal and drop internal from
1756 OnRowsAdded for binary compitability. This also fixes several
1760 2009-02-05 Andrés G. Aragoneses <aaragoneses@novell.com>
1762 * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
1765 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1767 * ToolBarButton.cs: Add another event (OnUIATextChanged).
1769 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1771 * ToolBarButton: Fix typo in previous commit (r125704).
1773 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1775 * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
1776 when a button gets focus, firing the events from the ToolBar.
1779 2009-02-04 Mario Carrion <mcarrion@novell.com>
1781 * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting
1783 * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
1784 ColumnHeader to raise ColumnWidthChanged.
1787 2009-02-03 Ivan N. Zlatev <contact@i-nz.net>
1789 * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion
1790 code in the row collection code, so that the completion happens before
1791 the CollectionChanged event, also better encapsulation.
1794 2009-02-02 Ivan N. Zlatev <contact@i-nz.net>
1796 * DataGridView.cs: When editing is finished do not remove the editing
1797 row, because it has already become a real one. Instead add a new one.
1800 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1802 * TreeView.cs: When drawing the node's image, check that the index
1803 specified by the node is valid for the ImageList.
1806 2009-02-02 Andrés G. Aragoneses <aaragoneses@novell.com>
1808 * ToolBar.cs: Add new UIAPerformClick method to be called by
1809 UIAutomationWinforms when someone calls Invoke() on the
1810 ToolBarButtonProvider. r: jpobst
1812 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1814 * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
1815 MapNotify/UnmapNotify events - we are already firing those events in
1816 the proper places, so we avoid this way to send the same message two
1817 times. I'm leaving the handling code in case we could break something
1818 in the future, as this change seems dangerous (but needed).
1821 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
1823 * DataGridView.cs: Complete incomplete rows when they are added to
1827 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
1829 * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the
1830 binding is cleared prior to setting it to null. Fixes a regression
1831 causing exceptions when the DataSource is set to null and then set
1832 again to a data source.
1834 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
1836 * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs:
1837 - Make Image/Bitmap cells work.
1838 - Handle images with size greater than the cell.
1839 - Default to MiddleCenter alignment for image cells.
1842 2009-01-30 Ivan N. Zlatev <contact@i-nz.net>
1844 * UpDownBase.cs: Force Height to PreferredHeight.
1846 2009-01-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1848 * XplatUIX11.cs: We should use utf8 handling clipboard transference
1849 with other x11 applications, and use utf16 when handling clipboard
1850 data in the class library. Update the related points as well.
1853 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
1855 * DataGridViewCell.cs: Format strings according to the supplied
1859 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
1861 * DataGridView.cs: Reset the hover cell if it gets moved due to row(s)
1862 addition or removal. Fixes multiple crashes in OnMouseMove.
1864 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
1866 * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
1868 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
1870 * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the
1874 2009-01-26 Andreia Gaita <avidigal@novell.com>
1876 * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
1877 won't be disabled by default.
1880 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
1882 * DataGridView.cs: Do not clear the rows if we are not databound.
1884 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
1886 * DataGridView.cs: Do not be too smart about selecting the first cell
1887 when the first row is added as this is not what MS does. Fixes the
1890 2009-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1892 * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
1893 take into account the fact that OpenTreeNodeEnumerator needs to call
1894 MoveNext/MovePrevious to actually put the passed node as the one
1895 retrieved in Current. This way this property should work as really
1897 Fixes part of #467225.
1899 2000-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1901 * TreeView.cs: When calculating the scrollbars, don't use
1902 TreeNode.Bounds, since it still can have the values of the previous
1903 -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1904 could not have been updated as well-, and use the actual number of
1905 visible number of nodes to compute the height needed to contain all
1906 the nodes. Also reset the value of vbar to 0 when disabled - this way
1907 we make sure that, when re-enabled, it will update the visible area of
1908 the treeview, even if the previous value before disabling it is the
1909 same as now. Finally don't do anything for the vbar.ValueChanged
1910 handler - for the case wheer we manually set the value but don't the
1911 vbar is disabled already.
1912 Fixes part of #467225.
1914 2009-01-23 Jonathan Pobst <monkey@jpobst.com>
1916 * ToolStrip.cs: Switch from foreach to for, in case the collection
1917 somehow changes while enumerating it.
1919 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
1921 * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no
1924 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
1926 * DataGridView.cs: Fix new row adding/editing in the non-databound
1929 2009-01-21 Mike Gorse <mgorse@novell.com>
1931 * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
1933 Added UIAValueParamChangedEvent.
1935 2009-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1937 * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
1938 of trying to set as top node the highest parent of the previous top
1939 node. Moving to the bottom of the TreeView after a call to CollapseAll
1940 is exactly what .net does. This should avoid some nasty issue when
1941 CollapseAll is called and we don't need the vertical scroll bar.
1943 2009-01-21 Mario Carrion <mcarrion@novell.com>
1945 * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
1946 and UIATopMostChanged.
1948 2009-01-21 Sandy Armstrong <sanfordarmstrong@gmail.com>
1950 * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
1951 UIAEnabledChanged, and UIATextChanged events.
1953 * Form.cs: Add UIAMenuChanged event.
1956 * MenuAPI.cs: Note which internal APIs are being used by UIA.
1958 2009-01-21 Neville Gao <nevillegao@gmail.com>
1960 * ToolBar.cs: Control enabled to support accessibility.
1963 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1965 * TreeView.cs: When handling mouse up event, check whether
1966 highlighted_node is null or not - usually it should be non-null
1967 alwaays, since the mouse down handler sets it, but some externa
1968 operations, such TreeNodeCollection.Clear, could set it to null.
1971 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
1973 * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu
1976 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
1978 * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
1981 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1983 * MonthCalendar.cs: When handling the selection changes using the
1984 mouse, don't set SelectionRange if the selection range didn't actually
1985 change. This matters because, even if we set the range to the same
1986 previous range, an extra DateChanged event is fired. Just to be clear:
1987 SelectionRage property doesn't check whether the new value is
1988 different to the previous one (by ref equals doesn't work here).
1989 Fixes other bits of #364914.
1991 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1993 * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
1994 selection using the keyboard, since we are already firing this event
1995 when setting SelectionRange. Also don't set SelectionRange if the
1996 previous and the new value are the same (the property, just as .net
1997 does, doesn't check whether the previous value and the new one are the
1998 same). This saves us from firing OnDateChanged event if the selection
1999 range didn't change actually.
2000 Fixes the remaining bits of #364914.
2002 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2004 * ListBox.cs: When removing an item and the last item is selected,
2005 remove it from the selection, and if selection mode is One try to
2006 select the new last item.
2009 2009-01-16 Mike Gorse <mgorse@novell.com>
2011 * Splitter.cs: Make MaxSize internal so that UIA code can use it.
2013 2009-01-16 Mario Carrion <mcarrion@novell.com>
2015 * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged
2018 2009-01-16 Carlos Alberto Cortez <calberto.cortez@ggmail.com>
2021 * XplatUIX11.cs: Properly encode/decode the unicode strings we
2022 store/retrieve in the Clipboard. Also, since we try to convert the
2023 data to different formats, separate the source and the result of
2024 it, so we can always fallback to the original and don't mix wrong
2027 2009-01-16 Mike Gorse <mgorse@novell.com>
2029 * TextControl.cs: Add UIASelectionChanged event.
2031 2009-01-16 Ivan N. Zlatev <contact@i-nz.net>
2033 * DataGridView.cs: Forward the first key events to the editing control.
2036 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
2038 * Application.cs: Oops, launch the copied handler of PreRun instead of
2039 the global one (gendarme would bark otherwise). (Improving r123375)
2041 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
2044 * Application.cs: Move the PreRun event fire to the end of the XplatUI
2045 static ctor (we don't move the PreRun event to this class because its
2046 usage would cause the call to the static ctor). This way we can get
2047 a11y support for dialogs that run without App.Run.
2049 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
2051 * ListView.cs: New internal property to know the inner array's length of
2052 the location of items, in order to avoid a try-catch strategy for the
2053 case when this array has not been resized yet (for reference, look at
2056 2009-01-13 Andrés G. Aragoneses <aaragoneses@novell.com>
2058 * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
2059 reflection calls. This requires UIAutomationWinforms r123213.
2061 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2063 * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
2064 handlers and fire the DateSelected event until MouseUp is reached,
2065 like .net does, instead of firing it for each mouse event.
2066 Fixes part of #364914.
2068 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2070 * TreeView.cs: When the selection gets canceled using the BeforeSelect
2071 event, invalidate the previous highlighted_node bounds, to show the
2072 user that the item was *not* selected.
2075 2009-01-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2077 * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
2078 well as -in DropDown and Simple modes- writing in the textbox should
2079 try to set the requested item as the top one, but navigating with the
2080 keyboard and handling mouse selection don't need that behaviour. Also,
2081 when resetting selected_index handling key press events, reset
2082 ComboListBox.HighlightIndex.
2083 Fixes the remaining bits of #464188.
2085 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
2087 * DataGridView.cs: Fix crashes when shortcut keys are pressed, but
2089 - CurrentCellAddress should be -1, -1 and not 0, 0.
2090 - Be tolerant and fall back to clearing the current cell if either
2091 column or row is -1 in MoveCurrentCell.
2092 - Misc. more -1 checks.
2094 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
2096 * DataGridView.cs: Preserve the column index. Fixes a regression
2097 introduced by the data binding position tracking code.
2099 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
2101 * DataGridView.cs: If the bottom of the row matches the client height
2102 do not regard the row as partially visible. Fixes the weird scrolling
2103 when there is no scrollbar.
2105 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
2107 * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
2109 2009-01-09 Mario Carrion <mcarrion@novell.com>
2111 * MessageBox.cs: Fixed internal UIAIconRectangle property.
2113 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2115 * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
2117 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2119 * DataGridView.cs: Track the Position in the CurrencyManager.
2121 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2123 * DataGridView.cs: Implement data-bound new item editing/addition.
2124 * DataGridViewRowCollection.cs: Make it possible for us to internally
2125 remove the edit row.
2126 [Fixes bugs #457107, #457308, #325240]
2128 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2130 * CurrencyManager.cs: Even if Position is set to a greater value than the
2131 list count reset it to position of the last item.
2133 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2135 * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList.
2136 Fix that in order to make CancelNew to work.
2138 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2140 * BindingSource.cs: When adding a new item try to delegate to the internal
2141 list first before throwing an exception.
2143 2009-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2145 * ComboBox.cs: When setting the text and adjusting the top_item, do it
2146 *only* if the current item is *not* visible already.
2147 Fixes part of #464188.
2149 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2151 * DataGridView.cs: Requesting the CurrencyManager for the first time can
2152 lead to unexpected OnBindingContextChanged calls and recursive rebinding.
2156 2009-01-08 Brad Taylor <brad@getcoded.net>
2158 * ComboBox.cs: Expose a few private fields as internal UIA properties.
2160 2009-01-07 Mario Carrion <mcarrion@novell.com>
2162 * DataGrid.cs: CWL removed.
2164 2009-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2166 * RadioButton.cs: When setting Checked, we should first update the
2167 check state of the current RadioButton, as well as invalidating it,
2168 and after that actually update the siblings. This is done to match
2170 Fixes the remaining bits of #463028.
2172 2009-01-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2174 * RadioButton.cs: Setting Checked to false should set TabStop to stop
2175 as well. Also, when we get the focus and no other RadioButton is
2176 selected in the parent control, we should mark ourselves as Checked.
2177 Fixes part of #463028.
2179 2009-01-05 Mario Carrion <mcarrion@novell.com>
2181 * DataGrid.cs: UIA suppport. internal events:
2182 UIAGridCellChanged, UIAColumnsHeadersVisibleChanged,
2183 UIASelectionChanged, UIACollectionChanged. Internal properties:
2184 UIARowHeight, UIACellsArea, UIACaptionArea,
2185 UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle,
2186 UIAVScrollBar and UIAHScrollBar.
2188 2009-01-05 Jonathan Pobst <monkey@jpobst.com>
2190 * ToolStripSplitStackLayout.cs: Enable the overflow button if any
2191 of the buttons are set to Overflow = Always.
2194 2009-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2196 * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
2197 based on whether the binding source is availble or not. Fixes #463008.
2199 2009-01-03 Ivan N. Zlatev <contact@i-nz.net>
2201 * DataGridViewCell.cs: We should return a value even if we are not bound
2204 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2206 * CurrencyManager.cs, DataGrid.cs:
2207 - Rename CanAddRows to AllowNew. The CurrencyManager has no
2209 - Add two more internal properties AllowRemove and AllowEdit.
2210 * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows,
2211 AllowUserToDeleteRows and cell ReadOnly state to be also checked against the
2212 CurrencyManager data source.
2214 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2216 * DataGridView.cs: Fix crashes caused by assigning negative values to
2217 ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than
2218 the column/row heights/widths.
2221 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2223 * DataGridView.cs: Non-autogenerated columns that have a data property
2224 set that exists in the current datasource should be set to be data-bound.
2226 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2228 * DataGridView.cs: Fix column sorting for columns containing null
2229 values. A "null" value is not always "null" (e.g could be String.Empty)
2230 and thus parsing numeric types throwed an exception for "null" values.
2232 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2234 * DataGridView.cs: Detach the editing control when the edit is
2237 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2239 * DataGridView.cs: Multiple fixes to handle last column/row removal
2240 and cell movement after that instead of throwing exceptions.
2242 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2244 * DataGridViewCellCollection.cs: When cells are removed the column
2245 indices become invalid if the cell is not the last one and have to
2248 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2250 * DataGridView.cs: Return false in CommitEdit if there was an error.
2252 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2254 * DataGridView.cs: Remove a leftover Console.WriteLine.
2256 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2258 * DataGridViewRow.cs: Access the indexer of the data manager directly
2259 instead of the internal list.
2261 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2263 * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs:
2264 Rewrite the value getting, setting, parsing, formatting logic:
2265 - If data-bound value get/set should actually get and set from the
2267 - Make proper usage of TypeConverters for value parsing/formatting.
2268 - Raise DataError if setting the new value fails.
2269 - Get rid off the internal valueType field and get/set the ValueType
2273 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2275 * DataGridView.cs: Rewrite the DataBinding layer:
2276 - Get rid off all BindingSource/IBindingList/DataSet/DataTable
2278 - Get rid off the per DataSource type column autogeneration code.
2279 - Use the CurrencyManager for everything that is DataBinding related.
2281 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2283 * CurrencyManager.cs: Do not fire duplicate ListChanged events.
2285 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
2287 * DataGridView.cs, DataGridViewRow.cs: Add a new internal property
2288 DataManager to fetch the CurrencyManager for the DataGridView and to
2289 spare this logic for the other components to follow.
2291 2008-12-31 Mario Carrion <mcarrion@novell.com>
2293 * MessageBox.cs: UIA support: new properties: UIAMessage,
2294 UIAMessageRectangle and UIAIconRectangle.
2296 2008-12-31 Sandy Armstrong <sanfordarmstrong@gmail.com>
2298 * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
2299 and DirComboBox.DirComboBoxItem.ToString override for UIA support.
2301 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
2303 * DataGridView.cs: Do not autogenerate duplicate column for a
2304 data member that has already problematically been assigned one.
2307 2008-12-30 Jonathan Pobst <monkey@jpobst.com>
2309 * ProfessionalColorTable.cs: Better detection of user's theme.
2312 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
2314 * DataGridView.cs: In the case where there are no autogenerated
2315 columns and the user adds columns problematically we must generate
2316 the rows after the very first column is added.
2318 2008-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2320 * DateTimePicker.cs: When increasing/decreasing the value of month
2321 with ShowUpDown set to true, moving from december to january, and
2322 moving from january to december should adjust the year to the next and
2323 the previous year, respectively.
2324 Fixes the remaining bits of #459674.
2326 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
2328 * DataGridView.cs: If a new cell is selected edit mode should be
2329 immediately enabled only if EditOnEnter is set. Whether the mouse
2330 or not was used to select the cell is irrelevant.
2332 2008-12-29 Ivan N. Zlatev <contact@i-nz.net>
2334 * DataGridView.cs: Remove a bogus ReBind call, which was causing
2335 recursive rebinding.
2337 2008-12-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2339 * DateTimePicker.cs: Handle the "MMMM" month format.
2342 2008-12-23 Ivan N. Zlatev <contact@i-nz.net>
2345 - Make ReBind private and refactor various calls to call ReBind
2346 instead of ClearBinding/DoBinding
2347 - Rebind when the column collection changes
2348 * DataGridViewColumnCollection.cs:
2349 - Leave the rebinding on change to be handled by the DataGridView.
2351 2008-12-23 Jonathan Pobst <monkey@jpobst.com>
2353 * DataGridView.cs: Add a ReBind convenience method.
2354 * DataGridViewColumnCollection.cs: Rebind when a column is added.
2357 2008-12-23 Neville Gao <nevillegao@gmail.com>
2359 * StatusBar.cs: Modified argument variable.
2360 * SplitContainer.cs: Control enabled to support accessibility.
2363 2008-12-22 Jonathan Pobst <monkey@jpobst.com>
2365 * ToolStripMenuItem.cs: Guard against an NRE.
2368 2008-12-22 Mario Carrion <mcarrion@novell.com>
2370 * Control.cs: AccessibleXXXX properties don't return
2371 AccessibleObject.XXXX, instead a local referece is returned.
2373 2008-12-22 Neville Gao <nevillegao@gmail.com>
2375 * PrintPreviewControl.cs: Added internal properties to support
2379 2008-12-19 Mario Carrion <mcarrion@novell.com>
2381 * Control.cs: Reverted r121561.
2383 2008-12-19 Andrés G. Aragoneses <aaragoneses@novell.com>
2385 * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
2386 it has been moved to the bridge.
2388 2008-12-18 Brad Taylor <brad@getcoded.net>
2390 * DateTimePicker.cs: Add a few UIA specific events, and a couple
2391 internal methods useful for UIA.
2393 2008-12-18 Mario Carrion <mcarrion@novell.com>
2395 * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
2398 2008-12-17 Mike Gorse <mgorse@novell.com>
2400 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
2401 item's Focused property is set.
2403 2008-12-17 Sandy Armstrong <sanfordarmstrong@gmail.com>
2407 * TreeNodeCollection.cs: Add events for UIA support:
2408 UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
2409 UIACollectionChanged.
2411 2008-12-17 Bill Holmes <billholmes54@gmail.com>
2413 * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
2414 SubItemStyle member field.
2416 Contributed under MIT/X11 license.
2418 2008-12-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2420 * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
2421 y coord, since it's useless in this case, and we need to rely only on
2422 the number of rows and ItemHeight to compute this value.
2423 Fixes part of #257471.
2425 2008-12-15 Mike Gorse <mgorse@novell.com>
2427 * StatusBar.cs: Send OnUIACollectionChanged in Remove().
2429 2008-12-15 Mario Carrion <mcarrion@novell.com>
2431 * Control.cs: Accessibility properties instantiate AccessibilityObject when
2435 2008-12-15 Brad Taylor <brad@getcoded.net>
2437 * ToolStripItem.cs: Add a UIA specific event for listening for when a
2438 ToolStripItem becomes selected or deselected.
2440 2008-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2442 * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
2443 .net does. Use the date in the point of the mouse move coords as the
2444 new range as well, if the left button of the mouse is being pressed.
2447 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2449 * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
2450 MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
2451 effectively repaint the control.
2452 Fixes the remaining bits of #417961.
2454 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2456 * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
2457 range to contain only dates within the new possible range.
2458 Fixes part of #417961.
2460 2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2462 * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
2463 length of the text, but the end position, so we need to substract 1 to
2464 have a valid value. Also, in the same InputText method, don't use
2465 SelectionLength as the length of the text, since the selected text
2466 could actually be empty, but we need to set the value anyway.
2469 2008-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2471 * TextBox.cs: Don't do any auto complete task if the custom source is
2472 null or empty. Also avoid duplication of code.
2475 2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
2477 * DataGridView.cs: Refresh column sizes when new rows are added.
2480 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2481 * RichTextBox.cs: When parsing the contents of a rtf file, don't call
2482 Split to create a line - we are already doing this, by _adding_ a new
2483 one when rtf_cursor_x is 0 (this field gets this value just after we
2484 receive the newline param as true). This avoids having a proportional number
2485 of empty lines in the end of the rich text box.
2488 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2490 * RichTextBox.cs: When saving the contents as a plain text, don't add
2491 a new line for every Line structure, since the data in Document
2492 already contains the new line characters. This avoids duplicated new
2493 lines using the Save methods.
2496 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
2498 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
2499 framework. Fixes bug #457678.
2501 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2503 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
2504 where datasource is null.
2505 [Fixes exception reported in bug 441240]
2507 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2509 * DataGridView.cs: EndEdit validation fixes.
2511 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2513 * DataGridView.cs: This is the cool patch that adds support for
2514 actually updating the data in the databinding backend after editing.
2515 With bonus firing and handling the DataError event.
2517 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2519 * Line.cs: When calculating the text tags's Shift value, store it as
2520 pixels instead of points. This way we can actually handle different
2521 fonts in the same RichTextBox, as well as the right size of the caret.
2522 Fixes part of #351938.
2524 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2526 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
2527 casted to CheckState causing InvalidCastExceptions.
2529 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2531 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
2532 to not depend on the item being clicked.
2534 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2536 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
2537 longer throws a NotImplementedException.
2539 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2541 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
2542 IDataGridViewEditingControl for editing.
2544 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2546 * DataGridViewComboBoxCell.cs: Implement data binding support.
2548 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2550 * DataGridView.cs: Use the CurrencyManager to update the data source
2551 binding position instead of casting the data sourcde to BindingSource.
2552 This enables position updating for other type of data sources.
2554 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2556 * ComboBox.cs: Update the SelectedIndex before updating the Text
2557 in OnDisplayMemberChanged.
2559 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
2561 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
2564 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2566 * DataGridView.cs: Sorting fixes:
2567 - Be strict when sorting is enabled.
2568 - If there is a data source delegate the sorting request.
2570 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2572 * Binding.cs: When converting the data also try with the destination
2573 type typeconverter. This indirectly adds support for Nullable types
2574 in our databinding layer.
2576 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2578 * DataGridView.cs: When cell editing is finished focus back the
2579 DataGridView. Fixes keyboard navigation post-editing.
2581 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2583 * DataGridView.cs: Fix the cell editing by delaying the currentCell
2584 setting to after EndEdit is called for the old cell.
2586 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2588 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
2590 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2592 * XplatUIX11.cs: Send WM_HELP only to the focused window.
2594 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2596 * CurrencyManager.cs: Fix exceptions when resetting the data source
2597 for the same time (e.g. in ComboBox):
2598 - Do not set the list position if we are still transferring data
2599 - When resetting the list firstly push the data then update the
2601 * Binding.cs: Check BindingManager.Position == -1 instead of
2602 BindingManager.Current == null in order to avoid unexpected
2605 2008-12-05 Brad Taylor <brad@getcoded.net>
2607 * MonthCalendar.cs: Add UIA specific events so that we can know when
2608 the selection changes, and when MaxSelectedCount changes.
2610 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2612 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
2615 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2617 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
2618 to the control being drawn for the first time by:
2619 - Implement DisplayedRowsCount to not rely on the control being
2620 already painted. Also added support for the partial row flag.
2621 - Fix scrolling to take into account partial rows and scroll to
2625 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2627 * DataGridView.cs: Do not reset the CurrentCell when the handle is
2628 created if the user has already set it.
2630 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2632 * DataGridView.cs: Fix CurrentCell to actually select the cell.
2634 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2636 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
2637 text and then let the underneath users of IDataObject interpret and
2638 parse by themselves.
2641 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2643 * DataGridView.cs: Fix my previous commit to actually update what it
2646 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2648 * DataGridView.cs: Ensure that when a row is removed the all the
2649 current row/column/cell get updated. Fixes multiple exceptions.
2651 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2653 * DataGridView.cs: Fix scrolling to the current cell when key navigation
2657 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2659 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
2660 * DataGridViewCell.cs: Set the cell as selected prior to setting the
2662 [Fixes issue 1 in bug #443560]
2664 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2666 * DataGridView.cs: Invalidate after the current row/column seletion
2670 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2672 * DataGridView.cs: Refresh the data if the data list is reset, etc.
2674 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2676 * DataGridView.cs: Handle datasource state changes:
2677 - IBindingList - list changes
2678 - BindingSource - list changed and datasource changes
2680 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2682 * DataGridView.cs: Select the first cell when databound.
2683 Visually select when CurrentCell is set.
2685 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2687 * DataGridView.cs: Set the current cell before raising CellClick.
2689 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2691 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
2692 CellLeave events as this is already done in SetCurrentCellAddressCore.
2694 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2696 * DataGridView.cs: Set the minimum size for the columns to be the
2697 width of their header, so that the columns don't get squashed
2700 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2702 * DataGridView.cs: After the data is bound PerformLayout, so that
2703 the columns get autosized.
2705 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2707 * DataGridView.cs: Move all currentCell setting code into
2708 one central place - SetCurrentCellAddressCore. That way the
2709 current cell is properly updated when programatically set.
2710 Fire RowEnter/Leave events.
2712 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2714 * DataGridView.cs: Update the CurrencyManager.Position, so that
2715 when a BindingSource is used BindingSource.Current will be correct.
2717 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2719 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
2720 - No caption text is drawn because Color.Empty is used.
2721 - Fix top and height off by 1.
2723 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2725 * DataGridViewRow.cs: Implement DataBoundItem.
2727 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2729 * BindingSource.cs: Return null for Current if there is no data present.
2731 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2733 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
2734 menus using the arrow keys. Also when handling the left arrow key, don't
2735 assign the current menu to the parent one, if the parent is null.
2738 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
2740 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
2743 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2746 * ScrollableControl.cs: Simplify the code to manually set the size of
2747 the thum area, avoiding duplication of code, and also preserving the
2748 right value for different code paths - this can happen when size
2749 changes are made to the scrollbar after setting LargeChange, Maximum
2750 or related properties for the ScrollBar.
2752 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2754 * ScrollableControl.cs: When scrolling, don't invalidate the entire
2755 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
2756 what .Net does: copy the visible area, and only invalidate the part of
2757 the area that wasn't visible before scrolling.
2760 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
2762 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
2763 can clear ourselves when it is raised, we don't have a newrowindex
2764 if we don't have any columns.
2765 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
2766 re-index after each delete so the NewRow will have the correct index.
2769 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
2771 * Form.cs: Don't change min/max size if it is empty.
2774 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2777 * ScrollableControl.cs: When the manual thumb size is used, the
2778 maximum allowed value should depend on that thumb size, instead of
2779 LargeChange (using the maximum - LargeChange + 1 value). But
2780 LargeChange should be used normally when incrementing/decrementing.
2781 Fixes the remaining part of #441546.
2783 2008-11-23 Andreia Gaita <avidigal@novell.com>
2785 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
2786 until an about:blank has been loaded (according to spec). Fix
2787 ScrollbarsEnabled to set when a document is loaded (since we use js
2788 for it). Fix url so it reflects the current loading document and not
2789 the previous one. Send StatusChanged events.
2791 2008-11-23 Andreia Gaita <avidigal@novell.com>
2793 * Application.cs: If a message comes in for an embedded control
2794 (like webbrowser) when we're capturing the keyboard, release the
2795 capture and continue.
2798 2008-11-22 Andreia Gaita <avidigal@novell.com>
2800 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2802 2008-11-21 Andreia Gaita <avidigal@novell.com>
2804 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2806 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2809 * ScrollableControl.cs: Set manually the thumb size for the
2810 ScrollableControl scrollbars, so any further changes to the underneath
2811 scrollbars respect the original size.
2812 Fixes part of #441546.
2814 2008-11-21 Geoff Norton <gnorton@novell.com>
2816 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
2817 PlatformID.MacOSX now exists.
2819 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
2821 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
2822 Having something internal abstract isn't very nice for people who want
2823 to inherit from this class.
2825 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
2827 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
2828 invalid value. Just return null for the Image, and use the ImageList's
2829 ImageSize for calculations.
2831 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
2833 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
2834 through DroppedDown so the proper events get called and state gets reset.
2837 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
2839 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
2840 the collection is modified.
2842 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
2844 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
2845 aren't always correct, and fixing them for every case is not worth the
2846 negligible benefit they provide.
2849 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
2851 * DataGridView.cs: We should never add actual cells to the RowTemplate.
2852 Internally, use RowTemplateFull to give us a new row with cells.
2853 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
2854 * DataGridViewRowCollection.cs: Use RowTemplateFull.
2856 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2858 * XplatUIX11.cs: Forms without borders should be able to change its
2859 size - specially they should be able to be maximized, adding the
2860 respective MotifFunctions.Resize bit when setting window properties as
2861 well as *not* marking the Hwnd as size fixed.
2864 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
2866 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
2870 2008-11-11 Andrés G. Aragoneses <aaragoneses@novell.com>
2872 * Application.cs: After UIA assembly is successfully loaded,
2873 dump any exception that happens on initialization to stderr.
2875 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
2877 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
2878 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
2879 AutoSizeColumnModeChanged.
2882 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
2884 * DataGridViewRowCollection.cs: Guard against the user deleting the
2885 NewRow. Add an internal delete so we can still delete it.
2886 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
2889 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
2891 * TextControl.cs: Add some order of operation to our math so
2892 we don't end up with a negative height for our invalidate rect.
2895 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
2897 * Control.cs: When our enabled changes, notify our implicit children
2898 controls as well as our regular controls.
2901 2008-11-08 Andreia Gaita <shana@jitted.com>
2903 * HtmlElement.cs: Small code cleanup
2905 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2907 * BindingNavigator.cs: MoveFirstItem should be enabled only if
2908 position is larger than 0, not only different than 0. Also Position
2909 and Count items should be enabled if the BindingSource is non null and
2913 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
2915 * TabControl.cs: Don't raise SelectedIndexChanged until we have
2916 actually modified the tab collection, so TabCount will be correct.
2919 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
2921 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
2922 NonSerialized to fix serialization of ListViewItem.
2924 2008-11-04 Mike Gorse <mgorse@novell.com>
2926 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
2927 focus change, and always call in SetFocusedItem.
2928 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2930 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
2932 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
2933 mode. Based on a patch by John Mortlock.
2936 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2938 * ListView.cs: Use the UsingGroups property where needed, instead of
2939 duplicating the check in other places.
2941 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2943 * ListView.cs: When calculating layout, refresh the count of items
2944 belonging to the default item, insteas of doing it only one time. This
2945 was already working fine for icon views, not not for details.
2948 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2952 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
2953 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
2957 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
2959 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2961 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
2963 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
2964 #441280, patch by Mike Gorse <mgorse@novell.com>.
2966 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
2968 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
2969 if there is no scrollbar.
2972 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
2974 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
2975 patch from Andy Hume that fixes many issues with ProgressBar.
2978 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
2980 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
2983 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
2987 * NumericUpDown.cs: Internal events added to UpDownBase:
2988 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
2991 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
2993 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
2995 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2998 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
2999 Application.EnableVisualStyles hasn't been called.
3000 Fixes part of #437933.
3002 2008-10-31 Andreia Gaita <shana@jitted.com>
3004 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
3005 if the container is not focused already, we need to specifically set
3006 focus to the first available control, or to the form itself if there
3009 2008-10-31 Andreia Gaita <shana@jitted.com>
3011 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
3012 WM_ACTIVATE have been processed before returning, so it is guaranteed that
3013 once it returns and the form is visible, it is actually on the screen on X11
3015 * ContainerControl.cs: Only send focus to the control if the top container
3016 is already focused. This is so that, when a form is first shown, all
3017 the enter/leave events are done first before any focus stuff comes in.
3018 If a control has no top container, there's an extra check on Control.Focus
3019 to make sure it gets focused in this particular case.
3021 * Control.cs: Force focus if the control is active but did not receive
3022 focus after being set as active.
3024 * MdiClient.cs: Dispose the form when closing
3026 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
3027 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
3028 if the window is a top Form.
3029 Reset all hwnd properties when the window has been destroyed so that
3030 we don't land in any codepaths that might try to do something with it.
3031 Added a bunch of debugging messages. If TRACE is defined, all X calls
3032 are logged through DebugHelper. Set a few missing EntryPoint attributes.
3034 2008-10-29 Mario Carrion <mcarrion@novell.com>
3036 * ListViewItem.cs: Control enabled to support Accessibility:
3037 - Internal events: UIATextChanged, UIASubItemTextChanged.
3038 - Internal event UIATextChanged in ListViewSubItem that triggers
3039 UIASubItemTextChanged.
3040 * ListView.cs: Control enabled to support Accessibility:
3041 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
3042 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
3043 - Internal event UIACollectionChanged in ColumnHeaderCollection.
3044 - Internal event UIACollectionChanged in ListViewItemCollection.
3045 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
3046 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
3047 - Internal methods: UIAGetHeaderBounds.
3049 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3051 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
3052 the event from the respective scrollbars.
3055 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3057 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
3058 textbox to know whether any navigation key will be handled or not. If
3059 not, don't pass the message to the textbox, and use it here instead.
3060 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
3061 is more precise- than the previous AutoCompleteMatches one.
3062 This should the keyboard navigation in ComboBox when using auto
3065 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
3067 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
3070 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
3072 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
3073 overridden methods will get called.
3074 * ToolStripItem.cs: Raise Click before MouseUp.
3075 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
3076 the item's location into account.
3079 2008-10-24 Neville Gao <nevillegao@gmail.com>
3081 * NumericUpDown.cs: Control enabled to support accessibility.
3082 [Fiexes bug #438135]
3084 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3086 * TextBox.cs: Check that we actually have items no navigate, select
3087 text when pressing enter, as well as handle direction keys only if
3088 mode is different to Suggest or the suggest listbox is visible.
3090 2008-10-23 Andreia Gaita <shana@jitted.com>
3092 * WebBrowser.cs: Use the new ContentStream property to retrieve
3093 a stream encoded from the document content
3095 2008-10-23 Andreia Gaita <shana@jitted.com>
3099 HtmlWindow.cs: Fix GetHashcode for null objects
3101 2008-10-22 Andreia Gaita <shana@jitted.com>
3105 HtmlWindow.cs: Fix equality operators (fixes #428173)
3107 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
3109 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
3110 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
3113 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
3115 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
3116 same item with the mouse as was already selected.
3119 2008-10-21 Brad Taylor <brad@getcoded.net>
3121 * TextControl.cs: Break out code to get the visible range into
3122 GetVisibleLineIndexes to be used in UIA code.
3126 * TextBoxBase.cs: Add comments indicating that the method or property
3127 is used via reflection from UIA code.
3129 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3131 * ListViewItem.cs: Match .net serialization.
3132 Fixes remaining part of #417520.
3134 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
3136 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
3138 2008-10-20 Mario Carrion <mcarrion@novell.com>
3140 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
3141 added: UIAToolTipRectangle.
3143 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3145 * ListViewItem.cs: When deserializing enumerate over the data, instead
3146 of accessing the data directly. This way we handle much better the
3147 cases were we lack information.
3150 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3152 * ListView.cs: When removing an item from a main ListView.Items
3153 collection (and not a ListViewGroupCollection.Items one), remove it
3154 also from the group, as .net does. Patch by Mario Carrion (mario at
3158 2008-10-19 Andreia Gaita <avidigal@novell.com>
3160 * Form.cs: Forms that get closed without a handle being created are
3161 disposed in 2.0. Fixes failing FormTest.FormClose and
3162 FormTest.FormClose2 on windows.
3164 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3166 * ListView.cs: If both scrollbars are visible, the vertical one
3167 shouldn't extend too far down.
3170 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
3172 * DataGridView.cs: Add the ability to resize columns and rows with
3173 the mouse. Also support double-clicking to autoresize.
3174 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
3175 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
3176 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
3177 isn't shown on autoresize.
3180 2008-10-17 Mario Carrion <mcarrion@novell.com>
3182 * ComboBox.cs: Remove UIAListbox.
3184 2008-10-17 Mario Carrion <mcarrion@novell.com>
3186 * ComboBox.cs, ListBox.cs: Using added/removed item in
3187 OnUIACollectionChangedEvent instead of index.
3189 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
3191 * ComboBox.cs: When we are sorting the items, if the item's type
3192 doesn't support IComparer, use a default one that compares based
3193 off the item's visible text.
3196 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3198 * ColumnHeader.cs: Invalidate ListView.header_control when setting
3199 ImageIndex/ImageKey.
3200 * ThemeWin32Classic.cs: When drawing the column header, draw a image
3201 for the column if available, and make the required adjustments to the
3205 2008-10-17 Neville Gao <nevillegao@gmail.com>
3207 * StatusBarPanel.cs: Control enabled to support accessibility.
3210 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3212 * DataGridView.cs: When a user begins an edit in the 'new row',
3213 make that a real row, and add a new 'new row'. If the user
3214 cancels the edit, remove the new 'new row' and reset everything.
3215 Also, ensure UserAddedRow and UserRemovedRow events are raised.
3218 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
3220 * TableLayoutSettings.cs: Fix NREs when deserializing and
3221 panel is not yet set.
3224 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3226 * DataGridView.cs: Invalidate after deleting a row.
3228 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3230 * DataGridView.cs: Handle Enter and Escape keys.
3231 - Move call to EndEdit to MoveCurrentCell.
3232 - Remove call to EndEdit from navigation key routines.
3233 - Fire CellLeave and CellEnter.
3235 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3237 * DataGridViewCell.cs: Some fixes to the new cell border
3240 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3242 * ThemeEngine.cs: Enable visualstyles rendering by default
3243 (on platforms that support it).
3245 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
3247 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
3248 MainForm.OnLoad has completed unless DoEvents is forced.
3251 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
3253 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
3255 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
3257 * Control.cs: Make our implementation of DrawToBitmap better
3258 match WmPaint. [Fixes bug #435579]
3260 2008-10-14 Andreia Gaita <avidigal@novell.com>
3262 * WebBrowser.cs: Use DocumentElement as the document's root for the
3263 whole content. Should fix DocumentText and DocumentStream problems.
3265 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
3267 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
3268 these will get called in DGV.OnCollectionChanged. Make sure
3269 OnCollectionChanged always gets called.
3270 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
3271 from every row. Call this in OnCollectionChanged.
3274 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3276 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
3277 textbox if auto complete is used, since we need to navigate over it.
3278 And in this case don't pass this messages to the base impl. Also hide
3279 the auto complete list box when displaying the drop down listbox.
3280 * TextBox.cs: new internal members to expose some of the auto complete
3281 functionality to combobox.
3283 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
3285 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
3286 MainForm.OnLoad has completed.
3289 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3291 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
3292 Append support to this controls. We need it to apply new patches.
3294 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3296 * Control.cs: When updating z order in child controls, send to back
3297 the implicit controls. Also, do it explicitly, instead of making
3298 GetAllControls return the implicit controls in a specific order, and
3299 thus avoid depending on that, which could change in the future.
3302 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3304 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
3305 call to StartDrag, since we must fire DragDrop/DragLeave *before*
3306 that, as .net does - instead of firing DragDrop/DragLeave *after* the
3307 call to Control.DoDragDrop has completed. This is needed since at the
3308 point of returning, we have sent related dnd ClientMessages, but we
3309 need to wait for them to fire the wmf respective ones.
3312 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
3314 * LinkLabel.cs: Recreate link pieces when change Padding.
3316 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
3318 * LinkLabel.cs: Take Padding into account when recreate link pieces.
3321 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
3323 * Control.cs: Implement internal property PaddingClientRectangle, it will be
3324 useful for drawing controls that must take care about Padding property.
3326 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
3328 * BindingSource.cs: Make item_type internal so we can access it in DGV.
3329 * DataGridView.cs: Add support for autogenerating columns from a
3332 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
3334 * DataGridView.cs: Comment out an exception that is getting thrown
3335 too often currently.
3337 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
3339 * DataGridView.cs: Always rebind to the datasource, as things may
3340 have changed in it that we aren't capturing yet.
3342 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
3344 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
3345 drawing mode. If we are top aligned, give ourselves some top padding.
3347 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3349 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
3350 events on the control under the mouse pointer, instead of firing them
3351 on the window generating the dnd operation. To achieve this re-use the
3352 code used to get the window under the pointer when getting MouseMove
3356 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3358 * X11Dnd.cs: Don't check that that the window sending the dnd events
3359 is the owner of the selection. Although Gtk+ sets it that way, it's
3360 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
3361 So, just as Gtk+ does, we set our window sending the dnd events as the
3362 owner of the selection, but don't check it when receiving them. This
3363 should fix interoperability with Qt/Kde.
3366 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
3368 * DataGridView.cs: Make sure we take the vertical scrollbar into
3369 account when autosizing columns.
3371 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
3373 * DataGridView.cs: Handle sorting datetimes.
3375 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
3377 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
3378 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
3379 compilation warnings.
3381 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3383 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
3384 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
3385 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
3386 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
3387 compilation warnings.
3389 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3391 * DataGridView.cs, DataGridViewCell.cs,
3392 DataGridViewCellValidatingEventArgs.cs,
3393 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
3394 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
3395 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
3397 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3399 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
3400 Cleanup compilation warnings.
3402 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3404 * XplatUIWin32.cs: Cleanup compilation warnings.
3406 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3408 * PropertyGrid.cs: Cleanup compilation warnings.
3410 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3412 * DataGridViewRow.cs: Only clear the row background if we
3413 are going to paint a new background.
3415 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3417 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
3418 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
3419 use PaintBorder instead.
3421 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3423 * DataGridView.cs: When CellBorderStyle is set, update the
3424 AdvancedCellBorderStyle to match.
3426 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3428 * DataGridViewCell.cs: Add helper methods to convert Alignment
3429 to TextFormatFlags and align rectangles.
3430 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
3431 * DataGridViewImageCell.cs: Use Alignment when painting the image.
3433 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
3435 * ToolTip.cs: Display tooltips only for controls on the active form.
3438 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3440 * DataGridView.cs: Make OnCellValueNeeded internal.
3441 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
3442 user can supply their own value if they choose.
3444 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3446 * DataGridViewColumnHeaderCell.cs: Create a new style object
3447 so the DefaultCellStyle doesn't get changed.
3449 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3451 * ToolStripItem.cs: Check to make sure the owner is actually
3452 changing in InternalOwner before doing any work. Fixes some
3455 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3457 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
3458 * DataGridView.cs: Use a column header's inherited style instead
3459 of just using the default.
3461 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3463 * SplitContainer.cs: Raise SplitterMoved when the splitter is
3466 2008-10-01 Mario Carrion <mcarrion@novell.com>
3468 * ScrollBar.cs: Internal property added: UIAThumbPosition.
3470 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3472 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
3474 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3476 * ToolStripItem.cs: When the user sets Owner, we need to remove
3477 it from its previous owner and then add it to the new owner's
3478 item collection. Also, create InternalOwner, so we can set the owner
3479 that doesn't do this new stuff.
3480 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
3482 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3484 * ToolStripItem.cs: When our parent changes, recalculate our text
3485 size, since we may be getting our Font from our parent. When our
3486 owner's Font changes, recalculate ourselves as we may be using
3489 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
3491 * MenuAPI.cs: Select the first option of a popup when opening the popup via
3492 return key. [Fixes bug #413792].
3494 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3496 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
3497 ambient properties. (Get their value from their parents if
3498 values haven't been set.)
3500 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3502 * ToolStripSystemRenderer.cs: Call overridden methods' bases
3503 after our logic, so users can do painting by handling the events.
3504 Currently, we draw over any user painting.
3506 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3508 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
3509 after our logic, so users can do painting by handling the events.
3510 Currently, we draw over any user painting.
3512 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
3514 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
3516 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
3518 * TreeNode.cs, TreeView.cs: Move logic that determines the node
3519 image to draw to TreeNode. Give Index/Keys put on the node
3520 precedence over the global one for the TreeView.
3522 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
3524 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
3526 2008-09-29 Mario Carrion <mcarrion@novell.com>
3528 * ListBox.cs: Index fixed.
3530 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3532 * TabControl.cs: When expanding the tab -because it's selected now-,
3533 using Right alignment, instead of adding some selected delta value to
3534 the X origin, substract it, so it gets a location adjacent to the panel,
3535 instead of be more separated.
3538 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
3540 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
3543 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3545 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
3546 as well as the other static fields, to avoid using their previous
3547 values my mistake when handling the dnd events. This should avoid
3548 handling any status event after the drop has been finalized/cancelled.
3550 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3552 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
3553 operation, instead of waiting until we get any movement - this will
3554 help us to have the data available in case no movement was detected
3555 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
3556 Finally add a windows.forms-only fallback to fire the mentioned events
3557 if no movement at all was detected, just like .net does.
3560 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
3562 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
3563 return early if the text is empty because the icon doesn't get
3564 drawn then. [Fixes bug #428113]
3566 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3568 * FileDialog.cs: Implement basic support for sorting by columns in
3569 Details view. Patch by Eric Petit.
3572 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3574 * ThemeWin32Classis.cs: When drawing gridlines take into account the
3575 case where ListView.ItemSize hasn't been computed, and provide a
3576 fallback as well. This prevents a division by 0.
3578 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
3580 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
3581 correctly draw tooltip backgrounds.
3583 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
3585 * ImageList.cs: Change CopyTo implementation to ensure clones are
3586 created of our images.
3589 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
3591 * Control.cs: When setting fonts, we need to ensure we change our
3592 reference to the new font object, even if it represents the same
3593 font as before. If we don't, the original font can get disposed
3594 and we will still try to use it.
3597 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3599 * FileDialog.cs: Take into account Tile view when selecting the view
3602 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3604 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
3605 the item bounds, since we can't iterate over them in virtual mode.
3606 Also fix wrong calculation of the gridlines when using scrolling.
3609 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3611 * XplatUIX11.cs: When handling EnterNotify events, take into account
3612 both the public and implicit controls when trying to detect the
3613 grab/ungrab process. This should fix ListView selection in Details
3616 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
3618 * TreeView.cs: Redraw the whole node area when the selected node changes.
3619 Things like state images were not getting redrawn because the invalid
3620 rectangle was too small.
3623 2008-09-23 Mario Carrion <mcarrion@novell.com>
3625 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
3628 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
3630 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
3633 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
3635 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
3638 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
3640 * StatusBar.cs: Add tooltip support.
3643 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3645 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
3646 alignments of sub items in Details view. Patch by John Mortlock (johnm at
3647 hlaustralia.com.au).
3650 2008-09-23 Neville Gao <nevillegao@gmail.com>
3652 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
3655 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
3657 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
3660 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3662 * ListView.cs: Don't do anything when EnsureVisible is called inside a
3663 BeginUpdate/EndUpdate block.
3666 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3668 * ListViewItem.cs: The semantics for the public .ctor of
3669 ListViewSubItemCollection need us to already have a Text value for the
3670 item, which in our implementation have as available *after* adding the
3671 first sub item. So create an internal .ctor that satisfies our needs
3672 and let the public .ctor have the same semantics as .net.
3675 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3677 * ListControl.cs: Changes in Formatting related values should call
3678 RefreshItems, as .net does.
3680 * ListBox.cs: In the respective overrides of RefreshItems calculate
3681 layout as well as refreshing - again, this is what .net does.
3684 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3686 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
3687 since we are already doing that when we change the value of the
3688 scrollbar or force the call to ScrollWindow in the same method. This
3689 way we don't cause a Invalidate call for all the listbox bounds for
3690 methods calling UpdateTopItem with an already updated top item. This
3691 was happening specially calling EnsureVisible with already visible
3694 2008-09-18 Mike Gorse <mgorse@novell.com>
3696 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
3697 XplatUIStructs.cs: Added KeyFilter
3700 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3702 * RelatedPropertyManager.cs: The properties returned by
3703 GetItemProperties should be that ones of the *actual* object returned
3704 by the property, not the property type - this is very special when the
3705 property exposes a type, but the returned object actually is a child
3706 class and implements more functionality and properties.
3708 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3710 * Binding.cs: Don't look for the property in the data source if the
3711 passed string is empty.
3713 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
3715 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
3716 fix unused variable warnings.
3718 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
3720 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
3723 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
3726 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
3727 leads to the window manager overriding our border style and zorder.
3728 - Allow the activation of non-modal forms, which are children of a
3732 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
3734 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
3735 ask the window manager to do the work instead of changing the property
3739 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
3741 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
3742 AddNew to fix some navigation for empty datasets. [Fixes #323053]
3744 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
3746 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
3747 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
3748 border and fixes some drawing issues when resize form.
3750 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
3752 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
3754 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
3757 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
3759 * TextBoxBase.cs: For standard textbox the scrollbars are always
3760 visible if Multiline is true.
3763 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
3765 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
3768 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
3770 [Fixes most od DBNull and HeadersVisible problems]
3773 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
3774 returns the value that we need.
3775 - Fixed FromPixelToColumn method that return zero for first column and for
3776 row header cell, now it returns -1 for row header cell.
3777 - Fixed HitTest to check row header cell in column header area, it now
3778 returns HitTestType.None. [Fixes #322864]
3779 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
3780 checks for RowHeadersVisible and other things.
3781 - If an exception occurs when setting CurrentCell and user type 'yes' in
3782 message dialog, invalidade current and new cell and set setting_current_cell
3783 to false to prevent future errors. [Partially fixes #323050]
3785 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
3786 value (SetColumnValueAtRow), it must be done by grid to properly show
3787 messages. [Fixes #323050]
3789 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
3790 better draw column and row header. Also dont draw anything when column
3791 headers is not visible.
3793 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3795 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
3798 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3800 * TreeView.cs: Don't start editing a node on right click, only
3803 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3805 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
3806 disabled over a year ago.
3807 * Form.cs: Wrap calling Load in a try/catch because it can happen
3808 before the catch-all one in NativeWindow.
3811 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3813 * ToolStripDropDownMenu.cs: Calculate the connected area better
3814 to take into account when the drop down is not directly under the
3816 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
3818 2008-09-16 Mario Carrion <mcarrion@novell.com>
3820 * ScrollBar.cs: New event added: UIAValueChanged, generated when
3821 LargeChange, SmallChange, Maximum or Minimum values are changed.
3824 2008-09-16 Mario Carrion <mcarrion@novell.com>
3826 * ErrorProvider.cs: Component enabled to support accessibility.
3827 * Application.cs: Updated to Initialize UIA in ErrorProvider.
3830 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3832 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
3833 so we don't highlight on first focus.
3836 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3838 * TextControl.cs: Correctly calculate the height of the area we
3839 need to invalidate when we have started scrolling and viewport_y
3840 is used. [Fixes bug #387608]
3842 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3844 * TextControl.cs: When getting the SelectedText, don't add in
3845 NewLine characters, as they are already contained in the lines.
3848 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3850 * TextBoxBase.cs: Replace the buggy Lines setter with one that
3851 simply concats the lines and send it to the Text setter.
3852 [Fixes issue #2 and #3 of 388115]
3854 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3856 * Binding.cs: The default value of DataSourceNullValue should be
3857 Convert.DBNull actually. Also, the NullValue should only be used *if*
3858 itself is not null, and use the null/Convert.DBNull value instead.
3860 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
3862 * TextControl.cs: Add a method to convert a string newline to the
3864 * TextBoxBase.cs: When the user hits enter, insert a native newline.
3865 [Fixes part 1 of bug #388115]
3867 2008-09-15 Mario Carrion <mcarrion@novell.com>
3869 * ToolTip.cs: UnPopup event set to internal to match public API.
3871 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
3873 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
3874 have to remove the Ctrl in order for the focus moving code to kick in.
3877 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
3879 * CheckedListBox.cs: Return the real item index from Add. It may not be
3880 the last item if the list is sorted. The user can change the NewValue in
3881 the ItemCheck event, we need to use that value if so.
3882 * ListBox.cs: Return the real item index from a sorted Add.
3885 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
3887 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
3888 happen that the icons from the theme is missing or the particular size
3892 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3894 * Binding.cs: When assigning null or DBNull depending on value/ref type,
3895 use IsValueType instead to get the precise desired value.
3898 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3900 * TreeNodeCollection.cs: When adding a new node to an opened node,
3901 we have to invalidate everything below the parent node because
3902 every node scoots down and we have to repaint them.
3905 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3907 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3908 property into account when drawing.
3911 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3913 * ListBox.cs: When calling Items.Clear(), call
3914 SelectedIndexCollection.ClearCore instead of normal Clear method, to
3915 not fire any Selected*Changed event - this is done to match .net and
3916 don't have invalid values when changing the DataSourceProperty.
3919 2008-09-12 Mario Carrion <mcarrion@novell.com>
3921 * HelpProvider.cs: Control enabled to support accessibility.
3922 * Application.cs: Updated to Initialize UIA in HelpProvider.
3925 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3927 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
3928 make the dialog TopMost as well.
3931 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3933 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
3934 clipboard data better.
3937 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3939 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
3940 TextChanged and SelectionChanged events fire in the same order as .Net.
3943 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3945 * DataGridView.cs: When sorting a column, if it only contains numbers,
3946 do a numeric sort instead of a string sort.
3949 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3951 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
3952 against NRE's when the settings have a null panel.
3953 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
3957 2008-09-11 Mario Carrion <mcarrion@novell.com>
3959 * ToolTip.cs: Control enabled to support accessibility.
3960 * Application.cs: Updated to Initialize UIA in ToolTip.
3963 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
3965 * Control.cs: Make the custom Enumerator internal to fix build.
3967 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
3969 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
3970 already in edit mode, begin edit mode. Generally edit mode isn't
3971 started until the second click, but CheckBoxes are special.
3973 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
3975 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
3976 since that can be set to anything. Always add them to the Control's
3977 parent. [Fixes bug #416058]
3979 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
3981 * ListView.cs: Use a custom enumerator for ListViewItemCollection
3982 so items can be deleted in a foreach.
3985 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
3987 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
3988 Store the user set explicit height so that the row can be AutoSized
3989 and then when AutoSize is turned off, it can get its original size back.
3990 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
3991 duplicating the logic. When setting AutoSizeRowsMode to None, reset
3992 rows' heights back to their explicit values.
3995 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3997 * DateTimePicker.cs: When getting focus, select the checkbox if we are
3998 already showing it. Also, don't change its value when pressing space
3999 if the checkbox is not visible (ShowCheckBox as false). Finally, the
4000 checkbox should remain selected as long as Checked is false, and the
4001 other parts are disabled.
4004 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
4006 * MessageBox.cs: Handle shortcut keys to dialog buttons.
4009 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4011 * Binding.cs: When the value retrieved from the control property is
4012 null, don't return Convert.DBNull for Nullable instances, since they
4013 can *actually* get a null value.
4016 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
4018 * Control.cs: Add an internal field to force doublebuffering regardless
4019 of what the public mechanisms are set to. This is because MS's native
4020 controls are doublebuffered even though their .Net bits are set to false.
4021 * ProgressBar.cs: Set force_double_buffer to true.
4024 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
4026 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
4028 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
4029 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
4030 without EditingControls, paint background selection for types without
4031 EditingControls, reset the EditingCellValueChanged flag when the
4032 cell's value is committed.
4033 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
4034 have EditingControls, remove a double call to a cell's OnContentClickInternal,
4035 don't do cell changing logic in OnMouseDown if the cell didn't change.
4038 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4040 * DateTimePicker.cs: Fix the edition of am/pm specifier.
4042 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
4044 * TextControl.cs: Add "&" to the list of valid characters in a URL.
4046 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4048 * DateTimePicker.cs: Before incrementing or decrementing any part in
4049 the textbox, end any current edit. Also when ending the current edit
4050 use the editing_part_index field instead of the current selected
4051 value, since they can be out of synch, and we really need to work on
4052 the *real* current edit part. Finally when PartData.Selected changes,
4053 always try to end any ongoing edit.
4054 This should fix some small errors handling mouse navigation and
4055 increase/decrease operations.
4057 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4059 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
4060 respectively) should handled different, since the 12 hours format
4061 needs the value typed by the user to be adjusted depending on the
4062 a.m/p.m value, so it is preserved, and only changed when the value
4063 reaches the 12 value (when it changes from a.m to p.m).
4064 Fixes part of #416555.
4066 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
4068 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
4069 * ToolStripDropDownItem.cs: Don't fire events and such again if
4070 ShowDropDown is called on an already dropped down item.
4071 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
4072 subitems, the user may add some in the DropDownOpening event.
4075 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
4077 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
4080 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
4082 * MdiClient.cs: When looking for menustrips on a child form to merge,
4083 look inside ToolStripContainers.
4086 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
4088 * ErrorProvider.cs: Unbreak my previous commit.
4090 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
4092 * ErrorProvider.cs: Icon should always be 16x16.
4095 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
4097 * GridEntry.cs: Invalidate the child items cache when the property
4100 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
4102 * GridEntry.cs, PropertyGridView.cs:
4103 - Update the ReadOnly detection and rendering to finally hopefully
4104 match the one of MSFT.
4105 - Niceify and move the debug CWLS.
4108 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4110 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
4111 since we are already calling Invalidate for the entire control when
4112 needed - and call Redraw() when size changes, since we need to paint
4113 there by ourselved and not anymore from the mentioned method.
4114 This should improve the layout process. Also clean some not needed calls
4117 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
4119 * MenuAPI.cs: Add a null check to the Alt-F4 code.
4122 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
4124 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
4127 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
4129 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
4130 PropertyGridView.sc: Implement lazy/delayed propertygrid population
4131 on item expansion. Improves performance and fixes bug #417955.
4134 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
4136 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
4139 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
4141 * TextControl.cs: Add "_" to the list of valid characters in a URL.
4144 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
4146 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
4150 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
4152 * FontDialog.cs: When storing our font size from the starting font,
4153 use SizeInPoints instead of Size in case Size is a different unit
4157 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
4159 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
4160 don't use it for anything else, check if a directory is highlighted.
4161 If it is, navigate into it.
4164 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4166 * Binding.cs: When acquiring a BindingManagerBase for the first time,
4167 check that the specified property actually exists in the data source,
4168 and throw an ArgumentException if that's not the case - this is only
4169 done for this scenario, since for later cases (such Position changes)
4170 we throw different exceptions (match .Net).
4172 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
4174 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
4175 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
4176 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
4177 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
4178 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
4179 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
4183 2008-09-03 Neville Gao <nevillegao@gmail.com>
4185 * StatusBar.cs: Control enabled to support accessibility.
4188 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4190 * Binding.cs: When connecting the event handler for the "Changed"
4191 event for the property, only do it for PropertyManager, and not for
4192 CurrencyManager - this is exactly what does .Net, totally ignoring any
4193 change in the property of the elements of a list.
4196 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
4198 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
4199 to Windows when creating a window, as we fake MDI stuffs.
4202 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
4204 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
4205 change takes effect.
4207 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
4209 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
4212 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
4214 * DataGridView.cs: Raise CellContentClick event.
4215 [Fixes part of bug #420351]
4217 2008-08-27 Mario Carrion <mcarrion@novell.com>
4219 * ScrollBar.cs: Control enabled to support accessibility.
4222 2008-08-27 Mario Carrion <mcarrion@novell.com>
4224 * ComboBox.cs: Control enabled to support accessibility.
4227 2008-08-27 Mario Carrion <mcarrion@novell.com>
4229 * ListBox.cs: Control enabled to support accessibility.
4232 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
4234 * ComboBox.cs: Don't suppress the TextChanged event when changing
4236 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
4240 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
4242 * ErrorProvider.cs: Fix a regression NRE when setting properties
4243 for a control before it has a parent.
4246 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4248 * Binding.cs: Use the BindingManagerBase.Current value to obtain
4249 connect the property "Changed" event, instead of using the data
4250 sources - this is useful when the property specifies actually a
4251 multiple objects path.
4252 Fixes part of #417973.
4254 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4256 * RelatedPropertyManager.cs: PropertyManager instances associated to a
4257 nested properties should return not the properties of the data source
4258 itself, but the properties of the type of a specific property in the
4259 data source - match .net.
4261 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
4263 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
4264 AddRange overloads into AddItems method, and added missing NULL check.
4265 Added extra argument check to RemoveAt for compatibility with MS.
4266 Modified IList implementation of Add, Contains, IndexOf and Remove to
4267 throw an ArgumentException if item is not an int. Modified IList.Insert
4268 to throw a NotSupportException instead of an Exception. Implemented
4270 (ObjectCollection): To avoid duplication, use AddItems method from
4271 AddRange overloads. On 1.0 profile, first perform NULL check on items
4274 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
4276 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
4279 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
4281 * X11Keyboard.cs : comment out some Console.WriteLine().
4283 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
4285 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
4286 even if premises are not filled. Also XLookupString() was not
4287 receiving correct input, which blocked precise input handling
4290 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4292 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
4293 type of delegate, instead of EventHandler - this was causing a type
4294 cast exception in all apps handling this event.
4297 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
4299 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
4300 ShowDropDown to give the user a chance to dynamically add
4301 drop down items. [Step 1 of fixing bug #417877]
4303 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4305 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
4306 had any mouse motion since the call to StartDrag, to match the dnd
4308 Fixes part of #381876.
4310 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4312 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
4313 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
4314 Also, if we are actually moving into a different window after
4315 grabbing, generate a LeaveNotify event for the previous window, since
4316 we need to fire the leave events until the grab ends, not when
4317 actually moving outside of the control.
4319 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4321 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
4322 events only for client windows was wrong - we need to compare the
4323 client window against the window receiving the EnterNotify event, not
4324 against zero (since client window is never Zero, btw).
4325 This prevents having unnecessary handling of EnterNotify events for
4326 non-client windows when a gran begins.
4328 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4330 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
4331 MouseMove/MotionNotify events at all (which should only happen after
4332 MouseUp/ButtonRelease, as .Net does).
4333 This avoids firing an extra and unnecessary MouseMove event just after
4334 every MouseDown event.
4336 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
4338 * LinkLabel.cs: Always clear any previous links when LinkArea
4339 is set. [Fixes bug #410709]
4341 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
4343 * ToolStripProfessionalRenderer.cs: Revert last change.
4344 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
4345 for ToolStripDropDownBackground.
4347 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
4349 * ToolStripProfessionalRenderer.cs: Use Window color for the
4350 background of dropdowns to match .Net when the user is not
4351 using the default white. [Fixes bug #418108]
4353 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
4355 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
4356 it caused timer registration twice. Fixed bug #418107.
4358 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4360 [Correction: This is the actual change to X11Dnd issue, not the
4361 previous one, which was actually a different issue.]
4363 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
4364 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
4365 when the pointer is actually in motion, but only when the pointer
4366 seems to stop (as .net does).
4367 Fixes part of #381876.
4370 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
4372 * ListBox.cs: Fix CopyTo implementation.
4375 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
4377 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
4378 drawing a ComboBox's background. Fixes bad disabled rendering when
4379 the control is not at 0,0.
4382 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
4384 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
4385 ComponentModel layer, which will properly prioritize the attributes.
4386 Avoids wrong prioritization of duplicate attributes when retrieving
4387 the converter and editor.
4390 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4392 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
4393 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
4394 when the pointer is actually in motion, but only when the pointer
4395 seems to stop (as .net does).
4396 Fixes part of #381876.
4398 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
4400 * GridEntry.cs: Perform stricter check for the ParentEntry's
4401 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
4405 2008-08-14 Geoff Norton <gnorton@novell.com>
4407 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
4408 Fixes #396983. Properly fix ActiveWindow trackin and do not
4409 prematurely show POPUP windows.
4411 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4413 * XplatUIX11.cs: Handle the obscured regions while scrolling using
4414 GraphicsExpose event, processing it just after we copy the scrolled
4415 area. This ensures that the next calls to ScrollWindow will copy
4416 regions already updated, and the scrolling will be smooth. Also remove
4417 the code that was trying to detect the obscured regions, since we are
4418 not using it anymore (too slow).
4420 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4422 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
4423 MultiExtended mode, by separating some logic between the ctrl/shift
4424 handling. Also ignore any MouseMove events generated together with
4425 MouseDown events - we are only interested in the real motion event.
4426 Fixes part of #414963.
4428 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
4430 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
4431 is selected. [Fixes bug #414143]
4433 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
4435 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
4436 and not the parent one (the propertyowner). Fixes the behavior of
4437 GetConverter/GetEditor.
4440 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
4442 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
4443 [Fixes part of bug #415452]
4445 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
4447 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
4448 GridEntry, not the current.
4451 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
4453 * TextBoxBase.cs: De-internalize max_length field.
4454 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
4455 share the same logic.
4458 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4460 * ListBox.cs: Selection changes made in the MouseDown handler should
4461 use the *Core versions of selection in SelectedIndices collection,
4462 since the SelectedIndexChanged/SelectedValueChanged events are fired
4463 until we get a MouseUp event, and thus we need to separate the logic
4464 from the events, as done in the keyboard navigation. Also, fire those
4465 selection events from keyboard navigation in SelectionMode.None, even
4466 if we don't have a selection, as .Net does.
4468 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
4470 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
4471 last change introduced when an item is clicked but isn't on a toolstrip.
4473 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4475 * ListBindingHelper.cs: When looking for an object's properties, check
4476 if it implements ICustomTypeDescriptor, in which case we should
4477 resolve the propertu based on its GetProperties method, not in its
4478 actual properties. This is what .Net seems to do.
4479 Fixes a UsingWebBrowser problem during initialization.
4481 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
4483 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
4484 sitting on a MenuStrip.
4486 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
4488 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
4489 no children with the keyboard, we need to release the keyboard capture.
4492 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
4494 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
4495 no children with the keyboard, we need to release the keyboard capture.
4498 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
4500 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
4501 the GTK+-based implementation of VisualStyles.
4502 * ThemeWin32Classic.cs: Exposed various layout values for use in the
4503 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
4504 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
4505 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
4506 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
4507 TrackBarHorizontalTrackHeight.
4509 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
4511 * TabControl.cs: Added hot style handling for the scroll buttons.
4512 right_slider_state, left_slider_state are now of type PushButtonState to
4513 allow for a hot state. Added tracking of the mouse button being held down
4514 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
4515 LeftScrollButtonArea.
4516 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
4517 TabControlGetRightScrollRect.
4519 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4521 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
4524 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
4526 * Form.cs: Ensure that we reset the shown_raised flag after
4527 the form is closed, so that we raise the show events the next
4528 time the form is shown.
4531 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
4533 * Form.cs: Ensure closing events are raised only once.
4536 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
4538 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
4539 so that we can successfully generate the LParam in-place instead of
4540 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
4541 navigation for menus.
4543 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4545 * MenuAPI.cs: When montion don't set the keyboard navigation state to
4546 'navigating'. Fixes bug #411356.
4548 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4550 [Fixed remaining issues of #406773 (#1)]
4551 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
4553 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
4554 MainMenu (already done) and ContextMenu creation.
4556 * ContextMenu.cs: Create tracker on construction.
4558 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4560 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
4561 possible to instantiate MenuTracker without GrabControl.
4563 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4565 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
4567 * MainMenu.cs: Set GrabControl on SetForm using current form.
4569 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4571 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
4573 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4575 * MenuAPI.cs: Check if menu is activated before deactivate it in
4578 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
4580 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
4582 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
4583 - One style instance can only participate in a single style collection.
4584 - Styles can request their owner to layout whenever their properties
4586 [Fixes bugs #412583 and #412582]
4588 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
4590 * X11Keyboard.cs: Implement the generation of the LParam for
4591 all keyboard messages.
4594 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
4596 * ListBox.cs: Don't let the user set TopIndex so high that it
4597 scrolls up far enough to show empty items.
4600 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4602 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
4603 (I'm an idiot and forgot to commit the actual changes, as well as
4604 specify the right file, which is this one, not ListView.cs).
4606 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4608 * ListView.cs: Don't draw ListViewSubItem instances from
4609 DrawListViewItem - we need to reuse the main item's drawing for the
4610 first sub item in case owner draw is true, but wants the system to
4611 do the default draw for the first sub item, without incurring in a
4615 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
4617 * ToolStripButton.cs: Update Checked for CheckOnClick before
4618 raising the Click event. [Fixes bug #412505]
4620 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
4622 * Form.cs: Remove some seems leftover code for non-TopLevel's
4623 CreateParams, which is breaking ClientSize sizing, because it
4624 removes the border window styles.
4626 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
4628 * PropertyGrid.cs: Invalidate the View when the PropertyTab
4631 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
4633 * WebBrowser.cs: Removed debug output.
4635 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
4637 * FileDialog.cs: Apply patch from Ernesto to clean up some
4640 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4642 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
4643 that the change has an immediate effect.
4645 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4647 * ScrollableControl.cs: Update PerformLayout calls to include
4648 provide the name of the property that changed.
4650 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4652 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
4653 location. Fixes drawing of border and cell borders if scrollable.
4655 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4657 * ScrollableControl.cs: Perform layouting after the AutoScroll
4658 properties have changed, so that the changes have immediate
4662 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4664 * XplatUIX11.cs: Non Client area is actually Client such in the
4665 case of NotifyIcon, so double check WholeWindow == ClientWindow
4666 when adding an expose.
4667 [Fixes bugs #324237 and #357022]
4669 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4671 * TableLayoutPanel.cs: Invalidate after layouting, so that we
4672 repaint the cell borders.
4674 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4676 * PropertyGridTextBox.cs: Stop filtering messages prior to our
4677 disposal to avoid unexpected ObjectDisposedExceptions.
4679 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
4681 * TableLayoutPanel.cs: Layout on Row/Column count change.
4683 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
4685 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
4687 * PictureBox.cs: When ImageLocation is set to null or an empty string,
4688 only set image to null if it was previously initialized from an url
4689 (or using ImageLocation). In ImageLocation, load specified image
4690 asynchronously if WaitOnLoad is false. Added support for local file
4691 paths to LoadAsync, and added missing argument check.
4693 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4695 * DateTimePicker.cs:
4696 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
4697 order to set the value as required (which means: when selection
4698 changes for a part being edited, and not before that if not needed).
4699 Also use an enum to describe which part are we using, and use the
4700 selection as a property in PartData, in order to notify the
4701 DateTimePicker owner that we need to end the current edit.
4704 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
4706 * PropertyGridTextBox.cs: Validation should be performed only if we
4707 are focused. We can lose focus for example if the Return key is used
4708 to set the entry and there is an error. When the message box is
4709 displayed we would have validate on click in the message box.
4711 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
4713 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
4714 in order to determine that we are expandable is wrong. There was a bug,
4715 now fixed, in TypeDescriptor that was causing the wrong converter to be
4716 returned which caused GetPropertiesSupported == false in most cases.
4719 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
4721 * ImageList.cs: Fix ICollection.CopyTo implementation for
4722 ImageListCollection. [Fixes bug #409169]
4724 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4726 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
4727 WorkingArea so that menus can appear on the second monitor
4728 when one has dual monitors.
4730 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4732 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
4735 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4737 * TextBox.cs: Implement navigation support for auto complete in
4738 TextBox, as well as refactor the code to show the auto complete window
4739 when receiving a WM_CHAR message, instead of TextChanged, since
4740 autocomplete itself should be able to set the Text a lot of times and
4741 finally only typing should show it, not changes from code.
4743 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4745 * TabControl.cs: When expanding the selected tab, don't adjust the
4746 width if alignment is Right, since it has a different offset than 0,
4747 as opposed to the other alignments.
4748 Fixes the selected tab not being painted at all with alignment = Right
4749 and using FillToRight size mode.
4751 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4753 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
4755 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4757 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
4758 values from the textbox to the boundary values. [Fixes bug #409026]
4760 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4762 * TreeNodeCollection.cs: We were copying one too many elements when
4763 doing our array copy. Fixes a crash when RemoveAt is called.
4766 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4768 * TabControl.cs: When doing the layout and need to call FillRow -using
4769 FillToRight size mode-, use the overload receiving a bool param
4770 indicating whether we need to do a vertical or horizontal calculation.
4771 Fixes part of #399583.
4773 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4775 * TextBox.cs: When painting, use the value returned by
4776 GetLastVisibleItem instead of using the cached last_item field, since
4777 there could be a desynchronization between the layout and the
4778 painting. Fixes a AOOR exception in auto complete mode.
4780 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
4782 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
4783 NonClientAreaEnabled until our VisualStyles is modified to allow it.
4785 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
4787 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
4789 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4791 * TextBox.cs: When focus is lost, if the auto complete listbox is
4794 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
4796 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4797 tracking size for tool windows.
4798 * Theme.cs, ThemeWin32Classic.cs : Extracted
4799 ManagedWindowSpacingAfterLastTitleButton.
4801 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
4803 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
4804 They are bit-rotted and have always been listed as "unsupported".
4806 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
4808 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
4810 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
4812 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
4814 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4816 * ListBox.cs: Make sure last_item_visible gets reset before we try
4817 to do a layout due to scrollbars appearing or disappearing.
4820 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4822 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
4823 for different window themes. [Fixes bug #339140]
4825 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4827 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
4828 in ManagedWindowBorderWidth.
4830 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4832 * InternalWindowManager.cs: Change MouseMove to take a point, so
4833 we can use the same point later on.
4834 * MdiWindowManager.cs: Store point sent to MouseMove so we can
4835 later reset to it. On Windows, the Cursor.Position had already
4836 changed by the time we were resetting to it.
4839 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4841 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
4843 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
4847 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4849 * MdiWindowManager.cs: Double-clicking on the title bar should not
4850 maximize a MDI form if MaximizeBox = false.
4852 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4854 * ThemeVisualStyles.cs: Fixed a warning.
4856 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4858 * ThemeVisualStyles.cs: Fixed warnings and formatted.
4860 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4862 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
4863 implementation produces a better result.
4865 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4867 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
4870 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4872 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
4873 cannot be used from the ThemeEngine constructor.
4874 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
4875 Application.VisualStylesEnabled because it does not work on X11.
4877 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
4879 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
4880 that we did not always check for, as well as fixes to the IList
4881 implementations. [Fixes bug #402703]
4883 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
4885 * IDeviceContext.cs: Added Dispose.
4887 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
4889 * Control.cs: Added OnSizeInitializedOrChanged.
4890 * Form.cs: OnLoadInternal: Added a call to
4891 Control.OnSizeInitializedOrChanged.
4892 * InternalWindowManager.cs:
4893 * HandleTitleBarMouseMove: No longer invalidates the parent window.
4894 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
4895 * TitleButton: Added Entered.
4896 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
4897 * MdiWindowManager.cs:
4898 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
4899 move over the maximized title buttons causes a change.
4900 * IsActive: Can now be called before the window is added to a MDI parent.
4901 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
4902 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4903 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4904 * ThemeWin32Classic.cs:
4905 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4906 * DrawTitleButton takes a new form parameter.
4907 * Added ManagedWindowTitleButtonHasHotElementStyle,
4908 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4910 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
4912 * ThemeEngine.cs: ThemeVisualStyles is now selected if
4913 Application.EnableVisualStyles has been called, even if the current system
4914 configuration does not support rendering with Visual Styles.
4915 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4916 Styles should not be used.
4918 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
4920 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
4921 ComboBox in FormsTest.
4923 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
4925 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
4926 for fixed toolwindows.
4928 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
4930 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
4932 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
4934 * Control.cs: CreateControl just returns if the Control is diposed
4935 and doesn't throw ObjectDisposedException.
4938 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
4940 * Control.cs: Do not create the control if the parent isn't created
4941 yet, e.g in the case of a parented form on which .Show is called.
4942 It will be created when the parent is made visible/created.
4945 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
4947 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
4948 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
4951 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
4953 * Form.cs: When disposed set owner to null. Improves #402446.
4955 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
4957 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
4958 use children's PreferredSize if in AutoSize mode and ExplicitBounds
4960 * Form.cs: Take the Padding into account for the PreferredSize.
4963 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4965 * TabControl.cs: Since we don't support more than one direction in
4966 TabControl rows alignment (this is, the row becomes the
4967 bottom row when selected), make Direction return always 1. This way
4968 the layout doesn't get confused about a bad calculation.
4971 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
4973 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
4974 so that the wparam is properly set.
4975 Fixes form moving in the test case in bug 402446.
4977 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
4979 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
4980 the full tree instead of nothing. [Improves bug #406584]
4982 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
4984 * ThemeWin32Classic.cs: Adjusted minimized window painting.
4986 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
4988 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
4991 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
4993 * TreeView.cs: Add a null check when using CollapseAll on an
4994 empty tree. [Fixes bug #406449]
4996 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
4998 * Form.cs: Make OnMenuComplete internal so we can call it.
4999 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
5002 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5004 * TabControl.cs: Handle Up and Down keys when TabControl is in
5008 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5010 * TabControl.cs: Invalidate when we remove a tab. Guard against
5011 an AOORE when trying to remove a tabpage that is not owned by the
5015 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5017 * ScrollBar.cs: Change the LargeChange calculation to be correct.
5018 Ensure we are using LargeChange instead of large_change so we our
5019 calculations are correct.
5022 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5024 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
5025 we need to ensure the ColumnCount/RowCount gets set.
5028 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5030 * ListBox.cs: When handling item navigation, if selection mode is
5031 None, call EnsureVisible, since scrolling is normally handled by
5032 selection, that we are not calling in this case.
5035 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
5037 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
5038 a null check to our focus walking code. [Fixes bug #394332]
5040 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
5042 * ComboBox.cs: Case missed in bug 379596 "Support item
5043 navigation by entering text": On _close_ drop-down select
5044 the first item matching the text in the textbox. [Fixes bug #397265]
5046 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
5048 * DataGridView.cs: Fix a crash when sorting by column headers,
5049 mentioned in bug #404841. Remove some dead switch cases.
5051 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5054 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
5055 uses the AutoComplete support in the internal TextBox. Also TextBox
5056 can store a reference to ComboBox, in case AutoCompleteSource is set
5057 to ListItems (this is, ComboBox's items, and we don't want to pass an
5058 additional collection).
5060 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5062 * ListViewItem.cs: Restore the initial value of bounds rect to
5063 Rectangle.Empty, and is this value for Layout detection in virtual
5064 mode. Fixes the tests.
5066 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
5068 * XPlatUI.cs: Remove references to "new" X11 backend.
5070 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
5072 * Control.cs: Add an internal virtual OnDragDropEnd method
5073 to allow controls such as ListBox, which depend on a sequence
5074 of MouseDown+Move+End events, to handle the lack of a MouseUp
5075 when a DnD operation is started in MouseDown.
5076 * ListBox.cs: If a DnD operation is started in MouseDown we won't
5077 get a MouseUp, so reset our state whenever a DnD operation ends.
5079 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
5081 * PropertyGrid.cs: Clear the root griditem first thing when
5082 new object/s is/are selected. Fixes some rare cases where
5083 the View will get a paint request and won't know that the
5084 grid is in the process of repopulating.
5086 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
5088 * XplatUIX11.cs, InternalWindowManager.cs:
5089 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
5090 doesn't automagically update the FormBorderStyle, so we must
5091 double check the CreateParams explicitly to determine if the
5092 window is a toolwindow.
5093 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
5094 instead of doing custom checks.
5096 Fixes toolwindows for the test case in bug #402446
5098 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
5100 * Control.cs: Visibility of the control should be false
5101 when the handle is destroyed in WmDestroy and not immediately
5102 in Dispose(). This is effectively where the disposing process
5103 ends even though the control is marked as Disposed immediately
5104 after calling Dispose().
5107 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
5109 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
5110 when the textbox gets focus.
5113 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
5115 * PropertyGridTextBox.cs, PropertyGridView.cs:
5116 - Alt + Down should show the drop down editor.
5117 - Focus the editor when showing it
5120 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
5122 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
5123 that are not the first panel.
5124 * StatusBar.cs: Ensure that the X coordinate of panels is always
5125 stored. Fix IList implementation of StatusBarPanelCollection to
5126 call the regular methods.
5127 [Fixes bug #403599, #402165]
5129 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
5131 * ThemeWin32Classic.cs: Fix position calculation for centered
5132 text on status bar panels. [Fixes bug #402165]
5134 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
5136 * Splitter.cs: Fix Splitter to:
5137 - Work for arbitrary splitter size
5138 - Handle MinSize and MinExtra properly
5139 - Get rid of absolute positioning during drag and use relative
5140 - Multiple other fixes
5143 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
5145 * Cursor.cs: Show shouldn't hide the cursor.
5147 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5149 * ListViewItem.cs: When invalidating, add some extra space to bounds,
5150 since focus rectangle and selection can add some space and need to
5151 take into account those small offsets - specially in Details view.
5152 * ListView.cs: Instead of invalidate using item Bounds directly, call
5153 item.Invalidate, to have the code centralized.
5154 Fixes focused/selection garbage when selecting and deselecting items
5157 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5159 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
5160 mode we can check whether we have to force a Layout or not, and can
5161 cache based on this, instead of avoiding caching all the the time. Do
5162 this check in GetBounds and TextBounds.
5163 Fixes selection in Details view.
5165 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5167 * ListView.cs: Make HeaderControl internal, thus the theme engine can
5168 get its *real* height instead of trying to infere it.
5169 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
5170 get the position of them, since it's in general a bad idea in general,
5171 and because we can't do that in virtual mode. Instead get the first
5172 visible item as well as item height, and draw them.
5175 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
5177 * ToolStripSplitButton.cs: We can't add in extra width if
5178 the button is not AutoSize. [Fixes bug #401279]
5180 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
5182 * PaddingConverter.cs:
5183 - Implement conversion to InstanceDescriptor
5184 - Handle "All" in CreateInstance by using the supplied
5185 ITypeDescriptorContext.
5186 [Fixes bugs #396076 and #396078]
5188 Patch by Andy Hume <andyhume32@yahoo.co.uk>
5189 Code contributed under MIT/X11 license.
5191 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
5193 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
5195 Add Category attributes.
5196 Code is contributed under the MIT/X11 license.
5198 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
5201 - Fix a NRE when unparenting a form.
5202 - Do not recreate or destroy a parented form when
5205 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5207 * TextBox.cs: Implement basic support for AutComplete with custom
5210 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
5212 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
5213 DropDownButtonBounds should be from the origin of the button, not the
5214 ToolStrip. [Fixes bug #401279]
5216 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
5218 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
5219 running gtk_init_check. This prevents GAIL from loading
5220 unnecessarily, which was breaking UIA support. Initial fix for bug
5222 * Application.cs: Add UIA support to Winforms. New static constructor
5223 uses reflection to initialize UIAutomationWinforms assembly. Added
5224 PreRun event so UIA can initialize before the mainloop starts, and
5225 FormAdded event so UIA can provide a11y support for new Forms in an
5228 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
5230 * DataGridView.cs: When binding to a dataset, subscribe to table
5231 and column change events. Unsubscribe to these when we clear bindings.
5234 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
5236 [DataGrid drawing refactory]
5238 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
5240 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
5241 must be handle by Theme, now it call DataGridPaintColumnHeader.
5243 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
5244 test cases must be also fixed because it checks for wrong size.
5246 * ThemeWin32Classic.cs:
5247 - Draw the bottom line of grid caption.
5248 - Prevent to draw caption text when it is empty.
5249 - Use CPDrawBorder3D for 3D efects to simplify code.
5250 - Uses 3D (when not flat) to paint corner shared between row and column
5252 - Fix header drawing issues on win32, now borders are drawing.
5253 - Fix column header paint issues to mimic win32.
5254 - Adjust header drawing for last column, like first one it must be draw
5256 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
5258 - DataGridPaintColumnHeader created to draw column headers, it also
5259 paint stuff right on Win32.
5260 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
5264 - DataGridPaintRowHeaderStar method added.
5265 - DataGridPaintColumnHeader method added.
5267 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
5269 * Control.cs: Don't reset to Dock style layout if DockStyle is
5270 set to none. [Fixes bug #399316]
5272 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
5274 * Win32DnD.cs: Fix the check for control not equal null.
5275 Fixes bug #341420 and #381886.
5277 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
5279 * DataGridViewRowCollection.cs: Update the indexes of rows after
5280 one has been removed.
5281 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
5282 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
5283 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
5284 rows for the Rows collection, or deleting rows from the bound DataSet.
5286 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
5288 * DataGridView.cs: Listen to a DataSet's changed event even
5289 when autogeneratecolumns is false. Refactor the changed event's
5290 add row code to use the same as the existing add row code.
5293 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5295 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
5296 much any time the caret moves and there is text, not just when
5297 the selection changes as one would think.
5298 * RichTextBox.cs: Override RaiseSelectionChanged and fire
5302 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5304 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
5305 instead of trying to duplicate the code.
5306 * ListBox.cs: Make method internal so we can send keyboard events.
5309 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5311 * TextBoxBase.cs: When pasting and checking the max length,
5312 subtract the selected text length (the text we will be replacing) from
5313 the document length.
5314 * TextControl.cs: Ensure every character insertion is reflected in
5315 charcount, so max length will work properly.
5318 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5320 * ListBox.cs: Ensure scrollbars are updated when a single
5321 column listbox with an already set top-index is created.
5324 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5326 * FontDialog.cs: Typing in the font/style textboxes should search
5327 the list boxes case-insensitively. [Fixes bug #398343]
5329 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
5331 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
5332 widths of icon and buttons instead of hard coded values.
5334 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5336 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
5337 as well as generating a SelectedIndexChanged event, just like .Net does
5341 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5343 * ListBox.cs: When navigating items visually, use FocusedItem as the
5344 reference point instead of SelectedIndex, since even in
5345 SelectionMode.None we need to support navigation, and in that case we
5346 just can't use SelectedIndex.
5347 Fixes part of #398345.
5349 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
5351 * Control.cs: Make a SetBoundsInternal that avoids the new
5353 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
5354 SetBoundsInternal instead of SetBoundsCoreInternal.
5356 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
5358 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
5359 SetBounds for the scrollbars.
5361 2008-06-10 Andreia Gaita <avidigal@novell.com>
5363 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
5364 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
5365 OnMouseMove, OnMouseOver, OnMouseUp
5366 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
5367 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
5368 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
5369 to the WebControl object to pass to new collection objects
5370 * HtmlHistory.cs: Implement support for individual window histories.
5371 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
5372 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
5373 GotFocus, LostFocus, OnLoad, OnUnload
5374 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
5376 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
5377 security level changes and context menu event support.
5379 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5381 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
5382 as happens with Esc, patch my Andy Hume.
5385 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5387 * MdiWindowManager.cs: DrawMaximizedButtons now uses
5388 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
5389 * Theme.cs: Made MenuButtonSize platform dependent. Added
5390 ManagedWindowButtonSize.
5391 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
5392 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
5394 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5396 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
5397 Added support for rendering with VisualStyles.
5399 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5401 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5402 support for rendering the border with VisualStyles.
5404 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5406 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
5407 the icon is not shown.
5408 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
5411 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5413 * InternalWindowManager.cs: Draw minimized windows even if they don't have
5416 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
5418 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
5420 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
5422 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
5425 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5427 * ComboBox.cs: When snaping height -because of IntegralHeight set to
5428 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
5429 if the requested height leaves the listbox area with *less* than the
5430 required are to see one item. We were setting it to PreferredHeight
5431 even for values matching the height for a single item.
5434 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
5436 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
5438 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
5440 * DataGridViewCell.cs: Use property instead of field.
5442 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
5444 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
5447 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
5449 * Theme.cs: Added #region around the managed window code. Made the managed
5450 window methods abstract.
5451 * ThemeWin32Classic.cs: Added #region around the managed window code.
5453 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
5455 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
5457 * ThemeWin32Classic.cs: Removed HasBorders checks in
5458 DrawManagedWindowDecorations.
5460 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
5462 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5463 Extracted ManagedWindowGetTitleBarIconArea.
5465 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
5467 * DataGridViewCellStyle.cs: Don't clone the font.
5469 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
5471 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
5473 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5475 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
5476 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
5479 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
5481 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
5482 Use Format/FormatProvider before trying converters.
5483 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
5484 are 'set'. Change constructor to not use ApplyStyle since it wants
5485 everything applied. Clone the Font.
5486 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
5487 ApplyStyle the rest.
5489 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5491 * ListView.cs: We need to calculate the scrollbars even if the handle
5492 hasn't been created - this is needed when methods using scrollbars
5493 info, such EnsureVisible, are called before control has been created.
5496 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
5498 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
5499 only if the elements are defined.
5501 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5503 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
5504 section. Also, when setting bounds, snap height as well as save the
5505 requested height if Dock has any value affecting the height: Left,
5506 Right and Bottom - important if using IntegralHeight as true.
5508 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5510 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
5511 passed to SetBounds to reflect the new adjusted height (Integral-wise),
5512 instead of doing that only in our SetBoundsCore override, since the
5513 bounds cached can be the same as saved one and we could not get the
5517 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5519 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
5520 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
5521 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
5522 ToolWindowCaptionButtonSize.
5523 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
5525 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5527 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
5529 * Theme.cs: Made DoubleClickTime plaform dependent.
5531 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5533 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
5534 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
5535 ToolWindowCaptionHeight.
5537 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5539 * InternalWindowManager.cs: The adjustment to ensure positive client area
5540 sizes is now platform dependent (disabled on Windows).
5541 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
5542 RequiresPositiveClientAreaSize.
5544 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5546 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
5548 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5550 * InternalWindowManager.cs: Changed IconicSize to use
5551 SystemInformation.MinimizedWindowSize.
5552 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
5553 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
5555 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5557 * ComboBox.cs: If the combobox is anchored both on top and bottom,
5558 adjust height if IntegralHeight is true when calling SetBoundsCore (as
5559 likely the height was modified even if Height wasn't specified in
5560 BoundsSpecified parameter).
5561 Fixes part of #396297.
5563 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5565 * InternalWindowsManager.cs: Changed minimum window size while resizing to
5566 SystemInformation.MinWindowTrackSize.
5567 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
5568 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
5570 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
5572 * MenuItem.cs: Fixed Dispose.
5574 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
5576 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
5577 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
5578 EnteredHeaderCell, PressedHeaderCell: Added.
5579 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
5580 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
5581 theme a chance to override default painting.
5582 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
5583 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
5584 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
5585 ListView and DataGridView header rendering.
5587 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
5589 * RichTextBox.cs: GetPositionFromCharIndex should return the
5590 visual position of the character relative to the viewport.
5591 [Fixes part of bug #396664]
5593 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
5595 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
5596 and not just for the existance of an UITypeEditor. In some cases
5597 there is an editor associated just to do PaintValue, but which
5598 doesn't actually support editing.
5601 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5603 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
5604 if needed, instead of 0 - this should help us in the corner case where
5605 we have more than one item but we are only partially showing 1 item.
5606 Fixes part of #374713.
5608 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5610 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
5611 control, return immediately if the any parent control's handle hasn't
5612 been created or isn't visible, as well as avoiding creating the parent
5613 Form if the handle hasn't been previously created.
5616 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
5618 * TableLayoutPanel.cs: Use border sizes when calculating the
5619 panel's preferred size. [Fixes part of bug #396433]
5621 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
5623 * SplitContainer.cs:
5624 - Fix SplitterDistance to update only if needed.
5625 - Make it force min and max validation.
5626 - Handle properly mouse moves outside the resizeable area.
5629 2008-06-02 Andreia Gaita <avidigal@novell.com>
5631 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
5632 (which also suppresses all popup dialogs). Throw NotSupported
5633 exceptions for activex getters/setters.
5634 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
5635 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
5636 StatusText, Version, GoSearch
5637 * HtmlDocument.cs: Add DocType support
5639 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
5641 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
5644 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
5646 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
5648 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
5650 * TableLayoutPanel.cs: When calculating preferred size, use the
5651 actual number of columns and rows, not what the user set them to.
5654 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
5656 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
5659 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5661 * XplatUIX11.cs: When detecting areas obscured in a control by other
5662 toplevel windows while scrolling, return if the control hasn't a
5666 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5668 * XplatUIX11.cs: Properly detect the visible area of a control being
5669 scrolled (obscured by other winforms controls and any X toplevel
5670 windows), to mark as invalid the requested area to be scrolled that
5671 isn't visible and thus can't be copied.
5674 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5676 * ListBox.cs: Compute the precise amount to vertically scroll when
5677 using DrawMode.OwnerDrawVariable.
5678 Patch by jkeymer (j.keymer@gmx.net).
5680 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5682 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
5683 to avoid setting an invalid value for the verticall scrollbar
5684 when navigating items. And, duh, also remove my silly debug messages
5685 from previous commits.
5688 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
5690 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
5691 make it MS compatible.
5693 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
5695 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
5696 - Allow the editing of entries even if their parent is read-only.
5697 - Do not render expandable properties read-only.
5698 - Refactor expansion checks form PropertyGrid into PropertyGrid.
5700 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
5702 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5703 support for the hover style.
5705 2008-05-29 Andreia Gaita <avidigal@novell.com>
5707 * ContainerControl.cs: Check for null dead-end when traversing the tree
5710 [Fixes #394332, patch by Ernesto Carrea]
5712 2008-05-29 Geoff Norton <gnorton@novell.com>
5714 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
5715 constant that it is. Fixes #393981
5717 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
5719 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
5720 that the user probably doesn't want to set this.
5722 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
5724 * ThemeWin32Classic.cs: Don't let the text size be bigger than
5725 the control size for CheckBox/RadioBox.
5726 [Fixes part of bug #394645]
5728 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
5730 * PropertyGrid.cs: Update the state of the sorting buttons in
5731 the toolbar if PropertySort is set programatically.
5733 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
5735 * GridItemCollection.cs: Add multiple items with conflicting names
5736 support and also preserve name ordering.
5739 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
5741 * GridItemCollection.cs: Revert my multiple items with same
5744 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5746 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
5748 Fixes part of #393908.
5750 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
5752 * ToolStripDrowDown.cs: When using the Show () methods that have a
5753 Control parameter, set the menu owner to that Control.
5756 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
5758 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
5761 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5763 * GridItemCollection.cs: Refactor to support multiple items with the
5767 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
5769 * Control.cs: The 2.0 check for illegal cross thread calls in
5770 Control.Handle were throwing an exception when we were getting
5771 the Handle in order to invoke correctly. Created a private
5772 version that does not contain this check.
5775 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5777 * PropertyGrid.cs: Respect DefaultTabType.
5779 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5781 * ListView.cs: SPACE selects an item.
5784 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5786 * ListView.cs: Reset the search string whenever the items are
5790 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5792 * ListControl.cs: For the first added item PositionChanged is fired
5793 _before_ ItemChanged, which leave us in a temporary invalid state - so
5794 we need to set the selected index from ItemChanged handler *if* we
5795 know that the first item has just been added *and* the items have been
5796 actually added to the ListControl.
5799 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5801 * TabControl.cs: Only clicks with the left button should be
5805 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5809 * TextBox.cs: Expose an internal method in TextBox to restore the
5810 original context menu, and call it from ComboBox to re-use it in the
5811 combobox containing the file name in FileDialog.cs.
5812 Fixes part of #393775.
5814 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
5816 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
5819 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
5821 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
5824 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5826 * ComboBox.cs: Minor correction to previous patch: PageDown should
5827 also *try* to move by one item if the computed offset is negative,
5828 just like the PageUp case.
5830 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5832 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
5833 should be done for at least 1 item, and not stay at the same item.
5834 Fixes part of #374713.
5836 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
5838 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
5839 directories. [Fixes bug #393931]
5841 2008-05-22 Andreia Gaita <avidigal@novell.com>
5843 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
5844 Don't fire events until the initial about:blank page has finished
5845 loading. Clean up events.
5847 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
5849 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
5850 FocusIn() too. This should fix the issue on switching
5853 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
5855 * X11Keyboard.cs : set XIM font size to somewhat reasonable
5856 number (ideally the input textbox size, but that could be
5859 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
5861 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
5862 the ToolStripItem's TextChanged. [Fixes bug #393597]
5864 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5866 * TabControl.cs: When invalidating in SelectedIndex and we need to
5867 inflate to take into account the border of the tabs, make sure that
5868 the invalidated rect doesn't overflow the control bounds, since that
5869 would avoid updating at all.
5871 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5873 * TabControl.cs: Don't substract scroller width from the row width,
5874 since we need to take into account the total width of the control when
5875 calculating the position of the tabs. This avoids showing scroller
5876 when it is actually not needed.
5877 Fixes part of #322325.
5879 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5881 * ThemeVisualStyles.cs: Added support for TextBoxBase.
5883 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5885 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5886 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
5888 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
5890 * DataGridView.cs: Only paint the top left header cell if there
5893 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
5895 * DataGridView.cs: When binding to a BindingSource, get the underlying
5896 list to bind to. [Fixes bug #345483]
5898 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
5900 * DataGridView.cs: Do not bind to collection properties.
5903 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5905 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5907 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5909 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5912 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5914 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5916 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5918 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
5921 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5923 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
5925 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5927 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
5930 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5932 * TabControl.cs: Extended to handle the hot style.
5934 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5936 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
5937 Extended UpDownBase code to handle hot and disabled styles.
5939 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
5941 * DataGridView.cs: Handle databinding to generic list type things.
5944 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
5946 * DataGridViewCellCollection.cs: Add a method to find the cell
5947 with the given DataPropertyName.
5948 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
5949 * DataGridViewColumnCollection.cs: Add a method to clear all
5950 autogenerated columns.
5951 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
5955 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
5957 * DataGridView.cs: Don't try to update the RowTemplate with
5958 a null CellTemplate.
5960 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
5962 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
5963 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
5964 * DataGridView.cs: Lots of fixes/enhancements to databinding to
5967 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
5969 * Control.cs: Remove invalidating implicit child controls when
5970 control is invalidated. It was causing too many redraws on
5971 controls with implicit scrollbars.
5972 * ListView.cs: Listen to the Invalidated event and invalidate
5975 2008-05-20 Andreia Gaita <avidigal@novell.com>
5977 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
5978 * HtmlDocument.cs: Check for nulls
5980 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5982 * Control.cs: In ControlCollection.RemoveInternal, remove the
5983 internal control before calling PerformLayout and OnControlRemoved,
5984 which was leaving us in an invalid state and causing a X error (bad
5985 match). Observe that Remove () call has the same order.
5986 Fixes an X error changing ComboBoxStyle.DropDownStyle.
5988 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5990 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
5991 being fired if ControlStyles.UserPaint style is activated.
5994 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
5996 * GridEntry.cs: Don't be so strict when setting the value -
5997 do not check if what we set is what we get.
6000 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
6002 * XplatUIX11.cs: If there are no timers timeout should be 0
6005 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
6007 * Control.cs: As a followup to invalidating implicit children when
6008 a control is invalidated, only invalidate them if they are in the
6011 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6013 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
6015 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6017 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
6019 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6021 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
6022 * XplatUIWin32.cs: Made Win32DeleteObject public.
6024 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
6026 * GridEntry.cs: Determine HasDefaultValue more strictly by using
6027 PropertyDescriptor.ShouldSerializeValue.
6030 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6032 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
6033 in the classic theme.
6035 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6037 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
6039 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
6040 ScrollBarHasPressedThumbStyle.
6042 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6044 * TextRenderer.cs: Included some methods in the 1.1 profile.
6046 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
6048 * Control.cs: When we make a control visible, it may have been
6049 previously visible and while it wasn't visible, the z-order of
6050 things may have been shuffled, so the control needs to have its
6051 z-order updated just in case. [Fixes bug #391518]
6053 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6055 * ThemeVisualStyles.cs: Added support for GroupBox.
6057 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6059 * GroupBoxRenderer.cs: Included in the 1.1 profile.
6061 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
6063 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
6064 bug #389996; XSelectInput() behaved as mouse handler robber,
6065 so remove extra call to it.
6067 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
6069 * Control.cs: Simplify ControlCollection.Contains method.
6071 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
6073 * DataGridViewRow.cs: Implement GetPreferredSize.
6075 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
6077 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
6079 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
6081 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
6082 painting and edit control fixes.
6084 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
6086 * DataGridView.cs, DataGridViewCell.cs: Work around some external
6087 checks to make sure we are in an actual row/col for top left header cell.
6088 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
6090 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
6092 * Control.cs: Use long instead of int when handling WParam from
6093 mousewheel scrolling. Int was overflowing on Win64.
6095 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
6097 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
6098 flow panel without scrolling first, and then calculate the
6099 scrolling based on the new layout. [Fixes bug #390149]
6101 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
6103 * ListBox.cs: Invalidate after scrolling up when selected index
6104 changes. [Fixes bug #390151]
6106 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6108 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
6109 set, default height to 150. I tried first with DefaultSize, but this
6110 is not generating a SetBoundsCore call before handle creation time, so
6111 we can take it into account. This is just what .net does.
6113 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
6115 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
6116 as it broke some stuff. Calberto is filing a bug for eno to
6119 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6121 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
6122 to 0 is the current value is -1, and if style is not Simple, just
6123 return, like .net does.
6124 Fixes part of #374713.
6126 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
6128 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
6129 progress bar stuffs, use doubles instead of ints to prevent
6130 overflow. [Fixes bug #389798]
6132 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
6134 * XplatUIX11.cs, X11Keyboard.cs :
6135 Significant refactoring on XIM support. Now IM engine UI
6136 should show up, at mostly-correct preedit position.
6137 - Eliminated use of FocusWindow, as it is never mapped
6138 and hence blocks correct preedit position. XIC is now
6139 created per window, and it must be destroyed too when
6140 the window is destroyed.
6141 - WM_QUIT messages should not be filtered even when hwnd
6142 is zombie. Filtering it could cause endless loop.
6143 - Preedit position must move only when the window is alive.
6144 - Make it IDisposable and make sure to release XIM/XICs.
6146 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
6148 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
6149 XplatUIX11.cs, XplatUIWin32.cs :
6150 fix for bug #325033 and #387693;
6151 - WM_QUIT should not be sent when no running application
6153 - SetTimer/KillTimer (especially on win32) should be
6154 invoked for the window that the timer is/will_be attached.
6155 - There could be unattached timers to a window when it's
6156 started. For those timers, hold pending timers and when
6157 a window is mapped, attach them to it.
6158 - WaitForHwndMessage() could run into loop when
6159 WM_SHOWWINDOW is handled before this method is called.
6160 So, strictly check wm_showwindow state.
6161 - Tick handler should not be invoked while one Tick handler
6162 call is still running (introduced Busy state).
6164 2008-05-13 Andreia Gaita <avidigal@novell.com>
6166 * WebBrowserBase.cs: Override Internal alternative methods for
6167 SetBoundsCore and OnResize instead of the protected ones.
6168 * Control.cs: Move SetBoundsCore and OnResize implementations to
6169 SetBoundsCoreInternal and OnResizeInternal, so they can be
6170 overriden internally (WebBrowserBase needs to catch them but can't
6171 override the protected methods without api compat problems)
6173 2008-05-13 Andreia Gaita <avidigal@novell.com>
6175 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
6177 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6180 * ListView.cs: Remove debug messages.
6182 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6184 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
6185 area is empty. Also calculate scrollbars in Simple mode based in area
6186 height and total number of items, not in MaxDropDownItems.
6187 Fixes part of #371991.
6189 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6191 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
6193 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6195 * BindingSource.cs: GetListSortDescription is not public.
6197 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6199 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
6201 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6203 * HtmlElement.cs: Fix parameter names to match MS.
6204 * HtmlWindowCollection.cs: Should not be sealed.
6206 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6208 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
6209 button, because the thumb button will not get drawn if the scrollbar
6210 is disabled. [Fixes bug #389262]
6212 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6214 * ListBox.cs: Handle End key for multi-column listboxen.
6217 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6219 * ListBox.cs: Fix algorithm to determine which column our item is in.
6222 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6224 * ListBox.cs: Invalidate when the listbox is resized.
6227 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6229 * ListBox.cs: There is always at least one row in the ListBox (if
6230 we are doing these calculations.) [Fixes bug #389253]
6232 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6234 * ListBox.cs: There is always at least one column in the ListBox.
6237 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6239 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
6240 ensure in Simple mode that the height is exactly the requested one.
6241 Also add the ComboBoxListControl to the controls collection in Simple
6242 mode even if handle hasn't been created.
6243 Fixes part of #371991.
6245 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6247 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
6248 our ComboBox owner instead of giving it back to the previous control (
6249 as done in other controls). Also remove the empty override of Select
6250 method, since we want to be selected *and* give focus to our owner.
6251 This should let the user do keys-navigation in Simple mode.
6253 2008-05-10 Geoff Norton <gnorton@novell.com>
6255 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
6256 problems with rapid scrolling of treeviews. Fixes #381084
6258 2008-05-10 Geoff Norton <gnorton@novell.com>
6260 * XplatUICarbon.cs: Deactivate the active window before
6261 activating the desired window. Completes fixing #386504
6263 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6265 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
6266 SmallChange to the item size width plus the padding, to match .net.
6268 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6270 * FileDialog.cs: Apply the custom filter typed by the user in the file
6271 name combobox as much as possible while navigating in the file dialog.
6274 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6276 * Binding.cs: Actually use NullValue if the retrieved value of
6277 data source is null or DBNull. Makes a test pass.
6279 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
6281 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
6282 * MimeIcon.cs: Provide a way to get icons from resources.
6284 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6286 * Binding.cs: When the value retrieved from the control to be assigned
6287 to the data source is null, actually use the 2.0 DataSourceNullValue
6288 value. Make pass a data binding test.
6290 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
6292 * Control.cs: We need to invalidate implicit children even when
6293 invalidate is called with invalidatechildren = false. (Implicit
6294 children are really part of the parent.)
6295 * ListView.cs: Double-buffer internal child controls for less
6297 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
6298 owner ListView subitems for greatly increased performance.
6301 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
6303 * FileDialog.cs: When the user types a wildcard character in the
6304 filename combobox, update the contents of the folder using the text as
6306 Fixes part of #385261.
6308 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
6310 * ListBox.cs: Various fixes for MultiColumn listboxen.
6313 2008-05-08 Andreia Gaita <avidigal@novell.com>
6315 * HtmlElement.cs: Implement Style property
6317 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
6319 * ListBox.cs: Respect checkboxes when measuring item size.
6320 * ThemeWin32Classis.cs: When drawing list items, don't draw
6321 text outside of the item's bounds to prevent overlapping.
6322 (.Net actually overlaps, but that's just silly.)
6325 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
6327 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
6328 Gert Driesen. Fixes bug #324830.
6330 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
6332 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
6335 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6337 * BindingSource.cs: When calling IsSynchronized, return the value of
6338 the related IList list.
6340 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6342 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
6345 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
6347 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
6348 navigation to scroll the grid if the current cell is not visible.
6350 2008-05-07 Andreia Gaita <avidigal@novell.com>
6352 * HtmlElement.cs: Implement TabIndex
6354 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
6356 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
6357 properties, even when there are no items.
6360 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
6362 * NativeWindow.cs: Add support for multiple handles per window.
6363 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
6364 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
6365 directly - use FromHandle instead.
6368 2008-05-07 Andreia Gaita <avidigal@novell.com>
6370 * HtmlElement.cs: Implement InnerHTML setter
6372 2008-05-07 Andreia Gaita <avidigal@novell.com>
6374 * HtmlDocument.cs: Implement Focused
6376 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6378 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
6379 methods, as well as add messages to the exceptions.
6381 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6383 * BindingSource.cs: Setting DataSource should only reset DataMember if
6384 the previous value was null (make pass a not working test).
6386 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6388 * BindingSource.cs: When EndInit call is postponed and is called until
6389 DataSource.EndInit is called, remove the handler for data source.
6391 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6393 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
6395 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6397 * ToolStripManager.cs: Store references to toolstrips as
6398 weak references so they do not prevent forms from getting collected.
6401 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6403 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
6404 on .Net. So do the same thing in WndProc.
6406 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6408 * TrackBar.cs: Commit patch from Andy Hume that corrects
6409 the clickable areas to better match .Net.
6412 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6414 * TrackBar.cs: Commit patch from Andy Hume that adds the
6415 ResizeRedraw control flag so the track bar repaints itself
6416 when it is resized. [Fixes bug #387072]
6418 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6420 * TrackBar.cs: Commit patch from Andy Hume that adds better
6421 support for keyboard navigation when the TrackBar is vertical.
6424 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6426 * BindingSource.cs: Implement ISupportInitializeNotification support.
6428 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
6430 * ThemeVisualStyles.cs: Added support for ToolBar.
6432 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
6434 * ToolBar.cs: Made the Vertical property internal.
6436 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
6438 * ThemeVisualStyles.cs: Added support for TrackBar.
6440 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
6442 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
6443 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
6444 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
6445 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
6446 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
6447 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
6449 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
6451 * ThemeVisualStyles.cs: Added support for UpDownBase.
6453 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
6455 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
6456 Extracted Theme.UpDownBaseDrawButton.
6458 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
6460 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
6461 removed from the static toolstrips collection in ToolStripManager
6462 when they are disposed. Provides a workaround for bug #386483.
6464 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
6466 * GridEntry.cs: Read-only properties with Editor with
6467 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
6470 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
6472 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
6473 the menu key and there are no items on the menu.
6476 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
6478 * Control.cs: Avoid calling ToString on a string.
6479 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
6480 * GroupBox.cs: In FlatStyle property throw, not just create, the
6481 exception. Avoid calling ToString on a string.
6482 * ProgressBar.cs: Avoid calling ToString on a string.
6483 * ScrollBar.cs: Avoid calling ToString on a string.
6484 [All issues were found using Gendarme]
6486 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
6488 * NotifyIcon.cs: Prevent click events to be trigger after double click
6489 events. Fixes remaining issues of bug #324832.
6491 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
6493 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
6494 to mimic win32 behavior. Partially fixes bug #324832.
6496 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6498 * BindingSource.cs: Implement Find methods.
6500 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6502 * BindingSource.cs: Implement Sort, ApplySort overloads, and
6505 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6507 * ListBindingHelper.cs: When calling GetListItemProperties and the
6508 passed object is ITypedList, return the result of
6509 ITypedList.GetItemProperties instead.
6511 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
6513 * LinkLabel.cs: Set default value of name on constructor of Link class
6514 only for 2.0 profile.
6516 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
6518 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
6519 Fixes remaining issues of bug #346154.
6521 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
6523 * LinkLabel.cs: Set a default value for name on internal contructor of
6524 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
6526 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
6528 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
6529 and refer all instances to owner.links. Partially fixes #346154.
6531 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6533 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
6534 length equal zero. Also called CreateLinkPieces in constructor. It fixes
6535 the LinkLabel test 'TestLinkArea'.
6537 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6539 * Form.cs: Remove menu before close form to prevent form to be not gaced.
6542 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6544 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
6547 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6549 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
6552 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6554 * MenuAPI.cs: Remove unused ProcessCmdKey method.
6556 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6558 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
6561 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6563 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
6566 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6568 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
6569 sometimes we open a conext menu on mouse down of some controls and the mouse
6570 up is dispatched to menu and dont need to. It fix remaining issues of
6571 #363711 and other problems related to menu mouse click events.
6573 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
6575 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
6576 some var names to better fit changes, now we have month_menu and today_menu
6577 vars. Fixes bug #363711.
6579 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
6581 * MonthCalendar.cs: Handle every right mouse click to open context menu,
6582 right now the default month menu but it will be change to have "Go to today"
6585 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6587 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
6589 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
6591 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
6593 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6595 * ThemeVisualStyles.cs: Added support for TreeView.
6597 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6599 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
6600 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
6602 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6604 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
6606 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6608 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
6609 Implement 2.0 SP1 stuffs.
6611 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6613 * FileDialog.cs: Implement 2.0 SP1 stuffs.
6615 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6617 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
6618 Implement CanEnableIme property. (2.0 SP1)
6620 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6622 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
6625 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6627 * Control.cs: Provide an internal way for a control to override
6628 the setting of Height.
6629 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
6630 set height using new method.
6632 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6634 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
6636 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6638 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
6639 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
6641 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6643 * ThemeVisualStyles.cs: Added support for StatusBar.
6645 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6647 * DataObject.cs: Add the other IDataObject interface.
6649 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6651 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
6652 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
6654 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6656 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
6657 * ListView.cs: Hide non-public API.
6658 * MaskedTextBox.cs: Remove extra attribute.
6660 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6662 * DataGridViewImageCell.cs: Use formatted value instead of value
6663 to calculate preferred size.
6665 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
6667 * ListBox.cs: Move some initialization around so that selected_indices
6668 is not accessed before it is created.
6670 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
6672 * InputLanguageCollection.cs: Implement the collection better.
6675 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
6677 * ToolStripDropDownItem.cs: Get the correct event object for
6678 DropDownItemClicked.
6679 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
6682 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
6684 * DataGridViewRowCollection.cs: We don't currently support shared
6685 rows. Should fix test failures caused by previous commit.
6687 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
6689 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
6690 datagridview gets set. Only paint cells in visible columns.
6691 * DataGridViewCell.cs: Draw border after cell content.
6692 * DataGridView.cs: Invalidate after setting some properties. Only
6693 use visible columns. Fit hit test bug with areas in the col/row header
6694 area but not in a row or col. Implement UpdateCell/Row methods.
6696 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
6698 * DataGridViewElement.cs: Don't throw NIEX.
6699 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
6700 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
6701 * DataGridViewCheckBoxColumn.cs: Implement ToString.
6702 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
6703 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
6704 if the user filled in the formatting Value, use it.
6706 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
6708 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
6711 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6713 * BindingSource.cs: Some corrections to Filter property, as well as
6714 setting it for our list when resetting it.
6716 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
6718 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
6719 than the maximum. Fixes reopened bug #384182.
6721 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6723 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
6724 Fixes remaining issues of #367490.
6726 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6728 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
6729 SystemInformation.WorkingArea to get max_screen value.
6731 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6733 * BindingSource.cs: Implement Filter and RemoveFilter.
6735 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6737 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
6739 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6741 * X11Dnd.cs: When trying to convert data and we know we started the
6742 dnd loop, don't try to use the cached data if the loop is not running,
6743 which means that the data has been resetted.
6746 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6748 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
6751 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6753 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
6754 it to drawn off screen edge. Fixes bug #367490.
6756 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6758 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
6759 menu position to have only one assignment of Location var.
6761 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6763 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
6764 for this patch. Fixes bug #384115.
6766 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
6768 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
6769 the same. If LargeChange is zero, set a minimum size for the scroll
6770 thumb grip. [Fixes bug #384182]
6772 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
6774 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
6777 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
6779 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
6781 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6783 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
6784 patch from Ernesto).
6786 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6788 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
6790 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6792 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
6794 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6796 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
6798 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6800 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
6802 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
6804 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
6806 2008-04-27 Andreia Gaita <avidigal@novell.com>
6808 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
6809 supposed to return a reference to an mshtml interface, which we
6811 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
6812 reference to an mshtml interface, which we don't support). Code
6814 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
6815 DomDocument getter (it's supposed to return a reference to an
6816 mshtml interface, which we don't support). Code formatting cleanup.
6818 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6820 * ListView.cs: Ouch, forgot to commit.
6822 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6825 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
6827 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6829 * ListView.cs: When calculating box selection for virtual mode, don't
6830 look for intersection with item's text, but item bounds, since that
6831 would mean read ListViewItem's text for _every_ item, and that's
6832 something we just can't do in virtual mode (items are only requested
6835 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
6837 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
6838 partial support for managed windows (based on the patch from Ernesto).
6840 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6842 * ListView.cs: When doing a key search use FindItemWithText method
6843 instead of doing the search by ourselves, this way we avoid
6844 duplicating the code and also we handle the special case for virtual
6845 mode. To achieve that make our private overload of FindItemWithText
6846 internal and also have a 'roundtrip' parameter.
6848 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6850 * ListView.cs: When doing the layout don't request the
6851 ListViewItem instance if we are in virtual mode (since we can't request it
6852 until the item is actully drawn).
6854 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6856 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
6859 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6861 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
6862 the patch from Ernesto).
6864 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6866 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
6867 * ThemeVisualStyles.cs: Added.
6869 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6871 * IDeviceContext.cs: Added a missing using.
6873 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6875 * ButtonBase.cs: Made IsDefault protected internal.
6876 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
6878 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6880 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
6881 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
6882 RadioButtonRenderer.cs: Included in the 1.1 profile.
6883 * IDeviceContext.cs: Added.
6884 * TextRenderer.cs: Included a member in the 1.1 profile.
6886 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6888 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
6890 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
6892 * ErrorProvider.cs: Make the error icons come after the control
6893 they refer to. It isn't the way the MS does it, but its better
6894 than what we were doing. See bug #368587.
6896 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
6898 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
6899 from Eric Albright that lazy loads the input language as ensures
6900 everything gets properly initialized. Fixes bug #373871.
6902 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
6904 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6905 implicit mnemonics. [Fixes bug #383000]
6907 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6909 * X11Dnd.cs: When canceling the operation, automatically restore the
6910 default cursor - normally the default cursor is restored when the
6911 mouse buttons are released, but we should be able to restore it even
6912 if the buttons are still pressed (for example, when pressing ESC to
6916 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6918 * X11Dnd.cs: When starting a new drad and drop operation, set control
6919 field to null, just as the other fields, to avoid calling any
6920 operation on a previous control. Also, when calling DndLeave on a
6921 control, set it to null, thus we don't fire that event multiple times
6925 2008-04-23 Geoff Norton <gnorton@novell.com>
6927 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
6928 the whole_window object. Fixes #377084.
6930 2008-04-23 Andreia Gaita <avidigal@novell.com>
6932 * HtmlElement.cs: Implement RaiseEvent (event injection into the
6935 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
6937 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
6939 2008-04-23 Andreia Gaita <avidigal@novell.com>
6941 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
6944 2008-04-23 Andreia Gaita <avidigal@novell.com>
6946 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
6949 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6951 * X11Dnd.cs: When the drop was cancelled, or could just not be
6952 performed, return DragDropEffect.None always (match .net).
6954 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
6956 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
6958 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
6960 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
6962 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
6964 * DataGridView.cs: Add support for error icon tool tips.
6965 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
6966 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
6968 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
6970 * X11Structs.cs: Add mouse button masks enum.
6971 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
6972 WM_EXITSIZEMOVE only once at the beginning and at the end of the
6973 form resize/move operation instead of for each step of it.
6974 [Fixes bug #346529 for the x11 backend]
6976 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
6978 * DataGridView*: Implement support for drawing error icons.
6980 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
6982 * TreeView.cs: Make vbar and hbar internal.
6983 * TreeNode.cs: If collapsing the node removes one of the TreeView's
6984 scrollbars, invalidate the whole thing.
6987 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
6989 * TreeView.cs: Calling Sort() sets Sorted = true.
6990 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
6991 if the nodes need to be sorted.
6994 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
6996 * Form.cs: Fire SizeChanged for both when the form is minimized and
6998 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
6999 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
7001 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
7003 * ComboBox.cs: If the combobox is disabled, draw a disabled
7004 background before painting anything else.
7007 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7009 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
7010 forget to send a Leave event to the target window - just as .net does
7011 when cancelling dnd operations.
7013 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7015 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
7016 soon as possible - this happens when we send the drop message to the
7017 target window. This way we avoid firing any DragOver _after_ drop finished.
7020 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
7022 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
7023 * Form.cs: Handle form minimization as a special state, where size doesn't
7024 change, but we have to fire SizeChanged.
7025 [Fixes bug #325122 for the win32 and x11 backends]
7027 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
7029 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
7030 if the handle is disabled.
7033 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
7035 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
7036 for forms with FormBorderStyle.None.
7039 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
7041 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
7043 [Fixes bug #346529 for the X11 backend]
7045 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
7048 - Send a mouse Enter message after say dragging the mouse with a
7049 button down and then release it in another client.
7050 - Reset the cursor to prevent X11 from remembering it and setting it
7051 before the control gets WM_SETCURSOR.
7052 - Qeueue a mouse move after a mouse enter like win32.
7055 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
7057 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
7058 It's sent when the form gets moved, resized, closed.
7059 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
7060 [Fixes bug #359193 for X11]
7062 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
7064 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
7067 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
7069 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
7070 group. Fixes the 1.1 build.
7072 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7074 * ListView.cs: Use display indexes for selection in Details view, as
7075 well as do the proper layout based on display indexes for that view
7078 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7080 * ListView.cs: Focused item information is now stored as a display
7081 index, and display indexes are used all over the place for selection,
7082 instead of ListViewItem.Index values, which doesn't give us enough
7083 information to modify the selection in groups mode, and was broken.
7085 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
7087 * Control.cs: Do not fire MouseDown if validation of the control has
7089 * Form.cs: Validate the form before closing.
7090 [Fixes bugs #330501 and #353310]
7092 2008-04-18 Andreia Gaita <avidigal@novell.com>
7094 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
7095 CreateWebBrowserSiteBase implementations
7096 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
7097 Style and TabIndex setters
7099 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7101 * ListViewGroup.cs: When returning the actual item count, return the
7102 proper count for default group.
7105 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7108 * ListViewGroup.cs: When calculating groups layout, get the actual
7109 number of items per group, since groups added to the group BUT not
7110 added to the ListView are just ignored, and can cause some nasty
7111 exceptions because of the lack of synchronization. Also for
7112 ListViewGroup don't use lazy initialization for items, since we
7113 the common scenario is to use it always - and it helps us to refactor
7114 and clean the .ctor overloads.
7116 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7118 * ListView.cs: When adding an item to a ListViewItemCollection
7119 belonging to a group (ListViewGroup.Items), don't generate a redraw if
7120 the added item hasn't beeen previously added to the ListView instance
7121 refered by the group, since it will be ignored. This should avoid some
7122 really nasty flickering.
7124 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7126 * ListView.cs: When accessing an item in a specific display
7127 position, use the helper method GetItemAtDisplayIndex, instead of
7128 direct access to the reordered_items_indices array. When doing layout
7129 for groups set the correct Items index for the display position (since
7130 in groups mode items don't have the same position as in Items
7132 * ListViewGroup.cs: Add a field to store the starting item number,
7133 which is later used when calculating the layout.
7137 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
7139 * Application.cs: Fixed ProductVersion to fallback to the assembly
7140 version. Fixes regression for bug #325413.
7142 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7144 * ListView.cs: New helper method to retrieve an item in a _specific
7145 display_ position (the items can be displayed in a different order
7146 than one of Items collection).
7147 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
7148 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
7149 specific display position (again remember that items can be sorted
7150 different than Items).
7152 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
7154 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
7155 list and update it when the collection changes. We were recreating
7156 this several times per row paint and for every pixel the mouse moved
7158 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
7161 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
7163 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
7164 list to use generics.
7165 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
7166 and remove unneccessay casts.
7168 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
7170 * DataGridViewBand.cs: Add internal way to set displayed variable.
7171 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
7172 * DataGridView.cs: Make sure we always keep track of Displayed
7173 rows and columns, and only draw things that are displayed.
7175 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
7177 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
7178 whether the key events are filtered or not. Introduced
7179 PreFilter() process for this purpose. This fixes atokx3/iiimx
7182 2008-04-16 Andreia Gaita <avidigal@novell.com>
7184 * HtmlHistory.cs: Implement Length property
7186 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
7188 * DataGridView.cs: Call EndEdit when a sort is performed so we take
7189 away the edit textbox. Refactor to reuse column sort code.
7191 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
7193 * MenuAPI.cs: Remove the code that save and restore capture status of
7194 grab_control, this fixes some Menu and Context menu bugs but maybe it can
7195 cause some others, I cant figure the possible problems of this patch but
7196 right now remove the code looks to be better than keep it. This patch fixes
7197 bugs #357638, #378721 and #379570.
7199 2008-04-12 Andreia Gaita <avidigal@novell.com>
7201 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
7202 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
7203 add missing properties and event handlers.
7205 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
7207 * ListBox.cs: Make sure the LargeChange we are setting is at least
7208 zero, to prevent an IOORE. [Fixes bug #379531]
7210 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
7212 * ComboBox.cs: Support item navigation by entering text. Firstly,
7213 in DropDownList mode, for each key-press select the next item
7214 starting with that letter.
7215 For other modes, when no item selected, on arrow-up/-down and open
7216 drop-down select the first item matching the text in the textbox.
7218 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
7220 * X11Keyboard.cs : Control.FromHandle() could return null
7221 in MoveCurrentCaretPos().
7223 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7225 * ListView.cs: When changing the size in VirtualMode, also Reset the
7227 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
7228 changing selection info for VirtualMode.
7231 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7233 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
7234 view, don't use LineLimit for the first item - use NoWrap *always*
7235 instead, since ListView.LabelWrap is not used for this view.
7238 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7240 * Binding.cs: Call UpdateIsBinding when setting control - probably
7241 Binding is already usable and we don't need to wait to check the
7242 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
7243 Created, just like 2.0 does.
7244 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
7246 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7248 * Binding.cs: Just realized we don't need to have a handler for
7249 BindingContextChanged, since this info should be now consumed directly
7250 in the BindingManagerBase. And also, the manager.IsBindingSuspended
7251 state info is checked directly, instead of caching it.
7253 * CurrencyManager.cs: IsSuspended should return always false if Count
7256 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7258 * Binding.cs: When calling PushData, return if manager.Count == 0,
7259 since we just don't have data to be read. Also, when setting the
7260 Control for binding, hook up some events to refresh the IsBinding
7261 state when BindingContext change or control gets created; use
7262 Control.IsHandleCreated instead of Control.Created check to set
7263 IsBinding state - we *actually* need to modify IsBinding when control
7264 is created, but we don't have any Created event, only HandleCreated.
7265 Fixes part of #349364.
7267 2008-04-11 Geoff Norton <gnorton@novell.com>
7269 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
7270 warping a null Caret.
7272 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
7274 * DataGridView.cs: Implement row/column autosizing methods. Implement
7276 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
7277 * DataGridViewRowCollection.cs: Add an internal sorting method.
7279 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
7281 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
7282 value in ListView drawing code.
7284 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
7286 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
7287 is clicked. Respect the user setting Cancel in FileOk.
7289 2008-04-11 Geoff Norton <gnorton@novell.com>
7291 * ListView.cs: Avoid setting and resetting control Width/Heights and
7292 calculate the final value and set it once. Prevents a feedback loop
7295 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
7297 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
7300 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
7302 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
7303 Add some on-the-spot code, but it seems we don't need it.
7305 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
7307 * Form.cs: Add method for DataGridView to trigger focus cues
7308 even when it handles the tab keypress.
7310 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
7312 * DataGridView.cs: More keyboard handling, tab, esc.
7313 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
7314 when at the beginning or end of the text in the text box.
7316 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7318 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
7320 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7322 * DataGridView.cs: Some fixups for showing and adding the edit control.
7323 * DataGridViewButtonColumn.cs: Implement ToString.
7324 * DataGridViewCell.cs: Size and position the control simultaneously.
7325 * DataGridViewTextBoxCell.cs: Use base to position control.
7327 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7329 * DataGridViewCell.cs: Fix up some formatting and painting code.
7330 * DataGridViewImageCell.cs: Implement some NIEX methods.
7332 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7334 * ToolStripItemCollection.cs: What moving an item from one owner
7335 to another, remove from source owner before adding to destination.
7338 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7340 * PictureBox.cs: Call Load when ImageLocation is set.
7343 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
7345 * X11Keyboard.cs, XplatUIX11.cs :
7346 Implement over-the-spot mode (with some odd offsets).
7347 - set preedit position when caret is set.
7348 - Wrap XMoveResizeWindow() to move preedit position.
7350 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
7352 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
7355 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
7357 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
7358 and ScanTableIndex public, it fix compilations errors when compiling
7359 WinForms to generate keyboard layout resources.
7361 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
7363 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
7364 different element count than scan table. It prevents some errors in non
7367 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
7369 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
7371 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
7373 * DataGridView.cs: Call OnContentClick.
7374 * DataGridViewCell.cs: Do a null check on ValueType instead
7376 * DataGridViewCheckBoxCell.cs: Implement.
7378 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
7380 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
7382 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
7384 * X11Keyboard.cs : Check XGetIMValues() return value in
7385 case it does not return input styles in some environment.
7387 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
7389 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
7391 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7393 * BindingContext.cs: Stub UpdateBinding method.
7395 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
7397 * X11Structs.cs : added couple of structs for XIM support.
7399 Release XIM in case it failed to create XIC.
7400 Use consts for XNblah string.
7401 Add support for IM style customization and XIC creation
7402 for preedit-position and preedit-callback.
7403 Right now use MONO_WINFORMS_XIM_STYLE environment variable
7404 (list of: over-the-spot | on-the-spot | root). Only root
7407 (redoing r99172 with fix.)
7409 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
7411 * TreeView.cs: Center the checkbox a little better.
7413 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
7415 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
7416 Apply very nice patch from Ernesto Carrea that simplifies our
7417 scrollbar drawing. [From bug #376146]
7419 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
7421 * TreeView.cs: Correct the location of the root node checkbox when
7422 ShowRootLines = false. Don't draw the root lines for the root node
7423 when ShowRootLines = false. [Fixes bug #377535]
7425 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
7427 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
7429 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
7431 * MaskedTextBox.cs: Added missing attribute. Code formatting.
7432 * PageSetupDialog.cs: Added missing attribute. Code formatting.
7433 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
7434 * ImeMode.cs: Added missing field.
7435 * HtmlWindow.cs: Code formatting. Fixed line endings.
7436 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
7438 * HtmlHistory.cs: Code formatting. Fixed line endings.
7439 * HtmlDocument.cs: Code formatting. Fixed line endings.
7440 * ToolStripPanel.cs: Added missing IList implementation.
7441 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
7443 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
7445 * BindingContext.cs: Changed argument names to fix corcompare errors.
7446 * DataGridView.cs: Removed extra explicit interface implementation
7447 of IDropTarget. Code formatting.
7448 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
7449 * ComboBox.cs: Changed argument names to fix corcompare errors.
7450 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
7452 * GridColumnStylesCollection.cs: Changed argument names to fix
7453 corcompare errors. Removed extra tabs.
7454 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
7456 * Control.cs: Changed argument names to fix corcompare errors. Code
7457 formatting. Removed extra explicit IList implementation.
7458 * TextBox.cs: Changed argument names to fix corcompare errors. Code
7459 formatting. Use string.Empty instead of "".
7460 * GridItemCollection.cs: Changed argument names to fix corcompare
7461 errors. Code formatting.
7462 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
7463 corcompare errors. Code formatting.
7464 * ImageList.cs: Changed argument names to fix corcompare errors.
7465 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
7466 * DataGridViewRowCollection.cs: Changed argument names to fix
7467 corcompare errors. Code formatting.
7468 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
7469 * DataGridViewSelectedCellCollection.cs: Changed argument names to
7470 fix corcompare errors. Code formatting.
7471 * DataGridViewComboBoxCell.cs: Changed argument names to fix
7472 corcompare errors. Code formatting.
7473 * LinkLabel.cs: Changed argument names to fix corcompare errors.
7474 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
7476 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
7478 * BindingSource.cs: Changed argument names to fix corcompare errors.
7479 Removed extra explicit interface implementations.
7480 * DataGridViewSelectedRowCollection.cs: Changed argument names to
7481 fix corcompare errors. Code formatting.
7482 * ToolStripItemCollection.cs: Removed extra explicit interface
7483 implementation of IList.ReadOnly.
7484 * DataGridViewColumnCollection.cs: Changed argument names to fix
7485 corcompare errors. Code formatting.
7486 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
7487 * ListView.cs: Changed argument names to fix corcompare errors.
7488 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
7490 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
7492 * ListBindingHelper.cs: Changed argument names to fix corcompare
7494 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
7495 fix corcompare errors. Code formatting.
7496 * ToolStripPanel.cs: Removed extra explicit implementation of
7497 IDropTarget interface.
7498 * ListBox.cs: Changed argument names to fix corcompare errors. Code
7499 formatting. Removed extra tabs and spaces.
7500 * DataGridViewCellCollection.cs: Changed argument names to fix
7502 * Help.cs: Changed argument names to fix corcompare errors. Code
7504 * TabControl.cs: Changed argument names to fix corcompare errors.
7505 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
7507 * TableLayoutSettings.cs: Changed argument names to fix corcompare
7510 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7512 * ListBindingHelper.cs: When returning properties, only return those
7513 that are browsable. Also, don't do a linear search of the properties,
7514 but use the indexer of the PropertyDescriptorCollection class.
7516 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7518 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
7519 Dictionary containing the related (child) currency managers. Also,
7520 when setting DataSource, add datasource to our List if it is not a list.
7522 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
7524 * PropertyGridTextBox.cs: Fix background color of the buttons.
7525 * PropertyGridView.cs: Make the entry less jumpy.
7527 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
7529 * PropertyGrid.cs: Fix unused variable warnings.
7531 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
7533 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
7534 double-click. It expanded it once in the mouse down and then
7535 again in the double-click handler.
7537 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
7539 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
7540 TypeConverter and UITypeEditors.
7542 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
7544 * Control.cs: Visibility should be set synchronously,
7545 so we must also redraw once it is and not rely on layouting or
7546 other code to repaint.
7549 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
7551 * DataGridViewCell.cs: Respect DataGridView.GridColor.
7553 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
7555 * Control.cs: Invalidate when the alpha channel is less than 255,
7556 not only when control is transparent.
7558 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
7560 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
7561 Implement some painting convenience methods that threw NIEX.
7563 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
7565 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
7566 * DataGridViewLinkCell.cs: Implement.
7568 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
7570 * GridEntry.cs: Report the conversion exception error description.
7573 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
7575 * PropertyGridView.cs: Do not scroll to item on resize.
7578 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7580 * BindingContext.cs: When retrieving a BindingManagerBase, if the
7581 dataSource parameter is ICurrencyManagerProvider, then return
7582 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
7583 instead of creating a new one.
7585 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7587 * BindingSource.cs: Implement support for Type instances as
7590 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
7592 * DataGridView.cs: Minor cleanups and call CellMouseUp.
7593 * DataGridViewCell.cs: Make some painting routines internally virtual.
7594 * DataGridViewButtonCell.cs: Implement.
7596 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
7598 * Control.cs: We always need to invalidate our children with
7599 transparent backgrounds when we are invalidated.
7602 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7604 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
7605 and CancelCurrentEdit on CurrencyManager respectively. Implement
7606 support for ICancelAddNew too.
7608 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7610 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
7611 call EndNew/CancelNew if list is ICancelAddNew.
7613 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
7615 * DataGridView.cs: Guard against an exception while painting
7616 if there are no rows.
7618 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
7620 * DataGridView.cs: Implement a bunch of keyboard commands.
7622 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
7624 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
7625 isn't set, don't call OnPaint. [Fixes bug #375300]
7627 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7629 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
7630 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
7631 hookup the remaining events related to CurrencyManager, and fire
7632 OnListChanged also for the Clear () method.
7634 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7636 * BindingSource.cs: Use Current and Position implementations in
7637 CurrencyManager instead of using our own routines, since we need
7638 to be in synch with it. Count should NEVER return a -1 value, and
7639 also report ListChanged events for both simple IList data
7640 sources (manually) as well for IBindingList ones (by hooking up an
7641 event handler for it).
7643 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7645 * BindingSource.cs: Make one .ctor call the another, to avoid
7646 duplicate code. Add the CurrencyManager property, and also for AddNew
7647 throw the proper exceptions and show better error messages.
7649 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
7651 * ComboBox.cs: Only adjust selectedindex if Handle has been
7652 created. Fixes failing test.
7654 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
7656 * ComboBox.cs: Adjust selectedindex if we insert a new item
7657 above the current selectedindex in a sorted ComboBox.
7660 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
7662 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
7665 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
7667 * DataGridViewTextBoxCell.cs: Implement stuffs.
7669 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7671 * TreeView.cs: Create the scrollbars even earlier to be
7672 double dog certain they are created before they are accessed.
7674 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7676 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
7678 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7680 * ScrollBar.cs: Create an internal safe Value setter so we
7681 won't crash if we try to set a value outside the min and max.
7682 * TextBoxBase.cs: Use safe value setter to guard against a
7683 potential NRE that is being reported by Reflector.
7685 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7687 * TreeView.cs: Create the scrollbars earlier in the constructor
7688 to attempt to guard against an NRE in SetTop in Reflector.
7690 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7692 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
7693 DataGridViewRowCollection.cs: Do not scroll column and row headers,
7694 show messagebox on data format error, use column display index
7695 correctly, make sure HitTest supports new layout stuff,
7696 make sure scrollbars support new layout stuff.
7698 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
7700 * XplatUIX11.cs : Patch by Doug Rintoul.
7701 For some IM engines, keypress events need to delay call
7702 to XPending() and XNextEvent() in the loop so that it
7703 does not mess the orders in XIM commit callback.
7704 Some KeyRelease events such as shift keys need to be
7705 processed both in the IM engine and winforms driver
7706 itself since winforms holds its own state check.
7708 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
7710 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
7712 * X11Keyboard.cs, XplatUIX11.cs :
7713 add primitive support for XIM input support (preedit-
7714 nothing and status-nothing). It requires precise event
7715 capturing (XSelectInput/"filterEvents") and different
7716 call to XFilterEvent against root window.
7717 Get composed string and send dummy WM_IME_COMPOSITION.
7718 Free XIM and XIC instances in finalizer.
7720 (This first patch does not include suggested changes
7721 by Doug Rintoul. It will follow.)
7723 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
7725 * DataGridView.cs: When binding to a property, if the property
7726 doesn't have a setter, set the column to readonly.
7729 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
7731 * ComboBox.cs: Guard against NRE if an arrow key is hit while
7732 we aren't dropped down. Support Home/End in DropDownList mode.
7735 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
7737 * TreeNodeCollection.cs: Don't increment count until we've
7738 saved our index to return.
7741 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7743 * Label.cs: Add padding to the label's AutoSize calculation.
7746 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7748 * ListBindingHelper.cs: Actually implement GetListName method.
7750 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7752 * BindingSource.cs: Throw the propert expceptions for some methods, as
7753 well as detect the list item type for Add method if DataSource is null.
7755 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7757 * DataGridViewCell.cs: I don't know why I commented this out,
7758 putting it back for now.
7760 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7762 * DataGridViewCell.cs: Remove storage for owning column, just
7764 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
7765 * DataGridViewColumnHeaderCell.cs: If the header text has been
7766 explicitly set, return it.
7769 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7771 * DataGridViewRowCollection.cs: Disable row sharing when
7772 using data binding. Its a great feature, but lets work on
7773 getting DGV usable first before we worry about optimizations.
7775 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7777 * BindingSource.cs: When resetting our internal list, compute list
7778 item type information to be used for indirect list access. Also
7779 implement/tune some properties and methods related to the list access
7781 * ListBindingHelper.cs: Add a stub for GetListName method, used from
7784 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7786 * DataGridView.cs: If RowCount is increased while ColumnCount
7787 is zero, add a column. [Fixes bug #331649]
7789 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7791 * DataGridViewRowCollection.cs: When adding new rows for
7792 databinding, make sure they are place before the add row.
7795 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7797 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
7798 instead of Index order.
7800 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7802 * DataGridView.cs: If columns are added by increasing ColumnCount,
7803 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
7806 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7808 * DataGridView.cs: Turn off and on the "new row" when
7809 AllowUserToAddRows is toggled. When the handle is created,
7810 set current cell and selected cell/row/col.
7812 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7814 * ComboBox.cs: When navigating the drop down by keyboard, we
7815 need to scroll the list box if our selection moves out of the
7816 currently shown items. [Fixes bug #371990]
7818 2008-03-24 Luke Page <luke.a.page@gmail.com>
7820 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
7821 on the control. Also now handles unicode compatibility characters and
7822 stores the unicode compatibility length on the stack. Fixes Bugs
7823 #355198 and #366436.
7825 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7827 * BindingSource..cs: Take into account DataMember when re-creating the
7828 List property, and also create a specific kind of list as needed.
7830 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7832 * ListBindingHelper.cs: Add a new case for GetList () method - when we
7833 get an empty IEnumerable, try to detect whether the datamember is
7834 valid or not for that type, if true, return null, and throw exception
7837 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
7839 * ComboBox.cs: Alt-Down should drop down the list, Esc should
7840 retract it. [Fixes bug #371989]
7842 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
7844 * PropertyGrid.cs: Initialize the sorting button as pushed.
7846 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
7849 - Visually select the PropertyTab.
7850 - Filter Properties by Attributes properly.
7852 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
7854 * MenuItem.cs: Remove menu item from parent when disposed.
7857 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
7859 * ToolBar.cs: Don't reset layout_type if Dock = None.
7861 2008-03-21 Andreia Gaita <avidigal@novell.com>
7863 * UserControl.cs: Select the first available control when we get focus.
7866 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
7868 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
7869 the content if we are in edit mode. [Fixes bug #343964]
7871 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
7873 * DataGridViewCell.cs: Fix border painting for column headers.
7875 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7877 * BindingSource.cs: When setting or resetting data source,
7878 use ListBindingHelper.GetList () method, since it will get the list in
7879 case datasource is IListSource.
7881 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
7883 * DataGridViewCell.cs: Implement lots more stuffs.
7885 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
7887 * PropertyGridView.cs, GridEntry.cs: Implement support for
7888 UITypeEditor.IsDropDownResizable.
7890 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
7892 * DataGridViewCell.cs: Remove unused variables, improve how
7893 several of the property getters work.
7894 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
7895 get its size from the parent row/col.
7897 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
7899 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
7900 user alters manually the PropertyTabs collection via the
7901 PropertyTabs property.
7903 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7905 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7906 new tests for them to be sure to be compatible with .net.
7908 2008-03-20 Andreia Gaita <avidigal@novell.com>
7910 * WebBrowserBase.cs: Fix attributes, add events
7911 * WebBrowser.cs: Fix Padding signature
7913 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
7915 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7917 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
7919 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
7920 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
7921 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
7922 passes the new suite of tests for it.
7924 2008-03-18 Andreia Gaita <avidigal@novell.com>
7926 * WebBrowser.cs: Add missing attributes, missing Padding and
7927 DefaultSize properties, remove extraneous getters
7929 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7931 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
7934 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
7936 * ComboBox.cs: Move resetting the selected index to keypress
7937 instead of textchanged. Changing the text programmatically
7938 should not trigger resetting the selected index. Fixes test.
7940 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
7942 * ComboBox.cs: When the user types into the textbox, reset
7943 the selected index to -1. [Fixes bug #371672]
7945 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
7947 * FileDialog.cs: Support Control-A for selecting everything
7948 in an OpenFileDialog. [Fixes bug #371564]
7950 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
7952 * DataGridView.cs: When row/column visible/height properties
7953 change, invalidate. Take the NIEX out of InvalidateRow/Column
7954 etc. We don't support them yet, but we can just invalidate
7955 everything until we do support them. (Added MonoTODO). Set
7956 proper control styles.
7957 * DataGridViewRow.cs: Don't call PaintHeader if row headers
7960 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7962 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
7964 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
7966 * DataGridViewRow.cs: Only paint the white background in
7967 cell bounds, the row bounds extends past the cells if the
7968 grid width isn't as wide as the DGV.
7970 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
7972 * DataGridView*: Completely revamp the drawing to match the
7973 public API. Our grids now look better, and call all the
7974 appropriate methods and event to allow users to override
7975 the painting and do their own.
7977 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7979 * ListBindingHelper.cs: Implement 2.0 GetList methods.
7981 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
7983 * DataGridView.cs: Implement BorderStyle.
7985 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
7987 * FileDialog.cs: Apply patch from Andy Hume: Any time we
7988 are comparing attributes, make sure we only look at the
7989 one we are interested. These calls were failing if there
7990 were more than one attribute.
7993 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
7995 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
7997 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
7999 * PageSetupDialog.cs: Stub EnableMetric.
8000 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
8001 * PrintPreviewDialog.cs: Add ProcessDialogKey,
8004 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
8006 * MonthCalendar.cs: Remove unused variable.
8008 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
8010 * DataGridView*.cs: corcompare stuffs.
8012 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
8014 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
8015 The savings aren't worth the extra code to fix the optimization.
8018 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
8020 * ToolBar.cs: Always call base.Dock in the Dock override so that
8021 Control's layout_type gets reset correctly.
8024 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
8026 * X11Dnd.cs: End DnD operation also for the middle mouse button.
8028 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
8030 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
8031 at the same time we do explicit ones, because we have to give all
8032 other controls on the container a chance to handle explicit ones
8033 first. If no one has an explicit mnemonic, then we can let the
8034 MenuStrip have a shot at implicit mnemonics.
8035 * MenuStrip.cs: Create an implicit mnemonic function.
8036 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
8037 mnemonics for MenuStrips.
8040 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
8042 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
8043 DataGridColumnStyle.cs: corcompare stuffs.
8045 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8047 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
8048 Details - This is needed after we added the bits to use any available
8049 column also for List and SmallIcon view.
8051 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8053 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
8054 at the proper place, not only when changing SelectedIndex and changing
8055 the selection using keys/mouse, as .net does.
8057 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8059 * ControlBindingsCollection.cs: Implement last 2.0
8060 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
8061 in the new 2.0 Add methods.
8063 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8065 * ListBox.cs: When calling SelectedIndexCollection.Clear,
8066 return if no items are previously selected - this is done to avoid
8067 firing OnSelectedIndexChanged without need to do so. Also,
8068 when creating handle ensure that the focused item is visible (as
8071 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8073 * ListBox.cs: Rewrote/refactored most of selection code. We require
8074 the following things in selection: a) keep selection sorted (both
8075 indices and items), b) SelectedIndices automatically detect the
8076 selection mode, c) SelectedIndex should be the first selected item
8077 index, d) Need to Focus/adjust scroll bar when selecting a new item,
8078 not only for SelectedIndex, which is specially important in Multi*
8079 selection modes. To achieve this we are moving the selection core to
8080 SelectedIndexCollection and make depend all selection modifications on
8084 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8086 * ToolStrip.cs: Enable implicit mnemonics for drop down
8087 menu strips. [Fixes part of bug #367692]
8089 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8091 corcompare - fix parameter names [stragglers].
8092 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
8093 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
8096 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8098 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
8099 was a mnemonic pressed as well as Alt. Also, if nothing handles a
8100 mnemonic, let the ToolStripManager have it even if it doesn't
8101 have a matching mnemonic.
8104 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8106 corcompare - fix warning about implicit implementation
8107 * ToolStrip.cs: Add IToolStripData interface.
8108 * IToolStripData.cs: Add.
8110 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8112 corcompare - fix warning about implicit implementation
8113 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
8116 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
8118 corcompare - fix parameter names [N-Z].
8119 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
8120 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
8121 PropertyManager.cs, RichTextBox.cs,
8122 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
8123 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
8124 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
8125 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
8126 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
8127 ToolStripContentPanel.cs, ToolStripDropDown.cs,
8128 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
8129 ToolStripPanel.cs, ToolStripSeparator.cs,
8130 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
8131 UICuesEventHandler.cs, UpDownBase.cs.
8133 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
8135 corcompare - fix parameter names [G-M].
8136 GridColumnStylesCollection.cs, GridItemCollection.cs,
8137 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
8138 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
8139 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
8140 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
8141 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
8143 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
8145 corcompare - fix parameter names [A-F].
8146 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
8147 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
8148 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
8149 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
8150 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
8151 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
8152 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
8154 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
8156 * GridEntry.cs: Do not convert not only if the types match,
8157 but also if the property type is assigneable from the value's
8161 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
8163 * PropertyGridView.cs:
8164 - Subscribe to the listbox only once and not everytime.
8165 - Update the textbox even if SetValue fails.
8166 - Close the listbox before calling TrySetValue just in case.
8169 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
8171 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
8173 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8175 * ListView.cs: Implement support for custom column width based on
8176 Columns collection (we were previously using this collection only
8180 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8182 * ListViewItem.cs: For Tile view, always set bounds for the first
8183 subitem (which is the main one), and also don't let Width be larger
8184 than ListView.TileSize.Width. Improve code readibility also.
8185 * ThemeWin32Classic.cs: When painting the ListViewItem instances
8186 in Tile view, _always_ use the NoWrap flag.
8189 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
8191 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
8193 * GridEntry.cs: For MS compitability make all child properties
8194 readonly if the parent is readonly. Ugh.
8195 [Fixes bug #365945 and #365944]
8197 2008-02-29 Andreia Gaita <avidigal@novell.com>
8199 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
8200 relative to the history
8202 2008-02-29 Andreia Gaita <avidigal@novell.com>
8204 * HtmlElement.cs: More handlers for mouse and key events
8206 2008-02-28 Andreia Gaita <avidigal@novell.com>
8208 * WebBrowserBase.cs: MouseClick sig changed.
8209 * HtmlHistory.cs: Implement history navigation
8210 * HtmlElement.cs: Add event handlers, and connect them.
8212 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
8215 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
8216 so that DisplayNameAttribute doesn't get ignored.
8217 - Check for ParenthesizeNameAttribute and parenthesize the Label.
8218 - Add support for PasswordPropertyTextAttribute
8219 * PropertyGridView.cs: Check if an entry is a password.
8220 [Fixes bugs #365589, #365586, #365588]
8222 2008-02-28 Andreia Gaita <avidigal@novell.com>
8224 * PropertyGridView.cs: Revert the message filtering change, as we
8225 need it to block after all. Remove block parameter, unnecessary.
8227 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
8229 * UserControl.cs: Better implementation of GetPreferredSize.
8230 First step to fixing bug #361441.
8232 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8234 * Binding.cs: Actually implement data binding support for
8235 classes implementing IBindableComponent.
8236 * ControlBindingsCollection.cs: Likewise.
8238 2008-02-26 Andreia Gaita <avidigal@novell.com>
8240 * PropertyGridView.cs: Use a message filter to check when to
8243 2008-02-26 Andreia Gaita <avidigal@novell.com>
8245 * Application.cs: Change the message_filters loop so a filter
8246 can be removed while looping.
8248 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
8250 * GridEntry.cs: Optimization in ToggleValue so that it caches
8252 * PropertyGridView.cs: An optimization so that the property isn't
8253 re-read twice for each StandardValue added to the drop-down menu.
8254 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
8258 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
8260 * Application.cs: Apply patch from Justin Cherniak to match
8261 MS better for ProductName, ProductVersion, and CompanyName.
8264 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8266 * Binding.cs: Actually implement 2.0 NullValue property. Also
8267 when changing the formatting related properties, only update the state
8268 if formatting_enabled is true (we don't mind otherwise).
8270 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
8272 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
8275 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
8277 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
8278 of GetType on the current value as it uses reflection to
8279 determine the type. This fixes the case where the new value is
8282 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
8284 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
8287 2008-02-24 Luke Page <luke.a.page@gmail.com>
8289 * Line.cs, TextControl.cs: Implement offset x and y so that a
8290 document doesn't have to begin at (0,0) on the viewpoint.
8291 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
8292 bars and switches the text alignment (and therefore is now
8293 implemented for textbox). Fixes #321383.
8295 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8297 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
8298 properties. Also when changing FormattingEnabled update the control
8299 property -as .Net does-.
8301 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
8303 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
8304 * Binding.cs: Add stubs for the overloads of the Add method in
8307 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8309 * Binding.cs: PullData () returns a false value if we got an exception.
8310 Also when validating the control and we get an error, instead of
8311 setting the value of the previous one, cancel the event (tested in 1.1
8314 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
8316 * TreeView.cs: Make selected_node and highlighted_node internal.
8317 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
8318 to null when Nodes.Clear is called.
8321 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8323 * FontDialog.cs: Ensure that when the Font is set in code,
8324 all the gui pieces are updated accordingly.
8327 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8329 * TextRenderer.cs: Respect proposed size for MeasureString.
8330 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
8331 autosize, use a proposed width to force wrapping for long text.
8334 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8336 * TreeView.cs: Factor in checkboxes = false and state images in
8337 to HitTest. [Fixes bug #363360]
8339 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8341 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
8342 when drawing the selected range.
8345 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8347 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
8348 ResizeRedraw control styles.
8351 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8353 * TreeView.cs: StateImages are basically custom checkboxes, so
8354 factor their size the same as real checkboxes when determining
8358 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8360 * MessageBox.cs: Make the message box wider if the form caption
8361 is longer than the text in the form.
8364 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
8366 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
8368 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8370 * TreeNode.cs: Guard against an NRE when the parent's
8371 StateImageList hasn't been set.
8374 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8376 * SplitContainer.cs: Add SupportsTransparentBackColor and
8377 OptimizedDoubleBuffering control styles.
8380 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8382 * Application.cs: For the app data paths and the registry key paths,
8383 ensure they are created before returning them to the user.
8386 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8388 * Application.cs: Guard against an NRE in CompanyName and
8391 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8393 * Application.cs: For CompanyName, ProductName, and ProductVersion,
8394 make sure we handle all three cases correctly: attribute is present,
8395 attribute is present but is an empty string, and attribute is not
8398 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
8400 * PropertyGridView.cs:
8401 - Fix a NRE that caused a test failure
8402 - Another performance improvement - cache the standard values
8405 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
8407 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
8410 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
8412 * PropertyGridView.cs: Fix a big performance bug.
8414 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
8416 * SelectionRange.cs: Apply patch from Andy Hume to make
8417 constructor behavior more accurate. [Fixes bug #362117]
8419 2008-02-19 Andreia Gaita <avidigal@novell.com>
8421 * Control.cs: Added a new flag is_disposing to track if the
8422 window is currently in the process of being disposed of.
8423 This is used so that, when firing visibility changes triggered
8424 by unparenting controls during Dispose, the control doesn't
8427 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
8429 * ComboBox.cs: Set height to preferred height when the handle
8430 is created. [Fixes bug #360862]
8432 2008-02-18 Andreia Gaita <avidigal@novell.com>
8434 * XplatUIX11.cs: Create FosterParent with border width at 0.
8435 With the previous value of 4, everytime a control got reparented
8436 from parent = null, it's location would be shifted right and
8437 down by 4, since these coordinates would be offset by the
8438 FosterParent's border width.
8440 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
8442 * Control.cs: During diposing firstly remove ourselfes from
8443 the parent and *then* destroy our handle, because removing
8444 ourselfes from the parent controls collection causes
8445 VisibilityChange, etc events, which require a handle and end
8446 up recreating the control.
8448 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
8450 * GridEntry.cs: Set expanded state before notifying that the
8451 expansion has taken place.
8452 * PropertyGridView.cs:
8453 - Set the propertygridtextbox text to the selected
8454 StandardValue before proceeding to setting it.
8455 - Scrolling bugfixes.
8457 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
8460 - Fix ValueText to not return null.
8461 - Fix conversion error reporting to actually happen.
8462 * PropertyGridView.cs: Set entry only if the text has changed.
8465 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
8468 - Fix handling of a null current value.
8469 - Swallow editor exceptions.
8472 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
8474 * PropertyGrid.cs: Clear current items first thing before
8475 repopulating subitems.
8477 - Handle null StandardValuesCollection.
8478 - Mark as not editable if there is no PropertyDescriptor and
8479 if the Converter cannot convert from string.
8480 [Part of fix for bugs #360666 and #358332]
8482 2008-02-15 Luke Page <luke.a.page@gmail.com>
8483 * MaskedTextBox.cs: Now skips non editable characters after a
8484 character has been entered and we are progressing to the next
8485 position in the MaskedTextBox.
8487 2008-02-15 Luke Page <luke.a.page@gmail.com>
8488 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
8489 that it changes the selection rather than just repositioning the
8490 cursor. Fixes Bug #360873.
8492 2008-02-15 Luke Page <luke.a.page@gmail.com>
8493 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
8494 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
8495 correctly. See #359330
8497 2008-02-15 Andreia Gaita <avidigal@novell.com>
8499 * XplatUIX11.cs: If the handle is null when posting a message, use the
8500 current thread queue to post instead. Fixes #332409
8502 * SendKeys.cs: Slight optimization
8504 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
8506 * PropertyGrid.cs, PropertyGridView.cs:
8507 Fix multiple scrolling and sizing issues.
8510 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
8512 * PropertyGridView.cs: Ensure that drop down editors are shown
8513 in the WorkingArea of the screen.
8516 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
8518 * GridEntry.cs: Fail silently when UITypeEditor is missing.
8521 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8523 * Binding.cs: Implement 2.0 DataSourceNullValue property.
8525 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
8527 * PropertyGridView.cs:
8528 - Clear the controls in the drop down form after it is hidden.
8529 - Fix Width sizing of the dropdown editors to match MSFT.
8531 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
8533 * PropertyGridView.cs:
8534 - Fix height for drawing the grid entry
8535 text value, so that it clips multiline text properly.
8536 - Fix unfocusing to match MSFT.
8538 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
8540 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
8541 Fixes a bug where on repopulation after value changed items become
8544 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8546 * Binding.cs: For the 2.0 profile, look for a
8547 'PropertyChanged' event in the target control, and add checks for
8548 DataSourceUpdateMode property to change -or not- the data source
8549 from validation/control property change.
8551 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
8553 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
8554 not compare struct with null in 2.0).
8556 2008-02-10 Luke Page <luke.a.page@gmail.com>
8558 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
8559 updates the provider and if not using a provider, uses the internal document
8560 class implementation of password char. Also when showing text, uses display string
8561 from the provider, instead of the actual text.
8563 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8565 * Binding.cs: Ooooops, forgot to take into account the data_source
8566 and binding_member_info null case (it was breaking the Binding tests).
8568 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8570 * Binding.cs: Implement support for data source changes exposed by
8571 'PropertyNameChanged' events, and update the control property as
8574 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8576 * Binding.cs: Implement 2.0 WriteValue method.
8578 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
8580 Commit patch from James Purcell for better AutoScale implementation:
8582 * ScaleControl should call GetScaledBounds with the control's total size rather
8583 than client size. GetScaledBounds should handle ignoring the borders in its
8584 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
8585 (for the most part they just call the base code now since that is fixed).
8586 * Added ScaleChildrenInternal to allow controls to disable scaling of children
8587 without having to override ScaleChildren (since none of .NET's controls do).
8588 This is required for most controls in Mono that have scrollbars to prevent the
8589 scrollbars from being moved/resized.
8590 * Nested ContainerControls can have a different scale mode than their parent.
8591 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
8592 designer produce different results both of which look incorrect).
8593 * Default AutoScaleMode for ContainerControl should be Inherit.
8594 * Simplified workaround for ComboBox scaling issue.
8595 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
8596 1.0 style auto scaling should scale the whole control's size instead of
8597 ignoring the borders (except for Form) and the rounding is done differently to
8598 preserve control alignment.
8599 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
8601 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
8602 * CurrentAutoScaleDimensions should round the estimated character width instead
8604 * ListBox's GetScaledBounds should always use the height it was set to instead
8605 of the height that was passed in. This prevents rounding errors from
8606 accumulating quickly with IntegralHeight.
8609 2008-02-08 Andreia Gaita <avidigal@novell.com>
8611 * Form.cs: Add a null check (darn it).
8613 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
8615 * MdiClient.cs: Make sure the requesting form actually owns the
8616 control menu items before removing them. Also, use
8617 Suspend/ResumeLayout when adding or removing items so we only
8621 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
8623 * Control.cs: Guard against an NRE in ShowFocusCues.
8626 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8628 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
8629 property, as well as stubbing DataSourceUpdateMode.
8631 2008-02-08 Andreia Gaita <avidigal@novell.com>
8633 * Form.cs: When closing forms, get focus back to the active control of the
8634 active form. [Fixes #341314, corner case]
8636 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8638 * MdiClient.cs: After we move the scrollbars, invalidate the NC
8639 area, so any old scrollbar artifacts are cleaned up.
8642 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8644 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
8645 for our menus, display that control box menu instead of the 1.1
8648 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8650 * MdiControlStrip.cs: Add property to access the mdi form tied to
8652 * MdiClient.cs: Be smarter about removing and adding toolstripitems
8653 to the implicitly merged menu. Every time we clicked the form, items
8654 were getting removed and the re-added, causing the form to jump around
8655 as the menu resized.
8657 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8659 * MdiClient.cs: Make sure the NormalBounds always gets set. It
8660 was being reset by the implicit menu merge for menustrips.
8663 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8665 * Form.cs: Don't do the previous change when WindowState = Normal,
8666 or it messes up where the window is placed. Fixes test failure.
8668 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8670 * Form.cs: When becoming visible, if we are an MDI child, call
8671 SetWindowState with a dummy old_state so that changes will actually
8673 [Fixes the 2nd part of bug #325473]
8675 2008-02-07 Andreia Gaita <avidigal@novell.com>
8677 * Control.cs: Reset properties to their pre parent-change values in case
8678 the new parent == null (in which case we're basically removing the control,
8679 and don't want any events fired due to fake property changes)
8682 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
8684 * PropertyGridView.cs:
8685 - Refactor SetValue to allow setting the value
8686 when a custom editor is used, but the entry is not editable.
8687 - Remove the custom editor control on CloseDropDown.
8690 2008-02-06 Andreia Gaita <avidigal@novell.com>
8692 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
8693 reflection only on 1.1, this property is public on system.drawing on 2.0.
8696 2008-02-06 Andreia Gaita <avidigal@novell.com>
8698 * WebBrowser.cs: Do a normal page refresh by default.
8700 2008-02-05 Andreia Gaita <avidigal@novell.com>
8702 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
8703 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
8704 platforms. Fixes #359036
8706 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
8707 platform-specific flags.
8709 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8711 * Binding.cs: Add 2.0 BindableComponent property - just return control
8714 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
8716 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
8717 Jonathan for this patch. Fixes #358442.
8719 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
8721 * Form.cs: If we change the active MDI child form, let the others
8722 know they need to repaint their title bar so it will appear inactive.
8723 [Fixes part 1 of bug #325473]
8725 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
8727 * PropertyGridView.cs: Do not trucate custom editors' width
8728 and align them to the left.
8729 [Fixes #358353 and #358349]
8731 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8733 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
8734 Also fix the arguments passed to CollectionChangeEventArgs in the
8737 2008-02-04 Geoff Norton <gnorton@novell.com>
8739 * Hwnd.cs: The conversion to Quartz coordinates happens in
8740 System.Drawing. Removing this translation from here.
8742 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
8744 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
8745 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
8746 GridItemCollection.cs:
8747 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
8749 2008-02-04 Geoff Norton <gnorton@novell.com>
8751 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
8752 SYSKEYUP if any other key has been pressed in the mean time.
8755 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8757 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
8758 when the item in current position is different than 0. Also, save the
8759 item index in the beginning of the operation, instead of getting the
8760 index of the item when the event is actually performed. Lastly clean
8761 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
8765 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8767 * Form.cs: Alt-Minus for MDI children system menu should work
8768 with both the minus keys on the keyboard.
8771 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8773 * Control.cs: Don't invalidate on region change. The WM should
8774 take care of this automagically. Keeps us out of an infinite
8775 paint loop if someone changes the Region in the OnPaint.
8778 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
8780 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
8782 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8784 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
8785 down the MonthCalendar only on F4, not Alt+F4.
8786 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
8789 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8791 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
8792 if its part of a DateTimePicker, else, use the back color.
8795 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8797 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
8800 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8802 * CurrencyManager.cs: When we get a ListChanged event from our source,
8803 always fire our own ListChanged event, as .Net does.
8805 2008-02-03 Luke Page <luke.a.page@gmail.com>
8807 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
8810 2008-02-03 Luke Page <luke.a.page@gmail.com>
8812 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
8813 property. Removed if for richtext property that was always true.
8814 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
8816 2008-02-03 Luke Page <luke.a.page@gmail.com>
8818 * TextBoxBase.cs - commited patch from James Purcell that
8819 correctly sets the FixedHeight control style when the MultiLine
8820 property is changed on a TextBox control. Fixes bug 358229.
8822 2008-02-02 Luke Page <luke.a.page@gmail.com>
8824 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
8825 Fixes bug 351938 - caret is positioned correctly when drawn
8826 and when calculating textual position of caret, no longer
8827 has a NRE in certain situations.
8829 2008-02-01 Geoff Norton <gnorton@novell.com>
8831 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
8832 get that region removed from the paint event.
8833 * XplatUICarbon.cs: Remove the window mapping after disposing of
8834 window. Prevents a crash with handle reuse. Optimize exposes
8835 only onto visible windows (rare; but possible).
8837 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8839 * UpDownBase.cs: Make sure the internal textbox calls the base's
8840 OnMouseDown and OnMouseUp so the textbox will function correctly.
8841 There were notes saying it doesn't chain up, but its an internal
8842 class, so our implementation may differ.
8845 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8847 * ListBox.cs: Fix a logic error and don't process MouseDown
8848 for mouse buttons other than Left.
8850 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8852 * Control.cs: Remove HeightInternal.
8853 * ListBox.cs: Commit patch from James Purcell that correctly
8854 calculates heights for ListBoxen.
8857 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8859 * Label.cs: Apply patch from James Purcell that corrects the
8860 signature of the AutoSize property.
8863 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8865 * ListBox.cs: Don't throw [Mouse]Click events for buttons
8866 other than the left mouse button.
8868 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
8870 * Control.cs: Remove my awesome optimization as it caused some
8871 regressions with control ordering. :(
8874 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
8876 * PropertyGridView.cs: Fix a NRE on double click when there is no
8879 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8881 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
8883 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
8885 * ListBox.cs: Call MouseClick and MouseDoubleClick.
8888 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8890 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
8891 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
8892 instead of Hwnd.bmp_g.
8894 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8896 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
8897 Use the Hwnd one instead.
8899 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8901 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
8903 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8905 * Form.cs: corcompare for RestoreBounds.
8907 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8909 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8911 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8913 * Form.cs: Handle Alt-Minus for MDI children forms.
8914 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8915 Add mnemonics to the control menu.
8918 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8920 * Binding.cs: Initial implementation bits of FormattingEnabled
8921 property and BindingComplete event (2.0).
8922 * BindingCompleteEventArgs.cs: Internal methods for setting error text
8925 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
8927 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
8928 table.Location. [Fixes bug #354672]
8930 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
8932 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
8933 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
8935 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8937 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
8938 of doing all the re-bound work, just invalidate and call SetControlText
8939 to set the updated text of selected item to our textbox.
8942 2008-01-28 Andreia Gaita <avidigal@novell.com>
8944 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
8945 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
8946 missing properties and methods. Add Load, Unload, Error, GotFocus,
8947 LostFocus, Resize, Scroll events (only load and unload are connected)
8949 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
8951 * AccessibleObject.cs: Modified argument names to match MS.
8952 * Button.cs: Modified argument names to match MS.
8953 * BindingContext.cs: Modified argument names to match MS.
8954 * BindingMemberInfo.cs: Modified argument names to match MS.
8955 * ButtonBase.cs: Modified argument names to match MS.
8956 * ComboBox.cs: Modified argument names to match MS.
8957 * Control.cs: Modified argument names to match MS.
8958 * CheckedListBox.cs: Modified argument names to match MS.
8959 * CommonDialog.cs: Modified argument names to match MS.
8960 * DataGrid.cs: Modified argument names to match MS.
8961 * CursorConverter.cs: Modified argument names to match MS.
8962 * ControlPaint.cs: Modified argument names to match MS.
8963 * CheckBox.cs: Modified argument names to match MS.
8964 * ControlBindingsCollection.cs: Modified argument names to match MS.
8965 * BindingSource.cs: Modified argument names to match MS.
8966 * DataFormats.cs: Modified argument names to match MS.
8967 * ContainerControl.cs: Modified argument names to match MS.
8968 * CurrencyManager.cs: Modified argument names to match MS.
8969 * Application.cs: Modified argument names to match MS.
8970 * ContextMenuStrip.cs: Modified argument names to match MS.
8971 * ContextMenu.cs: Modified argument names to match MS.
8972 * BindingManagerBase.cs: Modified argument names to match MS.
8973 * WindowsFormsSection.cs: Fixed line ending.
8975 2008-01-27 Andreia Gaita <avidigal@novell.com>
8977 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
8978 detecting that the dropdown toolwindow is hidden. EndLoop outside the
8981 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
8983 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
8984 MS. Code formatting.
8986 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8988 * Binding.cs: Don't avoid the Format event if the control
8989 property type is object. Also, if the value retrieved by
8990 the data source is null _and_ the control proeprty type
8991 is object, return Convert.DBNull (match .Net).
8992 Fixes part of #324286.
8994 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8996 * ListControl.cs: Since we are getting two BinginContextChanged events
8997 for the same binding context instance (when the control is added to
8998 form, and when the form is actually shown), take it into account only the
8999 first time for a given binding context instance.
9000 Fixes part of #324286.
9002 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
9004 * PropertryGridView.cs: Ops.
9006 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
9008 * PropertyGridView.cs: Close dropdown form if the owner form is
9012 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
9014 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
9015 RootGridEntry.cs, CategoryGridEntry.cs:
9016 PropertyGrid rewrite.
9017 - Rewrite all of the control logic in PropertyGrid.
9018 - Rewrite all of the ComponentModel logic in GridEntry.
9019 - Rewrite all UI work in PropertyGridView.
9020 - Many bugfixes, etc.
9022 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
9024 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
9025 when all contained controls are autosize or dock-fill. Also take into
9026 account when the total percentage of column/row sizes is not 100%.
9029 2008-01-24 Andreia Gaita <avidigal@novell.com>
9032 - Save a reference to the IDocument in the instance and
9033 use that one instead of going to WebHost.Document; the document that the
9034 WebHost returns might not be the right one (in case of frames).
9035 - Use the hashcode returned from the IDocument interface.
9036 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
9037 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
9038 LinkColor, Url, VisitedColor, Window
9041 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
9042 set_Attribute, NextSibling, Parent, TagName, AppendChild,
9043 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
9044 SetAttribute, Equals, equality operators.
9045 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
9046 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
9048 * HtmlElementCollection.cs: Change implementation to use a generic
9049 collection. Implemented Enumerator and CopyTo
9051 * HtmlHistory.cs: Add constructor, no implementation yet.
9053 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
9054 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
9055 Equals, equality operators.
9057 * HtmlWindowCollection.cs: Implemented.
9059 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
9060 has been deprecated).
9062 * WebBrowserBase.cs: Use Completed event to track document loading
9063 (Navigated has been deprecated)
9065 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
9067 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
9068 level MenuItems do not respect tabs.
9071 2008-01-23 Geoff Norton <gnorton@novell.com>
9073 * XplatUICarbon.cs: Ensure that windows are created in their initial
9074 FormWindowState. Finished fixing Fullscreen windows on Carbon
9076 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9078 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
9079 be used as grab_control. Also save status of capture before show ContextMenu
9080 and restore it after close.
9082 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9084 * Control.cs: Internal FindRootParent method added to return high control
9087 2008-01-23 Geoff Norton <gnorton@novell.com>
9089 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
9090 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
9091 it work again. Handle HITTEST events.
9093 2008-01-23 Geoff Norton <gnorton@novell.com>
9095 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
9096 a crash in certain cases. Support for fullscreen windows in certain cases.
9098 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
9100 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
9103 2008-01-23 Geoff Norton <gnorton@novell.com>
9105 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
9107 2008-01-23 Geoff Norton <gnorton@novell.com>
9109 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
9111 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9113 * SplitContainer.cs: Remove unused declarations.
9114 * Binding.cs: Remove unused declarations.
9116 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9118 * Form.cs: Remove unused declaration of 'active' in Activate method.
9119 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
9120 prevent compilation warnings.
9121 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
9122 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
9123 * Bindings.cs: Remove unused formatting_enabled declaration.
9124 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
9126 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
9128 * PropertyGridView.cs: Remove usused 'ex' declaration.
9129 * DataGridView.cs: Remove unused declarations.
9131 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9133 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
9135 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
9136 to Control class, it makes possible to grab menu to controls that can't
9137 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
9138 WmMouseMove removed since it was used only to track menu events.
9141 - Moved all active_tracker stuff from Form.
9142 - ProcessActiveTracker added to prevent code duplicity, now mouse events
9143 can call this method instead of reimplement all necessary code handle for
9145 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
9149 - Remove special handle to ToolStripOverflow, now we can grab menu to
9150 controls that can't reach Form using parent tree.
9151 - Change type of grab_control from Form to Control.
9153 2008-01-22 Geoff Norton <gnorton@novell.com>
9155 * TextBoxBase.cs: Split up the sizing of controls and placing of
9156 controls. Fixes a bug where scrollbars in Reflector could be sized
9157 wrong and have non-working thumbers.
9159 2008-01-23 Geoff Norton <gnorton@novell.com>
9161 * XplatUI.cs: Refactor environment variables to default support to the
9162 Carbon driver on the Mac.
9164 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9166 * Label.cs: Uses new LabelPainter for drawing operations.
9167 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
9168 * Theme.cs: DrawLabel and LabelDefaultSize removed.
9170 2008-01-22 Geoff Norton <gnorton@novell.com>
9172 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
9174 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
9176 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
9177 through the normal flat button code and don't draw the checkbox glyph.
9178 * Theme.cs: Button->ButtonBase signature change.
9181 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
9183 * LinkLabel.cs: Uses new class LinkLabelPainter.
9185 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
9187 * MessageBox.cs: Adjust right border space, we don't need to add
9188 "space_border*2" two times.
9190 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
9192 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
9193 becomes a wrapper around Padding.
9194 [Fixes a part of bug #354676]
9196 2008-01-22 Geoff Norton <gnorton@novell.com>
9198 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
9199 acquired. Also ensure the buffer is large enough to grab the header
9200 we need on linux boxes.
9202 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
9204 * Control.cs: Implement a custom enumerator so people can delete
9205 from the Controls collection while in a foreach.
9208 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
9210 * PropertyGridView.cs: Fix focusing behavior:
9211 - Tab should focus the grid text box.
9212 - Clicking on the labels shouldn't focus the grid text box.
9214 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
9216 * PropertyGridView.cs: IsValueTypeGridItem should return true
9219 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
9221 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
9222 - Renamed GridEntry.SelectedObjects to TargetObjects to better
9223 reflect the property name role.
9224 - PropertyGrid.GetTarget is not required as the target is known
9226 - Setting values will handle value types as a special case now and
9227 populate them up in the chain.
9230 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
9232 * Hwnd.cs: Create a public property for the Graphics we keep around.
9234 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
9236 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
9237 when the current object selection changes.
9238 Fixes failing test SelectedObject_Null2.B5.
9240 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
9242 * PropertyGrid.cs: Process Browsable properties with
9243 DesignerSerializationVisibilityAttribute.Content as being expandable.
9244 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
9245 will not be expandable. We should be nested components-friendly now.
9247 2008-01-21 Andreia Gaita <avidigal@novell.com>
9249 * WebBrowserBase.cs: Check if control was loaded properly,
9250 don't bind if it wasn't.
9252 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
9253 GetElementFromPoint, equality operators, OpenNew, Write.
9254 Remove extra set_Body
9256 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
9258 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
9259 that makes our AutoScale* stuff more tolerant to different orders
9260 of being set. [Fixes bug #354669]
9262 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
9264 * PropertyGridView.cs, PropertyGridTextBox.cs:
9265 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
9266 [Fixes #339005 and #348209]
9268 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
9270 * PropertyGridView.cs: Hide the grid text box before adjusting it
9271 for the newly selected GridItem.
9274 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
9276 * Form.cs: Give MDI children the opportunity to cancel the parent form
9277 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
9278 properly for both the parent and child.
9279 * Application.cs: Signature of internal method changed, pass the previous
9283 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
9285 * PropertyGridView.cs: Set the property value only if it has changed.
9288 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
9290 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
9291 If the mouse hasn't actually moved, ignore these messages so the currently
9292 highlighted menuitem isn't reset to the one under the mouse.
9295 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
9297 * PropertyGridView.cs: When the property changes Invalidate the GridItem
9298 in order for the properties with UITypeEditor.GetPaintValueSupported == true
9299 to reflect the change visually.
9302 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
9304 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
9305 to 2.0 button drawing.
9306 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
9307 the button text is tall enough for one line. LineLimit says it will
9308 always draw at least one line, but it is a lie.
9311 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
9313 * XplatUIStructs.cs, X11Keyboard.cs :
9314 added some more VK_* keys to be handled.
9316 2008-01-16 Andreia Gaita <avidigal@novell.com>
9318 * Control.cs: Check if there is a container before setting or getting
9319 the validation flag.
9321 2008-01-16 Andreia Gaita <avidigal@novell.com>
9323 * ContainerControl.cs: Add flag to track if a control cancels validation,
9324 so we don't fire click events.
9327 - (HandleClick) Check if validation was cancelled before firing the click
9328 events (doubleclicks are fired, but not clicks)
9329 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
9330 ContainerControl.set_ActiveControl, but in the case of non-selectable
9331 controls, like a Label, activecontrol is not set.
9333 * ButtonBase.cs: Only fire clicks if validation passes.
9337 2008-01-16 Geoff Norton <gnorton@novell.com>
9339 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
9342 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
9344 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
9345 SelectedPath, just display the default dialog instead of crashing.
9348 2008-01-16 Geoff Norton <gnorton@novell.com>
9350 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
9351 AddExpose instead of trusting apples compositing manager which doesn't
9352 work for our use case. Remove some dead code causing warnings and
9353 redecorate some other code to prevent warnings.
9355 2008-01-16 Geoff Norton <gnorton@novell.com>
9357 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
9358 carbon signals us to redraw. Fixes another portion of the flickering bug
9360 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
9362 * Form.cs: Prevent the MdiParent property to be set when value is the same
9363 as value already set. Fixes bug #328019.
9365 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
9367 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
9368 it prevents NRE when closing mdi child windows. Fixes bug #325211.
9370 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
9372 * InternalWindowManager.cs: Invalidade close button after mouse up when
9373 mdi form is prevented to close.
9375 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
9377 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
9378 thanks to Andy Hume. Fixes bug #325433.
9380 2008-01-16 Andreia Gaita <avidigal@novell.com>
9382 * LinkLabel.cs: Reset focused_index when resellecting the control.
9385 2008-01-15 Geoff Norton <gnorton@novell.com>
9387 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
9390 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
9392 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
9395 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
9397 * ContainerControl.cs: Setting AutoScaleMode to anything should set
9398 Form.AutoScale to false.
9399 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
9400 AutoScaleBaseSize should be changed on Font change unless it has been
9404 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
9406 * MenuAPI.cs: On instance of MenuTracker check if source control is
9407 ToolStripOverflow and use properly method to find form.
9410 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
9412 [Fixes bug #323241 Transparent toolbar support]
9414 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
9417 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
9418 defined in control style to mimic win32 behavior.
9420 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
9421 it will be transparent.
9423 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
9425 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
9426 CreateParams for ToolBar controls.
9428 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
9430 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
9431 FixedToolWindow, SizeableToolWindow, or None for border styles have
9432 different minimum sizes than regular forms. Implemented to fix
9433 regression in PDN with toolbox being too wide.
9435 2008-01-14 Andreia Gaita <avidigal@novell.com>
9437 * HtmlElementCollection.cs: Implemented
9439 * HtmlElement.cs: Implemented:
9447 * HtmlDocument.cs: Implemented GetElementsByTagName.
9449 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
9451 * Screen.cs: Stub BitsPerPixel to always return 32.
9453 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
9455 * Form.cs: Implement RestoreBounds.
9457 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
9459 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
9460 Sebastien and his fabulous magical problem-finding machine:
9461 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
9462 respect the value set.
9464 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
9466 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
9467 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
9469 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9471 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
9472 messages (to match .Net), we need to remove the capture ourselves.
9474 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
9476 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
9477 will process the message and close our window.
9480 2008-01-10 Geoff Norton <gnorton@novell.com>
9482 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
9483 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
9486 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
9488 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
9491 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
9493 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
9494 Linux doesn't care, having a minimum matches MS and keeps the window
9495 from becoming too small to use window decorations.
9498 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
9500 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
9501 ShowFocusCues. Make focus rectangles fit the text instead of the whole
9502 control. [Fixes bug #325419]
9504 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
9506 * ComboBox.cs: Guard against an NRE if the user open a new form from a
9507 SelectedIndexChanged event. This closes the combobox dropdown, and we
9508 were trying to dispose it. [Fixes bug #352830]
9510 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
9512 * Control.cs, Form.cs: Implement the necessary semantics for
9513 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
9514 to determine if a focus rectangle should be drawn.
9515 * PropertyGrid.cs: Fix property visibility to match override.
9516 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
9518 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
9520 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
9523 2008-01-09 Geoff Norton <gnorton@novell.com>
9525 * XplatUICarbon.cs: Scroll windows in the correct direction.
9527 2008-01-09 Geoff Norton <gnorton@novell.com>
9529 * XplatUICarbon.cs: Track all created utility windows so we can hide them
9530 when the app is deactivated or spaces is enabled.
9532 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9534 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
9535 extra separation pixel for the label rect origin if SmallImageList is
9536 null, and thus we don't need that separation between icon and label
9538 Patch by Ernesto Carrea.
9541 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
9543 * StatusStrip.cs: Invalidate after completing a layout. The base
9544 OnLayout does this, but we don't call the base.
9545 * ToolStripItem.cs: Revert the previous change to invalidate after
9547 [Fixes bug #351341 better.]
9549 2008-01-07 Geoff Norton <gnorton@novell.com>
9551 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
9552 not a notification to exit the application. Listen for WM_QUIT
9555 2008-01-07 Andreia Gaita <avidigal@novell.com>
9557 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
9559 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
9561 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
9562 so it can repaint at the correct location.
9565 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9567 * ListControl.cs: SelectedValue should return a null value if
9568 SelectedIndex is -1. Also, when setting it, it should throw an
9569 ArgumentNullException if the value is null, as well as taking
9570 into account the String.Empty value, instead of ignoring it (we have
9571 tests for that now).
9572 Fixes part of #324286.
9574 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
9576 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
9577 SelectionStart is updated after pressing enter. Fixes bug #351918.
9579 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9581 * TextControl.cs: Revert a piece r92316 that prevented the fix
9582 from working when there were multiple tags in the text box.
9585 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9587 * TextControl.cs: Apply patch from Luke Page that prevents an
9588 NRE when determining the beginning of a paragraph.
9591 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9593 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
9594 caret gets moved with clicking away from a selected block of
9595 text. Fixes bug #351885.
9597 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9599 * TextControl.cs: Apply patch from Luke Page that takes line
9600 alignment into account for mouse selection, so that center and
9601 right aligned text can be selected.
9604 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9606 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
9607 issues after loading an RTF file by using the correct line feeds.
9610 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9612 * TextControl.cs: When deleting multiple line selections, we need
9613 to invalidate every line beginning at the first line of the selection.
9614 Patch from Luke Page fixes bug #351791.
9616 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9618 * ListControl.cs: When getting a CurrencyManager.PositionChanged
9619 event, don't set SelectedIndex if the number of items is 1. This is
9620 because, for the first item, PositionChanged is fired _before_
9621 ItemChanged (the place where we actually populate the items), and
9622 leave us in a temporary invalid state (since items collection is
9626 2008-01-04 Geoff Norton <gnorton@novell.com>
9628 * XplatUICarbon.cs: Create native toolwindows instead of
9629 the managed drawing ones.
9631 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
9633 * LineTag.cs: If the line doesn't have any characters, return
9634 0 for GetCharIndex. Fixes an AOORE exception after certain
9635 caret movements. Fixes bug #351683. Patch by Luke Page.
9637 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
9639 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
9640 is hit when there is selected text, only the selected text gets
9641 deleted, not the character in front of the selection as well.
9644 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9646 * ComboBox.cs: When the values are displayed, calculate the
9647 ComboListBox scrollbar's LargeChange based on the visible area's
9648 height and the actuall ItemHeight, instead of calculating it
9649 based on MaxDropItems value, since it's not used by our _current_
9653 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
9655 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9656 Patch from Luke Page that fixes issues with font colors and styles
9657 not showing up in a readonly RichTextBox. Fixes bug #324354.
9659 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
9661 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
9662 from Luke Page. This one fixes bug #349926.
9664 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9666 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
9667 an item in the IBindingList source changes with
9668 ListChangedType.ItemAdded. Ignore for now firing the event for other
9669 changes, since we want to have tests for those cases as well.
9671 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
9673 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
9676 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
9678 * TextBoxTextRenderer.cs: Implement a cache for measuring each
9679 character. This is effective because the typical usage of a
9680 TextBox is with a limited amount of fonts and characters, and
9681 the current implementation of TextBox measures everything one
9682 character at a time. Another second or two speedup for bug #347238.
9684 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
9686 * Control.cs: Rewrite the Font getter to only query the parent's
9687 Font property once instead of twice. Since this operation is
9688 recursive, the queries were growing exponentially as the control
9689 tree got deeper. Another second or two speedup for bug #347238.
9691 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
9693 * Control.cs: Avoid setting a parent (and more importantly, updating
9694 the zorder of all its children) if the parent is already correct in
9695 WmShowWindow. Decreases the startup time of the test case on bug
9696 #347238 from 35 seconds to 11 seconds.
9698 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9700 * X11Dnd.cs: When the dnd operation has started and we are
9701 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
9702 This is done to match .Net, which doesn't send those messages after
9703 dnd operation was completed/cancelled.
9706 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
9708 * ToolStrip.cs: Previous change should be != null, not == null.
9711 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
9713 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
9714 user may have moved the mouse off the current item during the event.
9716 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9718 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
9719 calling GetItemAt for every MouseMove event by also taking into
9720 account whether any mouse button is pressed (probably dragging);
9721 if so, we can call GetItemAt, and if not, try to not call it
9722 (GetItemAt can be quite expensive when used with a large number of items).
9724 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9726 * ListView.cs: Implement -finally- support for dnd, by calling
9727 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
9729 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
9730 simple calculation of distances for all the items in the owner
9733 2007-12-21 Geoff Norton <gnorton@novell.com>
9735 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
9736 for windows that are originally created as invisible. Fixes missing
9737 main window in paint-mono.
9739 2007-12-21 Geoff Norton <gnorton@novell.com>
9741 * XplatUICarbon.cs: Register our D&D handler. Register our custom
9742 subclass handler for com.novell.mwfview subclassing HIView. Implement
9743 Pasteboard and Dnd methods.
9745 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9747 * ListBox.cs: When we got focus, give focus to first item if there
9748 wasn't any pervious focused item. Also update navigation to depend on
9749 SelectedIndex rather than FocusedItem, just as .Net does.
9752 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9754 * ListBox.cs: Both FindString and FindStringExact methods must do an
9755 case insensitive search, should allow the last valid index to be
9756 passed in the overload taking an initial index, and should also
9757 continue searching from the top back to the specified index when it
9760 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9762 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
9763 redraw issue, and allows RichTextBox to draw colored text even while
9764 disabled or readonly.
9766 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9768 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
9769 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
9770 and doesn't grey text in a disabled RichTextBox.
9772 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9774 * RichTextBox.cs: Apply patch from Luke Page that adds better support
9775 for many RTF commands: quad alignment, separate formatting for blocks
9776 inside groups, and ParDef support. Makes the test case from bug #324589
9779 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9781 * LineTag.cs: Fix an error in the new Draw method that caused
9782 a crash when rendering the document on bug #324589.
9784 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9786 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
9787 TextControl.cs: Apply patch from Luke Page that adds support
9788 for URL links in RichTextBox.
9789 [Fixes enhancement #342516]
9791 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
9793 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
9794 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
9796 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9798 * ListBox.cs: When a key gets pressed, try to find a string
9799 if the key is a character or a digit.
9802 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
9804 * TableLayoutPanel.cs: Remove some unused variables.
9806 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
9808 * DateTimePicker.cs: Commit patch from Luke Page that ensures
9809 we don't end up at an invalid date when we click the up/down
9810 spinner to change the month or year. Fixes bug #348682.
9812 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
9814 * Application.cs: Calling Exit in 2.0 should chain to the
9815 Exit (CancelEventArgs) version so it can be cancelled.
9816 * Form.cs: Create a flag to allow raising the Closing
9817 events to be skipped. We raise them once in Application.Exit
9818 and don't want to raise them again when the Form is actually
9819 closed. [Fixes bug #349073]
9821 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
9823 * ToolStripDropDown.cs: Guard against an NRE when there
9824 hasn't been a mainform set in the application context.
9827 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9829 * ListBox.cs: When SetBoundsCore gets called, besides
9830 calling UpdateScrollBars, update the value of
9831 last_visible_index, since we could need to show more items
9832 than before, and we need to let the paint routines know that.
9835 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9837 * ListView.cs: Add DesignerSerializationVisibility attribute to
9838 InsertionMark property.
9839 * ListViewItem.cs: Add same attribute to Position property.
9841 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9843 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
9846 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
9848 * ThemeWin32Classic.cs: Don't draw the background on a
9849 flat button if there is a background image.
9852 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9854 * ListBox.cs: If we remove the item currently selected,
9855 remove it not only from SelectedItems, but also
9856 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
9857 the items count decreased and focused_item has bigger value than that.
9859 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
9861 * Control.cs: Perform our layout after we resize ourselves
9862 if we had to adjust our AutoSize. Missed commit for bug
9865 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
9867 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
9868 we can provide an implementation of AutoSize.
9871 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9873 * ListBox.cs: Add the internal overload Sort (bool paint),
9874 to indicate whether we actually need a paint or we will
9875 call Refresh ourselves. This way we don't request a paint
9876 _before_ having an updated and valid layout.
9879 2007-12-12 Andreia Gaita <avidigal@novell.com>
9881 * XPlatUIX11.cs: Send paint messages when updating a systray icon
9882 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
9883 properly invalidated.
9886 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9888 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
9889 don't simply assign it to our internal group field, but instead
9890 use our Group property, which should do all the neccessary work
9891 required to support groups. Fixes an issue reported to me (mail) by a
9892 guy using this new feature.
9894 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
9896 * Control.cs: Use Scale instead of ScaleControl to ensure the
9897 whole hierarchy gets scaled.
9900 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
9902 * DateTimePicker.cs: Don't set the internal MonthCalendar's
9903 Parent property. Doing this causes the control to be hosted by
9904 the Form instead of being a popup window.
9907 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
9909 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9910 at an index higher than Count, just use Add instead of Insert.
9913 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
9915 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9916 DrawPictureBox, this is handled by Control.PaintBackground.
9919 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
9921 * MenuAPI.cs: When process menu keys return true by default only if menu is
9922 active. Fixes bug #342892.
9924 2007-12-09 Andreia Gaita <avidigal@novell.com>
9926 * Control.cs: check if windows are actually mapped before
9927 trying to zorder. Fixes #342509, #346955
9929 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9932 * ListViewInsertionMark.cs:
9933 * ThemeWin32Classic.cs: Implement the drawing side of the
9934 new 2.0 ListView.InsertionMark property.
9936 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
9938 * CurrencyManager.cs: Silence some debug spew.
9940 2007-12-07 Geoff Norton <gnorton@novell.com>
9942 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
9943 masks for our children as well as siblings to avoid having to query
9944 Quartz for this information.
9945 * XplatUICarbon.cs: Implement a delegate based system to pass
9946 information to System.Drawing. Implement Async methods. Remove
9947 the hack for the resize thumb and imlpement a transparent Grow Box.
9948 Rework the messaging system to proplery create window's and messages,
9951 2007-12-06 Andreia Gaita <avidigal@novell.com>
9953 * X11Keyboard.cs: Use Xutf8LookupString to support international
9954 characters under alternate codepages. Patch from #340878
9956 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9958 * ListView.cs: When doing layout computations, set position in the
9959 ListView instances (we cache the position just as .Net does).
9960 * ListViewItem.cs: New internal setter method for Position. Also set
9961 position field as also available in 1.1, since we are going to use it
9962 now in the common case.
9964 2007-12-06 Andreia Gaita <avidigal@novell.com>
9966 * Control.cs: When removing controls, get the actual container
9967 to notify about active control changes. Fixes 341314.
9969 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9971 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
9973 2007-12-05 Andreia Gaita <avidigal@novell.com>
9975 * Control.cs: When updating the zorder, ignore windows that are not
9976 mapped. Fixes #342509
9978 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9980 * ListViewItem.cs: Actually implement serialization on this class.
9982 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
9984 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
9985 LinkCollection. Spaces to tabs, and removed extra tabs.
9987 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9989 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
9990 tests to fail (hopefully).
9992 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
9994 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
9995 the image margin so custom renderers can correctly place it.
9997 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
9999 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
10000 so custom renderers can correctly place it.
10002 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
10004 * Application.cs: Let WM_CHAR messages flow through to controls
10005 hosted in Strips. [Fixes bug #343972]
10007 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
10009 * ToolStripManager.cs: Guard against an NRE I ran into.
10011 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
10013 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
10014 a Link is manually added to the Links collection, we need to set
10015 its owner, so it can invalidate properly.
10016 [Fixes bug #344012]
10018 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10020 * ListView.cs: When changing ListViewItem.Position (which calls
10021 ListView.ChangeItemLocation), invalidate not only the area
10022 corresponding to the main item, but also to the area occupied
10023 by the items being moved.
10025 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10027 * ListView.cs: When changing the position of a given item,
10028 don't use item bounds, but item areas (which includes the item spacing
10029 between them). Also, use first/last position if the requested
10030 position is outside bounds (as .Net does). Invalidate the previous and
10031 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
10032 in a specific position, instead of directly accessing Items collection
10033 (this is done to get the right item - remember an Item can have a
10034 different position in the grid than in the Items collection).
10036 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
10038 * MessageBox.cs: Calculate text area instead of just top left, this rect
10039 area will be used in DrawString. Fixes bug #343364.
10041 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
10043 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
10044 screen width. Partially fixes bug #343364.
10046 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
10048 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
10049 code inside recalculate, it makes code more simple.
10051 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
10053 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
10054 between update or add icon. Fixes bug #324344.
10056 2007-11-21 Andreia Gaita <avidigal@novell.com>
10058 * XPlatUIX11.cs: Do not treat tool windows as if they have no
10059 window manager, since that stretches the drawing area to include
10060 the window decorations, and they get hidden. Reverts r84444 and fixes
10061 #335849 and #342790 (mdi and pdn3 regression)
10063 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10065 * ListView.cs: When setting focused item, try to give focus to the
10066 previous one _only_ if the previous one remains valid.
10069 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
10071 * Application.cs: Revert r89650, as it broke a common case to fix
10072 an obscure case. Fixes bug #342606.
10074 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
10076 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
10078 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
10080 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
10081 alignment. [Fixes #324228]
10083 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
10085 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
10086 [Fixes bug #342123]
10088 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
10090 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
10091 it prevent problems when empty captions. [Fixes #342141]
10093 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
10095 * Label.cs: Use Size instead of None. Fixes bug #342077.
10097 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10099 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
10101 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
10103 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
10104 but there isn't a MdiContainer.
10105 [Fixes bug #342358]
10107 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
10109 * TextControl.cs: Don't recalculate document if the recalc_start and
10110 recalc_end hasn't changed.
10111 [Fixes bug #342505]
10113 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
10115 * DataGridViewTextBoxCell.cs: Removed CWL.
10117 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10119 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
10121 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
10123 * TextControl.cs: Missed some code for bug 341534 to trigger a
10124 recalculation when the font changes.
10126 2007-11-16 Andreia Gaita <avidigal@novell.com>
10128 * Control.cs: When updating the zorder, check if the child to update is
10129 the same control that is set to always be on top (i.e., scrollbars), and
10130 just put it on top directly. Fixes BadMatch error on pdn3
10132 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10134 * ListView.cs: Throw the needed exceptions for FindNearestItem.
10136 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
10138 * Control.cs: Don't perform a new layout when a label changes its text,
10139 cause label handles its own autosizing.
10140 [Fixes bug #342077]
10142 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10144 * ListView.cs: Implement 2.0 FindNearestItem methods.
10146 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
10148 * ToolStripPanel.cs: Make Join at least add the control to the panel,
10149 even if the rest of what Join does isn't supported. Add some more
10150 support for vertical toolbars.
10151 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
10152 [Fixes the application breaking parts of bug #341998]
10154 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
10156 * ToolStripItem.cs: When determining if we have a check/image margin,
10157 we need to look at ShowCheckMargin as well as ShowImageMargin.
10159 2007-11-15 Geoff Norton <gnorton@novell.com>
10161 * XplatUIOSX.cs: Rename to...
10162 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
10163 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
10165 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
10167 * KeysConverter.cs: The default values should be an array of Keys, not
10168 strings. Also, the array has more values for 2.0.
10169 [Fixes bug #341851]
10171 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
10173 * Application.cs: Change ExecutablePath to use
10174 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
10175 [Fixes bug #323552]
10177 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
10179 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
10180 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
10181 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
10182 be ignored. Create a new GetLineEnding that can specify which types of
10183 line endings to look for. On Insert, only create new lines for \n and \r\n.
10184 [Fixes bug #324274]
10186 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
10188 * TextBoxBase.cs: As we loop through each line changing the font, tell
10189 the document that the line needs to be recalculated. Fixes bug #341534.
10191 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
10192 [Another round of refactoring]
10193 * Line.cs: Add DeleteCharacters.
10194 * LineTag.cs: Add Delete.
10195 * TextBoxBase.cs: Update to use new methods.
10196 * TextControl.cs: Refactor the Delete* methods.
10198 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
10200 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
10201 the patch. [Fixes #324856]
10203 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10206 * ListViewItem.cs: Add an initial implementation of
10207 2.0 ListViewItem.Position getter.
10209 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10211 * ListView.cs: Add a reordered_items_indices array, to allow us
10212 to have a different sorting than that of Items (the sorting in Items
10213 could not match the actual sorting in screen). This is needed to
10214 implement a pair of 2.0 features.
10215 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
10216 actual position in the ListView grid, since it could have a position
10217 different than its Index (position in ListViewItemCollection).
10219 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
10221 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
10222 not draw partial lines.
10223 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
10224 LineLimit flag from the base is preserved.
10225 Fixes the windows part of bug #338965.
10227 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
10229 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
10230 so that it can be canceled in KeyPress.
10233 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10235 * ListView.cs: In ItemControl, reset mouse-handling related
10236 fields even if we dont' have items (we still should reset them when
10237 we had items but then called Items.Clear). Partially based in a patch
10241 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
10243 * Application.cs: In ProductVersion first try AssemblyFileVersion
10244 before falling back to assembly version. Fixes bug #339787.
10246 2007-11-08 Andreia Gaita <avidigal@novell.com>
10248 * HtmlElement.cs: Implement InnerText setter.
10249 * WebBrowserBase.cs: Implement Navigated event support.
10250 Add flag to track when the browser "document" is ready to be retrieved.
10251 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
10252 Make sure browser document is ready before retrieving it.
10253 Clean up cached objects (document) when moving to a new page through
10254 any of the navigation methods.
10255 Use the new Mono.WebBrowser.INavigation interface to control navigation.
10256 Implement OnNavigated event.
10258 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
10260 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
10261 DrawLinkLabel, this is handled by OnPaintBackground.
10262 Fixes bug #339565, part II.
10264 2007-11-07 Andreia Gaita <avidigal@novell.com>
10266 * Control.cs: Revert r88915. Selecting text on a textbox depends on
10267 getting a Select call on click, so this call needs to be here for now.
10270 2007-11-07 Geoff Norton <gnorton@novell.com>
10272 * OSXStructs.cs: Add the kEventClassApplication constants.
10273 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
10274 application is deactivated otherwise Menu overlays linger on top of
10275 other application windows.
10277 2007-11-07 Geoff Norton <gnorton@novell.com>
10279 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
10280 dont support cursors yet anyways. This allows Reflector to run.
10282 2007-11-07 Geoff Norton <gnorton@novell.com>
10284 * XplatUIOSX.cs: Implement DragSize.
10286 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10288 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
10289 ItemControl, request the focus, as .Net does. This is needed after
10290 Control does not request focus anymore when it receives a
10293 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
10295 * Label.cs: Make DrawImage internal so it can be called from Theme code.
10296 Remove the DrawImage call from OnPaint.
10297 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
10298 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
10299 but before we draw the text for DrawLabel and DrawLinkLabel.
10302 2007-11-05 Andreia Gaita <avidigal@novell.com>
10304 * Control.cs: Remove select call on click. Fixes #325809
10306 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10308 * ListViewItem.cs: Add 2.0 Position property getter.
10310 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10312 * ListView.cs: Add 2.0 BackgroundImageTiled property.
10313 Also, to make it work properly, change item's BackColor and
10314 BackgroundImageLayout as needed.
10315 * ThemeWin32Classic.cs: Don't fill any background rectangle
10316 in ListView.ItemControl when drawing items; just let the Control
10317 base implementation fill it.
10319 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10321 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
10322 as well as adding a custom 'dummy' Converter, as .net does.
10324 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10326 * PropertyGridView.cs: When clicking drop-down button,
10327 select an index in the listbox only if our standard values collection
10328 has one or more items.
10330 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10332 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
10335 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
10337 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
10338 the value is not changed. This ensure a pushed button remains in that
10339 state when clicked again. When switching the value of PropertySort
10340 between Categorized and CategorizedAlphabetical, do not update the
10341 grid items and do not fire a PropertyChangedEvent. When clicking the
10342 sorting buttons, do not modify the PropertySort value when switching
10343 between Categorized and CategorizedAlphabetical but only update the
10346 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
10348 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
10350 * PropertyGrid.cs: Also put Categorized button in pushed state when
10351 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
10352 for help description label.
10354 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10356 * ListView.cs: When calculating the biggest item for a given column,
10357 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
10360 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
10362 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
10363 value for PropertySort on 1.0 profile. PropertySortChanged event
10364 should only be fired on 2.0 profile. Fixed NullReferenceException
10365 in UpdateSortLayout when PropertyGrid contains no items.
10367 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
10369 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
10370 [Fixes bug #338554]
10372 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10374 * ListViewItem.cs: Implement 2.0 IndentCount property.
10376 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10378 * X11Dnd.cs: When sending status in a dnd operation, compare current
10379 effect with the 'allowed' field instead of 'drag_data.Allowed', since
10380 the later is only created when a Winforms application is both the
10381 source and the target, but not when we are the target only.
10382 Fixes part of #324251.
10384 2007-11-01 Geoff Norton <gnorton@novell.com>
10386 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
10388 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
10389 children out of the drawing view on mac.
10390 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
10391 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
10393 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
10395 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
10396 on the non-hosted-control part of it shouldn't do anything.
10397 Fixes part of bug #327498.
10399 2007-11-01 Andreia Gaita <avidigal@novell.com>
10401 * WebBrowserBase.cs: revert previous change, resize can be called anytime
10403 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
10405 * Application.cs: When a toolstrip has the keyboard input loop, let messages
10406 it does not use flow through to controls that are hosted in menus.
10407 Same with mouse clicks.
10408 * Form.cs: Don't close all menus on click if the click is on a
10409 control hosted in a menu.
10410 Fixes part of bug #327498, and part of bug #325969.
10412 2007-10-31 Andreia Gaita <avidigal@novell.com>
10414 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
10416 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
10418 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
10419 Addresses an issue raised in bug #336218.
10421 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
10423 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
10424 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
10426 2007-10-30 Andreia Gaita <avidigal@novell.com>
10428 * ContainerControl.cs: Check if the active control is a
10429 child of a removed control and update active_control accordingly.
10432 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
10434 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
10435 or the MaxDate. Fixed bug #337693.
10437 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
10439 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
10440 after calling SetWindowLong for a form, to force an immediate NC refresh.
10441 Fixes first part of bug #325150.
10443 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
10445 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
10446 simple. Fixes the last part of bug #322668.
10448 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
10450 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
10451 needs to be TopMost as well, or else the MessageBox is under the form.
10452 Patch by George fixes bug #325300.
10454 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10456 * X11Dnd.cs: When starting a new drag operation, reset the static
10457 'dropped' field to false (previously the implementation didn't reset
10458 it and got confused after the first drag).
10461 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10463 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
10464 items instead of re-creating them all. For this purpose we now cache
10465 both CategoryGridEntry items and the GridEntries for the main object's
10467 * GridItem.cs: Make SetParent method abstract.
10468 * GridEntry.cs: Override the SetParent method (already there, but now
10472 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10474 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
10475 depending on its depth (as .Net does). Update the needed values in
10476 MouseDown handler. Also draw the plus/minus rect after the label,
10477 so we don't draw on top of it.
10479 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
10481 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
10482 processed by forms or controls when menu is active. [Fixes #333548]
10484 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
10486 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
10487 parent doesn't have focus. This was causing ToolStripTextBoxes to take
10488 focus on mouse over.
10490 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
10492 * TextControl.cs: Code cleaning, simplifying.
10494 2007-10-24 Geoff Norton <gnorton@novell.com>
10496 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
10497 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
10499 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
10501 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
10502 the cap is maxvalue, not actually 0. [Fixes bug #336218]
10504 2007-10-24 Andreia Gaita <avidigal@novell.com>
10506 * SendKeys.cs: apply jpobst's patch to bug #332409
10508 2007-10-23 Andreia Gaita <avidigal@novell.com>
10510 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
10511 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
10514 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10516 * PropertyGridView.cs: If a property has an UIEditor available,
10517 make the drop-down/editor button available only if the property
10518 is _not_ read only.
10520 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10522 * PropertyGridView.cs: Don't make the grid item textbox
10523 editable when a drop-down control is available, but
10524 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
10525 true. The same bur the color of the grid item value's label.
10527 2007-10-22 Geoff Norton <gnorton@novell.com>
10529 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
10530 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
10531 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
10532 driver. Padd the bottom of all real windows so the resize thumb doesn't
10533 obscure scroll/status bars.
10535 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
10537 * WindowsFormsSection.cs: Implement.
10539 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
10541 * MdiClient.cs: Maximize new active mdi child when a maximized child is
10542 closed see #325434 patch.
10544 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
10546 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
10549 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10551 * PropertyGridView.cs: When showing the textbox for a grid item,
10552 have two local variables to store the read-only and non-editable
10553 status of a grid item (we were previously using just one variable
10554 to do this, when actually they are slightly different).
10555 Fixes part of #325023.
10557 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10559 * PropertyGridView.cs: When showing a drop-down list, try to get the
10560 values using TypeConverter.ConvertTo (to convert to a string). Fixes
10563 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10565 * PropertyGrid.cs: When updating a property and populating sub grid
10566 items, remove the previous ones, and invalidate the specific area.
10567 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
10568 area behind a grid item.
10569 * GridItemCollection.cs: Add an internal Clear method, to allow us to
10570 clean the items if needed (specially for controls implementing
10571 ICustomTypeDescriptor and returning a variable number of properties).
10574 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
10576 * TextControl.cs: Clean up and document the Insert function.
10578 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
10580 * TextControl.cs: Make sure we know our start point for updating the view
10581 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
10584 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
10586 * ListView: Couple of corcompare fixes.
10588 2007-10-17 Geoff Norton <gnorton@novell.com>
10590 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
10591 the title caption of real window.
10593 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
10595 * ErrorProvider.cs: Add the error provider's internal window to a
10596 containercontrol when the parent changes. [Fixes bug #329714]
10598 2007-10-17 Geoff Norton <gnorton@novell.com>
10600 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
10601 When we make a new window; restore the old active window - fixes dialogs.
10603 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10605 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
10606 when modifying a property, and if found then invalidate as
10608 Fixes part of #324865.
10610 2007-10-17 Geoff Norton <gnorton@novell.com>
10612 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
10613 highly experimental. Fixed coordinate translation. Fixed window locations.
10614 Initial support for clipping. Implemented NC areas and menus. Support for
10615 launching from command line from Will Johansson (wjohansson@atacomm.com).
10616 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
10617 wjohansson@atacomm.com)
10618 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
10619 Hwnds now track the existence of all of their children for Mac clipping.
10620 * XplatUI.cs: Re-enabled the native driver on the Mac.
10622 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
10624 * Line.cs: Move the InsertString function to here.
10625 * TextControl.cs: Cleanup some duplicate code, move some InsertString
10626 functionality to Line.
10628 2007-10-17 Geoff Norton <gnorton@novell.com>
10630 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
10632 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
10634 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
10635 always setting value to true.
10636 * Form.cs: When changing AcceptButton, notify new and original button.
10638 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
10640 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
10641 a custom control that implements IButtonControl instead of an actual
10642 button. [Fixes bug #334244]
10644 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
10646 * Form.cs: Change SelectActiveControl to internal, we need to call it in
10649 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
10650 active control when activate a new mdi window.
10652 [Fixes bug #330495]
10654 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
10656 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
10658 [Fixes bug #333617]
10660 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
10662 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
10663 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
10664 so we always recalculate the whole document instead of just the new part.
10665 [Fixes bug #325082]
10667 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
10669 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
10670 when the mouse was to the left of the first character in the line.
10672 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
10674 * TextBox.cs, TextBoxBase.cs: When setting the document's password
10675 character, use the property instead of the variable so that the
10676 UseSystemPasswordChar property is taken into account.
10677 [Fixes bug #333748]
10679 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10681 * FolderBrowserDialog.cs: When a node is right clicked and the "New
10682 folder" contex menu appears, actually add the new folder to it, even
10683 if the node is not currently selected. Still use SelectedNode in case
10684 there wasn't found a node under the pointer.
10687 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10689 * ListViewItem.cs: When retrieving the focused state, the index check
10690 should be done only when ListView is in virtualmode, as it is an
10691 expensive check for normal mode.
10693 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10695 * ListViewItem.cs: Make the focus state information be stored
10696 in the ListView, not in the items. This is done to match the MS
10697 behaviour for items that are not yet part of a ListView control;
10698 besides that, since just one item can be focused at the same time,
10699 we save a little space in our items.
10700 Fixes part of #331643.
10702 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
10704 * ComboBox.cs: When focus is lost, deselect the text. When setting
10705 text of control, select all text. Do not hide selection when control
10706 does not have focus. Fixes bug #333663.
10708 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
10710 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
10711 instead of ArgumentException when SelectionLength is set to negative
10712 value. Added same check to SelectionStart. Code formatting.
10714 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
10716 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
10717 or SelectionStart. Code formatting.
10719 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10721 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
10722 indicating that there was not a previous drag-and-drop operation going
10724 Fixes part of #325071.
10726 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10728 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
10729 AllowedEffect, don't let the drop operation happen.
10732 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
10734 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
10736 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
10738 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
10741 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
10743 * Line.cs: Add a method that finds the tag that contains an x-coord.
10744 * LineTag.cs: Add a method that finds the character at an x-coord using
10745 a binary search, the old way was a linear search.
10746 * TextControl.cs: Change FindCursor to use the above new methods.
10748 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10750 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
10751 value different than AllowedEffect). This should be possible to
10752 indicate that dragging is not possible in some control/area.
10754 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
10756 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
10757 descent internally when font changes instead of outside code being responsible
10759 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
10760 instead of accessing internal variables.
10762 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
10764 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
10765 remove special treatment for ArrangeIcons since it is already arranged.
10767 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10769 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
10770 the Win32 backend uses Color.
10771 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
10772 Refactor to store a Color instead of a Brush for Color.
10774 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10776 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
10777 away. I didn't realize I needed this when I refactored these earlier.
10779 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10781 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
10782 store a Color structure and use the ResPool for back color instead of
10783 holding onto brushes.
10785 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10787 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
10788 [Fixes bug #325592]
10790 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10792 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
10793 to recalculate its size. Fixes a part of bug #331052.
10795 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10797 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
10798 button. Fixes a part of bug #331052.
10800 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10802 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
10804 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
10806 [Fixes bug #330986]
10808 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10810 * TextBoxTextRenderer.cs: Don't make this a static class, as static
10811 doesn't exist in 1.1. (Thanks jb!)
10813 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10815 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
10816 class to allow us to use different backends on different platforms.
10817 Linux uses the current [Draw|Measure]String backend. Windows uses
10818 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
10819 of GDI+. This leads to better looking text and more accurate measurements
10820 on Windows, fixing many of the reported issues.
10821 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
10823 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10825 * FolderBrowserDialog.cs: When running on Windows,
10826 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
10827 since we must match both "C:" and "C:\" forms. A little hackish, but
10831 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10833 * ListView.cs: When calling EndEdit (after editing an item),
10834 create a new instance of LabelEditEventArgs to keep clean the fields
10835 in case we get a new call to BeginEdit; also do Application.DoEvents
10836 to have focus in synch. This is a fix similar to TreeView's #325244.
10838 2007-10-07 Andreia Gaita <avidigal@novell.com>
10840 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
10841 * WebBrowserBase.cs: Added dialog support, calling the
10842 WebBrowserDialogs classes for each specific dialog type.
10844 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10846 * ListView.cs: When the last item is focused and is removed,
10847 move the focus to the previous item (in Items order). This is what MS
10851 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10853 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
10854 instead of the opposite (RemoveAt call Remove). This is a better
10855 approach since we don't need to to a pair of traversals when using
10858 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10860 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
10861 check that the node actually has nodes, and if not, move to the
10862 parent node instead.
10865 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10867 * TreeView.cs: Move the previous change to the general case (to
10868 call Application.DoEvents in cases where the method was called by
10871 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10873 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
10874 call Application.DoEvents. This is neccessary when we get a call to
10875 BeginEdit from an AfterLabelEdit handler, because the focus always
10876 goes to the TreeView, even if we try to give it to our
10877 LabelEditTextBox. The call do Application.DoEvents seems to
10878 synchronize the focus, basically.
10881 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10883 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
10884 should be false. This also removes some nasty recursive paths. Fixes
10887 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
10889 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
10890 state to normal. Also resize window when cascading. Fixes #325433.
10892 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
10894 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
10895 DefaultForeColor, as drawing empty colored lines isn't very useful.
10896 [Fixes the not drawn lines part of bug #324358]
10898 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
10900 * TextControl.cs: Move Line and LineTag classes into separate files to
10901 make things easier to find.
10902 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10903 * RichTextBox.cs: Capitalize LineTag.Length property access.
10904 - This is purely an organizational/formatting change, no logic changed. -
10906 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
10908 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10911 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
10913 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10916 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
10918 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10919 prevent calling of OnBackColorChanged. Fixes #325321.
10921 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
10923 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
10924 because control can be disabled because owner is disabled.
10926 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
10928 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
10929 string.Empty, test failed from previous change.
10931 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
10933 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
10934 is null, not String.Empty. See bug #323038.
10936 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
10938 * TextControl.cs: Change the margins to match MS a little better.
10939 Still not perfect for X11 due to some DrawString differences, but
10940 is still an improvement over the old stuff.
10941 Partially fixes #324467.
10943 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10945 * FolderBrowserDialog.cs: When using MyComputer as
10946 RootFolder, let absolute paths be considered as valid ones. Also, use
10947 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
10948 for Windows compatibility.
10949 Partially fixes #325247.
10951 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10953 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
10954 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
10955 method, since it causes the dialog to not select folders directly
10956 under the root path (when setting SelectedPath property).
10958 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10960 * TreeNode.cs: When calling Expand/Collapse and need to call
10961 ExpandBelow/CollapseBelow respectively, take into account
10962 partially visible nodes (previously Expanding/Collapsing
10963 a partially visible node in the bottom was not updating its +- sign).
10965 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10967 * TreeView.cs: When calling Expand on a TreeNode, and we need to
10968 expand nodes below (ExpandBelow), scroll the entire Viewport
10969 area if the node is above it and not visible (instead of scrolling
10970 the area from node's Bottom, which applies only when the node is
10974 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10976 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
10977 node in the bottom area (as .Net does). This is done to preserve the
10978 scroll position when ExpandAll is called before handle is created for
10979 the 1.1 profile (bottom area, as opposed to top area in 2.0).
10982 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10984 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
10985 bottom area if we are in fact not using the vertical scroll bar.
10988 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
10990 * Control.cs: Comment out a double buffering optimization that doesn't
10991 take into account invalidates created in OnPaint, causing the control
10992 to never be redrawn. It would take quite a bit of work to work around
10993 this, but I left it commented with an explanation for later possible
10995 [Fixes bug #328681]
10997 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
10999 * Control.cs: Ask parent to perform a layout if control is AutoSize and
11001 * RadioButton.cs: Implement GetPreferredSizeCore.
11002 [Fixes bug #328672]
11004 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
11006 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
11009 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
11011 * Application.cs: Move the sync context stuff to Run instead of RunLoop
11012 so that it doesn't get uninstalled on modal forms.
11013 * Control.cs: Install a sync context when a control is created.
11014 * WindowsFormsSyncronizationContext.cs: Create a private static control
11015 to invoke on. This is easier than trying to find a created control we
11017 [Fixes bug #327608]
11019 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
11021 * Application.cs: Install a WindowsFormsSynchronizationContext in the
11022 run loop, and uninstall it when done.
11023 * WindowsFormsSynchronizationContext.cs: Implement.
11024 [Fixes the common case in bug #327608]
11026 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
11028 * DataGridViewCellCollection.cs: Added argument checks for indexers.
11029 Use case-insensitive lookup of column name in indexer. Code
11032 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11034 * TreeNode.cs: When collapsing or expanding a node, check whether its
11035 change will affect the visible area (we were previously doing a
11036 IsVisible check, but that check is not enough since children nodes
11037 could be still visible). Fixes part of #325266.
11039 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
11041 * TreeView.cs: Always select the first node when the TreeView gets
11042 focus if there is no currently selected node.
11043 [Fixes bug #324279]
11045 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
11047 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
11048 node being selected is null.
11049 [Patch from Yves Bastide fixes bug #326858]
11051 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11053 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
11054 whether all the parent nodes are expanded.
11055 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
11056 call RecalculateVisibleOrder if all previous nodes are expanded.
11057 Before that we were doing a IsVisible check, but sometimes the node
11058 is not in the visible area, but _should_already be ready, because of
11059 all previous nodes are expanded. Fixes #325259.
11061 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
11063 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
11064 portion of the item is clicked.
11066 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
11068 * TextControl.cs: Do not tell the system to move the cursor if the
11069 textbox isn't focused. Fixes part of bug #322668.
11071 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
11073 * ComboBox.cs: When there are no items, do not show the dropdown if
11074 the down arrow is clicked. Fixes part of bug #322668.
11076 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
11078 * ToolStripComboBox.cs: Manually set the size of this control in the
11079 constructor, as it doesn't seem to be the same as DefaultSize.
11080 Fixes a failing monobuild test.
11082 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
11084 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
11085 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
11087 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
11089 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
11090 Desktop. This lets it work for people who have moved their desktops
11091 from the default location on windows. For people who have not, both
11092 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
11094 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11096 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
11097 but when the base constructor sets this, the control is null. Set it
11098 again in the constructor. Fixes a failing monobuild test.
11100 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11102 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
11104 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
11107 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11109 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
11110 will handle it themselves.
11111 * ToolStripItem.cs: When deciding what the text of a tooltip should
11112 be, use the Text property instead of the text field.
11113 * ToolStripTextBox.cs: Handle tooltips.
11114 [Fixes bugs #325417 and #325973]
11116 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11118 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
11119 left click. Fixes the easy part of bug #325969.
11121 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11123 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
11124 bug #325406, but set a minimum for StatusStrip to 22 to keep
11125 bug #325390 fixed. I think this minimum would have been figured
11126 up automatically if the grip was actually a ToolStripItem, but it
11129 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11131 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
11132 as this is apparently the actual value used by .Net. Also apply
11133 ItemPadding in Details view only, and decrease the general width padding,
11134 to have only the needed. This should fix #324340 in Windows too.
11136 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11138 * ListViewItem.cs: Don't Invalidate item if parent is inside
11139 a BeginUpdate/EndUpdate block. This prevents to have differences
11140 between the ListView and items state, as well as avoid some exceptions
11142 * ListView.cs: Make 'updating' field internal.
11144 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
11146 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
11147 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
11148 size if appropriate.
11149 Fixes reopened bug #325414.
11151 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
11153 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
11154 * ToolStripItem.cs: Invalidate before and after our new autosize when
11156 Fixes reopened bug #325390.
11158 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
11160 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
11161 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
11164 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
11166 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
11168 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11170 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
11171 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
11174 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
11176 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
11177 item to select when the ToolStrip is selected.
11178 * ToolStripControlHost: Realign the control when the bounds or visibility
11180 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
11181 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
11183 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
11184 base.OnPaint. Was causing text not to be drawn.
11186 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
11188 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
11190 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11192 * TreeView.cs: When creating the label edit text box,
11193 set is initially to Visible = false. This is done to
11194 prevent a confusion in the layout which makes it to lose
11195 focus when shown the first time. Fixes part of #82592.
11197 2007-09-13 Andreia Gaita <avidigal@novell.com>
11199 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
11201 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11203 * ToolStrip.cs: Take Margin into account when calculating preferred
11204 size. Also, allow preferred size to get smaller than the explicit
11206 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
11207 First step towards fixing bug #82747.
11209 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11211 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
11212 full row select background over the plus/minus glyph. Also, turn
11213 off the focus rectangle for full row select since MS doesn't seem
11214 to ever paint it. [Fixes bug #81839]
11216 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11218 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
11219 This was causing keyboard opened dropdowns to lose focus.
11222 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11224 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
11225 ClientRectangle instead. [Fixes bug #82838]
11227 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11229 * SplitContainer.cs: We can't reset Visible on every layout because
11230 someone may have set Visible = false explicitly on a SplitterPanel.
11231 Make sure when we switch orientation the SplitterDistance does not
11232 change. Fixes two failing tests.
11234 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11236 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
11237 TextRenderer, since the latter is only available in 2.0.
11239 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
11241 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
11242 * SplitContainer.cs: Implement FixedPanel layouting.
11244 2007-09-12 Andreia Gaita <avidigal@novell.com>
11246 * WebBrowserBase.cs: setup shutdown routine
11248 2007-09-12 Andreia Gaita <avidigal@novell.com>
11250 * Application.cs: Let keyboard events that are targetted
11251 to non-mwf windows hosted inside mwf (as in, webbrowser),
11252 propagate properly. Fixes keyboard handling on the webbrowser.
11254 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11256 * ListView.cs: When handling MouseUp event and we are
11257 highligting a node with the mouse right button, don't trigger
11258 Before/AfterSelecting event, since we are not actually selecting
11261 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11263 * TreeView.cs: When editing a node, modify the edit text box
11264 depending on the text length (as you are typing), like MS does.
11266 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
11268 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
11269 Override GetPreferredSizeCore to perform calculations. Remove custom
11270 autosize logic. [Fixes bug #82739]
11272 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
11274 * TextBoxBase.cs: Modified should default to false.
11276 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11278 * Control.cs: Update the anchoring distances even when layout is supspended.
11279 Patch provided by George fixes bug #82805.
11281 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11283 * Control.cs: Provide a setter for ExplicitHeight.
11284 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
11285 remove the hacks in here for requested_height.
11288 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11290 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
11291 Maximum to lower that its current Value caused an ArgumentException by setting
11292 the Value to the new Maximum.
11294 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11296 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
11297 handle moves to the closest tick when it is being dragged.
11300 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11302 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
11303 can't let them count as real items when calculating where to merge in the
11304 user's items. [Fixed bug #82786]
11306 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
11308 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
11309 who want to add a menu item directly onto a toolstrip.
11310 [Fixes bug #82775, part II]
11312 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
11314 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
11315 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
11316 don't set it to available.
11317 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
11318 [Fixes bug #82727, part II]
11320 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
11322 * StatusStrip.cs: Change item placement to None if not visible.
11323 * ToolStripItem.cs: Invalidate when InternalVisible changes.
11324 These should have been committed to fix 82723, but I missed them.
11326 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
11328 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
11329 Click, and that it is only called once.
11330 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
11331 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
11335 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11337 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
11339 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
11340 instead of 8, just like above. Partially fixes #82734.
11342 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11344 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
11347 * ListView.cs: Remove extra space between rows in Details view (match
11349 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
11352 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
11354 * Application.cs: Modified ProductVersion to return value of
11355 AssemblyInformationVersion if available, and fallback to assembly
11356 version. Fixes bug #82746. Code formatting.
11357 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
11360 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11362 * Control.cs: When updating ZOrder for a child control,
11363 take into account the implicit ones (we need it in our controls
11364 using them). Fixes #82642.
11366 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
11368 * ToolStripItem.cs: Add support for animated images.
11371 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
11373 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
11374 visible. [Fixes bug #82727]
11376 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11378 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
11379 so we repaint using the new size. [Fixes bug #82723]
11381 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11383 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
11384 option. [Fixes bug #81779]
11386 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11388 * TreeView.cs: Override HandleClick because the StandardClick style is
11389 set to false. According to MSDN (and testing), the click events should
11390 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
11392 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11394 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
11395 the border will disappear. Fixes reopened #82653.
11397 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11399 * Control.cs: If the control is autosize, and its preferred size changes
11400 when it lays out its children, tell its parent so it can be re-layed out.
11401 Fixing some of the fallout from r85433.
11403 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11405 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
11406 and CheckBox share some code.
11408 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11410 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
11411 the TrackBar, not every mouse move. [Fixed bug #82718]
11413 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11415 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
11416 under 2.0 rendering. [Fixes bug #82657]
11418 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11420 * TreeView.cs: If we found a TreeNode to display a context menu, but
11421 it doesn't have one to show, let the TreeView display its menu
11422 instead. [Fixes bug #82680]
11424 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11426 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
11427 OnPaintInternal instead. Give the internal TextBox a Border property
11428 so it can draw itself more correctly. [Fixes bug #82653]
11430 2007-09-06 Zoltan Varga <vargaz@gmail.com>
11432 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
11434 2007-09-05 Everaldo Canuto <everaldo@simios.org>
11436 * ComboBox.cs: Adjust combobox button state to reflect current state when
11437 back to enabled = true. Fixes first issue of #82654.
11439 2007-09-05 Everaldo Canuto <everaldo@simios.org>
11441 * Control.cs: Fix last patch regression, prevent forms to update zorder when
11442 setting visible property.
11444 2007-09-05 Everaldo Canuto <everaldo@simios.org>
11446 * Control.cs: Update zorder after control creation in SetVisibleCore, it
11447 fix zorder for controls initially created as non visible. Fixes #82667.
11449 2007-09-04 Everaldo Canuto <everaldo@simios.org>
11451 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
11452 mimic win32 look. Fixes #82656.
11454 2007-09-01 Zoltan Varga <vargaz@gmail.com>
11456 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
11457 Stubs for new net 3.5 classes.
11459 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11461 * ListViewItem.cs: In ListViewItemCollection operations calculate
11462 Layout for owner as well as invalidate it. Fixes part of #82642.
11464 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
11466 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
11467 when returning Enabled. [Fixes bug #82651]
11469 2007-08-30 Everaldo Canuto <everaldo@simios.org>
11471 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
11473 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11475 * ListView.cs: Put item padding info in a single place
11476 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
11478 * ThemeWin32Classic.cs:
11479 * Theme.cs: Likewise.
11481 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11483 * ListView.cs: When a ListViewSubItem instance is invalidated,
11484 invoke Invalidate on parent ListViewItem, not parent ListView.
11487 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
11489 * ListView.cs, ListViewItem.cs: corcompare stuffs.
11491 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
11493 * BindingMemberInfo.cs: Implement == and != operators.
11495 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
11497 * HtmlElementEventArgs.cs: Implement properties.
11499 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
11501 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
11503 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
11505 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
11506 Add (string,string,string) to implement the imagekey. It turns out, we
11507 use the requested imagekey whereas .Net does not. So I broke ours to match
11510 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
11512 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
11514 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
11516 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
11518 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
11520 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
11521 up-to-date. Fixes bug #82618.
11523 2007-08-29 Everaldo Canuto <everaldo@simios.org>
11525 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
11526 reflect document changes. Fixes #82367.
11528 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11530 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
11531 as well as add new ones. This should make work the BackgroundImage
11532 property for ListView again.
11534 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
11536 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
11537 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
11538 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
11540 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
11542 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
11545 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
11547 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
11548 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
11550 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
11552 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
11553 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
11555 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
11557 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
11559 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
11561 * GridEntry.cs: Implement GetService.
11563 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
11565 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
11566 for label editting, make sure we focus back on the TreeView.
11569 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11571 * ListView.cs: Add some 2.0 overrides.
11573 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
11575 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
11576 because getter dont returns right value before handle creation. Thanks
11577 to George. Fixes #82569.
11579 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
11581 * Theme.cs: Revert last patch, it causes error under win32.
11583 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
11585 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
11586 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
11587 logical Desktop rather than the physical file system location. Fixes #82603.
11589 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
11591 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
11592 for the patch. Fixes #82568.
11594 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11596 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
11599 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11601 * ListViewInsertionMark.cs: New stubbed class.
11603 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
11605 * FolderBrowserDialog.cs: When adding folder, immediately create the
11606 directory with temporary name and rename the directory when editing
11607 finishes. This matches MS. Ensure the node for the new folder is
11608 selected and LabelEdit is disabled, when editing is either finished
11611 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
11613 * TreeView.cs: When editing label of node, ensure node is visible.
11615 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
11617 * PropertyGridView.cs: Set the value only if it has changed.
11619 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11621 * ListView.cs: Some more code refactoring to add support sorting
11622 with groups (now for Details view). Remove unused code also.
11624 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
11626 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
11627 Not a big fan of reacting immediately to a field in an EventArg, but that's
11628 the way it's done. (This is part of the previous commit that got left out.)
11630 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
11632 * FolderBrowserDialog.cs: Removed need for separate description field.
11633 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
11634 has focus when dialog box is displayed again, regardless of what
11635 button was pressed the previous time. Set RootFolder and SelectedPath
11636 each time dialog box is displayed. This ensures the treeview is
11637 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
11638 when it does not have focus. Added support for more special folders.
11640 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
11642 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
11643 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
11644 it resets the edit_args.
11645 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
11648 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
11650 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
11651 button to match MS. Provide more meaningful exception message for
11652 invalid RootFolder value. Use zero-length string when SelectedPath
11653 is set to null. Allow non-rooted paths in SelectedPath, but ignore
11654 them in FolderBrowserTreeView. Allow folders to be created in
11655 RootFolder. Fixes bug #82576.
11657 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11659 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
11660 since we need to take into account the group headers and the margin
11662 * ListViewGroup.cs: Add a rows field to store the number of rows per
11665 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11667 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
11668 Anyways, let's just follow the lead.
11670 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
11672 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
11673 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
11674 controls in GetPreferredSizeCore.
11675 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
11678 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
11680 * PrintDialog.cs: Need to instantiate the form variable here too.
11682 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11684 * ListView.cs: Do some reorganization to support sorting in groups,
11685 by doing the layout sequentially in ListView.Items. Also add support
11686 for the Default Group, which should be available for items with no
11688 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
11689 for storing layout info also.
11690 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
11691 collection, as well as providing internal members to do a traversal
11692 including the default group (needed when doing layout/drawing).
11693 * ThemeWin32Classic.cs: When drawing group headers use internal
11694 ListViewGroupCollection members to take into account the default
11697 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
11699 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
11701 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11703 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
11704 been created. If handle is created, we want arror keys. If we are editing
11705 a node, we want things like enter, esc, home, end, page up, page down.
11706 Allows Esc to work for FolderBrowserDialog.
11708 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11710 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
11711 they close when ESC is pressed. Thanks Andy!
11713 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11715 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
11716 This way we can tell if this is a CommonDialog provided with mono, or one
11717 that is being implemented outside by a developer. If it is an external one,
11718 the developer is responsible for showing their own form. We were showing
11719 our blank form after the developer showed his.
11720 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
11721 PageSetupDialog.cs: Instantiate form variable in our constructor.
11724 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11726 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
11727 and always return true. [Fixes bug #81616]
11729 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11731 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
11732 TextBox. [Fixes bug #82549]
11734 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
11736 * FileDialog.cs: When Save/Open is clicked and no filename is selected
11737 or entered then do not close the dialog. Fixes bug #82539. Removed
11740 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
11742 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
11743 code to this method. It is calling every time filter changes. This method
11744 will help to fix the bug #80887.
11746 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
11748 * CheckBox.cs: Implement AutoSize calculation.
11750 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
11752 * CheckBox.cs: Use new 2.0 rendering for 2.0.
11753 * Theme.cs: Method declarations for 2.0 rendering path.
11754 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
11756 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11758 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
11760 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11762 * ListViewGroupCollection.cs: Implement AddRange the right way, to
11763 only call Redraw on the parent one time.
11765 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11767 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
11768 GetClipboardContent.
11769 * DataGridViewCell.cs: Implemented GetClipboardContent,
11770 GetEditedFormattedValue, GetFormattedValue.
11771 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
11773 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
11775 * TableLayoutStyleCollection.cs: corcompare fix.
11777 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11779 * DataObject.cs: Implemented retrieval of convertible / not convertible
11782 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
11784 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
11785 ourselves. This ensures the entire old bounds are repainted, in case our new
11786 size is smaller. [Fixes bug #82518]
11788 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
11790 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
11791 flag to make fast handle of mouse events, without this the mouse move is
11792 handled in some manner, whether it is a mouse move or not. Fixes #81588.
11794 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11796 * ListView.cs: When doing layout calculations don't use a ref
11797 param to keep the current item; instead use its Index value (this
11798 is specially important when doing the layout with Groups
11799 and Items being sparse). Also don't take into account items added to
11800 the Group but not yet added to the main ListView.Items collection.
11802 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11804 * ListViewGroupCollection.cs: Forgot to mimic an issue
11805 in the indexer (don't assign the ListView owner for new values).
11807 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11809 * ListViewGroupCollection.cs: Make the string indexer use
11810 the int based indexer to re-use code, instead of duplicate the code.
11811 Also Redraw as needed and take into account null values.
11813 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
11815 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
11818 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
11820 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
11821 when other buttons are clicked or navigated to.
11823 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11825 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
11826 it's XplatUIX11 that attaches them.
11828 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11830 * DataGridView.cs: If a column has been added, recreate the editing row.
11833 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11835 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
11836 of the tag to draw. Makes disappearing text show up again.
11838 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11840 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
11841 Contents. Fixes #82487.
11843 2007-08-19 Andreia Gaita <avidigal@novell.com>
11845 * Added HtmlElement.cs, HtmlElementCollection.cs,
11846 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
11848 2007-08-19 Andreia Gaita <avidigal@novell.com>
11850 * BindingSource.cs: Implement this, dispose and getenumerator.
11851 * DataGridViewRowCollection.cs: Move the InvalidOperationException
11852 out of AddInternal, throw it only on public Add calls. The
11853 UsingWebBrowser sample was blowing up with this when setting the
11854 DataSource after adding DataBindings, so it's likely that .net
11855 only throws this exception when Add is called directly.
11857 * ToolStripControlHost.cs: Return the hosted control's text
11858 property, and not the ToolStripItem one (it would always return
11859 the initial value).
11861 * HtmlDocument.cs: Implement GetElementById and All
11862 * WebBrowser.cs: Remove exception on set_DocumentStream.
11864 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11866 * Form.cs: Fix the max and min value for opacity (0~1).
11868 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11871 * DataGridTableStyle.cs: Default header font is now null, on getter it
11872 returns datagrid font when is null. On setter permits null.
11875 - When ResetHeaderFont set header font to null.
11876 - On EndInit set grid_style.DataGrid.
11878 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11880 * TabControl.cs: Fix regression in default padding x.
11882 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11884 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
11886 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11888 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
11889 not 2. Fixes #82229.
11891 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11893 * TabControl.cs: Fix tab size when image height is less than text height.
11894 Partially fixes #81837.
11896 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11898 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
11899 "alt + tab". It works only for Win32, for X11 theres no way to remove window
11900 from taskbar and keep it on "alt_tab". Fixes #81722.
11902 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11904 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11905 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
11906 Fixes #80877 and #79418.
11908 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11910 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
11911 between position and one of the screen borders. Fixes #82349.
11913 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11915 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11916 the MessageBox in the taskbar. Fixes #82457.
11918 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11920 * MessageBox.cs: Fix form size when icon is set and text height is bigger
11921 than icon. Fixes #82468.
11923 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11925 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
11926 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
11927 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
11928 Refactored HandleNCCalcSize somewhat to avoid code duplication.
11929 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
11930 FormBorderStyle to decide if we're calculating a new size from the
11931 client size or not. CreateParams: Don't fake tool windows, only the X11
11932 backend manages toolwindows manually.
11934 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
11936 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
11937 ObjectDisposedException.
11939 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
11941 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
11942 in OnLoad should not have any effect. [Fixes bug #82470]
11944 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
11946 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
11947 paint for controls that create their own ToolTipWindow instead of
11948 going through ToolTip.
11950 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
11952 * ToolTip.cs: Make Hide internal instead of public to match MS API.
11954 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11956 * ListViewGroupCollection.cs: Use generic List instead of an
11957 ArrayList, since this collection is 2.0 only.
11959 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
11961 * ToolTip.cs (Hide): Made public to make the build work (should
11962 this not be public?).
11964 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
11966 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
11968 * ToolTip.cs: Add an internal Visible property to facilitate transition.
11970 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
11972 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
11973 PopupEventHandler.cs: Make these internal for 1.1.
11974 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
11975 use ToolTipWindow internals.
11976 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
11977 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
11979 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11981 * X11Dnd.cs: Add a null check.
11983 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11985 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
11986 nothing else succeeds. Fixes #82453.
11988 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11990 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
11991 rectangle if we're painting to another window than the one the paint
11992 message was generated on. Simplify the code somewhat, which makes
11993 PaintEventEnd also simpler.
11995 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11997 * Control.cs: When changing parent of a form, let the form decide whether
11998 XplatUI.SetParent should be called or not.
11999 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
12000 recreating the handle. If the new parent's handle isn't created, don't
12001 recreate our handle, just destroy it. CreateParams: Check if the
12002 parent's handle is created before fetching it.
12004 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12006 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
12007 Update calls to PaintEventStart/End to take a Message argument.
12008 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
12009 take a Message argument.
12010 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
12011 Message argument, and handle the case where we don't paint to the window
12012 for which the paint message was generated.
12014 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12016 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
12017 Marshal.GetLastWin32Error. Plug nasty memory leak in
12018 PaintEventStart/End, we were creating a DC we weren't releasing.
12020 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12022 * ListView.cs: Add Groups support in Details view. Also have a small
12023 method to do the layout of the group header. Don't use a separate
12024 method to do the groups calculation in Icons view, since our methods
12025 are now a little simpler.
12026 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
12028 * ThemeWin32Classic.cs: Likewise.
12030 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
12032 * Application.cs: Add FilterMessage method and rework our message loop
12035 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
12037 * Application.cs: Add some methods and stub a few methods that are
12038 pretty much never used.
12040 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
12042 * TreeNode.cs: Add some serialization methods.
12044 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12046 * ListView.cs: In ListViewItemCollection have a
12047 'is_main_collection' field to not modify ListViewItem.ListView
12048 when using it as ListViewGroup.Items (and not ListView.Items)
12049 and also don't modify selection state (.Net behaviour).
12050 Instead, set group for items contained in a ListViewGroup.Items collection.
12051 * ListViewItem.cs: Simplify some code in Group setter.
12052 * ListViewGroup.cs: use the new .ctor to pass the current instance
12053 to the ItemsCollection.
12054 * ListViewGroup.cs: Set the ListView property for ListViewGroup
12055 instances when adding/removing. Also make Remove use RemoveAt, which
12056 should perform better.
12058 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
12060 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
12061 that crept into the 1.1 profile.
12063 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
12065 * ToolBarButton.cs: Implement ImageKey.
12067 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
12069 * ToolBar.cs: Implement ScaleControl/ScaleCore.
12071 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12073 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
12074 created, it might have gotten destroyed since we last checked. Fixes
12077 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
12079 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
12080 tooltip will hide when mouse is moved off the control.
12083 2007-08-11 Andreia Gaita <avidigal@novell.com>
12085 * WebBrowserBase.cs, WebBrowser.cs: add implementation
12086 using Mono.Mozilla for loading and navigating webcontrol
12088 The initial implementation was done on
12089 /trunk/mozembed/tests/browser , and copied here.
12091 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
12093 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
12094 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
12096 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12098 * DataGridView.cs: Add support for an editing row. Fixes #82226.
12099 RowTemplateFull: throw an exception if a column doesn't have a template.
12100 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
12101 add the row just before it.
12102 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
12104 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
12105 DataGridView field to be able to reach the grid's editing row.
12107 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
12109 * ToolTip.cs: If the control's handle hasn't been created when it has a
12110 tooltip set on it, don't check to see if we need to show the tooltip. This
12111 check was causing the control's handle to be created.
12114 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
12116 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
12118 Handle Not Created -1 0
12122 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
12124 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
12127 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
12129 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
12130 * ToolTip.cs: Implement some properties and owner draw.
12132 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12134 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
12135 show them again, since setting visibility causes a paint, causing an
12136 endless loop (instead use a temporary and set it all when it's known if
12137 they should be shown or not). Fixes #79265.
12139 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12141 * DataGridView.cs: Only do a full column/row selection if a header was
12142 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
12143 isn't pressed, deselect everything before selecting something.
12145 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12147 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
12148 behaviour according to bug #81075 - they are returned in the order they
12149 are selected. Fix HitTest to check if the point is within any of the
12150 headers. Allow for row/column selection when in ColumnHeader or
12151 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
12152 the row and column to call when their selected state changes, and
12153 updated selected_[rows|columns] whenever SetSelected* is called.
12154 * DataGridViewBand.cs: Initialize isRow correctly. Call
12155 SetSelected[Row|Column]CoreInternal when the selected state changes, and
12156 add a SelectedInternal to avoid StackOverflows.
12157 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
12158 ReadOnly no matter what.
12159 * DataGridViewSelectedColumnCollection.cs,
12160 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
12161 the items in reverse order (just as MS does...)
12163 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
12165 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
12166 itself, not part of a mnemonic. [Fixes bug #82378]
12168 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12170 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
12171 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
12172 the DGV, the column, the row, or the cell itself is readonly.
12174 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
12176 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
12177 OSVersion.Platform.
12178 * FileDialog.cs: Same.
12179 * TextRendered.cs: Same.
12180 * FolderBrowserDialog.cs: Same.
12181 * TextBoxBase.cs: Same.
12182 * Application.cs: Same.
12183 * Cursors.cs: Same.
12184 * ThemeClearLooks.cs: Same.
12186 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
12188 * XplatUI.cs: Added RunningOnUnix property to be used by controls
12189 instead of duplicating these checks everywhere.
12190 * FileDialog.cs: Use case-insensitive comparison for populating the
12191 DirComboBox when not running on unix. Fixes bug #82385.
12192 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
12195 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12197 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
12198 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
12199 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
12200 cell and column selection with ctrl and shift pressed. Call the correct
12201 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
12202 the corresponding virtual method (PaintBackground to paint background,
12204 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
12205 either the column, row or the cell itself is selected.
12206 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
12208 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
12209 here. When the row is selected, don't select all cells. Each cell now
12210 queries the row to see if the row is selected.
12212 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12214 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
12217 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12219 * ListView.cs: In ListViewItemsCollection check that owner is
12220 not null before trying to access it (this happens quite often
12221 using Groups). Also don't duplicate calls by calling CollectionChanged
12224 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
12226 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
12227 when we are dismissed to clear keyboard mnemonics.
12228 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
12229 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
12230 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
12231 was activated by keyboard or the OS tells us to always draw them.
12232 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
12233 [Fixes bugs #82376, #82377]
12235 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
12237 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
12238 shot at having it because Alt was pressed.
12239 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
12240 the first real menu item.
12241 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
12242 a mnemonic if Text is null.
12245 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12247 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
12248 search do check whether the item is already contained in the
12249 collection or not; instead check if the owner of the item is the same
12250 as ours. Also, remove a redundant check in the same method.
12252 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
12254 * Control.cs: Allow the clip region to be set back to null.
12255 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
12256 [Fixes button still showing up in bug #82370 when Show Through is turned off]
12258 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12260 * GridEntry.cs: Add a null check.
12261 * PropertyGrid.cs: When checking for existing grid entries, ignore category
12262 entries. Fixes #82297.
12264 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
12266 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
12269 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
12271 * ListBox.cs: Implement ScaleControl.
12273 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12275 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
12277 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
12278 parent has a menu strip. Fixes #81689.
12280 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12282 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
12283 moments, so apply some fuzzy logic to determine if the mouse is still
12284 inside a control or not. Fixes #82288 (for the third time).
12286 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12288 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
12289 Don't create the child if it has been disposed already (may happen if
12290 the user closes the form the Load event).
12292 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12294 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
12297 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12299 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
12300 might call us after we've been destroyed, in which case our own private
12301 parent field is null. Fixes #82326.
12303 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
12305 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
12306 check for setting the dropdown's owner.
12308 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
12310 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
12311 before removing system menu items.
12313 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
12315 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
12317 * MdiControlStrip.cs: Added. These are the menu items used in mdi
12319 * ToolStrip.cs: Add a null check to mnemonics.
12320 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
12322 [Fixes most of bug #81689]
12324 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12326 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
12328 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12330 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
12332 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
12334 * DataGridViewCell.cs: EditType: returns
12335 DataGridViewTextBoxEditingControl always.
12337 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
12339 * TextRenderer.cs: Remove the LineLimit string format flag from the
12340 DrawString fallback method so that things like buttons that aren't
12341 tall enough to draw a full line will still draw part of the text.
12342 [Fixes part of bug #82272]
12344 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
12346 * DataGridView.cs: Implemented AutoResizeColumn(s).
12347 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
12348 according to the Alignment.
12349 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
12350 Implement alignment and padding when painting.
12351 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
12353 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
12355 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
12358 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
12360 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
12363 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
12365 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
12366 hide GetPreferredSize from public API.
12367 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
12368 * ToolStripItem.cs: Stub out drag and drop methods and events.
12369 * ToolStripManager.cs: Stub out Save/LoadSettings.
12370 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
12371 * ToolStripPanel.cs: Fix corcompare error.
12372 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
12373 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
12374 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
12376 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
12378 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
12379 bounds height instead of PreferredHeight. Puts things back the way
12380 they were for height while still fixing the width. Fixes broken unit
12383 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12385 * Binding.cs: Implement 2.0 constructors and add a null check.
12387 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12389 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
12390 and fix row index (off by one).
12392 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12394 * PropertyGridView.cs: Remove debug output.
12396 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12398 * Control.cs: We need to reset the is_created flags when the handle is
12399 destroyed. Fixes #82187.
12400 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
12401 client coordinates if the window doesn't have a parent.
12402 Win32GetParent returns the parent or the owner, and for top-level
12403 windows with no parent (but with an owner) we were calculating the
12404 location from the location of the owner.
12405 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
12406 form has been disposed.
12407 * MdiClient.cs: Add a null-check.
12409 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
12411 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
12412 actually do auto-sizing. Override the internal GetPreferredSizeCore
12413 so we can provide an implementation that returns the current width
12414 and preferred height. Allows anchor = right to work with TextBox 2.0.
12417 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12419 * ListView.cs: Add support for navigating items in Groups mode, by
12420 creating a big matrix containing all rows and cols of all groups. When
12421 are in other mode than Details, pressing Up should have a similar
12422 behaviour as that one of Down (moving to the next available column if
12423 current one doesn't have an item in the requested row). Also, don't
12424 proceed to use groups if ShowGroups is false.
12425 * ListViewGroup.cs: Add an internal int field to store the starting
12426 row of the group (used by the big matrix used for navigating the
12428 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
12431 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
12433 * ToolStripDropDown.cs: When we do Show, start with the
12434 DefaultDropDownDirection, but if our popup menu is going to off-screen,
12435 modify the direction to keep it on screen. [Fixes bug #82210]
12437 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
12439 * FileDialog.cs: Accept any FilterIndex value, and store it
12440 unmodified. When FilterIndex is less than 1, or greater than number
12441 of filters, then default to first filter. Only add filter extension to
12442 file if user did not specifiy an extension. When type of dialog is
12443 OpenFileDialog and DefaultExt is set, then only use filter extension
12444 if: CheckFileExists is true and no file wih the default extension
12445 exists, or CheckFileExists is false, and user specified file does not
12446 exist. When CheckFileExists is true, then add first extension of
12447 selected filter that matches existing file. Perform checks for
12448 existing file, overwrite and create after extension has been added to
12449 file name. When CheckFileExists is true and type is SaveFileDialog,
12450 then only consider first filter extension if DefaultExt is set.
12451 When CheckFileExists is true, then ignore DefaultExt if file with that
12452 extension does not exist. Also perform check for existing file when
12453 type is SaveFileDialog. Changed some field to constants.
12455 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12457 * ListView.cs: Take into account the region used by header
12458 control when doing the vertical scroll (this way we invalidate
12459 the precise area, and don't get any dirty one).
12461 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
12463 * FileDialog.cs: Check for valid filterIndex on button open/save.
12466 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12468 * ListView.cs: Update some layout calculations in details view
12469 and clean the code in a pair of assignations.
12471 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
12473 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
12474 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
12475 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
12476 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
12478 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
12480 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
12481 performance of thread-safe Graphic methods. (Thanks rolf!)
12483 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12485 * ListView.cs: When doing the layout calculations, don't calculate
12486 scroll bars before handle is created. This is unnecessary and also
12487 calculating them before handle creation item causes a number of random
12488 bugs (which begin to appear after Chris' big patch for handle creation
12491 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
12493 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
12494 for things that don't have a Graphics object. Currently, things just use
12495 the static Hwnd.bmp_g which is not thread safe.
12497 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12499 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
12500 dialog. Fixes #82187.
12502 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12504 * DataGridViewElement.cs: Initialize state.
12505 * DataGridView.cs: Forward a few Mouse events to cells. Add
12506 GetRowInternal and GetCellInternal that doesn't unshare rows.
12507 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
12508 don't use the index, but look it up. Add
12509 DataGridViewControlCollection.RemoveInternal to remove controls
12510 that Remove won't remove (scrollbars, edit control).
12511 * DataGridViewColumn.cs: Initialize State correctly.
12512 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
12513 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
12515 * DataGridViewRowCollection.cs: Implemented shared rows.
12516 * DataGridViewRow.cs: Throw exceptions as MS do.
12517 * DataGridViewCell.cs: A few properties are implemented by a
12518 Get<Property> method, so move implementation there and remove the
12519 NIEX in the method. Add a bunch of OnXInternal that DataGridView
12520 calls when necessary.
12521 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
12522 complicates matters.
12523 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
12526 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
12528 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
12529 the children controls. Instead, we will just set up the proper docking for the
12530 children controls so we don't have to worry about it. [Fixes bug #82188]
12532 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
12534 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
12535 canceling and correct Before/AfterLabelEdit properties as layed out in bug
12536 81847. [Fixes bug #81847]
12538 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
12540 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
12541 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
12542 an explicit size based on the design-time size of the text. Since our fonts
12543 may not match this explicit size, we tend to cut off the ends of people's labels.
12545 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
12547 * Menu.cs: Add some missing methods to MenuItemCollection.
12549 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12551 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
12552 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
12553 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
12554 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
12555 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
12556 * DataGridViewElement.cs: State defaults to Visible.
12557 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
12558 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
12560 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12562 * Control.cs: Minor 1.1 corcompare fix.
12564 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
12566 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
12567 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
12569 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12571 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
12572 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
12573 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
12574 DataGridViewSelectedColumnCollection.cs,
12575 DataGridViewSelectedRowCollection.cs: Corcompare work.
12577 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
12579 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
12580 it is autoset by VS2005 designer and the effect is barely noticeable.
12582 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
12584 * TreeView.cs: Implement HitTest.
12586 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12588 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
12589 manually adding and removing the control from the Controls
12591 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
12592 EditingControlInternal property that tracks the editing control.
12593 Always keeping the scrollbars in the Controls collection, as MS
12594 testing confirms is the right behaviour.
12596 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12598 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
12599 according to MSDN and new test.
12601 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
12603 * TreeNode.cs: Implement ToolTipText.
12604 * TreeView.cs: Implement tooltips, NodeMouse* events.
12606 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
12608 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
12610 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
12612 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
12613 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
12615 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
12617 * Control.cs, Form.cs, ContainerControl.cs,
12618 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
12619 for misc properties.
12621 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
12623 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
12624 * TreeView.cs: Implement StateImageList.
12626 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12628 * Form.cs: Don't check if the current form is the active form before
12629 activating it. Fixes #81904.
12631 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12633 * Form.cs: Don't check if the current form is the active form before
12634 activating it. Fixes #81904.
12636 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12638 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
12640 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12642 * Form.cs: Don't try to position the form after loading if the form was
12643 disposed. Fixes #81969.
12645 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12647 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
12648 properties. Had to change ToolBar into ToolStrip, which required a
12651 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12653 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
12654 resized, fixes part of #79829 (vertical lines in toolbar).
12655 PropertyGrid: Refactored Populate* to something that's easier to
12656 follow at least for me, as well as splitting it up into several new
12657 methods, required to update only subitems when something has
12658 changed by a popup editor or listbox. Don't use events to check
12659 when any values are changed, since the events are unreliable (we're
12660 changing the objects the events are registered with, and if the
12661 event handling requires the objects to be immutable (objects stored
12662 in hashtables for instance), the events will never be raised).
12663 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
12664 everytime we change a value, since events are unreliable.
12665 DropDownButtonClicked: For the same reason don't compare objects to
12666 check if it has changed or not, it would require all objects to
12667 derive Equals. Fix dialog location on windows, MS is doing weird
12668 things when creating parented forms.
12669 * GridEntry.cs: Add a SelectedObject setter.
12671 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
12673 * TreeNode.cs: Add some corcompare attributes.
12674 * TreeNodeCollection.cs: Implement 2.0 stuffs.
12675 * TreeView.cs: Implement some 2.0 stuffs.
12677 2007-07-18 Andreia Gaita <avidigal@novell.com>
12679 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
12682 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
12684 * ListBox.cs: Implement custom tab offsets.
12686 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12688 * ToolStripContentPanel.cs: Support System renderer.
12689 * ToolStripControlHost.cs: Set RightToLeft to default to No.
12691 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12693 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
12695 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12697 * CheckBox.cs: Chain TextAlign to base implementation instead of
12698 maintaining another one.
12700 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12702 * ButtonBase.cs: Fix an incorrect string constant.
12704 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12706 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
12707 of creating one for measuring strings.
12709 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12711 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
12712 Implement MaxItemSize.
12714 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
12716 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
12717 for DeviceContext. Instead, use the static one available in Hwnd.
12718 Informal tests show this saves about 500k on formtest.exe.
12720 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
12722 * ContainerControl.cs: Implement 2.0 AutoScaling.
12724 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12726 * ComboBox.cs: Work around bug #82120 (bug in mcs).
12728 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
12730 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
12731 Darken the focus color.
12733 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
12735 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
12737 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
12738 X, Y instead of a rect for drawing text.
12739 - For ControlPaint.DrawCheckBox, center the check a little better when the
12740 checkbox is odd width. When drawing a flat checkbox, use a white background
12741 when state != inactive.
12742 [Fixes bugs #82097, 82100]
12744 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
12746 * ListControl.cs: When changing CurrencyManager, disconnect event
12747 handlers from previous one. Fixes bug #81771. Code formatting.
12749 2007-07-15 Andreia Gaita <avidigal@novell.com>
12751 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
12752 full preview invalidation from layout invalidation, and only invalidate
12753 the layout when setting zoom or other properties. Invalidation should
12754 always be done even when resetting properties with the same values as
12755 what is there. Fixes #81744 and #79830.
12757 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12759 * ListView.cs: Implement initial support for Groups. Split some of the
12760 LayoutIcons code to render a partial list of the items (needed by
12761 items contained in ListViewGroup instances). Let the
12762 ListViewItemsCollection.ListView property be modifiable (needed when
12763 using Groups, too).
12764 * ListViewGroup.cs: Use a Bounds property rather than a Location
12765 one. Also invalidate the bounds when they get changed.
12766 * ThemeWin32Classic.cs: When drawing items, also draw the group header
12767 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
12770 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12772 * ListView.cs: When space gets pressed and CheckBoxes is true,
12773 don't invoke the Begin and EndUpdate methods. We are generating
12774 a redraw of the entire control without need to do so.
12776 2007-07-13 William Holmes <billholmes54@gmail.com>
12778 * Control.cs: Changing logic in FindFlatForward and
12779 FindFlatBackward to handle multiple Controls with
12781 This fixes bug 81687.
12783 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
12785 * OSFeature.cs: Enable IsPresent.
12787 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12789 * Control.cs: Don't do anything in WmShowWindow if the control has been
12790 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
12791 control is created, put on a form, the control is disposed (the
12792 form is never shown), and then we get a MapNotify, triggering a
12794 * Form.cs: Exclude the current form when sending Deactivate to all
12796 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
12797 there was a race condition because assigning the handle raises
12798 events, we can get more messages, therefore trying to assign the
12799 handle again, which would fail if any of those event handlers
12800 closed/disposed the control.
12802 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12804 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
12806 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
12808 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
12809 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
12811 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
12813 * DateTimePicker.cs: If there's no part format specifier, return an
12816 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
12818 * FlatButtonAppearance.cs: Throw NotSupportedException for a
12819 Transparent BorderColor.
12821 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
12823 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
12824 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
12825 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
12826 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
12827 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
12828 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
12829 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
12831 * X11Structs.cs: Remove warnings, add ToString implementations.
12833 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12835 * XplatUIX11.cs: Translate min/max size according to the actual min/max
12836 size, and not the current size. Fixes #81798.
12838 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12840 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
12841 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
12842 to the control yet).
12844 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12846 * PropertyGridTextBox.cs: Add a method that sends any forwarded
12847 mousedowns to the contained textbox.
12848 * X11Structs.cs: More ToString implementation.
12849 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
12852 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12854 * PropertyGridView.cs: Add a null-check, fixes a few tests.
12856 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
12858 * TableLayoutPanelCellPosition.cs: TypeConverter.
12860 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12864 * PropertyGridTextBox.cs: Propagate any color changes to all contained
12866 * PropertyGridView.cs: A few color fixes.
12868 2007-07-10 Jackson Harper <jackson@ximian.com>
12870 * TextControl.cs: Remove some old unused text formatting stuff.
12872 2007-07-10 Jackson Harper <jackson@ximian.com>
12874 * TreeView.cs: Update full row select invalidation to match the
12875 newer DrawSelection... method.
12876 - Make sure to invalidate the entire width when selecting a new
12877 node, if we have full row selection enabled.
12879 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12881 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
12882 display of properties again.
12884 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
12886 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
12887 to existing collections.
12889 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12891 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
12892 that changed between 1.1 and 2.0.
12894 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12896 * PowerStatus.cs: Added. This is just a data class, it is filled
12897 in by SystemInformation.
12899 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12901 * Message.cs: Add op_Equality and op_Inequality.
12903 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12905 * MenuStrip.cs: Finish corcompare work.
12907 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12909 * LinkArea.cs: Add op_Equality and op_Inequality.
12911 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12913 * Application.cs: Add MessageLoopCallback delegate.
12915 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12917 * ListBox.cs: First set of 2.0 stuffs.
12919 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12921 * Control.cs: Make an internal Height property we can override
12922 without messing up the public API.
12923 * ListBox.cs: Override HeightInternal to always return the size
12924 the user set. [Fixes bug #80466]
12926 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
12928 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
12929 paint cell borders if we haven't calculated where they go yet.
12930 [Fixes bugs #82040 and #82041]
12932 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12934 * ListView.cs: In Details view, set the location of item_control
12935 in the (0,0) position (and the header_control is thus on the
12936 item_control). This way the Bounds of the Items are relative to the
12937 ListView control (before this, they had a Bounds value without the
12938 header_control offset, which wasn't matching .Net). Fixes #82004.
12940 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12942 * ListControl.cs: When DataSource is set to null, pass an empty
12943 array of object to SetItemsCore. This is done to clean the items
12944 in the ListContol children. Fixes #81788.
12946 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
12948 * ListControl.cs: Add 2.0 stuffs.
12950 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
12952 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
12953 Refresh is overkill for just about every repaint request.
12955 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
12957 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
12958 so remove my custom Get method and fix the property getter.
12960 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
12962 * Label.cs: DefaultMargin for 2.0.
12964 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
12966 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
12967 reported issue where other controls with mnemonics would steal strokes
12968 from a selected ComboBox.
12970 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
12972 * ScrollOrientation.cs: Make internal for 1.1.
12973 * ScrollEventArgs.cs: Add 2.0 stuffs.
12975 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
12977 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12978 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
12979 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
12981 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12983 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
12985 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12987 * ListView.cs: Implement the so-incredibly broken 2.0
12988 VirtualItemsSelectionRangeChanged event.
12990 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12992 * ListView.cs: When enter is pressed and selection is non empty,
12993 an OnItemActivate event must be fired.
12995 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12997 * ListView.cs: Store the FocusedItem information as an
12998 int instead of a ListViewItem (needed by VirtualMode).
12999 Update the calls to SetFocusedItem to pass an index instead of
13001 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
13002 the Focused state from the owner ListView.
13004 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13006 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
13007 property. Also, invalidate previous focused item in the mentioned
13008 property (match .Net).
13010 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13012 * ListView.cs: Implement 2.0 FocusedItem property setter.
13014 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13016 * ListView.cs: Implement 2.0 TopItem property setter.
13018 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
13020 * StatusStrip.cs: The default renderer is System.
13021 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
13022 if the user specifies it.
13023 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
13024 if we are ManagerRenderMode.
13025 * ToolStripMenuItem.cs: Calculate our text color better.
13026 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
13027 from Professional to the base class based off working with the System renderer.
13028 * ToolStripSystemRenderer.cs: Added.
13030 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13032 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
13034 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
13036 * ToolTip.cs: Implement 2.0 Tag property.
13038 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13040 * ListView.cs: Implement 2.0 HitTest methods.
13042 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13044 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
13045 item is under the pointer or not (sugar). Also remove the TODO
13046 regarding to the cursor changes in OneClick activation.
13047 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
13048 the subitems use the parent's HotFont if UseItemStyleForSubItems is
13049 true; otherwise don't show the underline style.
13051 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13053 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
13054 the code to retrieve the item at position only one time. Also
13055 change cursor when Activation is ItemActivation.OneClick as well
13056 as invalidate the item if HotTracking is true (to show/hide the
13057 underline style). Add an internal HotItemIndex property to retrieve
13058 the current hot item's index.
13059 * ListViewItem.cs: Add an internal HotFont property to cache the
13060 font used when HotTracking is true and the pointer moves within the
13062 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
13063 HotFont depending on the hot state of the item.
13065 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13067 * ListView.cs: Implement 2.0 HotTracking property.
13069 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
13071 * ToolStripControlHost.cs: If our hosted control never got created,
13072 don't try to dispose it. [Fixes bug #81909]
13074 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
13076 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
13078 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
13080 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
13082 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13084 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
13086 * DrawListViewColumnHeaderEventArgs.cs:
13087 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
13088 using the DrawText () methods.
13090 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
13092 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
13093 background which got erased in my changes yesterday.
13095 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13097 * ListViewItem.cs: Actually set bounds for subitems in Details view
13099 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
13100 can invoke from the owner draw routines if we need it. Also, add
13101 support for Owner draw in Details view.
13103 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
13105 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
13106 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
13107 ShowImageMargin setting, properly align text in a ToolStripLabel
13108 hosted on a ToolStripDropDown.
13110 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
13112 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
13113 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
13115 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13117 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
13119 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
13121 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
13122 location to match ToolStripMenuItems.
13124 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13126 * DrawListViewColumnHeaderEventArgs.cs:
13127 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
13128 column headers in ListView.
13130 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
13132 * UserControl.cs: Implement AutoSize.
13134 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13136 * DrawListViewItemEventArgs.cs:
13138 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
13141 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
13143 * ToolStripDropDownItemAccessibleObject.cs: Added.
13144 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
13145 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
13146 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
13147 ToolStripTextBox.cs: corcompare work.
13149 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
13151 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
13152 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
13153 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
13156 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
13158 * OSFeature.cs: Add IsPresent.
13159 * PrintPreviewControl.cs: Add RightToLeft.
13160 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
13161 * SplitterPanel.cs: Add AutoSizeMode.
13163 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
13165 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
13166 * MdiClient.cs: Add 2.0 ScaleControl.
13167 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
13168 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
13170 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
13172 * Form.cs: Implement some scaling methods, stub some RTL methods,
13175 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
13177 * Control.cs: corcompare work.
13178 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
13180 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
13182 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
13183 ControlPaint 2.0 stuffs.
13185 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13187 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
13189 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13191 * UpDownBase.cs: Add 2.0 stuffs.
13193 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13195 * NumericUpDown.cs: Add 2.0 stuffs.
13197 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13199 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
13201 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13203 * ErrorProvider.cs: Implement 2.0 stuffs.
13205 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13207 * DomainUpDown.cs: Implement 2.0 stuffs.
13209 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13211 * CheckedListBox.cs: Fix RefreshItems signature.
13213 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13215 * PictureBox.cs: Implement 2.0 stuffs.
13217 2007-06-12 Andreia Gaita <avidigal@novell.com>
13219 * TabControl.cs: Check if there are tabpages before checking
13220 the selected index - fix #81802 (font changes raise a ResizeTabs
13221 call on controls.add, which blew up nicely with no tabpages)
13223 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13226 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
13228 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13231 * ListViewItem.cs: In VirtualMode the selection information
13232 resides in the ListView, rather than in the Items. Also, throw
13233 InvalidOperationExceptions when VirtualMode is being used and
13234 CheckedItemCollection is accessed.
13236 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
13238 * ComboBox.cs: Add ScaleControl.
13240 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
13242 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
13244 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
13246 * GroupBox.cs: Add 2.0 stuffs.
13248 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
13250 * Panel.cs: Add autosize properties/event.
13252 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
13255 - When we remove a control, remove it from the collection before performing the layout.
13256 - Setup an internal property for explicit_bounds.
13257 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
13258 - Perform a layout when we set a new AutoSizeMode.
13260 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
13262 * ScrollableControl.cs: Add 2.0 stuffs.
13264 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13266 * ScrollBar.cs: Add 2.0 stuffs.
13268 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13270 * Splitter.cs: Add 2.0 stuffs.
13272 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13274 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
13275 to have BindingContext simply use base implementation.
13277 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13279 * ColumnHeader.cs: corcompare fix.
13281 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13283 * Button.cs: corcompare fixes.
13284 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
13286 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13288 * Button.cs: Override GetPreferredSizeCore.
13289 * ButtonBase.cs: PerformLayout after changing properties that can affect
13290 AutoSize. Simplify some mouse/keyboard code.
13291 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
13292 * MouseEventArgs.cs: Make Location internal for 1.1.
13293 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
13294 * Theme.cs: Add CalculateButtonAutoSize.
13295 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
13297 2007-06-05 Miguel de Icaza <miguel@novell.com>
13299 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
13301 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13303 * ListViewItem.cs: We can't cache Bounds in VirtualMode
13304 since we can get different item instances every time we retrieve it.
13306 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13308 * ListView.cs: Work around for #81602, since an unkown an pretty
13309 infrequent condition appears only in some systems (old linux boxes, it
13312 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
13314 * Button.cs: Completely reformat and a little refactor to bring
13315 this closer to Mono circa 2007.
13317 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
13319 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
13320 to be ButtonBase.Invalidate.
13322 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
13324 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
13326 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
13328 * ButtonBase.cs: Completely reformat and a little refactor to bring
13329 this closer to Mono circa 2007.
13331 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
13333 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
13334 values for autosize. Fixes #80137.
13336 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
13338 * Control.cs: Don't perform layout when AutoSize changes.
13339 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
13340 directly when autosizing, use SetBounds with BoundsSpecified.None.
13341 Fixes unit tests my last commit broke.
13343 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
13345 * Control.cs: Perform layout when AutoSize changes.
13346 * Form.cs: Implement AutoSizing.
13348 2007-06-01 Chris Toshok <toshok@ximian.com>
13350 * DataGrid.cs: remove the XXX'ed check at the top of
13351 ProcessGridKey. fixes #80464.
13353 2007-06-01 Chris Toshok <toshok@ximian.com>
13355 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
13356 adding idempotent (add/remove in Edit()), and also make sure we
13357 don't add it until after we set the text, so it's not tripped in
13358 Edit(). Fixes unit test regression.
13360 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
13362 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
13363 change is user explicit, not when the layout engine moves stuff. Fixes
13364 anchoring to bottom and right. [Fixes bug #81790]
13366 2007-06-01 Andreia Gaita <avidigal@novell.com>
13368 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
13370 2007-06-01 Andreia Gaita <avidigal@novell.com>
13372 * ContainerControl.cs:
13373 Fire enter event for common ancestor if it is not a ContainerControl.
13374 Send focus to the active_control and not the 'value', the active
13375 control might have been changed in one of the events fired.
13376 Definitely fixes #80159.
13378 2007-06-01 Andreia Gaita <avidigal@novell.com>
13380 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
13382 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
13384 * PropertyGrid.cs: Anchor the help description to the bottom of the
13385 help panel and refactor SelectGridItem into a
13386 SelectGridItemInternal that can be set to null (and update it to
13387 clear the help texts when it is set to null). Set root item to null
13388 when there's no SelectedObject. Fixes #80438.
13389 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
13390 when we're recalculating after a resize (only).
13392 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13394 * ListView.cs: Implement 2.0 RedrawItems method.
13396 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13398 * ListControl.cs: Disconnect PositionChanged and ItemChanged
13399 handlers from previous data manager when DataSource is set to
13400 null. Fixes #81771.
13402 2007-05-31 Jackson Harper <jackson@ximian.com>
13404 * TextBoxBase.cs: These seem to be the correct values.
13406 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
13408 * FileDialog.cs: When close dialog with ok set filterindex using combobox
13409 value. Fixes #81784.
13411 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
13413 * Control.cs: Implement 2.0 scaling methods.
13415 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13417 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
13418 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
13421 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13423 * ProgressBar.cs: Implemented missing 2.0 members.
13425 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13427 * Control.cs: Corcompare issues.
13428 * MessageBox.cs: Implemented missing 2.0 functions.
13430 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13432 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
13433 Implemented more 2.0 members.
13435 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13437 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
13438 null (strange, but it seems to happen when running unit tests).
13440 2007-05-30 Andreia Gaita <avidigal@novell.com>
13442 * ContainerControl.cs: Set active_control even earlier, before
13443 firing any events, and undo it if validation returns false.
13445 2007-05-30 Andreia Gaita <avidigal@novell.com>
13447 * ContainerControl.cs: Raise Validation and Enter/Leave events
13448 even if there is no Form and set active_control earlier, just
13449 before firing Enter events (toshok's patches). Fixes #80647.
13451 2007-05-30 Jackson Harper <jackson@ximian.com>
13453 * TextControl.cs: Redid the pageup/pagedown a little to simplify
13454 things and fix bug #81311.
13456 2007-05-30 Jackson Harper <jackson@ximian.com>
13458 * X11Dnd.cs: Now that we have our own event loop, we need to
13459 cancel when we get a mouseup but it won't be accepted.
13461 2007-05-30 Chris Toshok <toshok@ximian.com>
13463 * DataGrid.cs (set_CurrentCell): guard against negative
13466 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
13467 array index syntax instead of looping over the property names.
13469 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
13470 and set IsInEditOrNavigateMode to false there.
13472 2007-05-30 Jackson Harper <jackson@ximian.com>
13474 * TreeView.cs: Make sure we don't get a bad visible order when
13475 setting to the top node. Fixes some misc crashing in
13478 2007-05-30 Andreia Gaita <avidigal@novell.com>
13480 * UserControl.cs: Add 2.0 AutoSizeMode
13482 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
13484 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
13486 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
13488 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
13489 lines. Fixes #80285.
13491 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
13493 * DataGridColumnStyle.cs: Add char trimming column header text format.
13495 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
13497 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
13500 2007-05-29 Jackson Harper <jackson@ximian.com>
13502 * TreeNode.cs: Fix off by one on calculating whether or not a node
13505 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
13507 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
13508 * ScrollableControl.cs: Force an UpdateDistances when we move the
13512 2007-05-29 Andreia Gaita <avidigal@novell.com>
13514 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
13515 update the page setup screen.
13517 2007-05-29 Andreia Gaita <avidigal@novell.com>
13519 * PageSetupDialog.cs: Fix landscape mode.
13521 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13523 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
13524 IconSizeHorizontalSpacing.
13526 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13528 * ListView.cs: The declaration of prev_tooltip_item should be inside
13529 a NET_2_0 conditional (avoid a warning).
13531 2007-05-28 Andreia Gaita <avidigal@novell.com>
13533 * PageSetupDialog.cs: Implement PrintPreview control to display
13534 the preview thumbnail. Change unit conversion to use
13535 PrinterUnitConvert methods.
13537 Note: there is a huge bug in ms.net where the default margins are
13538 interpreted as centimeters (?), when in fact they are set in inches. When
13539 loading the page setup dialog initially (ms.net), the default margins
13540 are set to 1 inch, and the dialog shows them with value 10, when in fact
13541 it should be 25 (properly converted). Our dialog doesn't have this bug.
13543 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
13545 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
13547 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13550 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
13553 2007-05-28 Andreia Gaita <avidigal@novell.com>
13555 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
13556 an IntPtr on csc (it builds fine on mcs, could it be a compiler
13557 bug?), convert the ptr to Int32 first.
13559 2007-05-28 Jackson Harper <jackson@ximian.com>
13561 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
13562 recieved, we will exit the dnd tracking loop.
13564 2007-05-28 Jackson Harper <jackson@ximian.com>
13566 * X11Dnd.cs: Keep tracking until the xdnd finished event is
13567 recieved. TODO: I should probably stick a timer on the dropped
13568 event, and finish the drag if the XDND Finished event never shows
13569 (because some apps don't seem to send it).
13571 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
13573 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
13576 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13578 * MonthCalendar.cs: Only mark the keypresses we actually handle as
13581 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13583 * MonthCalendar.cs: Set the size after initializing all the relevant
13584 variables. Fixes #81742.
13586 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13588 * KeyEventArgs.cs: Fix typo.
13590 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
13592 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
13593 to match MS. Fixed MinDate to only accept value less than or equal
13594 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
13595 Removed TODO's that are now verified by unit tests.
13597 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
13599 * TreeNodeCollection.cs: Minor corrections to exceptions to match
13602 2007-05-25 Jackson Harper <jackson@ximian.com>
13604 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
13605 it's own message loop.
13606 * XplatUIX11.cs: Remove some of the dnd hooks
13608 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
13610 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
13611 instead of MinimizedWindowSize.
13613 2007-05-25 Jackson Harper <jackson@ximian.com>
13615 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
13617 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13619 * KeyEventArgs.cs: Added SuppressKeyPress.
13620 * Control.cs: Added support for SuppressKeyPress.
13622 2007-05-24 Andreia Gaita <avidigal@novell.com>
13624 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
13625 problems with PieChart. suppress_validation should not be a counter,
13626 if there are several BeginInit calls, the first EndInit will
13627 activate validation. Fix exceptions thrown by set_Value.
13628 * UpDownBase.cs: ValidateText only if it's the user editing it.
13630 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13632 * ListControl.cs: FilterItemOnProperty should return the filtered
13633 item proeprty even if DataSource is null. The same applies for
13634 GetItemText. Fixes #80427.
13636 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
13638 * Control.cs: If a control doesn't have a parent when it's Dock is
13639 set, but it has children, it needs to do a layout. Fixes some nested
13640 controls issues. [Fixes bug #81199]
13642 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13644 * ComboBox.cs: If there are few items in the drop down list, make it
13645 the exact size the items need, no bigger. Fixes #81612.
13647 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
13649 * Application.cs: When we have captured the keyboard for a menu,
13650 check for mouse down events in case we need to close the menu.
13651 * Control.cs, Form.cs: Remove mouse down checks for menus.
13653 2007-05-24 Jackson Harper <jackson@ximian.com>
13655 * TextControl.cs: Handle tabs in non multiline mode a little
13658 2007-05-24 Jackson Harper <jackson@ximian.com>
13660 * TextControl.cs: We need to manually break apart tabbed text and
13661 move the tabs, since the system.drawing tabbing mechanism relies
13663 * TextBoxBase.cs: Move the caret properly when the user enters a
13666 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
13668 * ContainerControl.cs: Don't check CanSelect before calling
13670 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
13671 release a KeyboardActive on click if it's not ours.
13673 2007-05-23 Andreia Gaita <avidigal@novell.com>
13675 * ColumnHeader.cs: Add TypeConverter
13677 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13679 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
13681 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13683 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
13685 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13687 * LinkLabel.cs: Implement public Padding property.
13689 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13691 * LinkLabel.cs: Implement public FlatStyle.
13693 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
13695 * Control.cs: Apply patch from George to call parent.PerformLayout
13696 when Visible is changed. [Fixes bugs #81118, 81718]
13698 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13700 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
13702 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13704 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
13706 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13708 * ContextMenu.cs: Implement Collapse.
13710 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
13712 * ToolBarButton.cs: Implement Name.
13714 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
13716 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
13717 use current_item, it prevents some NRE. Fixes #81675.
13719 2007-05-22 Andreia Gaita <avidigal@novell.com>
13721 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
13722 without updating the text.
13724 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
13726 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
13727 without calling DeleteObject. [Should fix bug #81709]
13729 2007-05-22 Jackson Harper <jackson@ximian.com>
13731 * RichTextBox.cs: Set the line endings correctly, when flushing
13734 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
13736 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
13737 {Width=0,Height=0}.
13739 2007-05-22 Jackson Harper <jackson@ximian.com>
13741 * TreeView.cs: Setting top with a null node should set to the very
13744 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13746 * Form.cs: ShowDialog: destroy the handle when message loop is
13747 finished, matches MS behaviour. Refactor parts of WmClose into
13748 RaiseCloseEvents, that only raises events if they haven't already
13749 been raised. Fixes #81688 and #81521.
13750 * Application.cs: Don't call close on the form when exiting a modal
13751 loop, it will raise all the (Form)Closed/Closing events again if
13752 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
13753 which doesn'r raise any events it they have been raised before.
13755 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
13757 * Control.cs: Add OnPrint.
13758 * ToolStrip.cs: Add GetChildAtPoint.
13759 * ToolStripContainer.cs: Add OnRightToLeftChanged.
13760 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
13762 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
13764 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
13766 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13768 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
13769 isn't visible anymore. Fixes #81651.
13771 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13773 * Control.cs: WmShowWindow: Update children's z-order after setting
13774 their parent. SetParent may show the window, thereby corrupting
13775 z-order, since the window will be shown on top.
13776 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
13777 multiple (and redundant) WM_SHOWWINDOW messages.
13778 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
13779 event has already been raised.
13780 * Form.cs: Change is_changing_visible_state to a counter, since
13781 SetVisibleCore can be called recursively. CreateHandle: when
13782 creating mdi children, send (De)Activated events.
13783 * MdiClient.cs: Update use of is_changing_visible_state.
13784 * Application.cs: OnThreadException: Surround exception handling with
13785 try/finally to ensure we always reset the error-handling state
13788 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13790 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
13793 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13795 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
13796 SmallIcon views, now that we have a standarized horizontal spacing.
13798 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
13799 4, just like the other views (Match .Net).
13801 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
13803 * Control.cs: Delay calculating anchor distances until we actually layout.
13804 Always query the WM for the actual size and location it put us at instead of
13805 only when we send negative values.
13806 [Fixes bugs #81694, 81695]
13808 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
13810 * Application.cs: Avoid a possible stack overflow when trying to exit
13813 2007-05-19 Marek Safar <marek.safar@gmail.com>
13815 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
13818 2007-05-19 Andreia Gaita <avidigal@novell.com>
13820 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
13821 * NumericUpDownAcceleration.cs,
13822 NumericUpDownAccelerationCollection.cs: Added 2.0
13825 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
13827 * RichTextBox.cs: Recalculate the document after the ScrollBars
13828 property is changed. Fixes bug #81681.
13830 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
13832 * DataObject.cs: Implement 2.0 methods.
13834 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13836 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
13837 in the center of the checkbox, not in the left-top corner.
13840 2007-05-18 Jackson Harper <jackson@ximian.com>
13842 * RichTextBox.cs: Recalculate the document after the scrollbars
13843 property is changed.
13844 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
13847 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13849 * CreateParams.cs: Make HasWindowManager marginally faster.
13850 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
13851 into Hwnd so that other drivers can use it as well.
13852 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
13853 the default location from Hwnd. Fixes MDI client windows always
13854 showing up at (0,0) in Windows (Win32 won't set the default
13855 location since the window styles aren't correct).
13857 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
13859 * TreeView.cs: Modified DoubleBuffered to just use the base
13862 2007-05-18 Jackson Harper <jackson@ximian.com>
13864 * TreeView.cs: Set the top node to the last child node when
13866 - When we get focus, if there is no selected node, use the top
13869 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
13871 * KeysConverter.cs: Add CanConvertTo.
13872 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
13873 * LinkConverter.cs: Added.
13875 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13877 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
13878 it prevents error when file dont have write access. Fixes #81669 and #81667.
13880 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13882 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
13883 button text. Fixes #79640.
13885 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13887 * Control.cs: According to MSDN controls created in the designer theres
13888 keyboard accelerators visible by default. So included check for design
13889 in ShowKeyboardCuesInternal.
13891 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13893 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
13894 text. Fixes #81621.
13896 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13898 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
13899 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
13901 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
13903 * Control.cs: Finish implementation of UI State using WmChangeUIState
13904 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13905 in some controls to check for show_keyboard_cues to draw accell keys "_".
13907 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13909 * ListBox.cs: When calculating the horizontal scrollbar
13910 in single column mode, don't use values less than 0 for
13911 Maximum. Fixes #81474.
13913 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13915 * ListBox.cs: Throw the some missing exceptions in
13916 ListBox.ObjectCollection methods.
13918 2007-05-17 Jackson Harper <jackson@ximian.com>
13920 * TextBoxBase.cs: Recalculate the document when the word wrap
13921 value has changed. This fixes 81488.
13923 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
13925 * Clipboard.cs: Implement missing GetText overload.
13927 2007-05-17 Chris Toshok <toshok@ximian.com>
13929 * Control.cs (CheckDataBindings): remove the binding_context arg
13932 * CurrencyManager.cs (OnItemChanged): fix this now that
13933 BindingManagerBase is fixed. also remove the comment telling where
13934 the fix should go. We set transfering_data to true/false around
13935 the call to PushData to keep UpdateIsBinding from being called.
13936 (ListChangedHandler): remove the extra OnMetaDataChanged call for
13937 PropertyDescriptorAdded in the 1.1 case. The extra call is
13938 actually generated by System.Data generating 2 metadata changed
13939 events of its own per column add. The fix should go there. Add a
13940 comment to that affect in our test's Assert.Ignore.
13942 * BindingManagerBase.cs: Rework PullData and PushData slightly.
13943 we keep a boolean flag (transfering_data) that keeps us from
13944 calling UpdateIsBinding multiple times if we re-enter either of
13947 * ControlBindingsCollection.cs (AddCore): remove the
13948 binding_context arg to binding.Check.
13950 * Binding.cs (IsBinding): don't check if we're binding here, just
13951 return our cached value. we update it in UpdateIsBinding.
13952 (Check): don't take the binding_context arg, we'll just use our
13953 control's. Also, for some reason MS doesn't use the data member
13954 field when getting the bindingmanager for this binding. it just
13955 uses the datasource. Make this method callable multiple times,
13956 and only do the is_null_desc stuff if manager.Position != -1 (so
13957 we don't get an exception accessing manager.Current).
13958 (UpdateIsBinding): move the code from IsBinding here.
13959 (PositionChangedHandler): call Check here to we can initialize
13960 things that require a non- -1 position.
13962 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
13964 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
13967 2007-05-17 Andreia Gaita <avidigal@novell.com>
13969 * TabControl.cs: Add 2.0 methods and events, including
13970 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
13971 * TabPage.cs: Add 2.0 methods
13973 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
13975 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
13976 keyboard_cues is properly handled by message method.
13978 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
13980 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
13982 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
13984 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
13986 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
13989 - WmUpdateUIState added to handle state changes, it make call to
13990 OnChangeUICues event.
13991 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
13994 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
13996 * ImageKeyConverter.cs: Added.
13997 * TreeViewImageKeyConverter.cs: Added.
13999 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14001 * ToolTips.cs: Update Text if SetToolTip is called for a control
14002 already showing the tooltip, as well as restarting its timer; show
14003 tooltip if we are inside the control bounds by the time of calling
14004 SetToolTip. Inside ShowTooltip remove the check to not show the
14005 tooltip again for the active control (it is allowed by .Net to
14006 show the tooltip on the same control multiple times).
14008 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14010 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
14012 2007-05-16 Andreia Gaita <avidigal@novell.com>
14014 * ContainerControl.cs: only process tab key if there are no
14015 modifier keys present, otherwise the control does the
14016 tab processing, if it needs to. Fixes #81622
14017 * TabControl.cs: Fixes calculation for which tab to select on
14020 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14022 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
14024 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
14026 * Control.cs: Make IsInputCharInternal to allow controls to
14027 override it and still match MS API.
14028 * TextBoxBase.cs: Override IsInputCharInternal and always
14032 2007-05-15 Jackson Harper <jackson@ximian.com>
14034 * TextBox.cs: Disable some of the menu options when using a
14037 2007-05-15 Jackson Harper <jackson@ximian.com>
14041 * RichTextBox.cs: Some new 2.0 methods
14043 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
14045 * FileDialog.cs: On 1.0 profile, do not support multidotted
14048 2007-05-14 Jackson Harper <jackson@ximian.com>
14050 * TextBoxBase.cs: Implement some of the new 2.0 methods.
14051 * RichTextBox.cs: We need to override these methods on 2.0.
14052 * MaskedTextBox.cs: These are implemented now
14053 * TextControl.cs: This was off by one.
14055 2007-05-14 Jackson Harper <jackson@ximian.com>
14057 * TextControl.cs: Because the line endings are including in the
14058 text, we don't need to add them in anymore.
14060 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14062 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
14063 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
14065 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14067 * ToolBar.cs: Adjust size to default size when button theres no text and
14068 image, it fixes remaining issues from #81524.
14070 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14073 - When not flat call redraw to recalculate sizes on creare handle to match
14075 - Revert 77220 because it causes some regressions in toobar
14078 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
14080 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
14081 now actually enters a usable state.
14083 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14085 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
14086 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
14089 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14091 * ToolBar.cs: Save default_size on create handle to use later for buttons
14092 without text, needed to mimic win32 behavior.
14094 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14096 * ToolBar.cs: Fix button layour to best fit width or height according to
14097 vertical or not. Fixes #81524.
14099 2007-05-10 Everaldo Canuto <everaldo@simios.org>
14101 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
14102 toolbar size info because different styles theres different sizes.
14105 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14107 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
14108 if we are using checkboxes, checked is true, and we have less
14109 than two images in StateImageList; for the 1.1 in the same scenario
14110 draw the first image if we have at least one image in StateImageList.
14111 Fixes part of #81191.
14113 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
14115 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
14116 the owner's Items collection on merge.
14118 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
14120 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
14121 * ToolStripItemCollection.cs: Lots of fixes to when events get called
14122 and parent/owner gets changed based on gert's unit tests.
14124 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
14126 * MaskedTextBox.cs: Started implementing parts of it.
14128 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14130 * ListView.cs: When clicking the checkbox on the items
14131 take into account the double clicks even if we have only
14132 one image in StateImageList (only for 1.0/1.1). Also
14133 generate an extra change of checked state when we receive
14134 the second click on checkbox (match .Net behaviour).
14135 Fixes part of #81191.
14137 2007-05-10 Everaldo Canuto <everaldo@simios.org>
14139 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
14141 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
14143 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
14144 even if OnLoad is overriden and base.OnLoad is not called.
14147 2007-05-10 Andreia Gaita <avidigal@novell.com>
14149 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
14150 shame. (I blame my ever-persisting and annoying cold)
14152 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
14154 * ListView.cs: Don't eat navigation keys. Let them flow through to
14155 KeyDown/KeyPress routines. [Fixes bug #81569]
14157 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
14159 * ListView.cs: When handling keys for selecting the item based off
14160 keyboard input, do not consider keys pressed with Alt or Control. Also,
14161 correctly handle keys when the Shift key is down. [Fixes bug #81578]
14163 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
14165 * Control.cs: When using UseWaitCursor, we have to store the requested
14166 Cursor to use when UseWaitCursor is turned off.
14168 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
14170 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
14172 * Application.cs: Use PreProcessControlMessage instead of
14174 * PreProcessControlMessage.cs: Make internal for 1.1.
14176 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14178 * Control.cs: Add InternalContains focus property, which hast the same
14179 functionality of ContainsFocus, but also including implicit controls.
14180 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
14181 since we need to know if the focus is contained in our implicit
14182 ItemControl when calculating Layout. Fixes part of #80888.
14184 2007-05-08 Everaldo Canuto <everaldo@simios.org>
14186 * ToolTip.cs: Remove center form string alignment as it must be align to
14189 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
14191 * ToolStripItemCollection.cs: Set the new item's parent and owner
14192 in Insert like we do in Add. [Fixes bug #81568]
14194 2007-05-08 Jackson Harper <jackson@ximian.com>
14196 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
14197 - Off by one error in SetTop
14198 - Disable DoubeBuffering
14200 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14202 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
14203 control as much as necessary in order to make it entirely visible,
14204 instead of centering the control in the container (matches MS
14205 behaviour). CalculateCanvasSize: we need to take the current scroll
14206 position into account when calculating the maximum canvas,
14207 otherwise the following scenario will fail: resize so that the
14208 scrollbars appear, use the scrollbars to scroll, resize again
14209 smaller, and now the canvas size is too small. Recalculate: when
14210 showing scrollbars make sure they start off at 0, and try to scroll
14211 the active control into view. Fixes #79540. HandleScrollBar: don't
14212 scroll anywhere if the scrollbar isn't visible.
14214 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14216 * ListView.cs: When focus changed, call Layout/Invalidate
14217 in the focused item to update the selected state (should show
14218 entire label when ListView is focused, and a part of it if is not).
14219 * ListViewItem.cs: When doing layout for LargeIcon, take into account
14220 for displaying the entire label not only the Focused state of the
14221 item, but also the Focused state of the ListView (match .Net
14224 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14226 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
14227 Implement UseWaitCursor.
14229 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14230 Applying contributed patch from Sergey Volk.
14232 * Clipboard.cs: Implement SetDataObject retry logic and new overload
14234 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
14236 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14238 * Control.cs: Implement DrawToBitmap.
14240 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14241 Applying contributed patch from Stefan Noack.
14243 * Control.cs: Add [Get|Set]AutoSizeMode.
14245 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14247 * MdiClient.cs: Unmerge menus when the last child is closed.
14249 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14251 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
14252 * ToolStripManager.cs: Call Merge on DropDowns.
14255 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
14257 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
14259 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
14260 visibility. We can't create forms visible, since we have to set the
14261 owner before making the form visible (otherwise Win32 will do
14262 strange things with task bar icons). The problem is that we set the
14263 internal is_visible to true before creating the control, so
14264 is_changing_visible_state is the only way of determining if we're
14265 in the process of creating the form due to setting Visible=true -
14266 this works because SetVisibleCore explicitly makes the form
14267 visibile afterwards anyways. Fixes #80775.
14269 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14271 * ThemeWin32Classic.cs: When drawing ListViewItems,
14272 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
14273 or LargeIcon _and_ item is not focused (match .Net behaviour).
14275 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
14277 * Control.cs, Form.cs: Fix some obsolete method warnings.
14279 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
14281 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
14282 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
14284 2007-05-04 Andreia Gaita <avidigal@novell.com>
14286 * ContainerControl.cs: Fix active_control attribution when going
14287 up the parent chain so that the first parent container gets the control
14288 and the rest of the parent containers get the child containers (skips
14289 non-containers). Fixes #80729
14291 2007-05-04 Randolph Chung <tausq@debian.org>
14293 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
14296 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14298 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
14299 takes a size parameter, since the CreateParam's size isn't true for
14300 minimized forms. Fixes #81518,
14302 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14304 * Form.cs: Add OnDeactivateInternal.
14305 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
14307 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14309 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
14310 accessing the parent. Fixes #81508.
14312 2007-05-03 Chris Toshok <toshok@ximian.com>
14314 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
14315 2.0 block, pass listposition + 1 to ChangeRecordState when a row
14316 was added before the current listposition. Fixes the
14317 TestInsertRowBeforeCurrent unit test.
14319 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
14321 * Application.cs: Add RaiseIdle.
14322 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
14323 XplatUIX11.cs: Implement RaiseIdle.
14325 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
14326 corcompare work: N - Z
14330 * ScrollableControl.cs
14331 * SplitContainer.cs
14334 * SystemInformation.cs
14336 * TableLayoutControlCollection.cs
14337 * TableLayoutPanel.cs
14342 * ToolStripComboBox.cs
14343 * ToolStripContainer.cs
14344 * ToolStripContentPanel.cs
14345 * ToolStripDropDown.cs
14346 * ToolStripDropDownItem.cs
14347 * ToolStripDropDownMenu.cs
14349 * ToolStripItemCollection.cs
14350 * ToolStripMenuItem.cs
14351 * ToolStripPanel.cs
14352 * ToolStripSplitButton.cs
14355 * TreeNodeCollection.cs
14356 * TreeNodeMouseHoverEventArgs.cs
14359 2007-05-01 Everaldo Canuto <everaldo@simios.org>
14361 * ContextMenu.cs: Add public method Show with alignment property to 2.0
14362 stuff. Thanks aatdark for the patch.
14364 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
14366 * GridItem.cs: Implement 2.0 Tag property.
14368 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
14370 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
14371 count instead of Nodes.Length. [Fixes bug #81448]
14373 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
14375 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
14378 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
14379 corcompare work: A - M
14380 * BindingNavigator.cs
14385 * FlowLayoutPanel.cs
14391 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
14393 * Application.cs: Give toolstrips a chance to process mnemonics.
14394 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
14395 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
14396 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
14398 2007-05-01 Jackson Harper <jackson@ximian.com>
14400 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
14402 - Don't set the BoundsSpecified
14404 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
14406 * Application.cs: When using the toolstrip shortcut mechanism, allow the
14407 message to pass through to a regular control if it hosted by a toolstrip.
14408 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
14409 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
14411 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
14413 * TextRenderer.cs: Use the flags argument when using the MeasureString
14414 fallback algorithm.
14416 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
14418 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
14419 the MDI menu item. [Fixes bug #81483]
14421 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
14423 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
14424 string. When setting Name to null, use zero-length string instead.
14426 2007-04-29 Andreia Gaita <avidigal@novell.com>
14428 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
14429 DeselectTab). Implement missing 2.0 TabPageCollection methods
14430 (Add, ContainsKey, RemoveByKey, IndexOfKey)
14432 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
14434 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
14436 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
14438 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
14439 Fixes bug #81479. Include details of exception when LoadFile fails.
14441 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
14443 * DrawListViewSubItemEventArgs.cs: Added missing setter
14445 2007-04-27 Andreia Gaita <avidigal@novell.com>
14447 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
14448 Hide methods (not complete). Implement missing 2.0 OnPopup event.
14450 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14452 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
14453 removed in ly last commit (it was breaking the Label edit feature).
14455 * ThemeWin32Classic.cs: When drawing a ListViewItem use
14456 StringAlignment.Near for LineAlignment (match .Net).
14458 2007-04-27 Andreia Gaita <avidigal@novell.com>
14460 * TabControl.cs: Change SetTab so it adds the tabpage to the list
14461 of controls if it isn't already there - was blowing up when doing
14462 tabcontrol.TabPages[i]=new TabPage().
14463 SetTab now does a replace by removing the page at the index.
14464 Add a new InsertTab method that inserts a page in a given index
14465 instead of replacing.
14466 Implements TabPageCollection.Insert(int, TabPage).
14468 2007-04-27 Chris Toshok <toshok@ximian.com>
14470 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
14471 internal handler that can be invoked from our subclasses.) Also,
14472 add a comment to PushData about how we need to fix it.
14474 * CurrencyManager.cs: tons of changes here. trying to get things
14475 matching the behavior of .net wrt event orders (ItemChanged,
14476 CurrentChanged, PositionChanged.) I've implemented a private .net
14477 symbol (ChangeRecordState) that appears in stack traces because
14478 it's actually easier to do this than to effective inline all its
14479 various behaviors at every call site.
14481 * RelatedPropertyManager.cs: guard against an exception here by
14482 not using parent.Current if the position is set to -1 (if the
14483 parent datasource is cleared, for instance).
14485 * Binding.cs: don't parse data in PushData (this might be wrong,
14486 but it jives with MS's behavior.) Also, don't call PushData when
14487 we get a CurrentChanged event.
14489 2007-04-27 Andreia Gaita <avidigal@novell.com>
14493 WebBrowserSiteBase.cs,
14494 HtmlDocument.cs: Added stubbed out classes, no real implementations
14497 2007-04-27 Everaldo Canuto <everaldo@simios.org>
14499 * MainMenu.cs: In draw method without parameters call draw method with
14500 PaintEvent, another one (just rect) adjust rectangle and we dont need it
14501 as Rect property is already adjusted. Fixes #80694.
14503 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
14505 * Application.cs: Need to handle keyboard menu deselection here.
14506 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
14507 navigation, allowing keyboard to work on X11.
14508 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
14510 2007-04-27 Everaldo Canuto <everaldo@simios.org>
14512 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
14513 menu bar. It fixes some drawing issues in menu bar.
14515 2007-04-27 Everaldo Canuto <everaldo@simios.org>
14517 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
14518 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
14519 when <alt> key is pressed.
14521 2007-04-26 Everaldo Canuto <everaldo@simios.org>
14523 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
14524 example just set visible to false and make this prevent from other problems.
14525 In SystrayAdd always remove pending expose. Fixes #81072.
14527 2007-04-26 Marek Safar <marek.safar@gmail.com>
14529 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
14532 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
14534 * ListView.cs: Added three missing 2.0 events and corresponding
14535 EventHandlers. Added the OwnerDraw property.
14536 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
14538 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
14540 * DrawListViewItemEventArgs.cs
14541 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
14543 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
14545 * TextControl.cs: Fixed typo in constructor
14547 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
14549 * Application.cs: Create a shortcut path so that currently selected
14550 MenuStrips can intercept keyboard events without having focus.
14551 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
14552 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
14553 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
14554 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
14555 generate WM_SYSCOMMAND message in X11 for other platforms.
14556 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
14557 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
14558 * ToolStripSplitButton.cs: Add DefaultItem property.
14560 2007-04-26 Everaldo Canuto <everaldo@simios.org>
14562 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
14563 fixes some menu draw problem on Windows with border diferent from default
14564 it also fixes #81403.
14566 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14568 * Form.cs: Refactor WndProc into separate methods, just like Control is
14571 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14573 * Control.cs: set_Text: move the call to the driver into a seperate
14574 virtual method so that Form can override it.
14575 * MaskedTextBox.cs: Corcompare fixes.
14576 * Form.cs: Override UpdateWindowText and only update the styles if the
14577 form has been shown (fixes #81405).
14579 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
14581 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
14582 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
14583 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
14584 the form lost focus or another control was clicked.
14586 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
14588 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
14591 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14593 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
14594 DrawListViewItemEventHandler.cs,
14595 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
14597 * X11Structs.cs: More ToString implementation.
14599 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
14601 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
14602 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
14604 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14606 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
14608 * FormCollection.cs: Don't add a form if it's already in the
14610 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
14611 according to behaviour and MSDN. The ownerWin32 is the active
14612 window at the moment when we call ShowDialog, not the context's
14613 main form (the context's main form may open another form that opens
14614 a form with ShowDialog, the win32 owner is the second form). Add
14615 and remove forms to the Application.OpenForms in other places to
14616 better match MS behaviour. Add an IsActive property that raises
14617 On(de)Activated only if the active state has changed (we were
14618 raising OnDeactivated before OnActivated while creating forms).
14619 * Application.cs: Refactor Enabling/Disabling of windows for modal
14620 dialog loops out to separate methods, and restore the thread
14621 context when we quit the method. Fixes #81407.
14623 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14625 * ListView.cs: In ItemControl.HandleClicks, also fire
14626 2.0 MouseClick or MouseDoubleClick events on the parent,
14627 not only the Click/DoubleClick events.
14629 2007-04-24 Andreia Gaita <avidigal@novell.com>
14631 * TableLayoutSettings.cs:
14632 - Added a GetControls method and a support structure to help the
14633 TypeConverter to enumerate the controls for serialization.
14634 - Added a new serialization constructor.
14635 - Added a isSerialized flag initialized to true on the
14636 serialization constructor so that the TableLayoutPanel.LayoutSettings
14637 setter does not throw the designed NotSupportedOperation exception
14638 when the object is built through deserialization.
14639 - Implemented GetObjectData
14641 * TableLayoutPanel.cs: Added check on LayoutSettings.
14643 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14645 * ListView.cs: Report Click and DoubleClick events to the parent
14646 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
14647 from breaking the click count state when using dialog forms (Control
14648 reports the clicks in a similar fashion). In the previous behaviour
14649 the last WM_LBUTTONUP message in a double click was sent to the
14650 ListView's form, instead of the ListView, which was breaking the click
14651 count for it. Fixes #80387.
14653 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
14655 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
14657 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
14659 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
14660 us from created dropdowns for menu items that do not have subitems.
14661 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
14662 Check HasDropDownItems before calling DropDown so a dropdown will not be
14663 created if it isn't needed.
14665 2007-04-24 Jackson Harper <jackson@ximian.com>
14667 * TreeView.cs: Set the first node to the selected node when we get
14668 focus if there is no selected node.
14670 2007-04-24 Andreia Gaita <avidigal@novell.com>
14672 * MimeIcon.cs: remove using blocks so that image streams are
14673 not disposed of. Fixes #80151
14675 2007-04-24 Jackson Harper <jackson@ximian.com>
14677 * TextBoxBase.cs: Fixup the height of textboxes when the control
14680 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
14682 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
14683 for each ToolStripItem when the parent's RightToLeftChanged is called.
14685 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14687 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
14689 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
14690 property, so that the setter can be overriden too.
14691 * TextBox.cs: Change GetContextMenuInternal() to use
14692 ContextMenuInternal.
14694 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14696 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14699 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14701 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14704 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14706 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
14707 avoid duplicate work. Mostily skeleton code, it's not working at
14710 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
14712 * NotifyIcon.cs : stub for MouseClick event
14713 * Application.cs: stub for SetUnhandledExceptionMode
14715 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
14717 * BindingNavigator.cs : Initial (partial) implementation
14719 2007-04-23 Jackson Harper <jackson@ximian.com>
14721 * TreeView.cs: Do not create the treeview's handle when setting
14722 the scroll position.
14723 - ExpandAll needs to compute the scrollbars so it knows which
14724 position to set the bar too.
14726 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
14728 2007-04-23 Jackson Harper <jackson@ximian.com>
14730 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
14733 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
14735 * ToolStripItem.cs: Make GetImageSize internal.
14736 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
14737 need to draw an item. Fixes a reported issue where images on menus
14738 that were not 16x16 were drawing incorrectly.
14740 2007-04-21 Miguel de Icaza <miguel@novell.com>
14742 * Padding.cs: Use the converter, fixes the resgen2 issue with
14745 2007-04-21 Jackson Harper <jackson@ximian.com>
14747 * TreeView.cs: Dont try to unhighlight the selected node if there
14748 isn't a selected node.
14750 2007-04-21 Jackson Harper <jackson@ximian.com>
14756 * TreeView.cs: Use the InternalBorderStyle property to set the
14757 initial border style, this forces the client rectangle to be sized
14760 2007-04-20 Jackson Harper <jackson@ximian.com>
14762 * TreeView.cs: Simplify scrolling to the last node after expanding
14764 - Fix some off by ones with setting the bottom.
14766 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
14768 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
14769 that. We were incorrectly doing it the other way around. Also,
14770 update ClientSize if we change the BorderStyle before the control
14773 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
14775 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14776 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14777 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
14778 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14779 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14780 Caption to CaptionHeight.
14781 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
14782 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
14783 and FixedFrameBorderSize to return value from current XplatUI driver.
14784 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
14785 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
14786 and FixedFrameBorderSize using win32 API. Renamed Caption to
14788 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
14789 * SystemInformation.cs: Fixed typo in BorderSize.
14791 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
14793 * XplatUI.cs: Added MenuAccessKeysUnderlined.
14794 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
14795 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
14797 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
14798 value from XplatUI driver.
14799 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
14800 SystemParametersInfo.
14801 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
14803 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
14806 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14808 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
14810 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14812 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
14814 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
14816 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
14817 MenuStrips that contain ToolStripSeparators.
14819 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14821 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
14822 DefineStdCursorBitmap.
14823 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
14824 has been created off a standard cursor. This is used to get a
14825 bitmap of the standard cursor when Draw or DrawStretched is called
14826 in order to draw the cursor.
14827 * X11Structs.cs: Added XcursorImage and XcursorImages.
14828 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
14829 DefineStdCursorBitmap.
14830 * Cursors.cs: Update all relevant creations of Cursor to use the new
14831 internal constructor.
14833 2007-04-19 Jackson Harper <jackson@ximian.com>
14835 * TextBox.cs: Move the has_been_focused into the base control, so
14836 some of the text adding methods can manipulate it (probably time
14837 for a better name for this flag too).
14838 - Call a new version of selectall that doesn't scroll
14839 * TextBoxBase.cs: When we append text, if the document is empty,
14840 don't scroll. If the document has text already, we scroll to the
14841 end of the appended text.
14842 - When the text is changed, we reset the has_been_focused, so the
14843 next time the control gets focused, all the text is selected.
14845 2007-04-19 Jackson Harper <jackson@ximian.com>
14847 * TextControl.cs: Move the margins to the document, add a method
14848 so the margin sizes can be updated.
14849 * TextBoxBase.cs: When the border style is changed, update the
14852 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
14854 * Control.cs: Respect DefaultPadding.
14855 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
14856 padding into account.
14857 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
14859 2007-04-19 Jackson Harper <jackson@ximian.com>
14861 * TextControl.cs: Oops, we need to use the ClientRect not the
14864 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14866 * ListView.cs: In ItemControl.ItemsMouseDown, take into
14867 account the double clicks when CheckBoxes are used and
14868 the pointer is inside the checkbox. Fixes part of #81191.
14870 2007-04-18 Jackson Harper <jackson@ximian.com>
14872 * TextControl.cs: Pressing the end key shouldn't move the caret
14873 past the line ending.
14874 * TextBoxBase.cs: We can still delete if we are in the line
14875 ending and the combine will just kill the existing line ending.
14877 2007-04-18 Jackson Harper <jackson@ximian.com>
14879 * TextControl.cs: We can't move lines, then invalidate their
14880 bounds, we need to get the old bounds and combine that with the
14882 * TextBoxBase.cs: Before combining two lines for a delete, we need
14883 to invalidate the area of the old line, since that will be moved
14884 in the combine operation.
14886 2007-04-18 Everaldo Canuto <everaldo@simios.org>
14888 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
14889 with transparent background. Fixes #80482.
14891 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
14893 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
14894 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
14897 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14899 * CreateParams.cs: Add a couple of helper methods and do a less string
14900 concatenation in ToString.
14901 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
14902 overload that takes a Control parameter, since this method may be
14903 called before a control is assigned to the hwnd (from
14904 CreateWindow), and update CreateWindow to use the new overload. In
14905 GetMenuOrigin subtract the title bar from the y position if the
14906 form has a window manager (since we're painting it and not X).
14907 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14908 CreateParams to calculate the origin (since border sizes may vary).
14909 In ScreenToMenu only subtract the title height if we actually have
14911 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14912 mdi children never have menus of themselves.
14913 * InternalWindowManager.cs: Implement menu handling like form does.
14914 Added GetMenuOrigin to calculate the menu origin, can't use the
14915 CreateParams from the form like normally since it's lying.
14916 * Hwnd.cs: Implement GetBorderSize better (in the sense more
14917 windows-like) and add Inflate and comparison operators to the
14918 Borders type. When calculating MenuOrigin and it's a form with a
14919 window manager, use the window manager to calculate it.
14921 2007-04-17 Chris Toshok <toshok@ximian.com>
14923 * Control.cs (CreateControl): turns out in 2.0 we don't need this
14924 OnBindingContextChanged thing here. It's only generated from
14925 ContainerControl.OnCreateControl. Fixes a newly written unit test
14926 - BindingTest.BindingContextChangedTest4.
14928 2007-04-17 Jackson Harper <jackson@ximian.com>
14930 * ScrollBar.cs: When setting values, make sure the current
14931 position stays within the new values range.
14933 2007-04-17 Chris Toshok <toshok@ximian.com>
14935 * Control.cs (CreateControl): talk about a bizarre corner case.
14936 Don't emit OnBindingContextChanged here if we're a parentless
14937 control (i.e. if we're a form.). Fixes
14938 BindingTest.BindingContextChangedTest2.
14940 2007-04-17 Everaldo Canuto <everaldo@simios.org>
14942 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
14943 from win32. Fixes #81255.
14945 2007-04-17 Everaldo Canuto <everaldo@simios.org>
14947 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
14948 already present in CalculateButtonTextAndImageLayout.
14950 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
14952 * XplatUIX11.cs: When setting min/max size for a window we need to
14953 translate the coordinates to x coordinates. Create an overload of
14954 SetWindowMinMax that takes a CreateParams handling this, and change
14955 SetWMStyles to call this function (can't use Control.FromHandle in
14956 the SetWindowMinMax to get the control/CreateParams from the handle
14957 because the handle might not have been assigned to the control
14958 yet). Fixes #81371.
14960 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14962 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
14963 if StateImageList is non-null and it has less than two items (match MS
14964 behaviour). Also, in HandleNavKeys handle the Space key, calling
14965 the new ToggleItemsCheckState method, which tries to change the
14966 checked state of the selected items. Fixes part of #81191.
14968 2007-04-16 Jackson Harper <jackson@ximian.com>
14970 * RichTextBox.cs: namespace cleanup.
14972 2007-04-16 Everaldo Canuto <everaldo@simios.org>
14974 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
14976 2007-04-16 Everaldo Canuto <everaldo@simios.org>
14979 * Control.cs: Call invalidate in set_Region.
14981 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
14982 it dont works here.
14984 2007-04-16 Jackson Harper <jackson@ximian.com>
14986 * TextBoxBase.cs: When enter is pressed, we need to update all
14987 lines below the current.
14989 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
14991 * MdiClient.cs: Implement implicit menu merging for MDI
14992 children. When a child form is active, if it has a menustrip
14993 and the parent form has a MainMenuStrip, automatically merge
14996 2007-04-15 Andreia Gaita <avidigal@novell.com>
14998 * TabControl.cs: Refactored sizing methods to not repeat
14999 code all over the place. Tab bounds are now calculated
15000 as if alignment is top and single line, and only when
15001 setting the bounds are the positions adjusted according
15002 to alignment. Replaced hardcoded positions, spacings and
15003 paddings by getting the values the ThemeEngine.
15006 * Theme.cs: Change TabControl properties and methods so
15007 that all start with TabControl*. Added more properties
15008 to help remove hardcoded values on tabcontrol.
15009 Add CPDrawBorder3D declaration so the Theming classes
15012 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
15014 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
15015 on the Theming namespace, and call the appropriate methods here.
15016 Change CPDrawBorder3D to public.
15018 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15020 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
15021 the control after firing the OnMouseUp event, instead of sending
15022 the message before the mentioned event. This is so we can match the
15023 MS behaviour. Fixes part of #80385.
15025 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
15027 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
15028 RightToLeft property.
15030 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
15032 * ToolStrip.cs: Add properties and internal methods to support merging.
15033 * ToolStripItem.cs: Add MergeAction and MergeIndex.
15034 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
15035 not trigger reparenting or layouts.
15036 * ToolStripManager.cs: Add Merge and RevertMerge methods.
15037 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
15038 is hosting the overflow menu.
15040 2007-04-13 Jackson Harper <jackson@ximian.com>
15042 * TextControl.cs: Set the line ending correctly for the first
15045 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
15047 * Theme.cs: Update GetMethod to get the new definition for
15048 KnownColors.Update (and fix theme color updates).
15050 2007-04-12 Everaldo Canuto <everaldo@simios.org>
15052 * MessageBox.cs: Fix some test and button position.
15054 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15056 * Form.cs: Consider the implicit controls in
15057 GetRealChildAtPoint. We need it since this method
15058 is called on Form when handling the some messages in
15059 WndProc, and need to consider those implicit ones too.
15062 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
15064 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
15065 if there are no ShortcutKeys set.
15066 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
15067 set, use it when painting.
15069 2007-04-12 Jackson Harper <jackson@ximian.com>
15071 * TextControl.cs: Fix some off-by-one issues in line duplication
15072 and insertion in the undo manager. Also, overwrite the first tag
15073 of a line on insert, if it is just a zero lengthed tag. This
15074 prevents us from getting an extra stranded tag at the beginning of
15077 2007-04-11 Everaldo Canuto <everaldo@simios.org>
15079 * Label.cs: Remove check for handle created in CalcAutoSize, we need
15080 to calculated proper size including when handle was not created yet.
15082 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15084 * MdiWindowManager.cs: When moving a form, allow the form to be moved
15085 when the mouse is outside of it's parent's client rectangle. Fixes
15086 #79982 (take 3, part 2).
15088 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
15090 * X11Structs.cs: Add a few ToString() overrides.
15091 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
15092 the window location in a window-manager independent way. Reworked
15093 FrameExtents, it now actually works. Reworked AddConfigureNotify
15094 and ReparentNotify handling to use GetTopLevelWindowLocation
15095 instead of the earlier, more hacky solution. Reworked SetWMStyles,
15096 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
15097 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
15098 for all other windows (fixes #81281 part 1), a toolwindow is hidden
15099 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
15100 and generally refactored to do as few calculations as possible
15103 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
15105 * Theme.cs: Change "reflective-contract" between MWF and SD to
15106 minimize # of calls, avoid Color serialization and avoid updating
15107 every "known colors" each time a single one is updated.
15109 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
15111 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
15112 when not readonly and the text is explicitly set. Code style updates.
15113 * DataGridTableStyle.cs: Removed extra line.
15114 * DataGrid.cs: Code style updates. Removed extra whitespace.
15115 * DataGridColumnStyle.cs: Code style updates. Removed extra
15118 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
15120 * XplatUIX11.cs: Added comment that "fixes" #80021.
15122 2007-04-09 Jackson Harper <jackson@ximian.com>
15124 * TextControl.cs: We don't need this -1 on the line count anymore.
15126 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
15128 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
15129 entered value to underlying type, and convert it back to a string to
15130 apply formatting. Modified GetFormattedValue to use TypeConverter
15133 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
15135 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
15136 Use SubItems property when we want to ensure there's at least one
15137 subitem. Modified SubItems property to ensure there's always at least
15138 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
15139 the NRE's reported by MS.
15141 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
15143 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
15144 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
15145 Spaces to tabs. Removed extra tabs.
15147 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
15149 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
15150 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
15152 2007-04-06 Jackson Harper <jackson@ximian.com>
15154 * TextBoxBase.cs: When a delete removes a line, recalculate all
15155 lines below that line (they need to get offsets setup correctly)
15158 2007-04-05 Jackson Harper <jackson@ximian.com>
15160 * TextControl.cs: We need to invalidate across the width of the
15161 document when we are invalidating multiple lines.
15162 * TextBoxBase.cs: Don't delete into the line ending.
15164 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15166 * ListView.cs: Restore the check for the MouseHover event
15167 in ListView. It looks like the ListView fires more than one MouseHover
15168 event when HoverSelection is true _only_ in weird-corner scenarios, but
15169 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
15172 2007-04-05 Mike Kestner <mkestner@novell.com>
15174 * ListView.cs : raise MouseDown before updating selection.
15175 [Fixes #80373 tab 1&3]
15177 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
15179 * ToolStripRenderer.cs: Add static method to mirror image.
15180 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
15181 and RightToLeftAutoMirrorImage.
15182 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
15184 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
15186 * ToolStripSplitStackLayout.cs: Support Alignment property.
15187 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
15189 2007-04-05 Jackson Harper <jackson@ximian.com>
15191 * TextControl.cs: Move around the line endings when crossing line
15193 - When combining lines, strip the ending text off the first line.
15195 2007-04-05 Jackson Harper <jackson@ximian.com>
15198 * TextBoxBase.cs: Try to never move the cursor into the line
15201 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
15203 * ToolStripItem.cs: Make sure we aren't firing mouse events when
15204 the item is disabled. Also add a few missing methods.
15206 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15208 * ListView.cs: We don't need the MouseEnter/MouseLeave check
15209 to fire just one MouseHover event when HoverSelection is true, since
15210 .Net does fire more than one MouseHover event in that scenario. Also,
15211 fix the selection in HoverSelection, by invoking UpdateMultiSelect
15212 if MultiSelect is true, instead of only setting ListViewItem.Selected.
15213 Finally, we need to reset the Hover logic in MouseMove, even when we
15214 don't have a selected item.
15216 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
15218 * ToolStrip.cs: Add several missing methods, properties, and events.
15220 2007-04-04 Chris Toshok <toshok@ximian.com>
15222 * DataGridTextBoxColumn.cs: set the bounds of the text box to
15223 (0,0,0,0) in Commit, as MS does.
15225 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
15226 make sure we set CurrentRow on a row header click *before* calling
15227 Select. This moves the current cell (and the textbox) to the new
15228 row. The call to Select then hides the textbox, giving us the
15229 correct behavior. Fixes #80362.
15231 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
15232 (ListChangedHandler): reorder the position/current changed events,
15233 and call UpdateIsBinding in the ItemAdded case.
15235 * GridColumnStylesCollection.cs: add some columns events, one of
15236 which raises the CollectionChanged event.
15238 2007-04-04 Jackson Harper <jackson@ximian.com>
15240 * TextControl.cs: When we delete multiple selection lines
15241 invalidate the selection area, don't need to do that for single
15242 lines because the final update view will handle it.
15244 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
15246 * Control.cs: When we CreateControl, we need to also create all of the
15247 control's children. The child's OnLoad must also fire before the parent's
15248 OnLoad. Fixes the toolbox size in PDN.
15250 2007-04-04 Jackson Harper <jackson@ximian.com>
15252 * TextBoxBase.cs: When the user presses enter, insert a line
15253 ending into the text. (Maybe this would be a good spot for
15254 Environment.NewLine).
15255 * TextControl.cs: Remove undo manager hack, line endings get
15256 inserted properly now.
15258 2007-04-04 Everaldo Canuto <everaldo@simios.org>
15261 - Remove unneeded parameters in UpdateCursor.
15262 - Fix UpdateCursor to check if menu is active.
15263 - Call UpdateCursor when menu deactivate my click.
15264 [Fixes remaining issues from #80410]
15266 2007-04-04 Everaldo Canuto <everaldo@simios.org>
15268 * Control.cs: GetRealChildAtPoint method added, it make an
15269 recursive child control search for the point.
15271 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
15274 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
15276 2007-04-03 Everaldo Canuto <everaldo@simios.org>
15278 * Form.cs: Fix mouse position when send back mouse event after closes
15281 2007-04-03 Everaldo Canuto <everaldo@simios.org>
15283 * Form.cs: Simplify the BUTTONDOWN for active tracker.
15285 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
15287 * Control.cs: Fix an issue where if a user resized a control inside
15288 a sizing method like OnResize, we would overwrite their explicit
15289 value. Also, only call DefaultSize once in the constructor instead
15290 of 4 times. Also, do not call SetBoundsCore from SetBounds if
15291 nothing actually changed.
15293 2007-04-03 Jackson Harper <jackson@ximian.com>
15295 * TextControl.cs: Don't attempt to copy text for lines with no
15296 text in them (technically this shouldn't happen, but we aren't
15297 always inserting line endings when we should be).
15299 2007-04-03 Jackson Harper <jackson@ximian.com>
15301 * TextBoxBase.cs: Calculate the scrollbars before calculating the
15302 document, because this sets some of the document size properties
15305 2007-04-03 Jackson Harper <jackson@ximian.com>
15307 * TextBoxBase.cs: We need to calculate maximums even if this is
15308 not a multiline control, because the maxs are used for scrolling.
15309 - Display the caret after doing a page up/down, we need to
15310 manually display it because a proper CaretMoved event isn't
15311 triggered (this is because of the way the math is done to
15312 determine how far to scroll).
15314 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
15316 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
15317 (ToolBar was relying on SetBoundsCore to default the values sent
15318 base off of BoundsSpecified.)
15320 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15322 * DateTimePicker.cs: Change Text so that when a null value or empty
15323 string is assigned to the test we always raise ValueChanged and
15324 TextChanged (earlier implementation would only raise ValueChanged
15325 if the current date value was different from DateTime.Now).
15327 2007-04-03 Andreia Gaita <avidigal@novell.com>
15329 * ButtonBase: Call update after invalidation, fixes #80194
15331 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15333 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
15336 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15338 * XplatUIX11.cs: SetWMStyles: If the control is a form with
15339 FormBorderStyle = None, don't give the window any decorations.
15342 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15344 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
15345 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
15346 to check for is a mix of several styles (such as WS_CAPTION for
15348 * Control.cs: Don't paint an area bigger than the client area when
15349 painting the background colour. Add an internal GetCreateParams.
15350 Update calls to XplatUI.CalculateWindowRect due to API change.
15351 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
15352 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
15353 the size if it hasn't been handled by any windows. When creating
15354 and moving windows, X wants the location of the entire window, but
15355 the size of the client window, so add
15356 TranslateClientRectangleToXClientRectangle,
15357 TranslateWindowSizeToXWindowSIze and
15358 TranslatedXWindowSizeToWindowSize to cope with this, and call them
15359 before every window creation and move. Update CalculateWIndowRect
15360 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
15361 In AddConfigureNotify don't do anything if the hwnd is a zombie
15362 (fixes the BadWindow we were getting while running the tests),
15363 always calculate the offsets when it's a parentless window, not
15364 only when reparented, and translate the window size, since we're
15365 getting the client size of the whole window, excluding entire
15367 * Theme.cs: Added BorderSizableSize.
15368 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
15369 anymore. Update calls to XplatUI.CalculateWindowRect due to API
15371 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
15372 change. Fake the window styles here instead of in XplatUIWin32 so
15373 that all back-ends get the same window styles (and it's Form that's
15374 deciding when to use wm, not the Win32 backend anyways)
15375 * Hwnd.cs: Completely reworked GetWindowRectangle and
15376 GetClientRectangle - they are now passed a CreateParams and they
15377 only use Style and ExStyle to determine the rectangles (they should
15378 now work just like Win32AdjustWindowRectEx - though quite a few
15379 special cases are probably missing). They should also be 100%
15380 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
15381 == rect), and all numbers (borders, menu sizes) are taken from the
15382 current theme. Added a GetBorders helper function that will return
15383 the borders for any given CreateParams (including captions and
15384 menus), and GetBorderSize that returns the given border size only.
15385 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
15386 Hwnd.GetClientRectangle.
15388 2007-04-02 Chris Toshok <toshok@ximian.com>
15390 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
15391 logic between the values we present to the user and the values
15392 which are stored in the column's property. Also, don't call
15393 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
15395 2007-04-02 Jackson Harper <jackson@ximian.com>
15397 * TextBoxBase.cs: Scroll faster!
15399 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
15401 * StatusStrip.cs: Layout fixes for PDN.
15402 * ToolStrip.cs: Set item's available to true, and placement to main when
15404 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
15405 changing in setter before doing any work, add InternalVisible.
15406 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
15407 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
15410 2007-04-02 Jackson Harper <jackson@ximian.com>
15412 * TextBox.cs: LBUTTON does not make the textbox select all of it's
15415 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15417 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
15418 Makes ToolStripComboBoxes show up again.
15420 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15422 * ListView.cs: Add a hover_pending field in ListView
15423 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
15424 cycle (we are resetting the MouseHover logic in XplatUI
15425 to handle HoverSelection). Fixes #80429.
15427 2007-04-02 Jackson Harper <jackson@ximian.com>
15429 * TextControl.cs: Make sure the attributes get set on the last
15431 - Still have to do the end tag if we have stepped all the ways to
15434 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
15436 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
15437 on an internal libgdiplus call when the information is already
15438 available via the public API.
15440 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15442 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
15443 control is removed from a control collecftion.
15444 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
15445 Fixes FormPropertyTest (failed on rare occasions).
15446 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
15447 of Win32SetParent (when changing from no parent to a parent it
15448 might add the new parent's location in screen coordinates to this
15449 window's location).
15450 * Form.cs: Rework ChangingParent once again, now the handle is
15451 recreated whenever a FormWindowManager is added or removed (that is
15452 whenever a normal form is parented or abandoned). Also change
15453 CreateParams so that all non-toplevel windows always get the
15454 specified sice (StartupPosition is never considered for
15455 non-TopLevel forms).
15456 * ContainerControl.cs: Add ChildControlRemoved, the container control
15457 needs to be notified when a control is removed from it's
15458 collection, in the case the removed control is the active control.
15460 2007-04-02 Jackson Harper <jackson@ximian.com>
15462 * RichTextBox.cs: Use the new methods for setting the font and
15463 color, these methods set the specified attribute without
15464 overriding the other attributes.
15466 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
15468 * ToolStripPanel.cs: Fixes for better layouts in PDN.
15470 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
15472 * TextBox.cs: Added internal ChangeBackColor method to special-case
15473 Color.Empty. Added check for invalid ScrollBars value.
15474 * TextBoxBase.cs: Added internal ChangeBackColor method.
15475 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
15476 internal ChangeBackColor method to special-case Color.Empty. Added
15477 check for invalid ScrollBars value.
15479 2007-03-30 Everaldo Canuto <everaldo@simios.org>
15481 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
15483 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
15485 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
15486 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
15487 [Based on submitted patch from Olivier Duff.]
15489 2007-03-30 Jackson Harper <jackson@ximian.com>
15491 * TextBox.cs: Only select all on initial focus if the user has not
15492 specified a selection area.
15494 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
15496 * UserControl.cs: Override CreateParams.
15498 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15502 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
15503 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
15504 check for is a mix of several styles (such as WS_CAPTION for instance).
15505 * Control.cs: Don't paint an area bigger than the client area when painting
15506 the background colour. Add an internal GetCreateParams. Update calls to
15507 XplatUI.CalculateWindowRect due to API change.
15508 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
15509 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
15510 hasn't been handled by any windows. When creating and moving windows, X
15511 wants the location of the entire window, but the size of the client
15512 window, so add TranslateClientRectangleToXClientRectangle,
15513 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
15514 to cope with this, and call them before every window creation and move.
15515 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
15516 removing DeriveStyles). In AddConfigureNotify don't do anything if the
15517 hwnd is a zombie (fixes the BadWindow we were getting while running the
15518 tests), always calculate the offsets when it's a parentless window, not
15519 only when reparented, and translate the window size, since we're getting
15520 the client size of the whole window, excluding entire window.
15521 * Theme.cs: Added BorderSizableSize.
15522 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
15523 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
15524 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
15525 Fake the window styles here instead of in XplatUIWin32 so that all
15526 back-ends get the same window styles (and it's Form that's deciding when
15527 to use wm, not the Win32 backend anyways)
15528 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
15529 they are now passed a CreateParams and they only use Style and ExStyle
15530 to determine the rectangles (they should now work just like
15531 Win32AdjustWindowRectEx - though quite a few special cases are probably
15532 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
15533 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
15534 sizes) are taken from the current theme. Added a GetBorders helper
15535 function that will return the borders for any given CreateParams
15536 (including captions and menus), and GetBorderSize that returns the given
15538 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
15539 Hwnd.GetClientRectangle.
15541 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15543 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
15544 layout of the mdi children is handled by CreateParams. Fixes
15547 2007-03-29 Everaldo Canuto <everaldo@simios.org>
15549 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
15552 * Form.cs: When active tracker mouse down is not processed, send event
15553 back to control inside mouse position. [Fixes #81227]
15555 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
15557 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
15558 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
15559 stealing focus from the active form on Windows. (Control will be made
15560 visible in ShowWindow.)
15562 2007-03-29 Mike Kestner <mkestner@novell.com>
15564 * ImageList.cs : add internal Changed event.
15565 * ListView.cs : hook up to StateImageList.Changed to perform
15566 invalidations when the the state icon list changes. [Fixes #81191]
15568 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
15570 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
15571 to prevent tooltips from stealing focus from the active form on Windows.
15573 2007-03-29 Everaldo Canuto <everaldo@simios.org>
15575 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
15577 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
15579 2007-03-29 Everaldo Canuto <everaldo@simios.org>
15581 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
15584 2007-03-29 Jackson Harper <jackson@ximian.com>
15586 * TextControl.cs: When deleting text from non multiline textboxes,
15587 we need to update the entire document, because line offsets will
15590 2007-03-29 Everaldo Canuto <everaldo@simios.org>
15592 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
15593 added to theme, now we can create themes that uses diferent notify engines
15594 like notification-daemon from galago project or growl for Mac OS.
15596 2007-03-28 Everaldo Canuto <everaldo@simios.org>
15598 * NotifyIcon.cs: Prevent Balloon to show in task bar.
15600 2007-03-28 Everaldo Canuto <everaldo@simios.org>
15602 * XplatUIX11.cs: Prevent system to open more than one balloon.
15604 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
15605 some compiler warning messages.
15607 2007-03-28 Everaldo Canuto <everaldo@simios.org>
15611 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
15613 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
15614 implemented, this methods is used by NotifyIcon.BalloonWindow class.
15616 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
15619 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15621 * ListViewItem.cs: Forgot to make Invalidate internal.
15623 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15625 * ListView.cs: Add a InvalidateSelection method to
15626 invalidate methods which are currently selected, and call
15627 it when setting FullRowSelect and HideSelection, instead of
15630 2007-03-28 Chris Toshok <toshok@ximian.com>
15632 * XplatUIX11.cs (UnmapWindow): reindent this block.
15634 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
15635 the selection_start if we're moving the selection (that is, not
15636 extending it). Fixes bug #80461.
15638 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
15640 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
15641 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
15642 create private ControlCollection.
15644 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
15646 * Control.cs: We need to call OnVisibleChanged for our implicit
15647 children as well as our normal children. Fixes scrollbars in
15648 comboboxes not showing up.
15650 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
15652 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
15653 the check for IsHandleCreated first. The check in CreateHandle is not
15654 good enough because CreateHandle can be overriden, and the override
15655 should not be called if the handle is already created.
15657 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
15659 * ToolStrip.cs: Remove MonoTODO for tooltips.
15660 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
15661 * ToolStripContainer.cs: Add custom ControlCollection class.
15662 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
15663 * ToolStripDropDown.cs: Add some missing properties/methods.
15664 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
15665 * ToolStripItem.cs: Remove MonoTODO for tooltips.
15666 * ToolStripManager.cs: Add IsShortcutDefined.
15667 * ToolStripOverflow.cs: Override LayoutEngine.
15668 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
15669 * ToolStripSeparator.cs: Add ImageKey.
15671 2007-03-28 Jackson Harper <jackson@ximian.com>
15673 * TextControl.cs: If a char delete removes a line ending, we need
15674 to update the ending style.
15675 - Make sure the line ending calcs get called.
15677 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15679 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
15680 it was making the new code not work. Fixed a typo in the new code
15681 as well. Fixes #79826.
15683 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15686 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
15687 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
15688 - SystrayBalloon method implemented.
15689 [Add support for notifyicon balloon on win32, #79149]
15691 2007-03-27 Mike Kestner <mkestner@novell.com>
15693 * ThemeWin32Classic.cs : update StateImageList selection to mirror
15694 the ms behavior when only one image is added to the list.
15697 2007-03-27 Jackson Harper <jackson@ximian.com>
15699 * TextControl.cs: Improvements to non multiline line ending
15702 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15704 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
15706 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15709 - Balloon message handling added.
15710 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
15712 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15713 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
15714 to SystrayBalloon to me like other Systray method, also a
15715 handle parameter added.
15717 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15719 * ListView.cs: Show scrollbars even when items.Count == 0
15720 but the columns Width is bigger than the ListView.Width.
15721 Also, when columns.Count == 0 set layout_wd and layout_ht
15722 to the ClientRectangle values, so we don't show any scrollbar
15725 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15727 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
15729 2007-03-27 Jackson Harper <jackson@ximian.com>
15731 * RichTextBox.cs: The RTF library decodes the text properly for us
15734 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15736 * ListView.cs: Display HeaderControl even when columns.Count == 0.
15737 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
15738 ListView header (HeaderControl), instead of Control.BackColor.
15740 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
15742 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
15743 Fixes tab control issues where controls would not show up because they
15744 never received their OnVisibleChanged call.
15746 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15748 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
15751 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
15753 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
15754 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
15755 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
15756 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
15757 the handle. Fix WindowState by using the internal variable until we are
15758 sure that we've been shown.
15759 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
15763 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
15765 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
15766 (at least borders). Fixes #79386 on Linux (with a small difference
15767 in behaviour: when trying to resize a caption-less window metacity
15768 shows the sysmenu. Resizing is still possible though).
15769 * XplatUIWin32.cs: When setting window styles send request an extra
15770 WM_NCCALCSIZE when it's a form without title (due to no text and no
15771 caption), since Win32 seems to calculate it wrong the first time we
15772 get the message, though the second time things work as they should.
15773 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
15774 newly reparented window might show up unparented. Update
15775 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
15776 there's no title text. Fixes #79386.
15778 2007-03-27 Mike Kestner <mkestner@novell.com>
15780 * ListBox.cs : don't perform invalidations if the handle hasn't been
15781 created. [Fixes #80753]
15783 2007-03-27 Mike Kestner <mkestner@novell.com>
15785 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
15788 2007-03-26 Everaldo Canuto <everaldo@simios.org>
15790 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
15791 needed to implement Balloon.
15793 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15795 * ListViewItem.cs: In the constructors that take
15796 an array of strings, don't use ListViewSubItemCollection.AddRange
15797 method to add items, since we need to have a different behaviour (in
15798 the constructors we add an item for each null string, opposed to
15799 the behaviour of AddRange, which adds nothing).
15801 2007-03-26 Andreia Gaita <avidigal@novell.com>
15803 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
15805 2007-03-26 Jackson Harper <jackson@ximian.com>
15807 * TextControl.cs: Draw and measure line endings when in non
15809 - When searching the text, count the end of the last line as a
15812 2007-03-26 Jackson Harper <jackson@ximian.com>
15814 * RichTextBox.cs: The selection_start and selection_end don't
15815 really track the correct tags for the selection. So we'll manually
15816 compute the correct tag here.
15818 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15820 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
15821 and Continuous styles. Fixes #79469.
15823 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
15825 * ToolStrip.cs: Implement Tooltips.
15826 * ToolStripItem.cs: Create internal method for determining tooltip.
15828 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
15830 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
15832 2007-03-26 Everaldo Canuto <everaldo@simios.org>
15834 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
15835 it prevents a problem thak keeps icon visible after application
15838 2007-03-26 Everaldo Canuto <everaldo@simios.org>
15840 * NotifyIcon.cs: Balloon properties and methods created.
15842 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15843 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
15845 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
15847 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
15849 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
15851 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
15852 parameter indicates which aspects were explicit/user-set.
15853 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
15855 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
15857 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
15858 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
15859 SmallChange, and Value (2.0).
15860 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
15862 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15864 * ListView.cs: Always set item_control.Width in LayoutDetails
15865 if View is Details. Setting it later in CalculateScrollBars
15866 in a not-so-corner scenario (the sum of columns width is
15867 not bigger than the ListView width when handle is created, and then
15868 that sum gets bigger by increasing the width of the columns)
15869 causes a very weird recursion path (which shouldn't be happening,
15870 since header_control sets it in CalculateScrollBars too). This bug
15871 appeared after Chris' fixes for handle created issues, so probably
15872 it's related to some handle-creation time.
15874 2007-03-23 Chris Toshok <toshok@ximian.com>
15876 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
15877 case where there's an add row, just so we don't end up in a case
15878 where it's not displayed (this happens when the row is partially
15879 obscured). Fixes bug #79574.
15881 2007-03-23 Jackson Harper <jackson@ximian.com>
15885 * RichTextBox.cs: Preserve line endings in the lines text buffer,
15886 also added an enum that represents the line ending type.
15888 2007-03-23 Andreia Gaita <avidigal@novell.com>
15890 * NumericUpDown.cs: Fix logic so Text and Value properties are not
15891 messed with in every method call, but only from DownButton,
15892 UpButton, UpdateEditText() and ValidateText. Fixes #80346
15894 2007-03-23 Chris Toshok <toshok@ximian.com>
15896 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
15897 format objects if the format spec is "". Fixes bug #80889.
15899 2007-03-22 Miguel de Icaza <miguel@novell.com>
15901 * ToolStripPanel.cs (Join): added stubs to build PDN3
15903 * Control.cs (AutoScrollOffset): Add.
15905 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15906 property, its only implemented for Win32, on X11 it defaults to
15907 some hardcoded value.
15909 * ToolStripItem.cs (AllowDrop): Add property
15911 2007-03-22 Mike Kestner <mkestner@novell.com>
15913 * ListView.cs : in FullRowSelect Details mode, only enable box
15914 selection if the user clicks over the "item" column outside of the
15915 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
15917 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15919 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
15920 handle is not created yet.
15921 * Form.cs: Select: Don't call CreateHandle if the handle is already
15922 created, avoids a stack overflow on Windows when we are recreating
15924 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
15925 they are made visible, and override AfterTopMostControl to keep
15926 them on top when other controls are brought to front.
15927 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
15928 or force_*scroll_visible is true (old implementation always shows
15929 scrollbars when needed, no matter what auto_scroll was set to).
15930 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
15931 IsHandleCreated check.
15933 2007-03-22 Andreia Gaita <avidigal@novell.com>
15935 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
15936 row or col separator.
15937 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
15939 2007-03-22 Everaldo Canuto <everaldo@simios.org>
15941 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
15943 2007-03-22 Everaldo Canuto <everaldo@simios.org>
15945 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
15946 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
15947 every time. Fixes #80410.
15949 2007-03-22 Chris Toshok <toshok@ximian.com>
15951 * BindingSource.cs (AddNew): partially implement.
15953 remove a couple of NotImplementedException's
15954 to get bug #81148 closed.
15956 2007-03-22 Everaldo Canuto <everaldo@simios.org>
15961 - UpdateCursor method added to update the screen cursor.
15962 - GetAvailableCursor method added to return cursor for enabled tree,
15963 it searches for cursor on control and it's parent's for enabled control.
15964 - Call UpdateCursor method on setter of Cursor property.
15965 - On setter of Enabled call UpdateCursor when it is false, we need to
15966 change cursor to normal (or to this parent cursor) because cursor
15967 setting theres no effect to disabled controls.
15968 - Some minor source changes to follow the coding style guidelines.
15970 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
15973 2007-03-22 Chris Toshok <toshok@ximian.com>
15975 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
15978 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15980 * XplatUIX11.cs: Implement default locations for forms.
15981 * Form.cs: Completely rework startup location for forms. Fixes #79964.
15982 * Hwnd.cs: Add previous_child_startup_location (to track the current
15983 startup location for any child forms of the current form) and
15984 previous_main_startup_location (to track the startup location for
15985 the current toplevel form).
15987 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
15989 * Control.cs: Don't trigger a layout if an implicit control is added
15990 that isn't visible. Also, don't notify the owner when an implicit control
15991 is added. (Owners shouldn't even know about their implicit controls.)
15993 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
15995 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
15996 to save some re-layouts.
15998 2007-03-21 Everaldo Canuto <everaldo@simios.org>
16000 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
16003 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
16005 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
16006 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
16008 2007-03-21 Mike Kestner <mkestner@novell.com>
16010 * ListView.cs : disable selection update for non-left button clicks
16011 with mods and over selected items. [Fixes #80524]
16013 2007-03-20 Jackson Harper <jackson@ximian.com>
16016 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
16019 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16021 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
16022 very probably a more complicated calculation there. Update the
16023 textbox' ForeColor and BackColor when the ComboBox' colors are
16024 changed. Change the border change in LayoutComboBox to only affect
16025 the textbox, not all the calculations there. Seems to fix most of
16028 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16030 * ComboBox.cs: Handle Home and End keys as well as all combinations of
16031 modifiers + navigation keys as input keys, enables advanced text
16032 selection in the combobox (like Shift+Left Arrow for instance).
16033 ComboTextBox now overrides Focused and returns whatever
16034 ComboBox.Focused returns, since it really should be focused
16035 whenever the ComboBox is. Fixes #80795. Also make the border around
16036 the text box one pixel bigger, as mentioned in #79436.
16038 2007-03-20 Jackson Harper <jackson@ximian.com>
16040 * TreeView.cs: Don't offset the images, this was causing some
16041 artifacts when expanding/collapsing with images that were the
16042 exact height of the treenode.
16044 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16046 * TrackBar.cs: Query the theme for the correct value when the mouse
16047 moves and the thumb is pressed.
16048 * Theme.cs: Added TrackBarValueFromMousePosition
16049 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
16050 implementation was updating the trackbar value when drawing, now
16051 the drawing methods only draw. Fixes #80900. Refactored the
16052 calculations out to TrackBarValueFromMousePosition and
16053 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
16054 according to the mouse position whenever it wants to. Changed the
16055 light coloured pen when drawing the thumb from ControlLight to
16056 ControlLightLight, because the ControlLight is the same colour as
16057 the background so the 3D effect is lost.
16059 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16061 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
16062 defined. Fixes #80784.
16064 2007-03-20 Marek Habersack <mhabersack@novell.com>
16066 * ContextMenuStrip.cs: align with the change introduced in
16069 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16071 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
16072 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
16075 2007-03-19 Chris Toshok <toshok@ximian.com>
16077 * Control.cs (WmPaint): don't make use of the Handle property
16078 after an event is emitted, as the user could have closed the
16079 form/destroyed the control. Store the Handle in a local variable
16080 and make use of that. Fixes bug #80768.
16082 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16084 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
16085 behavior in X11 environments.
16087 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16089 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
16090 because on setter of topmost we dont call SetTopmost when handle is not
16093 2007-03-20 Jackson Harper <jackson@ximian.com>
16095 * TextControl.cs: Need to use SelectionLength () not
16096 selection_length, since that var is reset to -1.
16097 - Draw the caret when we don't have focus.
16098 * TextBox.cs: The selectall actually doesn't occur until the first
16100 * TextBoxBase.cs: Need to update the caret position after a
16103 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16105 * ListView.cs: Enable scrolling when using Tile view.
16107 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16111 * XplatUIDriver.cs: Abstract SetOwner method created.
16113 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
16114 must be implemented and was masked as todo.
16116 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
16119 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
16120 cheking for null owner to remove transient. The SetTopmost will be change
16123 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
16124 SetTopmost. Now owned forms will work properly in win32 and X11.
16126 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16128 * MdiWindowManager.cs: Update function name.
16129 * Form.cs: After closing a form MdiParent is always null.
16130 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
16131 better what it should do: necessary book-keeping when the form is
16132 closed, it should not close the form itself.
16134 2007-03-19 Andreia Gaita <avidigal@novell.com>
16136 * ListViewItem.cs: Fix back and fore color. The subitems only
16137 use their own colors if they are set, otherwise use the listview's
16138 colors. Don't set default colors on constructor for subitem.
16141 2007-03-19 Mike Kestner <mkestner@novell.com>
16143 * ListView.cs : make box selection for Details views with
16144 FullRowSelect conform to MS behavior when clicking in the "item"
16145 column and clicking outside the defined columns.
16146 [Fixes case 5-6 of #80374]
16148 2007-03-19 Chris Toshok <toshok@ximian.com>
16150 * ScrollableControl.cs: create the controls from within the ctor,
16151 but don't actually add them until our handle is created. this
16152 fixes a NRE possibility jpobst found (if you override OnLayout in
16153 a subclass, it's called before your ctor). Also, add a
16154 IsHandleCreated guard to UpdateSizeGripVisibility as well.
16156 2007-03-19 Jackson Harper <jackson@ximian.com>
16158 * TextBox.cs: Reduce the amount of invalidation we do.
16159 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
16160 some of them are true by default on MS.
16161 - Add some functions to reduce the amount of invalidates we do.
16162 * TextControl.cs: Less invalidation.
16164 2007-03-19 Chris Toshok <toshok@ximian.com>
16166 [ Fixes #81773, and *seems* to fix #81553 as well ]
16168 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
16169 AccumulateDestroyedHandles. We need to do it *after* we send
16170 WM_DESTROY, as the user's code can access Control.Handle in
16171 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
16172 move the WM_DESTROY/zombie handling to before the call to
16173 XDestroyWindow. For some reason without this ordering
16174 FormTest.RecreateHandle hangs. This ordering is semantically
16175 equivalent, however, as XDestroyWindow is async anyway.
16177 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
16179 * RichTextBox.cs: Reset backcolor_set after setting default.
16181 2007-03-19 Chris Toshok <toshok@ximian.com>
16183 * ScrollableControl.cs: the scroll position should not effect the
16184 canvas size. commit patch from georgegiolfan@yahoo.com, which
16185 fixes some really bizarre behavior on resizing. Fixes bug #80778.
16187 2007-03-19 Chris Toshok <toshok@ximian.com>
16189 * ScrollableControl.cs: clean this up a bit. create the
16190 scrollbars in the ctor and just show/hide them as needed. Also,
16191 make hscroll_visible/vscroll_visible internal to Recalculate, and
16192 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
16193 everywhere else. This seems to fix the scrollbars appearing
16194 beneath the content for me (i have *no* idea why that is,
16197 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
16199 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
16200 some redundacy for stuff in Anchor and Dock that base will take care of.
16203 2007-03-19 Mike Kestner <mkestner@novell.com>
16205 * ListView.cs : make box selection for Details views without
16206 FullRowSelect dependent on the text bounds, not item bounds.
16207 * ListViewItem.cs : add an internal property to obtain the TextBounds
16208 in Details view. [Fixes case 1-4 of #80374]
16210 2007-03-19 Andreia Gaita <avidigal@novell.com>
16212 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
16213 we're < 2.0. #78448 && #80316
16215 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
16217 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
16218 have the same style available as the previously selected one. Also,
16219 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
16221 2007-03-19 Jackson Harper <jackson@ximian.com>
16223 * TextControl.cs: Add an alignment property that all new lines
16225 - Make sure to use the align shift when calculating the line's X
16227 * TextBox.cs: Set the alignment on the document as well as on all
16228 the document lines.
16230 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16232 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
16233 throw if setting the parent of an mdichild that already has an
16234 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
16235 AssemblyProductAttribute in the assembly, use the type's namespace (as
16236 MS seems to do). CreateControl: don't create the handle if the control
16237 is not visible (according to MS behaviour and spec). SetTopLevel: Only
16238 create handle if the control is not a form. Change FocusInternal to
16239 virtual so that it can be overriden by Form.
16240 * TextBox.cs: Update call to FocusInternal.
16241 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
16242 form is not a toplevel form when it's a mdi child, so update is_toplevel
16243 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
16244 hasn't been created. Show (IWin32Window): Don't allow this overload for
16245 toplevel windows. CenterToParent/CenterToScreen/Select: create the
16246 handle as MS does. SetVisibleCore: if called on a MdiChild and the
16247 parent isn't visible yet, save the visibility and restore it when the
16248 parent is made visible.
16249 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
16250 methods, since the visibility of the scrollbars can be changed from
16251 several places, not only from AutoScroll.
16254 2007-03-19 Jackson Harper <jackson@ximian.com>
16256 * RichTextBox.cs: Enable shortcuts by default.
16257 * TextBoxBase.cs: Add conditional shortcuts.
16259 2007-03-19 Everaldo Canuto <everaldo@simios.org>
16261 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
16263 2007-03-19 Chris Toshok <toshok@ximian.com>
16265 [ Fixes bug #80604]
16267 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
16268 swallow the message we're waiting on, instead of delivering it, as
16269 this is only used for the WM_SHOWWINDOW raised from
16270 MapWindow/UnmapWindow, and the message needs to be generated
16271 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
16272 before doing the Map/Unmap. Also make sure that the Hwnd is still
16273 alive after the message has been handled.
16275 *before* the window is shown.
16277 * Control.cs (CreateControl): guard a few more things inside the
16278 if (!is_created) block, as we might end up being called again -
16280 (WmShowWindow): call CreateControl if we're showing the control.
16282 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16284 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
16285 controls without a handle if they have any parent with a handle. In
16286 Dispose add a check whether the handle is created or not before
16287 calling BeginInvoke, this removes the need of the extra disposing
16288 parameter (which was bogus anyway since it didn't prevent the
16289 invoke from happening, it only skipped the check for an existing
16290 handle, meaning that the invoke would call on an inexistent
16293 2007-03-19 Everaldo Canuto <everaldo@simios.org>
16295 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
16296 appears in taskbar.
16298 2007-03-18 Everaldo Canuto <everaldo@simios.org>
16301 - Fixed a problem that dont show help button for messages with 3 buttons.
16302 - Refactory button size and position calculations, now dont use fixed
16303 values, also fixed button sizes (#80043) and form's border space.
16304 - AddButton method created, now all other AddButton methods call this one.
16305 - Some other source code cosmetic changes.
16307 2007-03-18 Jackson Harper <jackson@ximian.com>
16309 * RichTextBox.cs: Don't do this all fonts must match check if
16310 there is only one char selected.
16312 2007-03-18 Jackson Harper <jackson@ximian.com>
16314 * TreeView.cs: ScrollWindow works properly now, so we don't need
16315 to screw around with the scroll area. This fixes some artifacts
16316 when expanding and collapsing.
16318 2007-03-18 Jackson Harper <jackson@ximian.com>
16320 * TextBoxBase.cs: Allow updating the selection position when the
16321 cursor is outside the textarea, but we have a capture.
16322 * TextControl.cs: A special case for when the cursor is outside
16323 the bounds of the TB.
16325 2007-03-18 Jackson Harper <jackson@ximian.com>
16327 * TextBoxBase.cs: Remove image pasting code for now. There is no
16328 way to get an image on the clipboard right now anyways.
16330 * RichTextBox.cs: Use the new RTF Picture class for pictures.
16332 2007-03-18 Everaldo Canuto <everaldo@simios.org>
16335 - Set window properties in constructor intead of on CreateParams.
16336 - Remove topmost from Window ExStyle.
16337 - Set ShowInTaskbar to false.
16338 - Set form border to FixedDialog.
16339 - Some cosmetic changes and remove unneeded comments.
16340 - It fixes itens 2,3 and 4 of bug #80043.
16342 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
16344 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
16345 none was explicitly set. Fixes part of bug #79949.
16347 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
16349 * ToolStripComboBox.cs: Add AutoComplete*.
16351 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
16353 * ToolStripComboBox.cs: Add FlatStyle.
16355 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
16357 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
16358 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
16360 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16362 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
16363 CheckBox.cs, RadioButton.cs, BindingSource.cs,
16364 DataGridColumnStyle.cs: Remove warnings.
16366 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16368 * Menu.cs: MergeMenu: Check menu argument for null before looping over
16370 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
16371 visibility of mdi child forms. FormSizeChangedHandler: update the
16372 maximized size if size has changed while maximized.
16373 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
16374 creating the handle.
16375 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
16376 avoid creating the handle if not created.
16377 * XplatUI.cs: Update debug output.
16378 * XplatUIStructs.cs: Added ToString's for a couple of structs.
16380 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
16382 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
16384 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
16385 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
16386 Implement keyboard shortcuts.
16388 2007-03-15 Everaldo Canuto <everaldo@simios.org>
16390 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
16391 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
16392 ColorDialog and all derived classes.
16394 2007-03-15 Everaldo Canuto <everaldo@simios.org>
16396 [ Fixes bug #79828 ]
16399 - Rename ToolBarButtonInfor to ToolBarItem.
16400 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
16401 - Maintain an array of ToolBarItem, used instead of ToolBarButton
16402 collection to be able add same button more than one time on a toolbar.
16403 - Refactory all properties and methods to use ToolBarItem.
16405 * ToolBarButton.cs:
16406 - Remove all propeties and methods that is now in ToolBarItem.
16407 - Rectangle propery now gets the rectangle from first ToolBarItem to
16408 mimic win32 behavior.
16409 - Size calculation and layout methods also removed.
16411 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
16412 ToolBarItem instead of ToolBarButton to right drawing buttons when
16413 same button/separator was added more than one time to ToolBar.
16415 * ThemeNice.cs: Same as above.
16417 2007-03-15 Andreia Gaita <avidigal@novell.com>
16419 * XplatUIX11.cs: Fire extra MouseMove events right after
16420 MouseDown and MouseUp, emulating win32's <censored> behaviour
16421 for apps that rely on it.
16423 2007-03-15 Jackson Harper <jackson@ximian.com>
16426 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
16427 it is drawn on the controls client window and there is no NC
16429 - Set the background color to gray on 2.0 when we are readonly.
16431 2007-03-15 Chris Toshok <toshok@ximian.com>
16433 [ Fixes bug #81144 ]
16435 * XplatUIX11.cs: implement VirtualScreen independently of
16436 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
16439 2007-03-15 Chris Toshok <toshok@ximian.com>
16441 * Hwnd.cs: add an internal field for the cached_window_state.
16443 * XplatUIX11.cs: cache the window state, invalidating the cache
16444 (and thus re-querying the X server) only when we see an update to
16445 the _NET_WM_STATE property.
16447 2007-03-15 Chris Toshok <toshok@ximian.com>
16449 * BindingSource.cs: get a lot of the unit tests working.
16451 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
16453 * Control.cs: Modify UpdateStyles to store distances when bounds >=
16454 0 instead of just bounds > 0. [Fixes bug #80912]
16456 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
16458 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
16461 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
16463 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
16464 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
16465 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
16466 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
16468 2007-03-15 Chris Toshok <toshok@ximian.com>
16472 * Control.cs: add Ivan's fix for 81101, with a slight modification
16473 - you can set control.Target to null.
16475 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
16477 * ToolStripItem.cs: If our OwnerItem is null, we can't use
16478 HideDropDown, use Hide instead to prevent an NRE.
16481 2007-03-14 Jackson Harper <jackson@ximian.com>
16483 * TextBoxBase.cs: Mess with the creation stuff a little. We need
16484 to calculate the document before the handle is created, in some
16485 cases. (Actually just one case).
16487 2007-03-14 Jackson Harper <jackson@ximian.com>
16489 * TextBoxBase.cs: Need to display the caret after letting the base
16490 wndproc handle the focus methods, because the caret display
16491 methods check the focus state.
16492 - Try to display the caret after updating it's position with SelectWord.
16493 - Don't need to do an immediate update on this recalc, since there
16494 will be an invalidate anyways.
16496 2007-03-14 Jackson Harper <jackson@ximian.com>
16498 * TreeView.cs: Some workarounds so that we can match event order a
16501 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
16503 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
16504 #80803. Avoid NullReferenceException when Control does not have
16505 parent. Fixed different blinkstyle issues. Only subscribe to Tick
16506 event a single time. Only draw error icon when control is created and
16507 visible. Fixes failing unit tests.
16509 2007-03-14 Andreia Gaita <avidigal@novell.com>
16511 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
16512 Selecting events. Fire Leave and Enter events when changing tabs.
16514 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
16516 * TreeView.cs: Add TreeViewNodeSorter.
16517 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
16519 2007-03-14 Chris Toshok <toshok@ximian.com>
16521 * Form.cs: go ahead and remove the RecreateHandles that jpobst
16522 removed earlier and I had him add back it. It turns out metacity
16523 *does* in fact handle the MOTIF_WM_HINTS property changing, it
16524 just doesn't redraw the window titlebar until you resize the
16525 window. This also means we aren't recreating the entire window
16526 hierarchy on X when you change this property. And it looks better
16529 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16532 * ListView.cs: Collecting selection information
16533 is now done in SelectedIndexCollection rather than in
16534 SelectedListViewItemCollection. This is done so we can
16535 have the selection information code in one single place
16536 (virtual mode selection information entirely depends on
16537 SelectedIndexCollection).
16539 2007-03-13 Miguel de Icaza <miguel@novell.com>
16541 * ErrorProvider.cs: Add stubs for ISupportInitialize
16543 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16545 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
16546 in the right order with the right values, from the Checked property,
16547 just as MS does (instead of triggering them from ListView).
16549 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
16551 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16553 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
16554 the correct handler in OnItemCheck method (ItemCheckEventHandler
16555 instead of EventHandler). This used to throw an InvalidCastException.
16557 2007-03-13 Jackson Harper <jackson@ximian.com>
16559 * TextBoxBase.cs: Calculate the document before the handle is
16560 created, so there isn't an extra invalidate called.
16562 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
16564 * Form.cs: Don't set owner in ShowDialog until we are sure
16565 that we aren't going to throw an exception. [Fixes bug #80773]
16567 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
16569 * TreeView.cs: Make it compile.
16571 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16573 * Control.cs: Another place we don't call SizeFromClientSize.
16574 * Form.cs: Another place we don't call SizeFromClientSize.
16577 2007-03-12 Jackson Harper <jackson@ximian.com>
16579 * TreeView.cs: Basically emulating some strangness here with
16580 exanding nodes and setting node positions when windows aren't
16582 - Also attempting to walk the node tree less than previously, and
16583 just use visible order calculations for determining offsets.
16584 - oops made scrolling backwards.
16585 * TreeNode.cs: We need to start nodes with a zero visible order,
16586 because the order calcs are based on the first nodes order.
16588 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16590 * Form.cs: Don't exit the program if RecreateHandle is called on
16593 2007-03-12 Chris Toshok <toshok@ximian.com>
16595 * XEventQueue.cs: remove the use of PostQuitState.
16597 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
16598 WM_QUIT message in GetMessage, return false (and if we're in the
16599 nested WaitForHwndMessage, repost the WM_QUIT message).
16601 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16603 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
16604 or the MaximizeBox properties. [Part of bug #80640]
16606 2007-03-12 Everaldo Canuto <everaldo@simios.org>
16608 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
16611 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16613 * ToolStripItem.cs: Fix some tests I broke by checking Visible
16614 instead of visible.
16616 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
16618 * FileDialog.cs: Use text of File name combobox to determine what
16619 files the user selected. Added tokenizer to parse the file names.
16622 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16624 * Control.cs: We can't call SizeFromClientSize in the constructor,
16625 but we still need to do the same work, so make an internal version.
16628 2007-03-12 Jackson Harper <jackson@ximian.com>
16632 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
16635 2007-03-12 Jackson Harper <jackson@ximian.com>
16637 * TextBoxBase.cs: Now that the handles are being created a little
16638 later, we need to make sure that the document is recalculated when
16639 the handle is created.
16641 2007-03-11 Everaldo Canuto <everaldo@simios.org>
16643 * Theme.cs: GetLinkFont abstract method added.
16646 - Remove CalcTrimRectangle, no longer needed.
16647 - Factor also remove, position issues must be fixed in libgdiplus.
16648 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
16649 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
16650 care about font used to draw links.
16651 - Set TabStop to true when control is "Selectable", control is selectable
16652 when have one or more links. Fixes #80501 (test case is also added).
16653 - Set the LinkArea values after links change, LinkArea values must be
16654 based in first link position and size, a test case was created.
16655 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
16656 the attribute must be true LinkArea.Length > 0. The same was applied to
16659 * ThemeWin32Classic.cs:
16660 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
16662 - Use CPDrawStringDisabled to draw disabled text instead of hard code
16664 - Draw focus rectangle for every parts focused, including parts that
16665 is on another line, its because regions returns various rectangles
16666 and not only one. Needed to mimic W32 look.
16667 - Uses Graphics.Clip to delimite region painted, it mean that now
16668 complete text is passed to DrawString, with this we solve layout
16669 issues without create another text renderer.
16670 - Uses Region.Intersect to fix some flickers problems, now only needed
16671 parts will redrawed.
16672 - This changes fixes #79614 and some other unreported issues, on Linux
16673 some layout problems still remain, the problem is under
16674 MeasureCharacterRanges but it is an libgdiplus bug.
16676 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
16678 * TextBox.cs: Set for foreground color.
16679 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
16680 this is already done in Control.
16682 2007-03-10 Jackson Harper <jackson@ximian.com>
16684 * TextBox.cs: Set the background color, but reset the
16685 backcolor_set flag which is just for the user setting the
16688 2007-03-09 Chris Toshok <toshok@ximian.com>
16690 * Control.cs: really remove the call to XplatUI.SetVisible from
16691 CreateHandle(), like I said I did when I merged the branch.
16693 * BindingSource.cs: implement some more of this stuff.
16695 2007-03-09 Jackson Harper <jackson@ximian.com>
16697 * TextBox.cs: Don't explicitly set our background colors.
16699 * TextBoxBase.cs: Draw readonly text.
16700 - Need to invalidate when backcolor or readonly are changed.
16702 2007-03-09 Jackson Harper <jackson@ximian.com>
16704 * TextBoxBase.cs: Don't set the forecolor until the handle is
16706 - Do not raise OnPaint, and removed some old debug code.
16708 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
16710 * ScrollableControl.cs: Fix mouse wheel scrolling.
16712 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
16714 * Control.cs: Wire up MouseDoubleClick event.
16716 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
16718 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
16720 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
16721 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
16722 item is added. This logic was moved to ToolStrip.OnItemAdded.
16725 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16727 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
16729 2007-03-08 Jackson Harper <jackson@ximian.com>
16731 * TreeView.cs: Show the correct image for selected node (this used
16732 to work, not sure how the code got deleted). Also implemented 2.0 feature
16735 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16738 * ListViewItem.cs: Cache index in items when retrieving them
16741 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
16743 * ToolStripItem.cs: Don't return the explicit_size if we are using
16744 AutoSize. Fixes invalidation issue when user has explicitly set a
16745 size and has AutoSize = true.
16747 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
16749 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
16751 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
16753 * DataGridView.cs: Remove event handler from DataView when a
16754 DataTable is used as DataSource.
16756 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
16758 * Control.cs: Create internal setter for client_size to allow it to be
16759 set without triggering resizing code.
16760 * Form.cs: Calculate client_size in constructor, only change client_size
16761 in FormBorderStyle property if Handle has been created.
16762 [Fixes #80574, #80791]
16764 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
16766 * SystemInformation.cs: Add TerminalServerSession.
16768 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
16770 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
16773 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
16775 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
16776 Handle before we were supposed to. Now checks ActivateOnShow property
16778 * Control.cs: Add internal ActivateOnShow property.
16779 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
16780 for ActivateOnShow.
16781 * Hwnd.cs Remove no longer needed no_activate field.
16783 2007-03-07 Jackson Harper <jackson@ximian.com>
16785 * TreeView.cs: Implement owner draw tree nodes. And a couple more
16787 * DrawTreeNodeEventHandler.cs: Add
16788 * DrawTreeNodeEventArgs.cs: Correct default value.
16790 2007-03-07 Chris Toshok <toshok@ximian.com>
16792 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
16793 to be called before NativeWindow.WndProc. Put the HwndCreating
16794 magic there to hook up our Hwnd's to handles.
16796 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
16798 * DataGridView.cs: Comment out debug code.
16800 2007-03-07 Chris Toshok <toshok@ximian.com>
16802 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
16803 to make the rest of the world happy]
16805 * Control.cs (CreateHandle): there's no need to call
16806 XplatUI.SetVisible here, it's effectively done by
16807 XplatUI.CreateWindow on X now, and always was on windows.
16809 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
16810 shortcircuit out of the loop if we have a message loop running on
16813 [Changelog from merge]
16815 2007-03-05 Chris Toshok <toshok@ximian.com>
16817 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
16818 causes handle creation.
16820 2007-02-28 Chris Toshok <toshok@ximian.com>
16822 * ApplicationContext.cs: Add a flag to make sure we only raise the
16823 ThreadExit event once (ExitThreadCore can be indirectly called
16824 from a few places.) I don't like the additional flag, but it
16825 makes the event ordering/count correct.
16827 * Application.cs (MWFThread.LoopCount): don't use an enumerator
16828 without locking the collection. An enumerator doesn't give us any
16829 protection from modification anyway. Lock the thread hash and
16830 replace the complicated enumerator loop with a foreach.
16831 (Application.CloseForms): make internal so it can be called from
16832 ApplicationContext. This should probably be moved to MWFThread.
16833 (Application.ExitThread): don't call MWFThread.Current.Exit()
16834 here. just call XplatUI.PostQuitMessage. We'll exit the thread
16835 when the runloop exits (in response to WM_QUIT.)
16836 (Application.RunLoop): add a comment (and check) for
16837 context.MainForm being null after setting context.MainForm.Visible
16838 = true. This is because you're perfectly free to dispose of a
16839 form in VisibilityChanged. Chalk this up to another case where we
16840 need to synchronously generate WM_ACTIVATE from Control.Show.
16841 Also, add handling for WM_QUIT here so we'll exit the loop.
16843 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
16844 fact that we don't wait if we're only unmapping the whole_window
16845 makes me a bit nervous, but it doesn't seem to cause any problems
16848 also, add a comment about the stupid, broken and wrong resetting
16849 of PostQuitState to false in GetMessage().
16851 In PostQuitMessage, we need to add a WM_QUIT message to the
16852 thread's queue. We use the FosterParent to get the right
16855 Lastly, in SetVisible, we need to unmap both windows, since the
16856 waiting only happens when we're unmapping the client window. So
16857 now, the *only* time we unmap just the whole_window is in the hack
16858 for resizing a control to 0,0.
16860 2007-02-21 Chris Toshok <toshok@ximian.com>
16862 * Application.cs (CloseForms): rewrite this so that we don't
16863 modify the list while we're traversing it.
16865 2007-02-20 Chris Toshok <toshok@ximian.com>
16867 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
16868 of OnHandleCreated.
16869 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
16870 handle is created. otherwise we'll create it here.
16871 (VerticalScrollEvent): same here.
16873 * Application.cs (CloseForms): call Form.Dispose, don't post
16876 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
16877 here. Application should Dispose() of the Form's.
16879 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
16880 WM_DESTROY as well.
16881 (MapWindow,UnmapWindow): only actually do the waiting for
16882 SHOWWINDOW if the control we're dealing with is a Form.
16883 (CreateWindow): if the control isn't a form, SendMessage
16884 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
16886 * Control.cs (SetVisibleCore): always use is_visible here, not
16887 value. If we use value, we can end up re-setting something
16888 visible if, for instance, you do Control.Hide() in a delegate
16889 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
16891 2007-02-20 Chris Toshok <toshok@ximian.com>
16893 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
16894 the message we need. PeekMessage returning false should not be a
16895 condition under which we exit the loop.
16897 2007-02-15 Chris Toshok <toshok@ximian.com>
16899 * Control.cs (Refresh): only refresh if we've got a handle and are
16901 (CreateAccessibilityInstance): CreateControl() here.
16902 (UpdateChildrenZOrder): complicate the code loop even more by
16903 taking into account controls that haven't had their handle
16904 created, and those that aren't visible. But on the flip side,
16905 simplify the code by splitting it into two loops. one which
16906 builds up the list of child controls we're interested in, and the
16907 other that sets the z order of those children.
16909 2007-02-14 Chris Toshok <toshok@ximian.com>
16911 * Control.cs: Control.AccessibilityObject causes the control to be
16912 created, not just the handle.
16914 2007-02-14 Chris Toshok <toshok@ximian.com>
16916 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16917 problem on X where a window might have its handle created (and be
16918 visible) while the window is unmapped. calling XConfigureWindow
16919 on an unmapped window is bad, and generates X errors.
16921 2007-02-13 Chris Toshok <toshok@ximian.com>
16923 * Control.cs (CreateHandle): don't loop over our children setting
16924 their parent here. do it when in WndProc when we're shown.
16925 (UpdateChildrenZOrder): make this internal so we can call it from
16927 (WndProc): for WM_SHOWWINDOW, reparent the child control after
16928 creating its handle. Also, remove the calls to PerformLayout from
16929 here. they're done in ScrollableControl.OnVisibleChanged. Also,
16930 OnVisibleChanged only seems to be called directly here for the
16931 toplevel control. It's propagated down the window hierarchy by
16932 calls to child.OnParentVisibleChanged.
16933 (OnVisibleChanged): don't do layout here - it's done (oddly
16934 enough, according to a glance at stack traces on ms.net..) in
16937 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
16938 z order of our children before calling PerformLayout.
16940 2007-02-12 Chris Toshok <toshok@ximian.com>
16942 [big change, fixes #80020]
16944 * AccessibleObject.cs: we need to make owner internal again to fix
16945 some of ControlAccessibleObject.
16947 * Control.cs: lots of changes here. add support for WM_CREATE,
16948 for which we generate OnHandleCreated. Remove the OnHandleCreated
16949 call from CreateHandle. Also add support for WM_SHOWWINDOW where
16950 we create child controls. leave the MonoTODO's for the
16951 accessibility calls, but fix the exceptions so the tests pass.
16953 Add the InvalidOperationExceptions to Invoke methods, and remove a
16954 couple of InvokeInternal methods we aren't using.
16956 Also, add a couple of CreateHandle calls in places where we know
16957 the handles are being created but our code doesn't reference
16960 Make SetVisibleCore call OnVisibleChange if the handle isn't
16961 created. If the handle is created, we rely on XplatUI.SetVisible
16962 generating the event synchronously.
16964 Lastly, make sure we don't use this.Handle inside CreateHandle,
16965 because we can call back into client (and that code can dispose of
16968 * XplatUIStructs.cs: misc/cleanup.
16970 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
16971 although we don't populate the wParam properly.
16972 (CreateWindow): generate WM_CREATE.
16973 (MapWindow,UnmapWindow): make these calls synchronous, at great
16974 performance expense (particularly in the unmap case), to match
16977 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
16979 (set_MdiParent): don't recreate the handle unless it's been
16982 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
16985 * NativeWindow.cs: this is probably the weirdest part of the
16986 patch. We need a way to link up the window being created to the
16987 WM_CREATE message. Since we can only be creating one window at a
16988 time on a given thread, we keep track of a per-thread reference so
16989 we can dispatch it properly. We also need to keep track of the
16990 Hwnd currently being created so that the win32 backend doesn't
16993 * XplatUIWin32.cs: a similar change to the one we made in
16996 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
16998 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
16999 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
17000 to draw the menu shortcut string.
17002 2007-03-07 Jackson Harper <jackson@ximian.com>
17004 * TreeNode.cs: Add the 2.0 collapse method.
17006 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
17008 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
17010 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
17012 * DataGridView.cs: Change DataSource will clear column and row
17013 lists. Call Invalidate() to reflect DataSource change.
17015 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
17017 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
17018 and a new row is added to it.
17020 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
17022 * DataGridView.cs: Add columns when DataSource is en empty list but
17023 is a System.Data.DataView (from a System.Data.DataTable).
17025 2007-03-06 Andreia Gaita <avidigal@novell.com>
17027 * Label.cs: Implement AutoEllipsis (2.0)
17029 2007-03-06 Jackson Harper <jackson@ximian.com>
17031 * TreeView.cs: Implement 2.0 TopNode setter property.
17032 - Use a local var instead of the skipped_nodes field for computing
17033 how many nodes to skip. Otherwise we won't scroll because the
17034 valuechanged handler checks if skipped_nodes is equal to the new
17036 - Implement 2.0 Sort method.
17037 - Add useless 2.0 DoubleBuffer property
17038 - Implement 2.0 LineColors property. Lets you change the color of
17039 the lines in the tree. Terribly useful for creating non cohesive
17041 - Implement 2.0 image key feature.
17043 2007-03-06 Jackson Harper <jackson@ximian.com>
17045 * TreeView.cs: We can't get the bounds of the nodes before raising
17046 the AfterSelect event, because that event could change the node's
17047 bounds (scrolling, font change, etc).
17049 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17051 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
17052 * Form.cs: Don't recreate handle when creating FormWindowManager, just
17053 update window styles. In CreateParams us VisibleInternal instead of
17054 VIsible to get the actual visible flag set for this form.
17055 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
17056 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
17057 handle the case when the form is already maximized, in which case
17058 it should be restored. Fixes #81043.
17060 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17062 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
17064 2007-03-05 Jackson Harper <jackson@ximian.com>
17066 * TreeViewHitTestInfo.cs: implement.
17068 2007-03-05 Jackson Harper <jackson@ximian.com>
17070 * InternalWindowManager.cs: class status fix.
17072 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
17074 * InternalWindowManager.cs: All windows that have a parent
17075 are confined to their parent when they're being moved.
17078 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
17080 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
17081 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
17083 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17085 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
17086 buttons invisible before deciding which ones should be visible
17087 (fixes minimize/maximize buttons showing up in toolwindows). Remove
17088 an unused variable.
17089 * InternalWindowManager.cs: Remove warning.
17091 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17093 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
17094 to throw an InvalidOperationException is virtual mode is being used.
17096 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
17098 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
17099 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
17100 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
17101 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
17102 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
17103 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
17105 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17107 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
17108 driver.KeyboardDelay from XplatUI.KeyboardDelay
17109 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
17110 (patch by Sergey Volk)
17112 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17114 * ToolWindowManager.cs: Added, contains logic for
17116 * CreateParams.cs: Add a few helper methods and an
17117 internal variable to know which control the CreateParams belongs
17119 * Control.cs: Call Form.ChangingParent when the
17120 parent is about to be changed.
17121 * XplatUIX11.cs: DeriveStyles (): Set
17122 caption_height for all windows that have captions and are children.
17123 Update to use ToolWindowManager instead of InternalWindowManager
17125 * XplatUIWin32.cs: Set fake window styles for all
17126 windows that have window managers.
17127 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
17128 now duplicated for mdi windows when they are
17129 maximized, first for the buttons the window itself has, then for
17130 the buttons that appear in the menu bar. Makes things a little
17131 easier). Updated UpdateWindowDecorations, SetWindowState and the
17132 mouse eventhandlers accordingly.
17133 * Form.cs: Add ChangingParent (), contains the
17134 logic of what should happen when the parent changes. In MdiParent
17135 don't set things that ChangingParent () is doing. When handling
17136 WM_CLOSE, we can close the form if there are any other modal forms
17137 and the current form is a descendent of the modal form.
17138 * InternalWindowManager.cs: A lot of refactoring,
17139 the title buttons are now extracted to a separate container class
17140 that takes care of all button code (clicks, tooltips, etc). Moved
17141 Iconic|Maximized|Normal Bounds properties to this class from
17142 MdiWindowManager, so that the window state logic can succeed for
17143 other than mdi wm's. Implemented general window state change logic.
17144 Moved CreateButtons to ThemeWin32Classic, since the theme might
17145 override which buttons are available when as well as the exact
17147 * FormWindowManager.cs: Added, contains logic for
17149 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
17150 which buttons go where (and if they are at all visible).
17151 Removed special handling of maximized windows, since they aren't special.
17152 In DrawManagedWindowDecorations don't try to draw the text if it is
17154 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
17155 use whatever the wm gives us.
17157 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
17159 * ButtonBase.cs: Add 2.0 properties.
17160 * Button.cs: Override Draw for 2.0.
17161 * Control.cs: Add Entered and Selected properties.
17162 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
17163 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
17164 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
17166 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
17168 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
17170 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
17172 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
17174 * XplatUIWin32.cs: Register a new class with Windows each time we get
17175 a new ClassStyle. [Fixes bugs #79432, #80817]
17176 * Controls.cs: Set the correct ClassStyle in CreateParams.
17177 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
17179 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
17181 * ListView.cs: Add fireEvent argument to ReorderColumn since the
17182 ColumnReordered event must not be signaled when modifying DisplayIndex
17183 of a ColumnHeader. Added internal ReorderColumns method which takes
17184 care of drawing, and updating the internal DisplayIndex of the
17185 ColumnHeader. Added AddColumn method which is invoked from
17186 ColumnHeaderCollection when adding or inserting columns, and which
17187 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
17188 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
17189 Recalculated dispay indices after removing a ColumnHeader.
17190 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
17191 match MS. Allows last display index to be returned after ListView
17192 is disposed. Update actual location of ColumnHeader when DisplayIndex
17195 2007-03-01 Everaldo Canuto <everaldo@simios.org>
17197 * LinkLabel.cs: Improve CalcTrimRectangle.
17199 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
17201 2007-02-28 Everaldo Canuto <everaldo@simios.org>
17203 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
17204 get rectangle as a result value.
17206 2007-02-28 Everaldo Canuto <everaldo@simios.org>
17208 * LinkLabel.cs: Theres some diferences between rectangle return from
17209 MeasureCharacterRanges and the area used for DrawString to fix this
17210 CalcMeasurementFactor method was created, it calcules the diferences
17211 to be use later to adjust rectangle in draw operations. Fixes #80473.
17213 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
17214 to adjust draw rectangle.
17216 2007-02-27 Everaldo Canuto <everaldo@simios.org>
17218 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
17219 text and some other changes to reduce and optimize source code.
17221 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
17223 * RadioButton.cs: Implement 2.0 event.
17224 * RelatedImageListAttribute.cs: Implement new class.
17226 2007-02-27 Everaldo Canuto <everaldo@simios.org>
17228 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
17230 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
17232 * CheckBox.cs: Implement 2.0 functionality.
17234 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17236 * ListView.cs: Refactor Add and AddRange methods of
17237 ListViewItemCollection, to not update the ListView
17238 everytime an item is added in AddRange. Also move the update
17239 code to a new CollectionChanged method, and call it
17240 from other methods that need it as well (this should also fix some
17241 bugs when Sorting is used).
17243 2007-02-27 Jackson Harper <jackson@ximian.com>
17245 * TextControl.cs: Try to never let the caret stay in a non-text
17247 * TextBoxBase.cs: Update the caret.
17249 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
17251 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
17252 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
17253 delete POINT structure, duplicate of one in XplatUIStructs.
17254 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
17256 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
17258 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
17259 edit box since otherwise the Label would immediately be set (even if
17260 the user did not modify the label). In OnKeyDown set Handled to true
17261 if Return or Escape was pressed. In ColumnHeaderCollection unlink
17262 columns that are to be removed. In ListViewItemCollection unlink items
17263 that are to be removed.
17265 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
17267 * TextRenderer.cs: If we set a GDI clip region, we need to clear
17268 it when we are done. [Fixes bug #80949]
17270 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17272 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
17274 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17276 * ListView.cs: I forgot to commit the changes for ListView
17277 in my previous patch.
17279 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17281 * Clipboard.cs: Partially implement an overload of SetDataObject.
17282 * Form.cs: Implement ShowWithoutActivation.
17283 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
17285 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17287 This is a first set of changes to make the Virtual mode works,
17288 by avoiding the retrieval of ListViewItem instances until
17291 * ListView.cs: Store item position in the ListView instead of the
17292 ListViewItem, this way we don't request the Bounds property of
17293 ListViewItem inside the ListView calculations, as well as cache the item
17294 size in item_size field. Store indexes instead of ListViewItem
17295 instances in the matrix used by icon view. Add a ItemMatrixLocation
17296 struct to hold the row and col info of the matrix info.
17298 * ListViewItem.cs: Don't store the location anymore, and only cache
17299 the rectangles for GetBounds. Use the ListView.GetItemLocation
17300 method to retrieve the actual location.
17302 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17304 * TextRenderer.cs: Add clipping support, thanks to George.
17307 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
17309 * ListViewItem.cs: Cancel label edit when item is removed from
17311 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
17312 event before the edit textbox is displayed. Added CancelEdit method
17313 which is used end to editing while ignoring the value set by the
17314 user. In EndEdit, set focus to ListView to avoid losing focus to
17315 other controls. In ListViewItemCollection.Clear, cancel editing of
17316 any of the items. In Remove, cancel editing of item being removed.
17317 Avoid udplicate code by modifing RemoveAt to invoke Remove.
17319 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
17321 * FileDialog.cs: Update FSEntry when move is successful. Fixes
17324 2007-02-23 Everaldo Canuto <everaldo@simios.org>
17326 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
17327 compatible with non X11 systems. Fixes #80901.
17329 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
17331 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
17332 whether the item should be unselected and reselect. We do no want this
17333 when we're starting to edit the label. Do not fire the
17334 SelectedIndexChanged event from ListView when its already been fired
17335 by modifying ListViewItem.Selected. Fixes bug #80943.
17337 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17339 * TextRenderer.cs: Previos commit logic was backwards.
17341 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17343 * TextRenderer.cs: Don't add padding on MeasureText if we were
17344 sent the NoPadding flag.
17346 2007-02-23 Everaldo Canuto <everaldo@simios.org>
17348 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
17349 after DrawButton. To prevent image overlaps button borders SetClip and
17350 ResetClip added before and after draw image. Fixes #79129.
17352 2007-02-23 Everaldo Canuto <everaldo@simios.org>
17354 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
17355 window size, it fix problem when you run under win32 that theres
17356 Size diferent than ClientSize. Also fix controls size and positions
17357 to mimic Win32. Fixes #80837.
17359 2007-02-22 Everaldo Canuto <everaldo@simios.org>
17361 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
17362 menu area to fix some problems for non X11 systems. Fixes #80613.
17364 2007-02-22 Jackson Harper <jackson@ximian.com>
17366 * TreeNode.cs: When a node is expanded, set its is_expanded flag
17367 even if it doesn't have any children.
17369 2007-02-22 Jackson Harper <jackson@ximian.com>
17371 * TreeView.cs: Calculate the top node 'on the fly', this
17372 eliminates issues where you need to click on the tree before
17373 scrolling it to get the top node computed correctly.
17374 * TreeNodeCollection.cs: We don't need to mess with the top node
17377 2007-02-22 Jackson Harper <jackson@ximian.com>
17379 * DataGridViewRow.cs: Fix typo so height can actually be set.
17380 Patch by Peter Grimm.
17382 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
17384 * FileDialog.cs: Fixed support for renaming files and directories.
17385 * ListView.cs: Do not lose focus when edit is canceled. Process
17386 Escape as regular key (to prevent closing of dialogs).
17388 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
17390 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
17391 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
17393 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
17395 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
17396 did not modify label.
17397 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
17398 modified the text. Reset Label when user presses Escape in edit mode.
17399 Move focus to ListView after having cancelled or finished editing the
17402 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
17404 * ComboBox.cs: Removed unnecessary initializations. Marked items field
17405 private. Clear textbox when Text is set to null and SelectedIndex is
17407 * FileDialog.cs: Removed unnecessary initializations. Removed
17408 workarounds for ComboBox bugs that are now fixed. Modified
17409 DefaultExt, InitialDirectory and Title property to change null to
17410 zero-length string in getters. Avoid directly accessing fields.
17412 2007-02-20 Jackson Harper <jackson@ximian.com>
17414 * TextControl.cs: Remove RecalAlignments call, that was some
17415 debugging leftovers.
17416 - Don't use the line indent when we shouldn't.
17417 * RichTextBox.cs: Add support for paragraph left indents.
17419 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
17421 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
17422 Seems like the class status pages doesn't catch params differences.
17424 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
17426 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
17428 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
17430 * ComboBox.cs: Setting Text should have no effect if item text of
17431 selected item exactly matches value. First lookup text using
17432 case-sensitive comparison, and fallback to case-insensitive comparison.
17433 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
17434 allow startIndex to be last index. Changed ArgumentOutOfRangeException
17435 paramname to match MS. Restart from first item if string is not found
17436 after startIndex. Fixed paramname of ArgumentNullException that is
17437 thrown for null value in ObjectCollection.Contains.
17439 2007-02-19 Everaldo Canuto <everaldo@simios.org>
17441 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
17443 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17445 * ListControl.cs: In SelectedValue use value.Equals to compare for
17446 equality instead of ==, otherwise it will fail for strings.
17449 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17451 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
17452 since the caret won't show up unless ShowSelection is true.
17455 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17457 * Application.cs: When disabling all forms but the main form, do not
17458 disable any descendants of the main form (such as mdi children or
17459 other parented forms). Fixes #80822 on Windows.
17460 * Form.cs: If we have a parent, set the WS_CHILD style.
17461 * Control.cs: Update the window styles if the control whose parent has
17462 changed is a form (the WS_CHILD style has to be switched).
17464 2007-02-19 Everaldo Canuto <everaldo@simios.org>
17466 * XplatUIStructs.cs: MsgUIState structure added.
17468 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
17470 * FileDialog.cs: Removed need for separate fileName field. On 2.0
17471 profile, do not check filename(s) for illegal character if filename(s)
17472 were set non-interactively but always check on 1.0 profile. Fixed NRE
17473 in DefaultExt and only strip off first leading dot. Improve exception
17474 message when invalid Filter is set. Do not ignore InitialDirectory if
17475 it does no exist. Store specified Title, and if empty use default
17476 title (depending on type of dialog). Added an internal DialogTitle
17477 property for retrieving dialog title. Fixed logic of displayed dir to
17478 more closely match MS. Avoid setting ComboBox.Text to a zero-length
17479 string as its buggy.
17480 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
17481 FileName is a zero-length string (it can never be null). Override
17482 DialogTitle property to set default title of dialog box.
17483 * SaveFileDialog.cs: Override DialogTitle property to set default
17484 title of dialog box.
17486 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
17488 * FileDialog.cs: Modify default text of filename and filetype labels
17489 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
17490 after we've updated the SelectedIndex. Fixes part of bug #80887.
17491 * SaveFileDialog.cs: Set text of filetype label.
17493 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17495 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
17496 label field. Needed by latest Jackson's fixes for ListView.
17498 2007-02-16 Andreia Gaita <avidigal@novell.com>
17500 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
17501 print preview images.
17503 2007-02-16 Jackson Harper <jackson@ximian.com>
17505 * ListView.cs: Make AfterLabelEdit work correctly.
17506 * FileDialog.cs: After changing the name of the folder, we have to
17507 make sure that it is created, or that we pop up an error because
17510 2007-02-16 Jackson Harper <jackson@ximian.com>
17512 * X11Dnd.cs: Implement aliases on mime handlers, so things like
17513 System.String are mapped to text.
17514 - Handle dataobjects, getting all the possible formats out of them
17515 - We dont need the drag event args before we give feedback. This
17516 allows feedback cursors to be immediate before selections have
17519 2007-02-16 Jackson Harper <jackson@ximian.com>
17521 * TextBoxBase.cs: Modified the method for inserting images to
17522 taking a line and position instead of tag and position.
17523 * RichTextBox.cs: Handle PngBlip data by inserting the png image
17525 * TextControl.cs: Allow images to be inserted as the first tag of
17527 - Fix some off by one issues when we assume the first tag is a
17528 text tag, not an image tag.
17530 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17532 * ListView.cs: Set focus to ListView when ItemControl gets a
17533 WM_RBUTTONDOWN message, to mimic .Net behaviour.
17534 Fixes part of #80467.
17536 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17538 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
17539 validate Text input (if null or empty string reset Value to default
17540 value). Fixes #80830.
17542 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17544 * ListView.cs: Set owner as null for columns and items when
17545 Dispose is invoked. Fixes #80607.
17547 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
17549 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
17550 showing DropDowns, don't show a Grip when doing Flow layout.
17551 [This fixes the toolbox in PDN 2.72.]
17552 * ToolStripItem.cs: Add Anchor property and some internal properties to
17553 reduces needed changes to FlowLayout.
17554 * ToolStripOverflow.cs: Remove unused variable.
17555 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
17556 use it in the layout calculations.
17558 2007-02-13 Everaldo Canuto <everaldo@simios.org>
17560 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
17561 reported in #79640.
17563 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
17566 2007-02-13 Everaldo Canuto <everaldo@simios.org>
17568 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
17569 MeasureString format, it can make button very large in some cases, it is
17570 strange but is what win32 do.
17572 2007-02-13 Everaldo Canuto <everaldo@simios.org>
17574 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
17577 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
17578 rendering, the value is based on MenuAccessKeysUnderlined.
17580 2007-02-13 Everaldo Canuto <everaldo@simios.org>
17582 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
17585 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
17587 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
17588 and use MenuAccessKeysUnderlined instead.
17590 2007-02-13 Andreia Gaita <avidigal@novell.com>
17592 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
17593 A selected control would not get a Focus call if:
17594 - the default active control of the container is the same as
17595 the one that was selected
17596 - we are switching from one container to another
17597 Under these conditions, the container being selected already has
17598 an active_control, which is the same as the one being activated,
17599 so set_ActiveControl would always return and not send the Focus
17600 call. Fix to check if the currently active control of the container
17601 is actually focused.
17603 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
17605 * StatusStrip.cs: Implement the spring layout.
17606 * ToolStripControlHost.cs: Make sure the hosted control's visibility
17607 always matches the host.
17608 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
17609 and TextAfterImage.
17611 2007-02-13 Andreia Gaita <avidigal@novell.com>
17613 * Control.cs: Code reorganization only.
17614 - Reorganize the WndProc cases so that each case has it's own handling method,
17615 to help with the no-line-numbering stack traces.
17616 - Formatting changes (it's vstudio's fault, really :p)
17618 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17620 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
17621 Thread.CurrentUICulture to match DateTimePicker's (and MS)
17624 2007-02-12 Jackson Harper <jackson@ximian.com>
17627 * TextBox.cs: By default we have a non multiline document
17628 - use the multiline property instead of the internal variable
17629 * TextBoxBase.cs: Treat multiline and non multiline the same in
17631 - Use the documents multiline flag instead of tracking it ourself
17632 * TextControl.cs: Attempt at getting multiline to match MS
17633 behavior. Lines now track an offset, which is either their X or Y
17634 offset depending on whether or not we are in multiline mode.
17635 - Update all the methods to understand that lines have an X value.
17636 - Fix crash in Undo::Duplicate when empty lines are deleted.
17638 2007-02-12 Everaldo Canuto <everaldo@simios.org>
17640 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
17641 code moved to properties PreferredHeight and PreferredWidth. It solve the
17642 all problems when preferred sizes must be recalculated. Fixes #80801.
17644 2007-02-12 Everaldo Canuto <everaldo@simios.org>
17646 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
17647 font height when compatible_text_rendering is false. Partially fix #80801.
17649 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
17651 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
17653 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
17655 * Form.cs: Improved exception messages in ShowDialog.
17657 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
17659 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
17660 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
17661 if not set. Fixes bug #80764. Avoid accessing current_settings field
17664 2007-02-08 Everaldo Canuto <everaldo@simios.org>
17666 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
17669 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
17670 public in 2.0 and for easy maintenance and dont break compatibility it is
17673 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
17675 * ToolStripItem.cs: Implement using images from ImageList.
17677 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
17679 * DateTimePicker.cs: Change default date-formatting culture from
17680 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
17681 seems to be the way MS does it.
17683 2007-02-08 Andreia Gaita <avidigal@novell.com>
17685 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
17686 (the 6 was cut off on the right side)
17688 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
17690 * Form.cs: Tell MenuStrips to close when the form is clicked.
17691 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
17692 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
17693 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
17694 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
17695 support for Overflow, where items that do not fit are automatically
17696 reparented to a drop down menu.
17697 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
17698 Also: fixes bug #80747.
17700 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
17702 * ComboBox.cs: Remove warning (unused code).
17703 * ScrollableControl.cs: Remove warning for 1.1 profile.
17705 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
17707 * Form.cs: Remove a warning.
17709 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
17711 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
17712 'g' specifier, not documented anywhere, but seems to always show up
17713 as a single space (might have something to do with the DateTime 'g'
17714 specifier, which is the era format, but since DateTimePicker can't
17715 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
17716 won't crash if the format has an unmatched quote. Now shows
17717 single-character formats correctly. Fixes #80744.
17719 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
17721 * StatusStrip.cs: Stretch property needs to call base.Stretch,
17722 not this.Stretch to fix stack overflow. [Fixes bug #80760]
17724 2007-02-07 Chris Toshok <toshok@ximian.com>
17726 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
17727 background color. it overwrites the background image we've
17728 already painted. Fixes #80599.
17730 2007-02-07 Chris Toshok <toshok@ximian.com>
17732 * DataGrid.cs: return immediately from Edit() when there are no
17733 columns. Fixes #80662.
17735 2007-02-07 Chris Toshok <toshok@ximian.com>
17737 * MessageBox.cs: fix #80625. don't always show the Help button in
17738 2.0. use the displayHelpButton parameter to determine if we
17739 should show it. Also, make the internal show_help field private.
17741 2007-02-07 Chris Toshok <toshok@ximian.com>
17743 * Control.cs (SetVisibleCore): check in the proposed patch for
17744 80604, and set is_visible before calling CreateControl.
17746 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
17748 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
17749 MonoInternalNote. This is added automagically by VS2005, so let's not crash
17752 2007-02-06 Everaldo Canuto <everaldo@simios.org>
17754 * MenuAPI.cs: hotkey_active internal field added, it is required because
17755 we need to know when hotkeys must be draw, before this change a keystate
17756 Navigating was used but we can have menu in navigating state without
17757 hotkeys. Fixes #80694.
17759 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
17761 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17763 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
17764 corresponding events and methods to be internal for 1.1 profile and
17765 public for 2.0 profile (required by SizeGrip).
17766 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
17767 implicit control list). Don't set the size nor the location of the
17768 SizeGrip anymore as it's not needed.
17769 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
17770 draw directly on the captured control (fixes #80656). Removed
17771 ShowGrip (it wasn't used anywhere), redraw (always true), added
17772 GetDefaultSize and GetDefaultRectangle to calculate defaults.
17773 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
17774 be called from SizeGrip.
17776 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17778 * Timer.cs: Throw ArgumentException if Interval <= 0.
17780 2007-02-05 Jackson Harper <jackson@ximian.com>
17782 * TreeView.cs: We need to check scrollbar visibility when window
17783 visibility is updated, because non visible trees don't ever add
17785 * Cursor.cs: We want the override cursor to be reset to NULL when
17786 we set current cursor to the default cursor.
17788 2007-02-05 Jackson Harper <jackson@ximian.com>
17790 * TextControl.cs: Don't have crlfs when we are non multiline.
17791 - Consolidate the line position.
17793 2007-02-05 Jackson Harper <jackson@ximian.com>
17795 * X11Keyboard.cs: BACK+CTRL gets a special char code.
17797 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17799 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
17800 handling LeaveNotify->NotifyUngrab in order to send
17801 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
17802 after calling XUngrabPointer, so we call WindowUngrabbed directly
17803 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
17804 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
17805 MouseCaptureChanged correctly. Also create handles if changing
17806 Capture (matches MS behaviour).
17808 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17810 * SizeGrip.cs: Make the last change 2.0 only.
17812 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17814 * SizeGrip.cs: If resizing and the capture is lost, revert any size
17815 changes to initial size (fixes #80597).
17817 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17819 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
17821 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17823 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
17824 background) and only allow dragging if enabled. This way the
17825 sizegrip can be used to fill the open square that otherwise would
17826 have been shown in the bottom right corner of ScrollableControl
17827 when ScrollableControl is not suppose to support sizing.
17828 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
17829 sizegrip is shown and enabled, and hook up with necessary events.
17831 2007-02-01 Chris Toshok <toshok@ximian.com>
17833 * DataGridTextBoxColumn.cs: clean up the
17834 GetFormattedString/GetColumnValueAtRow combination of functions.
17835 Also fix UpdateUI, and the initial state of
17836 IsInEditOrNavigateMode.
17838 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
17839 aren't supposed to scroll the textbox here, we're supposed to
17840 scroll the datagrid.
17842 2007-02-01 Chris Toshok <toshok@ximian.com>
17844 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
17845 setting the position.
17847 2007-02-01 Chris Toshok <toshok@ximian.com>
17849 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
17850 here, since the most recent focus fixes keep us from generating
17851 the Leave event when our textbox gets focus.
17852 (Edit): we should be passing null for the column style's
17853 instantText parameter.
17855 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
17857 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
17858 raised. Fixes menu text/icons not showing up in PDN.
17860 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
17862 * Control.cs: Remove code in constructor that makes every
17863 control with WS_CHILD set have initial location -1, -1.
17865 2007-01-31 Jackson Harper <jackson@ximian.com>
17867 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
17869 * XplatUIX11.cs: Give teh keyboard to teh dnd.
17871 2007-01-31 Jackson Harper <jackson@ximian.com>
17873 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
17874 - Remove some debug code.
17876 2007-01-31 Jackson Harper <jackson@ximian.com>
17878 * XplatUIX11.cs: If you set the override cursor during a grab, it
17879 should actually override the grab cursor. This comes into play
17880 when you are setting custom cursors in a DND feedback method.
17882 2007-01-31 Jackson Harper <jackson@ximian.com>
17884 * X11Dnd.cs: Add support for handling the QueryContinue and
17885 GiveFeedback events.
17886 - Cancel drag and drop actions when the escape key is clicked.
17887 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
17888 can handle the ESCAPE key.
17889 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
17890 done when dnd events are continued after the button is released.
17891 - Add a new helper method so that dnd can translate key events.
17893 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
17895 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
17896 make it more obvious what is happening.
17898 2007-01-30 Jackson Harper <jackson@ximian.com>
17900 * XplatUIX11.cs: Don't break when handling button release in drag
17901 and drop operations. We need that BUTTONUP message to get through
17902 so capture is released.
17903 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17904 this is handled automatically when the mouse is down.
17906 2007-01-30 Jackson Harper <jackson@ximian.com>
17908 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17909 is closed, so we need to make sure that we aren't changing the
17910 dialog result when the OK (Open or Save) button has been clicked
17911 and we are closing the window ourselves. Note we don't need to
17912 worry about the cache being written in this case, because it was
17913 already done in the previous FilOk call.
17915 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
17917 * DateTimePicker.cs: Remove a warning.
17918 * ComboBox.cs: Remove a couple of warnings.
17920 2007-01-29 Chris Toshok <toshok@ximian.com>
17922 * XplatUIX11.cs: don't crash, and remove the icon if the user has
17923 set one, if SetIcon is passed a null icon.
17925 2007-01-29 Andreia Gaita <avidigal@novell.com>
17927 * TextBox.cs: Redraw when the password characters changes
17928 * TextControl.cs: Check if textbox has a password char and draw
17929 a line of password chars instead of the text in the line. LineTag gets
17930 an extra Draw() method which allows document.Draw to override the text
17931 that will be drawn. Removes 1024 char limitation on length of passworded
17934 2007-01-29 Jackson Harper <jackson@ximian.com>
17936 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
17937 single chars is not.
17939 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
17941 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
17942 one pixel. Fix a StackOverflowException caused by an overload wrongly
17945 2007-01-26 Everaldo Canuto <everaldo@simios.org>
17947 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
17948 also remove ProcessArrowKey and put the code inside ProcessKeys.
17950 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
17952 * PaddingConverter.cs: Added.
17954 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
17956 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
17957 ShowPanels is false (fixes #80600). Only draw up to 127 characters
17958 of text (fixes #80601). For panels clip the text to draw to the
17959 panel (fixes #80603).
17961 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
17963 * ComboBox.cs: Fixed implementation of ResetText.
17965 2007-01-25 Jackson Harper <jackson@ximian.com>
17967 * TextControl.cs: For the last char of a line we need to use the
17968 line size, not that chars width, since it won't actually be
17969 computed since the right side of a char is based on the start of
17970 the left side of the next char, and the next char does not exist.
17972 2007-01-25 Chris Toshok <toshok@ximian.com>
17974 * Splitter.cs: fix the new unit tests, and reindent some switch
17977 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
17979 * ComboBox.cs: Implemented 2.0 methods and events.
17980 * TextBoxBase.cs: Added OnTextUpdate, so that
17981 ComboBox.ComboTextBox can inform ComboBox of it.
17983 2007-01-25 Jackson Harper <jackson@ximian.com>
17985 * TextControl.cs: Respect ShowSelection when deciding whether or
17986 not to display the caret, this allows comboboxes to have carets
17987 when the combotextbox does not have focus.
17989 2007-01-25 Jackson Harper <jackson@ximian.com>
17991 * TextControl.cs: Add a Suspend/Resume for updating, basically the
17992 same as the Suspend/Resume for recalc, except this will do actual
17994 - New Undo manager, works much like the MS version.
17996 * TextBoxBase.cs: The Cut operation is undoable.
17998 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
18000 * TextBoxBase.cs: Don't antialias text. Makes it look way better
18001 on Windows (no difference on Linux).
18003 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
18005 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
18006 we don't want to activate any windows. Fixes #79433.
18008 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
18010 - ButtonBase.cs: Fix capitalization of parameter: disposing.
18013 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
18016 - Move to using System.ComponentModel.EventHandlerList
18017 - Replace Refresh with Invalidate
18018 - Clear the mime filecache on closing
18019 - Some other memory reducing work. After beeing closed FD now uses
18020 only about 300 KB for the fdo mime stuff plus the memory of the
18022 * Mime.cs: Changed coding style and removed unnecessary commented
18023 code. Some more memory memory reducing work.
18025 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
18027 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
18028 a few other missing 2.0 properties.
18029 * Theme.cs: Added DrawFlatStyleComboBox.
18030 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
18032 2007-01-24 Chris Toshok <toshok@ximian.com>
18034 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
18035 wake_waiting flag, not just when there's data to be read. if we
18036 don't, then future wakeup's won't reach us and we'll be doomed to
18037 wait for the entire 1 second timeout forever (unless there are X
18040 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
18042 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
18043 until you pass Items.Count, not Items.Count - 1 like 1.1.
18045 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
18047 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
18049 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
18051 * ToolStripContainer.cs: The recent Dock fix exposed that I was
18052 adding the panels in the wrong order.
18054 2007-01-24 Jackson Harper <jackson@ximian.com>
18056 * TextBoxBase.cs: When we move the caret we also need to move the
18057 selection, this fixes some random crashing after doing select
18058 text, unselect, delete a char, paste.
18060 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
18062 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
18064 2007-01-23 Everaldo Canuto <everaldo@simios.org>
18066 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
18067 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
18068 * ToolBar.cs: Force redraw in BackgroundImageChanged.
18070 2007-01-23 Everaldo Canuto <everaldo@simios.org>
18073 - Implement support for vertical toolbars. Fixes #80539;
18074 - Call LayoutToolBar when resize, it fix some other problems in layout.
18075 - Rename requested_height to requested_size, as we can have width on it
18076 when toolbar is vertical.
18077 - Create a private property "Vertical" that uses Dock to verify when
18078 toolbar is vertical or not.
18079 - Set ControlStyles when change Dock property.
18080 - Refactory in LayoutToolBar to have better variables names and to support
18082 - Fixes default value for ButtonSize when button count is equal zero, size
18083 must be (39, 36) test case writed.
18085 2007-01-23 Chris Toshok <toshok@ximian.com>
18087 * Control.cs: fix the checks so that they work correctly for mdi
18090 2007-01-23 Chris Toshok <toshok@ximian.com>
18092 * Control.cs: ControlCollection seems to have super-secret
18093 abstraction breaking knowledge of Mdi containers. allow MdiClient
18094 to add toplevel controls.
18096 2007-01-23 Chris Toshok <toshok@ximian.com>
18098 * Control.cs: throw an ArgumentException if a toplevel control is
18099 added to our control collection from ControlCollection.Add, as
18100 well as from ControlCollection.IList.Add. This fixes the
18101 ControlSetTopLevelTest.TestTopLevelAdd unit test.
18103 Also, in ControlCollection.IList.Add, don't through an
18104 ArgumentNullException, throw an ArgumentException, when value ==
18105 null. This matches MS.
18107 2007-01-23 Chris Toshok <toshok@ximian.com>
18109 * BindingSource.cs: initial, incomplete, implementation of
18112 2007-01-23 Jackson Harper <jackson@ximian.com>
18115 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
18116 that I can fix a broken unit test (TextBoxTest::ClearUndo)
18118 2007-01-23 Everaldo Canuto <everaldo@simios.org>
18120 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
18122 2007-01-23 Andreia Gaita <avidigal@novell.com>
18124 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
18125 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
18126 IndexOfKey() for 2.0
18128 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18130 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
18131 to prevent it from changing z-order.
18132 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
18133 leave UI updates in MdiWindowManager.
18134 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
18135 1 sized (NC handling goes weird on Linux otherwise).
18136 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
18137 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
18138 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
18139 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
18140 and SetWindowState(s) to allow for changing the size of an activated child
18141 before activating it (reduces a lot of flicker).
18143 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
18145 * Form.cs: Changing FormBorderStyle has different semantics based
18146 on whether the Form is visible or not. If not visible, don't change
18147 the Size. But InvalidateNC needs to be called to force the window
18148 to pick up the changes and redraw itself. [Fixes bug #80574]
18150 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
18153 * ContainerControl.cs: ProcessCmdKey.
18154 * ErrorProvider.cs: new constructor.
18155 * Form.cs: fix AutoValidateEvent compiler warning.
18156 * Label.cs: fix OnAutoSizeChanged compiler warning.
18157 * MenuStrip.cs: fix CanOverflow compiler warning.
18158 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
18159 * TextBox.cs: Dispose.
18160 * ToolStrip.cs: CanOverflow, re-enable double buffering.
18161 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
18162 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
18163 * ToolStripItem.cs: Overflow, RightToLeft properties.
18165 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
18167 * Form.cs: Move the layout of the main form to MdiWindowManager.
18168 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
18169 do a layout of the main window to update MdiClient's client area to
18170 the right area. Fixes #80533. Remove the calculation of nc size,
18171 it was just wrong and the correct one is the same as for
18172 InternalWindowManager.
18174 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
18176 * Control.cs: Setting Anchor or Dock needs to reset the other
18177 to its default. [Fixes bug #80556]
18179 2007-01-20 Chris Toshok <toshok@ximian.com>
18181 * CheckedListBox.cs: class status changes.
18183 * ScrollableControl.cs: same.
18185 * RichTextBox.cs: same.
18187 * ContainerControl.cs: same.
18189 * ListView.cs: same.
18191 * NotifyIcon.cs: same.
18193 * MenuStrip.cs: same.
18195 * RadioButton.cs: same.
18197 * CheckBox.cs: same.
18199 * PrintPreviewDialog.cs: same.
18203 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
18205 * TreeNode.cs: Apply Alan's patch for Name property.
18207 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
18209 * Form.cs: Implemented SizeGripStyle.
18210 * SizeGrip.cs: Check for minimum and maximum size for the
18211 control being resized and only resize if size has actually
18214 2007-01-19 Chris Toshok <toshok@ximian.com>
18216 * DataGridColumnStyle.cs: stop setting _readonly in the
18217 PropertyDescriptor setter. fixes a unit test failure.
18219 also, rename ParentReadOnly to TableStyleReadOnly, and have it
18220 just consult our table style (if we have one). We don't need to
18221 consult the datagrid readonly attribute because that's passed in
18222 as the _ro arg to Edit. this simplifies things a little.
18224 * DataGrid.cs: use CurrentColumn instead of
18225 current_cell.ColumnNumber just to simplify some of the code.
18227 switch the order of some things in the CurrentCell setter to keep
18228 the previous cell from getting a textbox again -
18229 EnsureCellVisibility causes scrolling to happen, which calls Edit.
18230 So we need to set the new cell before calling it.
18232 call Edit in OnEnter, as does Microsoft.
18234 also, make sure the current table style isn't the one we create
18235 initially when checking to see if it's different than the one
18236 we're setting it to in BindColumns (this fixes #80421).
18238 * GridTableStylesCollection.cs: table styles can have "" for a
18239 mapping name. part of the fix for #80421.
18241 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
18242 Edit significantly.
18244 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18246 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
18247 and less GDI object leaky-er.
18249 2007-01-18 Andreia Gaita <avidigal@novell.com>
18251 * LinkLabel.cs: Add opaque control style
18253 2007-01-18 Jackson Harper <jackson@ximian.com>
18255 * TextControl.cs: Calculate width properly.
18256 - Don't store the tag's X offset, this can be figured out very
18258 - When getting the caret tag make sure to get the last empty tag.
18260 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18262 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
18265 * Control.cs: Color.Empty shouldn't count for previous transparent
18268 2007-01-18 Jackson Harper <jackson@ximian.com>
18272 * TextControl.cs: Starting to merge in some pieces of my older
18273 undo work. Basically just some slight cleanup of the undo API.
18275 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
18277 * TrackBar.cs: Fix signature of RightToLeftLayout.
18278 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
18279 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
18280 * Application.cs: Implemented UseWaitCursor.
18282 2007-01-18 Jackson Harper <jackson@ximian.com>
18284 * TextControl.cs: We can't skip tags if any part of the tag is
18287 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18289 * ContainerControl.cs: Override OnLayout.
18291 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18293 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
18295 * ContextMenuStrip.cs: Make sure context menu is shown on top of
18298 2007-01-18 Chris Toshok <toshok@ximian.com>
18300 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
18301 (leftover from the container_selected days, I'd wager). fixes bug
18304 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18306 * Control.cs: Apply patch from George to fix the new testcase on
18307 bug #80451. We can't just check for Color.Transparent, we need
18308 to check if the back color's alpha channel is < 255.
18310 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18312 * Form.cs: Move setting show_icon = true to before the constructor
18313 so that the base constructor has that information when it calculates
18314 the form's size. Was causing forms to be (6, 6) bigger than they
18315 were supposed to be. Thanks for catching this Rolf!
18317 2007-01-18 Jackson Harper <jackson@ximian.com>
18319 * TextControl.cs: When replacing a selection we need to invalidate
18320 from the initial selection start, because selection start is moved
18321 to the end of the replacement.
18323 2007-01-18 Andreia Gaita <avidigal@novell.com>
18325 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
18327 2007-01-18 Chris Toshok <toshok@ximian.com>
18329 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
18332 2007-01-17 Everaldo Canuto <everaldo@simios.org>
18334 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
18335 layout methods and properties from ToolBarButton must be available
18336 into ToolBarButtonInfo.
18338 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
18340 * Control.cs: If the control has a transparent background, we
18341 need to refresh it when it moves and when it's parent's background
18342 image changes. [Fixes bug #80451]
18344 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
18346 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
18348 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
18350 * XplatUIWin32.cs: Implement proper double buffering for Windows.
18351 [Fixes bug #80447, and probably speeds up things as well]
18353 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18355 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
18356 * XplatUIWin32.cs: We need to recalculate NC size after changing
18357 window style to toolwindow (otherwise the client rectangle will be
18358 3 pixels to small for some reason).
18359 * MdiWindowManager.cs: Revert NC size calculations to match how
18360 they are calculated only based on window styles (to match
18361 Win32AdjustWindowRectEx, since otherwise when setting size or
18362 location, Control will call Win32AdjustWindowRectEx to update client
18363 size, which would provoke a paint, then we'd get a NCCALCSIZE and
18364 calculate a different value of client size causing another paint
18366 * InternalWindowManager.cs: When moving or resizing a window only
18367 update size or location if they actually changed.
18368 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
18369 (seems to match Windows behaviour better). Cleaned up
18370 ManagedWindowDecorations to draw what's needed and nothing else
18371 (was drawing borders and lines where they shouldn't be)
18372 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
18373 (style = 0xFFFF) and takes into account caption height when
18374 calculating window rectangle.
18376 2007-01-16 Everaldo Canuto <everaldo@simios.org>
18378 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
18379 can be added to toolbar multiple times, we need to maintain a list of
18380 button information for each positions.
18382 2007-01-16 Everaldo Canuto <everaldo@simios.org>
18384 * ToolBar.cs: Some small stetic changes.
18386 2007-01-16 Jackson Harper <jackson@ximian.com>
18388 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
18389 that allow us to have nested recalc = false blocks.
18390 - Add paste support for images in the RichTextBox
18391 * RichTextBox.cs: flush the text after the color is changed, so
18392 the change takes effect.
18393 - Use SuspendRecalc
18394 - Some extra debugging info
18395 * TextControl.cs: Tags no longer track their length, it is just
18396 computed from the next tags length, this makes things a little
18397 simpler and reduces places that we have to track length changes.
18398 - Refactored the linetag class a little so we could make it
18399 a base class for different kinds of tags
18400 - Created a image tag, a tag that can have a single image inserted
18402 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
18403 that we can call suspend multiple times.
18404 - Add some debugging methods
18406 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18408 * MdiClient.cs: Add ActivatePreviousChild for
18409 mdi child window navigation.
18410 * Form.cs: Use MdiClient.ActivateNextChild/
18411 ActivatePreviousChild instead of Form.SelectNextControl
18412 to select the next/previous child since
18413 SelectNextControl doesn't do it in the same order
18414 as mdi children should do it.
18416 2007-01-16 Chris Toshok <toshok@ximian.com>
18418 * Control.cs: remove container_selected field.
18420 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18422 * MdiClient.cs: Update main form's ActiveChild when
18423 updating keyboard focus for the mdi child.
18425 2007-01-16 Jonathan Pobst <jpobst@novell.com>
18427 * Control.cs: PreferredSize fix.
18429 * Form.cs: Add several 2.0 events, properties, and methods.
18431 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
18433 * Form.cs: Provide meaningful message when MdiParent is assigned a
18434 Form that is not an MdiContainer.
18436 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18438 * MdiClient.cs: Update main form's ActiveChild when
18439 activating a mdi child.
18441 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18443 * MdiWindowManager.cs: Fix NRE when merging menus and main form
18444 doesn't have a menu.
18446 * Form.cs: Request NCRecalc after creating a mdi child window.
18447 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
18448 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
18450 * MdiClient.cs: Add new method SendFocusToActiveChild that either
18451 sends keyboard focus to the active child, or to the MdiClient
18452 if there are no child forms.
18454 2007-01-15 Chris Toshok <toshok@ximian.com>
18456 * ListView.cs: drop the *Internal overrides, just do our work in
18457 ItemControl's WndProc instead.
18459 * UpDownBase.cs: a few large changes. Fix up the Selectable state
18460 of the various controls, and forward the events properly (in the
18461 same manner as MS) from the textbox to the UpDown. Also the
18462 ActiveControl of the UpDownBase gets set properly now. Finally,
18463 we don't call UpdateEditText from the ctor. Fixes bug #79957.
18465 * NumericUpDown.cs: set Text in the ctor.
18467 * DomainUpDown.cs: call UpdateEditText in the ctor.
18469 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
18470 so even a Selectable = false textbox can be focused if you click
18473 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
18474 just add their handling in their respective WndProc's. Also add
18475 an explicit FocusInternal method that doesn't consult CanFocus
18476 before calling Select(this).
18478 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
18479 do our work in WndProc instead.
18481 * TabControl.cs: same.
18483 * ComboBox.cs: same.
18485 2007-01-15 Everaldo Canuto <everaldo@simios.org>
18487 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
18490 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18493 * ThemeWin32Classic.cs: Don't draw the item text outside
18494 item bounds in Details view, as well as use trimming.
18497 2007-01-15 Jonathan Pobst <jpobst@novell.com>
18499 * Form.cs: Implement Form.ShowIcon.
18501 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
18502 null, which when combined with the DlgModalFrame window style removes
18503 the icon from the title bar.
18505 2007-01-15 Jonathan Pobst <jpobst@novell.com>
18507 * Control.cs: Call OnMouseClick after OnClick. (2.0)
18509 2007-01-15 Everaldo Canuto <everaldo@simios.org>
18511 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
18512 menu when mdi child windows theres a menu, uses insert to get icon
18513 at first position. Partially fix #80006.
18515 2007-01-15 Jonathan Pobst <jpobst@novell.com>
18517 * Clipboard.cs: Implement 2.0 methods.
18519 2007-01-15 Everaldo Canuto <everaldo@simios.org>
18521 * Menu.cs: Implement Insert method of MenuItemCollection class
18524 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18526 * ListView.cs: Implement 2.0 FindItemWithText method.
18528 2007-01-11 Everaldo Canuto <everaldo@simios.org>
18530 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
18531 to calculate menu bar size. Fixes #80290.
18533 2007-01-11 Everaldo Canuto <everaldo@simios.org>
18535 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
18537 2007-01-11 Chris Toshok <toshok@ximian.com>
18539 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
18542 2007-01-11 Chris Toshok <toshok@ximian.com>
18544 * LinkLabel.cs: make sure to call base.Select in our Select method
18545 if it turns out we're going to be selected (i.e. if we have a link
18546 that is going to receive focus). That way our container's
18547 ActiveControl is updated properly.
18549 2007-01-11 Chris Toshok <toshok@ximian.com>
18551 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
18552 they have 1 or more links. this fixes the crash gert reported.
18554 2007-01-11 Andreia Gaita <avidigal@novell.com>
18556 * ContainerControl.cs: Remove ContainerSelected flag, not needed
18559 * Control.cs (Controls.Add): Check if control to be added to the collection
18560 is a top level control, and throw an ArgumentException if it is.
18561 Remove ContainerSelectedFlag, not needed anymore.
18563 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
18564 top most control doesn't activate the form. This fixes a problem in the
18565 MessageBox, where the default button wouldn't get focus because the form
18566 was activated before being Loaded - when the Owner is set, SetTopMost is
18567 called, and it would activate it.
18569 2007-01-11 Jonathan Pobst <jpobst@novell.com>
18571 * Button.cs: When clicked and setting the parent form's DialogResult,
18572 use FindForm instead of Parent, since parent could be a container
18573 control and not the Form. Fixes bug #80495.
18575 2007-01-10 Chris Toshok <toshok@ximian.com>
18577 * Form.cs: move the call to SendControlFocus into the same
18580 2007-01-10 Chris Toshok <toshok@ximian.com>
18582 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
18583 It breaks in the face of the new ActiveControl stuff, and should
18586 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
18587 activecontrol's focus if it's not already set, after we set
18588 ActiveControl, but before we call OnActivated. Re-fixes #79667
18589 after the previous focus/active control fixes regressed it.
18591 * Control.cs: reindent some code.
18593 2007-01-10 Chris Toshok <toshok@ximian.com>
18595 * Splitter.cs: clearing some outstanding changes from my tree.
18596 Replace all accesses (not writes) to the internal dock_style field
18597 with the Dock property.
18599 2007-01-10 Chris Toshok <toshok@ximian.com>
18601 * Control.cs: make FireEnter, FireLeave, FireValidating, and
18602 FireValidated virtual.
18604 * Form.cs: override and don't chain up calls to FireEnter and
18607 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18609 * ListView.cs: Add more text padding space when using
18610 auto resize for columns (the previous value didn't work fine).
18612 * ThemeWin32Classic.cs: Update text position inside columns,
18613 to match the appeareance of .Net.
18615 * ColumnHeader.cs: When using auto resize, only the Width should
18616 depend on the sub items, not the Height. Also, set width after
18617 auto resizing (the value of Width should never remain as -1 or -2).
18619 2007-01-10 Chris Toshok <toshok@ximian.com>
18621 * Application.cs: fix compilation errors when debug is enabled.
18623 2007-01-10 Chris Toshok <toshok@ximian.com>
18625 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
18626 add some nice ascii art pictures and explanation of the process).
18627 (GetMostDeeplyNestedActiveControl): new utility function we need
18628 because our ActiveControl can refer to a child container with its
18631 * Form.cs (OnActivated): remove the call to SelectActiveControl
18632 from here, since you can override this method and not chain up,
18633 and winforms still sets the active control.
18634 (OnCreateControl): also remove the unnecessary SelectActiveControl
18636 (WndProc): it's actually called from the WM_ACTIVATE block, just
18637 before calling OnActivated.
18639 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
18640 inside the else. the ActiveControl setter will end up setting
18641 focus on @control. This keeps us from setting it again (and
18642 generating an extra LostFocus/GotFocus pair).
18643 (Select (bool, bool)): reindent.
18645 2007-01-10 Jonathan Pobst <jpobst@novell.com>
18647 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
18648 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
18649 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
18650 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
18651 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
18652 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
18653 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
18654 ToolStripTextBox.cs: Another wave of corcompare work.
18656 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18658 * ColumnHeader.cs: Implement 2.0 AutoResize method using
18659 the Width property.
18661 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
18662 methods by callling Column.AutoResize method on columns.
18664 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
18666 * Control.cs: Provide proper implementations of PreferredSize
18667 and GetPreferredSize (2.0).
18669 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
18671 * Form.cs: Remove one character (!) to make my previous OnClosing
18672 stuff work for modal windows like MessageBox.
18674 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18677 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
18678 ListView.Columns to get the last displayed column. Fixes #80452.
18680 2007-01-09 Everaldo Canuto <everaldo@simios.org>
18682 * Label.cs, LinkLabel.cs: Source code identation fixes.
18684 2007-01-08 Everaldo Canuto <everaldo@simios.org>
18686 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
18687 we dont need to invalidate only borders because when we invalidate four
18688 border lines the invalidate's generates a complete redraw of button,
18689 because it now invalidate a complete rect some other redraws operations
18690 are fixed. Fixes #80196.
18692 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
18693 Remove ToolBarInvalidateEntireButton as it is not used.
18695 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
18697 * Form.cs: Make sure that both OnClosing and OnFormClosing are
18698 called for 2.0 profile.
18699 * CloseReason.cs: Make class internal for 1.1.
18701 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
18703 * ToolStripManager.cs: Implement FindToolStrip functionality.
18704 * ToolStrip.cs: Register and unregister with ToolStripManager.
18706 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
18708 * Control.cs: This was messy. 2.0 moves much of ControlCollection
18709 to ArrangedElementCollection. Implemented this with as few #if's as
18710 possible (which is still too many).
18712 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
18714 * Control.cs: Implement SizeFromClientSize() [2.0].
18716 2007-01-07 Everaldo Canuto <everaldo@simios.org>
18718 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
18719 use Theme.BorderSize to calculate area instead of static value 1,
18720 by the way use new BorderStaticSize instead Border3DSize when
18721 border_static is true. Fixes #79537.
18723 * XplatUIOSX.cs: Fix call to GetClientRectangle.
18725 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
18728 2007-01-06 Everaldo Canuto <everaldo@simios.org>
18730 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
18732 2007-01-06 Everaldo Canuto <everaldo@simios.org>
18734 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
18735 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
18738 - border_static field added, it will used to define when a control
18739 theres 3D border but it must be static (thin).
18740 - In GetWindowRectangle use Theme.BorderSize to calculate area
18741 instead of static value 1, by the way use new BorderStaticSize instead
18742 Border3DSize when border_static is true.
18744 * XplatUIX11.cs, XplatUIOSX.cs:
18745 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
18747 * Theme.cs: BorderStaticSize field added.
18749 2007-01-05 Everaldo Canuto <everaldo@simios.org>
18751 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
18753 2007-01-05 Everaldo Canuto <everaldo@simios.org>
18755 * Control.cs: Under InternalBorderStyle call RecreateHangle to
18756 mimic same behavior than win32 that set border only in CreateParams,
18757 it fix problems under CreateParams overrides. Fix #79442 and partial
18760 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
18761 of thi control you must call recreate handle.
18763 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
18764 need to do anything as RecreateHangle will take care about borders.
18766 2007-01-05 Mike Kestner <mkestner@novell.com>
18768 * ListView.cs: hack to eliminate Lost/Got focus notifications on
18769 cycles between the ItemControl and parent. Fixes #80388.
18771 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
18773 * Control.cs: Lazy init layout engine. Do not directly use
18774 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
18776 2007-01-05 Chris Toshok <toshok@ximian.com>
18778 * DataGrid.cs: don't forceably rebind columns in SetDataSource
18779 unless our list manager has changed (i.e. unless we have reason to
18780 believe our columns have changed). Fixes #80422.
18782 also, disable the call do BindColumns in
18783 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
18784 1.1 the event isn't raised in response to a column addition on a
18787 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
18789 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
18790 that inheritors can not call it if they choose. Fixes bug #80456.
18792 2007-01-05 Andreia Gaita <avidigal@novell.com>
18794 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
18795 doesn't blow up with a null exception on marshalling.
18797 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
18799 * Control.cs: Implement several 2.0 protected properties and methods.
18800 Ensure that all necessary events are being called when properties
18803 2007-01-05 Mike Kestner <mkestner@novell.com>
18805 * ListView.cs: implement PgUp/PgDn for Details view. Also
18806 fixes First/LastVisibleIndex to use the item_control.ClientRect
18807 instead of the parent control. Fixes #80378.
18809 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
18811 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
18812 determine whether to use yard-pound or not (bug #78399).
18814 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
18816 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
18817 problems. So it is time to bring back the old popupbutton colors.
18819 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18822 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
18823 property by using the internal information of the
18824 columns order in ListView.
18826 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
18828 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
18829 Add 2.0 Tag properties.
18831 * LinkArea.cs: Add 2.0 ToString method.
18833 2007-01-03 Chris Toshok <toshok@ximian.com>
18835 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
18836 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
18837 when we're editing, which fixes #80047.
18839 2007-01-03 Chris Toshok <toshok@ximian.com>
18841 * Form.cs: apply patch contributed by Dominik Seichter. fixes
18844 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
18846 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
18847 property and implementation.
18849 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
18850 for MdiWindowListItem property.
18852 * ToolStripDropDown.cs: Don't consider hidden menu items while
18853 laying out the menu.
18855 2007-01-03 Andreia Gaita <avidigal@novell.com>
18857 * SendKeys.cs: window handle is not needed in win32, so just
18858 get the active window for X after parsing keys and don't use
18859 it when building the message; it is passed by parameter to the
18860 Xplat method and used there to build the message instead. Also,
18861 wait for events to be processed on SendWait, as opposed to Send,
18862 which doesn't wait :) Playing with threads and Send() completely
18863 hangs on ms.net, only SendWait() works.
18866 X11Display.cs: Check for valid window handle.
18868 2007-01-03 Jackson Harper <jackson@ximian.com>
18870 * TextControl.cs: Need to prevent wrap calculations when replacing
18871 text (this was there before i removed it accidently).
18872 - Don't update the cursor during the positioning, just set it to
18873 selection_start at the end of the operaion.
18875 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18878 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
18880 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18882 * MonthCalendar.cs: Added Click and DoubleClick events again,
18883 but this time they only hide Control's Click and DoubleClick.
18885 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
18887 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
18888 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
18890 2007-01-02 Jackson Harper <jackson@ximian.com>
18892 * TextBoxBase.cs: We move the caret with the split now, so we
18893 don't need to explicitly move the caret after splitting. This
18894 fixes the caret bumping down an extra line on Enter.
18896 2007-01-02 Miguel de Icaza <miguel@novell.com>
18898 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
18901 * ScrollableControl.cs: Add Scroll event.
18903 2007-01-02 Mike Kestner <mkestner@novell.com>
18905 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
18906 to fix all hdr height padding codepaths. Fixes #80207.
18908 2007-01-02 Chris Toshok <toshok@ximian.com>
18910 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18911 setting it to the Control defaults anyway, and it being after the
18912 Dock set was screwing up layout.
18913 (set_Dock): don't short circuit out of setting base.Dock. Also,
18914 no need to call UpdateStatusBar here, as it'll be re-layed out if
18917 2007-01-02 Mike Kestner <mkestner@novell.com>
18919 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
18920 to header height for width == -1. Fixes the rest of #80207.
18922 2007-01-02 Mike Kestner <mkestner@novell.com>
18924 * ListView.cs: rework the mouse event forwarding everaldo added
18925 to translate the coordinates to the parent control not
18926 raise the parent events until after we've done our work. Hover
18927 needs more work, in the case where HoverSelection is on, because
18928 the item control receives more than one MouseHover per Enter
18929 event, so we need to ensure only the "first" hover gets forwarded.
18930 Opening a minor bug for that.
18932 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
18934 * CheckedListBox.cs: Fixed SelectionMode to match MS.
18935 * ListControl.cs: Implemented AllowSelection property. Removed extra
18937 * ListBox.cs: Implemented AllowSelection property.
18939 2007-01-02 Everaldo Canuto <everaldo@simios.org>
18941 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
18942 SelectedItem, it prevent for errors when you must disable item
18943 before perform click. Fixes #80409.
18945 2007-01-02 Everaldo Canuto <everaldo@simios.org>
18947 * MenuAPI.cs: Prevent second level and beyond submenus to close
18948 until first level when move out side of popup.
18950 2007-01-02 Everaldo Canuto <everaldo@simios.org>
18953 - Down submenu positin in three pixels.
18954 - Closes sub menu when mouse leaves from menu. Fixes #80402.
18956 2007-01-02 Everaldo Canuto <everaldo@simios.org>
18958 * ThemeWin32Classic.cs:
18959 - Fix popup menu size adding one pixel on the top.
18960 - Down menu item border from two to one to mimic Win32.
18961 - Some source identation fixes.
18963 2007-01-01 Everaldo Canuto <everaldo@simios.org>
18965 * ThemeWin32Classic.cs: Use float numbers to calculate size and
18966 position of menu arrows, it fix wrong arrow size.
18968 2007-01-01 Everaldo Canuto <everaldo@simios.org>
18970 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
18971 instead of line, it simplify draw operation and fix it using 3D
18972 borders to mimic Win32.
18974 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
18976 * StatusStrip.cs: Add implementation of the sizing grip.
18978 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
18979 StatusStrip rendering.
18981 2006-12-31 Chris Toshok <toshok@ximian.com>
18983 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
18984 override the layout style (anchor/dock) of the control. assign to
18985 Dock instead. Fixes bug #80416.
18987 * ToolStrip.cs: same.
18989 2006-12-31 Andreia Gaita <avidigal@novell.com>
18991 * ContainerControl.cs: Use ContainerSelected flag to check if
18992 a Container is directly selected, or if Select is called on a
18993 non-container. If a container is directly selected, focus events
18994 should not be raised.
18995 Apply #80411 patch to throw exception on set_ActiveControl if
18996 control is the same as the current one.
18998 * Control.cs: Use ContainerSelected flag (see above).
18999 Add invalidation check to raise event but not invalidate if
19001 Apply #80411 patch.
19004 2006-12-31 Everaldo Canuto <everaldo@simios.org>
19006 * MenuAPI.cs: After click, dont close popup menu when menu is
19007 ContextMenu. Fixes #80399.
19009 2006-12-30 Chris Toshok <toshok@ximian.com>
19011 * ContainerControl.cs: make sure we throw the exception if the
19012 container control doesn't contain the control we're setting
19015 2006-12-30 Chris Toshok <toshok@ximian.com>
19017 * Control.cs (SetTopLevel): fix the exception raised by
19018 SetTopLevel for child controls.
19019 (set_Anchor): call UpdateDistances when setting the anchor type.
19020 This fixes bug #80336.
19022 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
19024 * Theme.cs: For now, revert back to 8pt font.
19026 2006-12-29 Everaldo Canuto <everaldo@simios.org>
19028 * MenuAPI.cs: Set popup as active when open a ContextMenu.
19031 2006-12-29 Chris Toshok <toshok@ximian.com>
19033 * Control.cs: reorder the code in OnResize to give the same event
19036 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
19038 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
19039 TileHorizontally and TileVertically.
19041 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
19043 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
19044 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
19045 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
19046 Corrected copyright and email adress.
19048 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
19050 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
19051 of Exception in FullPath property if no TreeView is associated with
19054 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
19056 * Theme.cs: Marked default_font as private, and initialize it in ctor
19057 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
19059 * ThemeGtk.cs: Removed default_font intialization.
19060 * ThemeWin32Classic.cs: Removed default_font initialization.
19062 2006-12-28 Chris Toshok <toshok@ximian.com>
19064 * Control.cs: fix a couple of place where we were creating handles
19065 more aggressively than we should be. Fixes ControlRefresh unit
19068 2006-12-28 Chris Toshok <toshok@ximian.com>
19070 * Control.cs: contrary to what the comment said, Control.Dock does
19071 not supercede Control.Anchor - the last one you assign to decides
19072 the layout behavior. so we need to keep track of which was the
19073 last set. Also, fix some of the affected property arguments in
19074 PerformLayout calls, and remove an redundant parent.PerformLayout
19077 Add a VisibleInternal property, which returns is_visible. We
19078 can/should get rid of all the usage of this field elsewhere.
19080 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19082 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
19083 control style, not DoubleBuffer. Added UseDoubleBuffering property
19084 that indicates whether doublebuffering is enabled and supported.
19085 (comment from and code based on Gert Driesen's patch in #80324).
19088 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19090 * Control.cs: Fixed a NRE.
19092 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19094 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
19097 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19099 * Control.cs: Rewrote double buffering, now a seperate
19100 class handles all the buffering, no Graphics is disposed of
19101 until the painting is finished (earlier implementation
19102 would crash if the control was resized in the OnPaint,
19103 since it would cause the double buffer to be recreated
19104 and the old one disposed), a separate Graphics is
19105 created for every paint (MS behaviour and anyways the state
19106 of the Graphics would have to be saved and restored otherwise)
19108 * XplatUIDriver.cs:
19110 * XplatUI.cs: Added and implemented GetOffscreenGraphics
19111 so that we can get the graphics for the back buffer without
19112 having to create a new one and remove the offscreen_dc parameter
19113 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
19115 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19117 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
19118 Also make virtual all the key-related methods.
19120 * ListViewItem.cs: Make virtual the key related methods for
19121 ListViewSubItemCollection.
19123 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19127 * ThemeWin32Classic.cs:
19128 * Theme.cs: Initial support for Tile view in ListView,
19129 as well as the implementation of the required bits for it (Item
19132 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19134 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
19135 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
19136 Provide useful exception messages.
19138 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
19140 * TrackBar.cs: Remove a warning.
19141 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
19142 when used by DateTimePicker, fixes #80287. This also requires that
19143 MonthCalendar implements it's own drawing for the yearly updown control,
19144 otherwise the Capture tracking would be too complicated. Removed the Click
19145 and DoubleClick events (according to comments they were hiding the base class
19146 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
19147 raise these events, not that they cannot be raised. It is possible to raise
19148 them by calling OnClick and OnDoubleClick). Added two internal fields in
19149 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
19150 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
19151 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
19152 event, no longer needed.
19154 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19156 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
19157 true if new value differs from current value.
19159 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19161 * Control.cs: ControlCollection.Count must be public. Fixed build of
19164 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19166 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
19168 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19170 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
19172 2006-12-26 Everaldo Canuto <everaldo@simios.org>
19174 * Control.cs: Invalidates control including when Width and Height is
19175 equal zero or is not visible, only Paint event must be care about
19176 this. Fixes #79913.
19178 2006-12-26 Chris Toshok <toshok@ximian.com>
19180 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
19181 more corcompare work.
19183 * DataGridView.cs: fix compiler warning.
19185 * ColumnHeader.cs: some corcompare work, and also take the
19186 opportunity to make the internal fields private.
19188 * ListView.cs: fix the fallout from the above field change.
19190 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
19192 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
19193 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
19194 ToolStripTextBox.cs: Fixes to events and corcompare.
19196 2006-12-26 Everaldo Canuto <everaldo@simios.org>
19198 * ListView.cs: Call owner.OnMousexx event to propagate events from
19199 item to ListView. Fixes #80367.
19201 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
19203 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
19204 if value is less than one. ItemHeight should not be set to a value
19205 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
19206 Removed extra tabs.
19208 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
19210 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
19211 * ToolStripStatusLabel.cs: Add Spring for Moma.
19213 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
19215 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
19216 Fixed code formatting. Removed debug code.
19217 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
19219 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
19221 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
19222 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
19223 ArgumentOutOfRangeException if ColumnCount is negative. In
19224 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
19225 less than 4 or higher than 32768.
19226 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
19227 Fixed FormatProvider to return CurrentCulture unless explicitly set.
19228 Fixed IsFormatProviderDefault to return true if FormatProvider has
19229 not been explicitly set.
19231 2006-12-25 Chris Toshok <toshok@ximian.com>
19233 * Application.cs: add a couple of 2.0 events.
19235 2006-12-25 Chris Toshok <toshok@ximian.com>
19237 * Control.cs: fix compiler warning.
19239 * AxHost.cs: corcompare fixes.
19241 * ApplicationContext.cs: corcompare fixes.
19243 2006-12-25 Chris Toshok <toshok@ximian.com>
19245 * Control.cs: only update dist_right/dist_bottom if the
19246 width/height is > 0. this fixes anchored controls being resized
19247 smaller until they disappear and then resized larger again.
19249 2006-12-25 Chris Toshok <toshok@ximian.com>
19251 * Control.cs: a couple of changes. Remove dist_left and dist_top,
19252 since they're nothing more than X/Left and Y/Top, respectively.
19254 Also, move back to a per-control Bitmap/Graphics for
19255 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
19256 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
19259 2006-12-25 Miguel de Icaza <miguel@novell.com>
19261 * MessageBox.cs: Implemented overload that takes a new "bool
19262 displayHelpButton" by adding a new internal field "show_help".
19263 When clicked this will raise the HelpRequested on the owner or the
19266 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
19267 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
19269 * ListView.cs: Add support ColumnWidthChanged and
19270 ColumnWidthChanging.
19272 Add support for ColumnReordered event.
19273 (ReorderColumn): Add NET_2_0 specific support for cancelling the
19276 Very nice codebase!
19278 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
19280 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
19282 2006-12-24 Chris Toshok <toshok@ximian.com>
19284 * GridTablesFactory.cs: 2.0 corcompare work.
19286 * ToolStripContainer.cs: add "override" to
19287 ContextMenuStripChanged, and remove the local event object.
19289 * ToolStripDropDown.cs: same with a couple properties.
19291 * ToolStripPanel.cs: same with AutoSizeChanged event.
19293 * TextBoxBase.cs: add "override" to AutoSizeChanged.
19295 * Form.cs: add the remaining 2.0 events, and do some corcompare
19298 * DateTimePicker.cs: add "new" to padding.
19300 * ButtonBase.cs: use Control's use_compatible_text_rendering.
19302 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
19304 * DataGridView.cs: PaddingChanged is overridden.
19306 2006-12-24 Chris Toshok <toshok@ximian.com>
19308 * Control.cs: corecompare work here too.
19310 * DataGridViewElement.cs, DataGridView.cs,
19311 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
19312 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
19313 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
19314 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
19317 2006-12-24 Miguel de Icaza <miguel@novell.com>
19319 * Control.cs: Switched the error message on the console for a
19320 todo. A review of the code will have to cope with this anyways
19321 (since its a large feature, it is in our radar) and it was
19322 producing too much output when running PDN.
19324 * ToolStripComboBox.cs: Set the text when the SelectedIndex
19325 changes. Applications depend on this (PDN 2.72)
19327 2006-12-23 Chris Toshok <toshok@ximian.com>
19329 * TableLayoutSettings.cs: finish up the corcompare work for this
19332 2006-12-23 Chris Toshok <toshok@ximian.com>
19334 * Control.cs: make SetImplicitBounds internal, do some futzing
19335 with LayoutEngine so that it's available in 1.1, and remove the
19336 entire duplicated code mess from PerformLayout. Use
19337 System.Windows.Forms.Layout.DefaultLayout instead.
19339 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
19341 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
19343 * Form.cs: Add MainMenuStrip property.
19345 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
19347 * Control.cs: Add ContextMenuStrip property and implementation.
19348 Fix ContextMenu implementation to show menu centered on control when
19349 activated using the keyboard instead of showing at screen (0,0).
19351 * ToolStripDropDown.cs: Fix needed overload of Show ().
19353 2006-12-23 Everaldo Canuto <everaldo@simios.org>
19355 * Menu.cs: Name property added for 2.0 profile.
19357 2006-12-23 Everaldo Canuto <everaldo@simios.org>
19359 * Menu.cs: Update information about FindMenuItem, method to be
19362 2006-12-23 Everaldo Canuto <everaldo@simios.org>
19364 * MenuAPI.cs: When deselect items deselect also selected subitems.
19366 2006-12-23 Everaldo Canuto <everaldo@simios.org>
19368 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
19369 FindSubItemByCoord to found itens that is not active, also an
19370 cheking added to FindSubItemByCoord to search for items only
19371 in visible popup windows. Fixes #80274.
19373 2006-12-22 Everaldo Canuto <everaldo@simios.org>
19375 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
19376 internal property, it be care about change ExStyle.
19378 2006-12-22 Andreia Gaita <avidigal@novell.com>
19380 * ContainerControl.cs: set activeControl for parent forms up the
19381 tree when the new activecontrol is a container.
19382 When validating the active control, if it is a container, also
19383 raise up the validation for it's active control. Fixes #80280
19385 * Control.cs: Add internal property flag and check to prevent
19386 Focus events from getting raised when Select() is called for
19387 a ContainerControl. There are still too many focus events being
19388 raised at the moment though.
19389 Cleaned up the code a bit.
19391 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
19393 * Control.cs: Added all missing 2.0 events.and
19394 fixed a couple of corcompare issues.
19395 * TrackBar.cs: Implemented missing 2.0 bits.
19396 * MonthCalendar.cs,
19397 * DateTimePicker.cs,
19398 * MdiClient.cs: Fixed some corcompare issues.
19400 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
19402 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
19403 SplitterPanel.cs: corecompare work.
19405 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
19407 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
19408 Clean up warnings for BackgroundImageChanged and PaddingChanged
19409 events now that they are implemented in Control.cs.
19411 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
19413 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
19415 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
19416 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
19417 of TableLayoutPanel and supporting cast.
19419 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
19422 - GrabWindow now confines the mouse pointer to the confine window.
19423 - Added Win32ClipCursor and Win32GetClipCursor.
19426 - Added CaptureWithConfine to be able to capture and confine
19429 * InternalWindowManager.cs:
19430 - Call CaptureWithConfine instead of Capture if we're an
19431 MdiChild (fixes #79982).
19433 2006-12-21 Chris Toshok <toshok@ximian.com>
19435 * DataGrid.cs: guard against the initial state of selection, where
19436 selection_start == -1. make sure we only select from index >= 0.
19439 2006-12-21 Chris Toshok <toshok@ximian.com>
19441 * Control.cs: we don't need to be so draconian with
19442 UpdateDistances, and we thusly don't need to call it before
19443 calling PerformLayout in ResumeLayout. Fixes bug #80289.
19445 2006-12-21 Daniel Nauck <dna@mono-project.de>
19448 TextBox.cs: Implemented AutoComplete properties.
19450 2006-12-20 Chris Toshok <toshok@ximian.com>
19452 * DataGridView*.cs: some corecompare work.
19454 2006-12-20 Jackson Harper <jackson@ximian.com>
19456 * XplatUIX11.cs: We need to hide the caret when deleting it,
19457 otherwise you get carets left lying around everywhere.
19458 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
19459 prevents getting some weird half drawn caret tracers when
19461 * TextControl.cs: Attempt to reduce the number of times we need to
19462 recreate the caret.
19464 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
19466 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
19468 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
19470 * DateTimePicker.cs:
19471 - Implemented missing 2.0 bits.
19472 - Changed some default values to match MS.
19474 2006-12-20 Jackson Harper <jackson@ximian.com>
19476 * TextBoxBase.cs: When changing the font across the document we
19477 can't recalculate after changing each line, since that will cahnge
19479 - PreferredHeight is a little different than i thought.
19480 - When backspacing, move the caret before we do the actual char
19481 delete, because when that delete crosses a wrap boundary the
19482 positional information will change.
19484 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
19486 * Control.cs: Added some missing 2.0 bits:
19487 BackgroundImageLayout, BackgroundImageLayoutChanged,
19488 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
19489 add IBindableComponent and IDropTarget implementation.
19491 * MonthCalendar.cs:
19492 - Added all missing 2.0 features:
19493 BackgroundImageLayout, RightToLeftLayout,
19494 OnHandleDestroyed, RightToLeftLayoutChanged,
19495 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
19497 - Rewrote all the BoldDate code, it was completely broken.
19498 - Fixed all the tests (the tests can now be re-enabled, the
19499 problems were not with the tests, but with the control, it was
19502 * DateTimePicker.cs: Changed the location where the
19503 MonthCalendar is shown.
19505 2006-12-19 Chris Toshok <toshok@ximian.com>
19507 * DataGridView.cs: add IDropTarget implementation.
19509 * ToolStripPanel.cs: add IDropTarget implementation.
19511 2006-12-19 Jackson Harper <jackson@ximian.com>
19513 * TextControl.cs: soft now means something different than what it
19514 used to mean, we want to move the caret regardless of whether or
19515 not this break was soft (would we really have wanted the caret
19516 to not move with the break in the old context?)
19517 * TreeView.cs: Make sure we factor in the vert scrollbar when
19518 calculating the horizontal scrollbar's maximum.
19520 2006-12-19 Andreia Gaita <avidigal@novell.org>
19522 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
19523 check for keywords in alternate casing, close bug #80049.
19525 2006-12-19 Chris Toshok <toshok@ximian.com>
19527 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
19528 methods (which all do nothing).
19530 * IDropTarget.cs: add the 4 missing methods.
19532 2006-12-19 Chris Toshok <toshok@ximian.com>
19534 * TableLayoutRowStyleCollection.cs: corcompare work.
19536 * TableLayoutSettings.cs: same.
19538 * TableLayoutStyle.cs: same.
19540 * TableLayoutColumnStyleCollection.cs: same.
19542 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
19544 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
19545 TableLayoutPanel I've had in my local tree for way too long.
19547 2006-12-19 Miguel de Icaza <miguel@novell.com>
19549 * TableLayoutSettings.cs: Finish the public API (still needs all
19550 the logic to update on changes).
19552 * TableLayoutPanelCellPosition.cs: new file.
19554 * TableLayoutRowStyleCollection.cs,
19555 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
19556 TableLayoutSettings.cs: Track the final 2.0 table api.
19558 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19560 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
19561 and Image List 2.0 members for ColummnHeader.
19562 * ListView.cs: Add key-related 2.0 methods for
19563 ColumnHeaderCollection.
19565 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
19567 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
19568 ArgumentNullException if items argument is null. Ignore null item in
19569 arrays. Removed extra tabs.
19571 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
19573 * MonthCalendar.cs: Fixed InvalidCastException.
19575 2006-12-19 Jackson Harper <jackson@ximian.com>
19577 * TextControl.cs: Don't increment the position here.
19578 - When calculating char positions only add in the line break size
19579 for hard line breaks.
19581 2006-12-19 Andreia Gaita <avidigal@novell.org>
19583 * SendKeys.cs: Changed some things to match ms.net behaviour
19584 when parsing shifted capital letters.
19586 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
19587 Add window handle as parameter to SendInput. X11 needs the
19588 window handle, and the handle being passed to it in the keys
19589 queue is the active control handle (which windows needs), not
19592 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
19593 to support SendKeys on X.
19595 * X11Keyboard: Implement helper method to lookup a linux keycode
19596 given the virtual keycode. Added table of keycode-2-virtualkey
19597 values to support this.
19599 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19601 * ListView.cs: Add support for SelectedIndexCollection
19602 and SelectedItemCollection 2.0 methods. Implement support
19604 * ListViewItem.cs: Add support for ListViewSubItemCollection
19605 2.0 methods. Also, fix an incorrect behavior of AddRange method
19606 (it shouldn't call Clear).
19607 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
19609 2006-12-19 Jackson Harper <jackson@ximian.com>
19612 * TextBoxBase.cs: New args for FormatText
19613 * TextControl.cs: Rewrote the main drawing method, this version
19614 feels a little easier to understand and debug to me. Hopefully it
19615 does to others also
19616 - Fix FormatText to OR in the new formating values. Added
19617 FormatSpecified param, basically this works in the same way as
19618 BoundsSpecified in Control.
19619 - Set the caret properties when the caret is positioned.
19620 - When wrapping text make sure that we calculate the width of the
19622 - when calculating alignments we might have wrapped down to the
19623 next line, so don't search for an individual tag, search for the
19625 - We need to invalidate the selection area when we replace the
19628 2006-12-19 Daniel Nauck <dna@mono-project.de>
19630 * Application.cs: add Restart () 2.0 support
19632 2006-12-18 Everaldo Canuto <everaldo@simios.org>
19634 * MenuItem.cs: Invalidate menu item rectangle after change Enable
19635 property. Fixes #80268.
19637 2006-12-18 Everaldo Canuto <everaldo@simios.org>
19639 * MenuAPI.cs: Dont trigger select event when closes top menu
19640 item. Fixes #80270.
19642 2006-12-18 Everaldo Canuto <everaldo@simios.org>
19644 * MenuAPI.cs: When you click on menuitem only trigger onselect
19645 event for top menu itens. Fixes #80271.
19647 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
19649 * MdiWindowManager.cs: Make IconicBounds depend on
19650 the bottom of MdiClient, not the top (fixes #80267)
19652 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
19654 * MdiClient.cs: Added missing 2.0 attribute
19656 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19658 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
19659 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
19661 2006-12-18 Everaldo Canuto <everaldo@simios.org>
19663 * MenuAPI.cs: Fix click when menuitem is not popup,
19664 this regression was caused by last commit (#80272).
19666 2006-12-17 Everaldo Canuto <everaldo@simios.org>
19668 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
19669 fire click event or close menu. Fixes #80272.
19671 2006-12-17 Daniel Nauck <dna@mono-project.de>
19673 * ListViewHitTestInfo.cs: add
19675 2006-12-17 Daniel Nauck <dna@mono-project.de>
19677 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
19678 * FlatButtonAppearance.cs: add
19679 * DockingAttribute.cs: add
19681 2006-12-17 Chris Toshok <toshok@ximian.com>
19683 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
19684 and rebind our columns when it does - this way, if you make
19685 changes to the DataTable (or set the Table attribute on a DataView
19686 after setting it as the DataGrid's DataSource, the changes are
19687 made visible.) Fixes bug #80107.
19689 2006-12-17 Daniel Nauck <dna@mono-project.de>
19691 * ListViewGroup.cs: add internal Location property for layouting.
19692 * Theme.cs: add abstract ListViewGroupHeight function.
19693 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
19695 2006-12-16 Andreia Gaita <avidigal@novell.com>
19697 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
19698 Added reset of selected index to 0 when adding first tab page.
19701 * NumericUpDown.cs: Fix NET_2_0 check
19703 2006-12-16 Daniel Nauck <dna@mono-project.de>
19705 * ListViewGroup.cs: fixed DefaultValueAttribute value
19707 2006-12-16 Daniel Nauck <dna@mono-project.de>
19709 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
19711 2006-12-15 Miguel de Icaza <miguel@novell.com>
19713 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
19714 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
19715 ScrollableControl.cs: Add a handful of methods that are
19718 2006-12-15 Chris Toshok <toshok@ximian.com>
19720 * XplatUIWin32.cs: initial implementation of the Reversible
19721 drawing functions. there are some problems. DrawReversibleFrame
19722 doesn't seem to work at all for Dashed FrameStyle, and in the
19723 Thick case there are drawing errors at the corners (we probably
19724 need to bind Rectangle instead of doing moveto/lineto's.)
19726 2006-12-16 Andreia Gaita <avidigal@novell.com>
19728 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
19729 to send blocks of key messages. Send accumulates keys to send with Flush,
19730 while SendWait sends all keys immediately.
19732 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
19733 XplatUIX11.cs, XplatUIX11-new.cs:
19734 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
19735 to Win32 SendInput.
19736 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
19738 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
19739 testing for ms.net on this class is very tricky, as the tests run too fast
19740 to allow the hook to release, essentially freezing the keyboard and the
19741 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
19744 2006-12-16 Daniel Nauck <dna@mono-project.de>
19746 * Padding.cs: fixed serialization compability to MS ("_var" field names),
19747 added missing attributes.
19749 2006-12-15 Daniel Nauck <dna@mono-project.de>
19751 * ListViewGroup.cs: Added missing attributes.
19752 * ListViewGroupCollection.cs: Added missing attributes.
19754 2006-12-15 Daniel Nauck <dna@mono-project.de>
19756 * ListViewItem.cs: fixed ListViewSubItem text property.
19758 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19760 * Control.cs: Added missing 2.0 attributes
19762 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19764 * MdiClient.cs: Added missing 2.0 attribute.
19765 * MonthCalendar.cs: Added some missing 2.0 attributes
19768 2006-12-15 Daniel Nauck <dna@mono-project.de>
19770 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
19772 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
19774 * MainMenu.cs: Add the new 2.0 constructor to help out people
19775 using the MainMenu in VS2005.
19777 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19779 * MdiChildContext.cs: Removed it, no longer used.
19780 * MdiClient.cs: Added missing 2.0 attributes.
19782 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19784 * InternalWindowManager.cs: Fix a NullRef with previous
19785 changes for toolwindows.
19787 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19790 - Added AfterTopMostControl to allow for certain controls
19791 to always stay on top when normal controls are brought to
19795 - (DrawInversibleRectangle): Get window rectangle from Win32
19796 in stead of from control, since Win32 doesn't calculate
19797 screen coords correctly from control's Location if it
19798 have docked siblings.
19800 * MdiWindowManager.cs:
19801 - Correct the control menu popup location when clicked on
19802 the maximized form icon. (fixes #80223.1)
19803 - Don't show moving rectangle if mouse hasn't moved from
19804 the original clicked point.
19805 - Removed FormGotFocus handler (not used).
19806 - Calculate the control buttons location from the main
19807 window's size and not client size (fixes #79770).
19808 - Form is now closed when the form icon is double-clicked
19810 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
19812 * InternalWindowManager.cs:
19813 - Moved some MDI-only methods to MdiWindowManager.
19814 - Removed unused properties and methods.
19815 - Unified method naming for methods handling wm messages.
19816 - Moved all message handling to seperate methods for
19819 * ThemeWin32Classic.cs:
19820 - DrawManagedWindowDecorations now draws the title bar
19821 with a gradient brush.
19822 - Add a CPDrawButtonInternal that allows us to specify
19823 light, normal and dark colors for the buttons (control
19824 buttons for MDI children were drawn with the same light
19825 color as the background, therefore loosing the 3D effect).
19828 - Add a CapturedControl property that is used to
19829 determine the control to resize (defaults to parent).
19830 Needed for MdiClient, since its SizeGrip's parent is
19831 MdiClient, but the control to resize is the main form.
19834 - Set SizeGrip's CapturedControl to the main form in order
19835 to resize the main form and not the MdiClient.
19836 - Override AfterTopMostControl to leave the scrollbars
19839 2006-12-15 Daniel Nauck <dna@mono-project.de>
19841 * ListView.cs: fixed ListViewItemCollection AddRange and
19842 implemented ListViewItemCollection AddRange 2.0 support.
19844 2006-12-15 Daniel Nauck <dna@mono-project.de>
19846 * ListViewGroup.cs: Add.
19847 * ListViewGroupCollection.cs: Add
19848 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
19849 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
19850 stub for ImageKey 2.0 support.
19852 2006-12-14 Mike Kestner <mkestner@novell.com>
19854 * ListView.cs: add text padding to the autocalculation for columns
19855 of width -2. Fixes #80207.
19857 2006-12-14 Mike Kestner <mkestner@novell.com>
19859 * ListView.cs: add some index guarding for partial row navigation
19860 logic. Fixes #80250.
19862 2006-12-14 Mike Kestner <mkestner@novell.com>
19864 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
19865 are added or inserted to the collection. Fixes #81099.
19867 2006-12-13 Everaldo Canuto <everaldo@simios.org>
19869 * MenuAPI.cs: Closes menu when right click out side of popup
19870 it fix problem in ContextMenu and MainMenu. Fixes #80252.
19872 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19874 * ListViewItem.cs: Fix dumb error.
19876 * ListView.cs: Add Find and ContainsKey methods in
19877 ListViewItemCollection, and also return true for IsReadOnly
19878 and IsFixedSize (changes for 2.0).
19880 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
19882 * Control.cs: Allow Region to be set to null.
19884 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
19886 * MdiWindowManager.cs: Remove unused (commented out) code.
19887 * Form.cs: When the MdiChild is maximized, the form needs
19888 WM_NCMOUSELEAVE, so request it.
19889 * InternalWindowManager.cs:
19890 - Added tooltips to control buttons.
19891 - Removed duplicated control button handling code.
19892 - Removed unused (commented out) code.
19894 2006-12-12 Everaldo Canuto <everaldo@simios.org>
19896 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
19897 was used because we must set cursor without trigger ChangeCursor event
19898 and without change Cursor control property. Fixes #79963.
19900 2006-12-12 Andreia Gaita <avidigal@novell.com>
19902 * Control.cs: Check if Region setter value is null, and ignore
19904 2006-12-12 Jackson Harper <jackson@ximian.com>
19906 * TextControl.cs: We were almost always drawing one more line then
19907 needed, since the GetLineByPixel will return the last line found
19908 at that pixel. In most cases though, we were invalidating up to
19909 the junction between two lines.
19910 - Improve debug code.
19912 2006-12-12 Chris Toshok <toshok@ximian.com>
19914 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19915 and FillReversibleRectangle.
19917 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19918 and FillReversibleRectangle.
19920 * XplatUIWin32.cs: add stubs which do nothing for
19921 DrawReversibleFrame, DrawReversibleLine, and
19922 FillReversibleRectangle.
19924 * XplatUIOSX.cs: add stubs which raise NIE for
19925 DrawReversibleFrame, DrawReversibleLine, and
19926 FillReversibleRectangle.
19928 * XplatUIX11.cs: add working implementation for
19929 DrawReversibleFrame, DrawReversibleLine, and
19930 FillReversibleRectangle.
19932 * ControlPaint.cs: implement DrawReversibleFrame,
19933 DrawReversibleLine, and FillReversibleRectangle, by calling into
19934 the appropriate XplatUI method.
19936 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
19938 * Form.cs: Make MdiClient have the focus even if it's
19939 not selectable, since it should receive WM_KEY* and WM_MOUSE
19940 messages. Fixes #79907.
19942 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
19944 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
19945 queried after the window is created.
19947 * XplatUIX11.cs: Added SendParentNotify to implement
19948 WM_PARENTNOTIFY logic. Fixes #79965.
19950 * Control.cs: Added MakeParam.
19952 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
19954 * MdiClient.cs: Resume Layout before setting window
19955 states (fixes #80201).
19957 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
19959 * MenuAPI.cs: Deselect a menu item after performing
19960 the click (fixes #80197).
19962 2006-12-11 Jackson Harper <jackson@ximian.com>
19964 * TextBoxBase.cs: We need to cap this value, since Maximum -
19965 ViewPortHeight can be less than zero.
19966 - Only do selection with the left mouse button.
19967 * TextBox.cs: Don't tell the world that we have a context menu.
19968 * Control.cs: New method so that we can control whether or not the
19969 context menu is visible outside MWF.
19971 2006-12-11 Everaldo Canuto <everaldo@simios.org>
19973 * ToolBarButton.cs: Fix text positon.
19975 2006-12-11 Miguel de Icaza <miguel@novell.com>
19977 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
19979 * Control.cs (DoubleBuffered): Add implementation.
19981 * Application.cs (OpenForms): Add.
19983 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
19985 * Form.cs: Use opacity instead of Opactiy to determine if we need
19986 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
19988 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
19990 * Control.cs: Fix NRE if Control.Site was set to null.
19992 2006-12-11 Chris Toshok <toshok@ximian.com>
19994 * Control.cs: ControlCollection.Remove should return if the arg is
19995 null, and ControlCollection.SetChildIndex should raise a ANE.
19997 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
19999 * Control.cs: Verify value set for Dock property. Code formatting
20002 2006-12-11 Jackson Harper <jackson@ximian.com>
20004 * TextControl.cs: Draw the caret and the selection when a flag is
20006 * TextBoxBase.cs: We want to draw the caret and the selection for
20007 TextBox but not for TextBoxBase.
20008 - If the window is resized and scrolling is no longer needed (the
20009 whole doc is visible) set the scroll position to zero.
20010 - The default SelectWord (the one TextBox uses) should move the
20011 caret to the end of the word.
20012 - SelectAll moves the caret to the end of the selection.
20013 * TextBox.cs: We don't selectall on focus, we just do it when the
20014 control is created.
20016 2006-12-11 Mike Kestner <mkestner@novell.com>
20018 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
20020 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20022 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
20024 * ListViewItem.cs: Add Name 2.0 property.
20026 2006-12-11 Andreia Gaita <avidigal@novell.com>
20028 * TabControl.cs: Set visibility on selected or default tab
20029 when tabcontrol handle is created, so that it's contents
20030 actually show up (duh). Fixes #80193
20031 Don't redraw the control if there is no handle created, as
20032 the selected index might be completely invalid. Added some tests
20035 2006-12-11 Everaldo Canuto <everaldo@simios.org>
20037 * ToolBar.cs: Uses maximun width and height of all buttons as
20038 button rectangle when ButtonSize specified, it looks strange but
20039 is what happens in Win32. Fixes #80189.
20041 2006-12-11 Jackson Harper <jackson@ximian.com>
20043 * TextControl.cs: Need to track undo levels ourself, since
20044 compound actions will mess them up.
20046 2006-12-10 Andreia Gaita <avidigal@novell.com>
20048 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
20049 SelectedIndex value is changed (even if it's not valid).
20050 Reset SelectedIndex to 0 when the handle is created and if
20051 the current index is invalid.
20052 Fixes SelectdeIndex unit tests and #80128
20054 2006-12-08 Chris Toshok <toshok@ximian.com>
20056 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
20057 calls EndEdit, it needs to be called before we set current_cell to
20058 its new value. Otherwise, we end up committing the value in the
20059 textbox to the new cell as well. Fixes bug #80160.
20061 2006-12-08 Chris Toshok <toshok@ximian.com>
20063 * Form.cs (set_CancelButton): if the button's DialogResult is
20064 None, set it to Cancel. Fixes bug 80180.
20066 2006-12-08 Jackson Harper <jackson@ximian.com>
20068 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
20069 to watch ourselves when setting the canvas size and setting the
20072 2006-12-08 Chris Toshok <toshok@ximian.com>
20074 * DataGrid.cs: comment out the two MakeTransparent calls for the
20075 time being so people using trunk (and not 1.2.2) on windows can
20076 actually use the datagrid. This deals with bug #80151.
20078 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
20080 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
20081 Graphics.DrawImage (image, int, int, int, int) overload instead
20082 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
20083 the dpi difference and was blurring images it drew.
20086 2006-12-08 Chris Toshok <toshok@ximian.com>
20088 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
20089 rowcnt is 0 (such as with an empty datasource), and make sure we
20090 initialize not_usedarea.Y to cells.Y, so we don't draw over the
20091 other areas (caption, parent row, etc, etc). Fixes bug #80095.
20093 2006-12-08 Chris Toshok <toshok@ximian.com>
20095 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
20098 2006-12-08 Chris Toshok <toshok@ximian.com>
20100 [ Fixes bug #80167 ]
20102 * ThemeWin32Classic.cs: don't draw the image if the button's flat
20103 style is FlatStyle.System.
20105 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
20106 ButtonBase.flat_style private, and switch uses of it to the public
20109 2006-12-08 Chris Toshok <toshok@ximian.com>
20111 [ Fixes bug #80121 ]
20113 * ThemeWin32Classic.cs: center the caption text in the datagrid
20116 * DataGrid.cs: lessen the amount we add to the caption height from
20117 6 to 2. 6 was making it huge.
20119 2006-12-08 Andreia Gaita <avidigal@novell.com>
20121 * UpDownBase: Handle MouseWheel call directly instead of capturing
20122 the inner textbox's OnMouseWheel. Fixes #80166
20124 2006-12-08 Jackson Harper <jackson@ximian.com>
20126 * TextControl.cs: We need to invalidate the textbox when we empty
20127 it (how had this not been discovered before?)
20129 2006-12-08 Jackson Harper <jackson@ximian.com>
20131 * TextBoxBase.cs: Reworked the mouse down code so I could get it
20132 to behave like MS, we now ignore the eventargs.Click and just
20133 track state ourself, which we were already doing anyways.
20134 - Constrain the double click handler to the double click size.
20136 2006-12-08 Chris Toshok <toshok@ximian.com>
20138 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
20139 direction if that scrollbar isn't shown. fixes bug #80158.
20141 2006-12-08 Andreia Gaita <avidigal@novell.com>
20143 * NumericUpDown.cs: Update value on getter. Fixes #79950
20145 2006-12-08 Chris Toshok <toshok@ximian.com>
20147 * MenuItem.cs: add back in the event cloning code. I didn't know
20148 how to do it in the face of the EventHandlerList work i'd done
20149 last week. Fixes bug #80183.
20151 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
20153 * Control.cs: Add an invalidate to the BackgroundImage setter.
20156 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
20158 * ToolStrip*: Add some small properties reported by MoMA, fix event
20159 firing and default properties based off of unit tests, and add some
20160 attributes based off of the class status page.
20162 2006-12-07 Jackson Harper <jackson@ximian.com>
20164 * TextBoxBase.cs: Take HideSelection into account when determining
20165 whether or not to show the selection.
20166 * RichTextBox.cs: After inserting the RTF into the document move
20167 the cursor to the beginning of the document.
20169 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
20171 * Control.cs: Remove static ArrayList "controls" which maintained
20172 a reference to every control created.
20173 * Application.cs: Create a static FormCollection to maintain a reference
20174 to every form created. Use it in places that formerly enumerated through
20175 the controls one looking for forms.
20176 * Form.cs: Add and remove self from above FormCollection.
20178 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
20180 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
20181 not libgdk (though it makes me wonder why I didn't have any
20184 2006-12-07 Chris Toshok <toshok@ximian.com>
20186 [ you had to know this was coming after that last commit...]
20188 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
20189 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
20190 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
20193 2006-12-07 Chris Toshok <toshok@ximian.com>
20195 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
20196 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
20197 all the behavior we need for double buffering.
20199 * XplatUIDriver.cs: implement the 3 double buffer methods using a
20200 client side Bitmap, just like the old Control-based double buffer
20201 code did. The methods are virtual, so each XplatUI driver
20202 subclass can replace the implementation to use a faster, platform
20205 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
20206 double buffer code, and clean things up a bit in the process.
20208 2006-12-06 Chris Toshok <toshok@ximian.com>
20210 * Control.cs: reindent WndProc.
20212 2006-12-06 Chris Toshok <toshok@ximian.com>
20214 [ I wanna be like BenM when I grow up ]
20216 * Hwnd.cs: create a single static Graphics object on the static
20217 Bitmap we create. use this for our text measurements.
20219 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
20220 This was causing us to allocate a backbuffer for every control,
20221 even when it wasn't flagged as double buffered. Instead use the
20222 single graphics instance. This might have implications for
20223 multithreaded applications. If we run into problems we can switch
20224 to creating 1 Graphics per control, on the static Hwnd bitmap.
20226 this change nets us a 7M savings in private dirty mappings when
20227 running FormsTest.exe.
20229 2006-12-06 Chris Toshok <toshok@ximian.com>
20231 * ListView.cs: the BackgroundImage override is just to set
20232 attributes. chain up to base.BackgroundImage.
20234 * RichTextBox.cs: same.
20236 * ToolBar.cs: same, but we need to also redraw the toolbar when it
20237 changes, so instead a handler for BackgroundImageChanged.
20239 * Control.cs: make background_image private.
20241 2006-12-06 Chris Toshok <toshok@ximian.com>
20243 * ScrollBar.cs: change the assignment of cursor to Cursor. not
20244 sure we even need this assignment, but roll with it for now.
20246 * Control.cs: make the cursor field private.
20248 2006-12-06 Chris Toshok <toshok@ximian.com>
20250 * Form.cs: we don't need to explicitly set ImeMode to
20251 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
20252 behavior in the face of ImeMode.Inherit.
20254 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
20255 change the ctor's assignment to use ImeMode instead of ime_mode.
20257 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
20258 ImeModeInherit. Only check for the parent's imemode (and return
20259 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
20260 This fixes the button unit test, which sets both ImeMode and
20261 DefaultImeMode to ImeMode.Disable.
20263 also make the ime_mode field private.
20265 2006-12-06 Chris Toshok <toshok@ximian.com>
20267 * Control.cs: make control_style private.
20269 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
20270 setting the styles to true, then setting them to false instead of
20271 reverting to their previous values.
20273 also, call SetStyle on the scrollbars instead of using
20274 control_style directly.
20276 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
20278 * FormCollection.cs: Implement. [2.0]
20280 2006-12-06 Chris Toshok <toshok@ximian.com>
20282 * Control.cs: make tab_stop private.
20284 * Label.cs: set TabStop, not tab_stop. reformat some event
20285 add/remove methods to make them more compact.
20287 2006-12-06 Chris Toshok <toshok@ximian.com>
20289 * RadioButton.cs: fix TabStop handling.
20291 2006-12-06 Chris Toshok <toshok@ximian.com>
20293 * TextBox.cs: remove the explicit assignments to has_focus.
20296 * ButtonBase.cs: remove the assignment to has_focus. Control will
20299 2006-12-06 Chris Toshok <toshok@ximian.com>
20301 * ButtonBase.cs: remove all uses of is_enabled from this code.
20302 it's always true when any of the code containing the checks is
20305 2006-12-06 Chris Toshok <toshok@ximian.com>
20307 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
20308 with different semantics (some are present in both 1.1 and 2.0
20309 profiles) so that we match MS's behavior in our unit tests.
20311 2006-12-06 Jackson Harper <jackson@ximian.com>
20313 * TextControl.cs: Make this operation undoable.
20314 * TextBoxBase.cs: Factor the border width into the preferred
20316 - implement Modified as per the spec.
20318 2006-12-06 Chris Toshok <toshok@ximian.com>
20320 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
20322 2006-12-06 Chris Toshok <toshok@ximian.com>
20324 * Control.cs: make right_to_left and context_menu fields private.
20326 2006-12-06 Chris Toshok <toshok@ximian.com>
20328 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
20329 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
20330 Control.child_controls private. switch all uses over to
20333 2006-12-06 Chris Toshok <toshok@ximian.com>
20335 * System.Windows.Forms/GroupBox.cs,
20336 System.Windows.Forms/AccessibleObject.cs,
20337 System.Windows.Forms/ErrorProvider.cs,
20338 System.Windows.Forms/Control.cs,
20339 System.Windows.Forms/UpDownBase.cs,
20340 System.Windows.Forms/ScrollBar.cs,
20341 System.Windows.Forms/DateTimePicker.cs,
20342 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
20343 System.Windows.Forms/ToolTip.cs,
20344 System.Windows.Forms/RadioButton.cs,
20345 System.Windows.Forms/LinkLabel.cs,
20346 System.Windows.Forms/Splitter.cs,
20347 System.Windows.Forms/TextBoxBase.cs,
20348 System.Windows.Forms/ToolStripTextBox.cs,
20349 System.Windows.Forms/ContainerControl.cs,
20350 System.Windows.Forms/ThemeWin32Classic.cs,
20351 System.Windows.Forms/SizeGrip.cs,
20352 System.Windows.Forms/ToolStripDropDown.cs,
20353 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
20354 private. switch all uses over to Control.Parent.
20356 2006-12-06 Chris Toshok <toshok@ximian.com>
20358 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
20359 Control does this before calling emitting these events.
20361 * TabControl.cs: same.
20363 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
20364 Control.client_rect.
20366 * ButtonBase.cs: use the ClientSize property instead of the
20369 * ScrollableControl.cs: same.
20371 * Control.cs: another pass at making properties private. also,
20372 move the initialization of tab_stop to the ctor.
20374 2006-12-05 Andreia Gaita <avidigal@novell.com>
20376 * TabControl.cs: Let the selected index be set freely if the
20377 control handle is not yet created.
20379 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
20381 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
20382 internal until I can rewrite DefaultLayout.
20383 * ToolStrip.cs: Fix build error and some general cleaning.
20384 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
20385 Fix build errors caused by making some of Control's fields private.
20387 2006-12-05 Jackson Harper <jackson@ximian.com>
20389 * TextControl.cs: Redo Insert a little so that it use IndexOf
20390 instead of Split, this prevents it from messing up on things like
20391 \n\n\n. Also more effecient since the split array doesn't need to
20393 * TextBoxBase.cs: AppendText doesnt handle multiline and non
20394 multiline text differently, this is the first of many fixes that
20395 will make multiline/non-multiline the same thing as far as the
20396 TextBoxBase is concerned.
20397 - Don't split the text and insert lines, this can lose some line
20398 endings (like is the last line a soft or hard break). Instead use
20400 - Fix an off by one when combining all the lines in the Text
20402 - Remove separate multiline handling from the Text getter/setter.
20404 2006-12-05 Chris Toshok <toshok@ximian.com>
20406 * ButtonBase.cs: a few changes:
20408 - don't reinitialize internal Control fields in the ctor when they
20409 have the same values as Control sets them.
20411 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
20412 this before calling those methods.
20414 - we don't need to call Refresh for anything. use Invalidate
20417 - OnEnabledChanged doesn't need to redraw at all - Control.cs
20418 calls Refresh in its OnEnabledChanged.
20420 - several of the events we were registered for in the ctor to
20421 redraw ourselves already include calls to Invalidate in the
20422 property setters that raise the events. remove the extra
20425 - reformat a switch statement that was 83274658 columns wide.
20427 2006-12-05 Mike Kestner <mkestner@novell.com>
20429 * ComboBox.cs: fix a unit test regression from a TextBox
20430 SelectionLength return of -1 when there's no selection.
20432 2006-12-05 Chris Toshok <toshok@ximian.com>
20434 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
20435 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
20436 cleaning up some of the internal Control fields being used by
20439 2006-12-05 Mike Kestner <mkestner@novell.com>
20441 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
20442 listbox after AddImplicit calls since it defaults to hidden. Add a
20443 hack to preserve requested heights across DropDownStyle changes.
20445 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
20447 * PropertyGrid.cs: Hide FindFirstItem method from public API.
20449 2006-12-05 Chris Toshok <toshok@ximian.com>
20451 * DataGridView.cs: fix compiler warnings.
20453 * PrintControllerWithStatusDialog.cs: same.
20455 * ToolBar.cs: same.
20457 * FolderBrowserDialog.cs: same.
20459 * Splitter.cs: same.
20461 * DataGridViewComboBoxCell.cs: same.
20463 * XplatUIWin32.cs: same.
20465 * PictureBox.cs: same.
20467 * Win32DnD.cs: same.
20469 * PageSetupDialog.cs: same.
20471 * FileDialog.cs: same.
20473 * PrintDialog.cs: same.
20475 * DataGridTextBoxColumn.cs: same.
20477 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
20479 2006-12-05 Chris Toshok <toshok@ximian.com>
20481 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
20482 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
20483 System.ComponentModel.EventHandlerList work.
20485 2006-12-05 Jonathan Chambers <joncham@gmail.com>
20487 * DrawTreeNodeEventArgs.cs: Added.
20489 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
20491 * InternalWindowManager.cs: Remove an unused field.
20493 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
20495 * InternalWindowManager.cs:
20496 - Save the point where the title bar is clicked.
20498 * MdiWindowManager.cs:
20499 - Only allow moving of the window as long as the
20500 clicked point on the title bar does not get out of
20501 MdiClient's rectangle. Fixes #79982.
20504 - Added Horizontal/VerticalScrollbarVisible.
20505 - Simplified the scrollbar sizing algorithm.
20506 - Cache the difference in scrolled value in
20507 H/VBarValueChanged and move the calculation out
20510 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
20512 * Control.cs: Make the Console.WriteLine in WndProc
20515 2006-12-05 Chris Toshok <toshok@ximian.com>
20517 * ToolStripManager.cs, ToolStripButton.cs,
20518 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
20519 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
20520 ToolStripSplitButton.cs, ToolStripSeparator.cs,
20521 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
20522 ToolStripProgressBar.cs, ToolStripContainer.cs,
20523 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
20524 to using System.ComponentModel.EventHandlerList.
20526 2006-12-04 Chris Toshok <toshok@ximian.com>
20528 * LinkLabel.cs: fix up compiler warnings.
20530 * TableLayoutSettings.cs: same.
20532 * TreeView.cs: same.
20534 * ToolBar.cs: same.
20536 * TabControl.cs: same.
20538 * RichTextBox.cs: same.
20540 * ListViewItem.cs: same.
20542 * PropertyGrid.cs: same.
20544 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
20548 * TextRenderer.cs: fix up compiler warnings.
20552 * Form.cs: corcompare fixes.
20554 * PictureBox.cs: fix up compiler warnings.
20556 * ImageListStreamer.cs: same.
20558 * TrackBar.cs: corcompare fix.
20560 * Control.cs: fix up compiler warnings.
20562 * SplitterPanel.cs: same.
20564 * NumericTextBox.cs: same.
20566 * ImageList.cs: same.
20568 * StatusStrip.cs: same.
20570 * ProgressBar.cs: corcompare fix.
20572 * ToolStripButton.cs: fix up compiler warnings.
20574 * ToolStripStatusLabel.cs: same.
20576 * ToolStripSplitButton.cs: same.
20578 * ToolStripSeparator.cs: same.
20580 * ToolStripProgressBar.cs: same.
20582 * ToolStripDropDownMenu.cs: same
20584 * ToolStripDropDown.cs: same.
20586 * ToolStripDropDownButton.cs: same.
20588 * ToolStrip.cs: same.
20590 * ToolStripControlHost.cs: same.
20592 * ToolStripContentPanel.cs: same.
20594 * ToolStripDropDown.cs: same.
20596 * ToolStripContainer.cs: same.
20598 * ToolStripPanel.cs: same, and add "new" where we need it to work
20599 with the new ArrangedElementCollection.
20601 * ToolStripItemCollection.cs: add "new" where we need it to work
20602 with the new ArrangedElementCollection.
20604 2006-12-04 Andreia Gaita <avidigal@novell.com>
20606 * TabControl.cs: Fix default tab selection to after TabControl
20607 gets focus and not before. Fixes #80128
20609 2006-12-04 Chris Toshok <toshok@ximian.com>
20611 * DataGridTableStyle.cs: remove the gross calling of
20612 datagrid.Refresh from here. It's a broken idea and it doesn't
20615 * DataGrid.cs: instead, just register/unregister from the
20616 DataGridTableStyle events in CurrentTableStyle. we play it
20617 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
20618 even though some would most likely not require it. Fixes bug
20619 #80115 (and one portion of #80117 as a side effect).
20621 2006-12-04 Chris Toshok <toshok@ximian.com>
20623 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
20624 so the textbox (if any) goes away. Fixes bug #80117.
20626 2006-12-04 Chris Toshok <toshok@ximian.com>
20628 * DataGridColumnStyle.cs: set the column's readonly property
20629 initially based on the property descriptor's IsReadOnly. Fixes
20632 2006-12-04 Chris Toshok <toshok@ximian.com>
20634 * ComboBox.cs: wrap the dropdown style changing work in
20635 SuspendLayout/ResumeLayout. Fixes bug #79968.
20637 2006-12-04 Jackson Harper <jackson@ximian.com>
20639 * TextBoxBase.cs: Fix off by one, since these are one-based.
20640 * TextBox.cs: Select all the text when we get focus. The TextBox
20641 does this but the RTB does not.
20643 2006-12-04 Chris Toshok <toshok@ximian.com>
20645 * DataGridTextBoxColumn.cs: remove some spew.
20647 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
20648 but some part of me is saying "it shouldn't be here.." At any
20649 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
20652 2006-12-04 Chris Toshok <toshok@ximian.com>
20654 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
20655 to reassign the propertydescriptor.
20657 2006-12-04 Jackson Harper <jackson@ximian.com>
20660 * TextControl.cs: Remove some unused variables. Maybe this will
20661 patch things up between mike and I.
20662 - don't split lines less then one char wide, if the viewport is
20663 that small text won't be visible anyways.
20665 2006-12-04 Jackson Harper <jackson@ximian.com>
20667 * TextBoxBase.cs: Default selection length is -1, need to do some
20668 more testing on windows to see when this is used for the property.
20669 - Redid the Lines [] property to that we properly remove soft line
20671 - added support for preserving carriage returns
20672 - CanUndo is not a variable like 'is undo enabled' it just returns
20673 true if there is undo operations available.
20674 - AppendText doesn't need to grab the last tag itself anymore,
20675 this happens automatically when we move the cursor.
20676 * TextControl.cs: Add CompoundActions to the undo class. This
20677 allows combining the other operations into one big option. ie a
20678 paste will combine { delete old, insert new, move cursor }
20679 - Add InsertString undo operation
20680 - New method for deleting multiline text
20681 - Add carriage returns to lines. So we can preserve carriage
20682 returns when text is 'roundtripped'
20684 2006-12-04 Chris Toshok <toshok@ximian.com>
20686 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
20687 minimum 0. Fixes the scrollbar exception in bug #80136.
20689 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
20692 * MdiWindowManager: Removed unused fields and methods.
20694 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
20696 * StatusBar.cs: Update all panels when a AutoSize=Contents
20697 panel needs updating.
20699 * StatusBarPanel.cs: Remove twidth and only use initialize.
20702 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
20704 * Form.cs: When a form's MdiParent is set add it directly
20705 on top of the z-order in stead of relying on MdiClient's
20706 ActivateChild to do it. Fixes #80135.
20709 - Remove original_order, mdi_child_list is already doing
20711 - Create mdi_child_list on construction in
20712 stead of first use (avoids a few null checks).
20714 * MenuItem.cs: Use an already existing list of mdi children
20715 to get the correct order of children and remove the other
20718 2006-12-04 Chris Toshok <toshok@ximian.com>
20720 * PropertyGridView.cs: cached_splitter_location is only used in
20721 !DOUBLEBUFFER code.
20723 * PropertyGrid.cs: implement the ComComponentNameChanged event
20724 using Events, hoping that would fix the warning. Looks like a
20725 compiler bug instead (#80144).
20727 * PropertyManager.cs: remove unused method.
20729 2006-11-04 Everaldo Canuto <everaldo@simios.org>
20731 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
20732 include parentesis to fix expression evaluation. Fixes #79634.
20734 2006-11-02 Everaldo Canuto <everaldo@simios.org>
20737 - Changes to fix behavior in Menu control, some reported in #80097
20738 and other detected during behavior refactory like a select event
20740 - Remove unneded "if's" conditions.
20741 - Created an internal to flag when popup is active in control, we need
20742 it because in .NET you can have menu active but without popup active
20743 when you active menu using popup without visible items.
20744 - Mimic win32 behavior for Select and Popup events.
20745 - Dont open popup menu when you dont have visible subitems.
20746 - Do nothing when click on disabled menu item.
20747 - Some small changes to follow the coding style guidelines.
20748 - Unselect menu only when another control gives focus. Fixes #80097.
20749 - Remove unused code.
20751 * MenuItem.cs: internal VisibleItems method to check if menu
20752 theres visible subitems, it will be usefull to fix some
20753 behavior in Menu control.
20755 2006-11-01 Everaldo Canuto <everaldo@simios.org>
20757 * Timer.cs: Tag property for 2.0 profile.
20759 2006-12-01 Chris Toshok <toshok@ximian.com>
20761 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
20763 * Win32DnD.cs: comment out some unused fields.
20765 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
20766 some unused properties/methods.
20768 * XplatUIX11.cs: fix MousePosition so we override the base class's
20769 property instead of conflicting with it.
20771 * PictureBox.cs: comment out some unused fields
20773 * OSXStructs.cs: make some struct fields public.
20775 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
20776 MousePosition so we override the base class's property instead of
20777 conflicting with it.
20779 * X11Dnd.cs: comment out some unused fields
20781 * X11DesktopColors.cs: fix some struct field visibility to quiet
20784 * X11Dnd.cs: remove some debug code.
20786 * ThemeClearlooks.cs: comment out unused field.
20788 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
20790 * ThemeGtk.cs: comment out some unused pinvokes.
20792 * Timer.cs: remove some unused fields.
20794 * ThemeClearlooks.cs: comment out unused field.
20796 * UpDownBase.cs: comment out unused field.
20798 * DataObject.cs: comment out unused field.
20800 * DataGridBoolColumn.cs: reomve unused field.
20802 * DataGrid.cs: remove unused field.
20804 * Cursor.cs: remove old ToBitmap code.
20806 * ControlPaint.cs: remove unused method.
20808 * ScrollBar.cs: remove unused fields.
20810 * ComboBox.cs: remove unused field, and chain up to
20811 AccessibleObject ctor.
20813 * ListBox.cs: remove unused field.
20815 * ButtonBase.cs: wrap a couple fields in NET_2_0.
20817 * GridEntry.cs: remove unused fields.
20819 * Binding.cs: remove unused fields.
20821 * AxHost.cs: remove unused method.
20823 * ContainerControl.cs: remove unused field.
20825 * ScrollableControl.cs: remove unused fields.
20827 2006-12-01 Chris Toshok <toshok@ximian.com>
20829 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
20830 the Where/WhereString stuff. it's easy enough to CWL
20831 Environment.StackTrace.
20833 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
20834 unused private fields.
20836 2006-12-01 Jackson Harper <jackson@ximian.com>
20838 * TextControl.cs: Do not update the view while inserting multiline
20839 text. If we update the view we might wrap lines, before entering
20840 the new lines, which causes the new line insertion calculations to
20841 be totally fubared.
20842 - Remove an old TODO
20843 - Make debug output a little nicer
20845 2006-12-01 Chris Toshok <toshok@ximian.com>
20847 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
20849 2006-12-01 Chris Toshok <toshok@ximian.com>
20851 [ fix the majority of the CS0108 warnings we've been suppressing ]
20853 * TreeView.cs: mark BackgroundImageChanged as 'new'.
20855 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
20856 to "LayoutToolBar" to quiet mcs.
20858 * TabControl.cs: mark our ControlCollection class as 'new'.
20860 * TextBoxBase.cs: mark some events as 'new'.
20862 * Splitter.cs: TabStop is 'new'.
20864 * ControlBindingsCollection.cs: mark a few methods as new since
20865 they change the visibility from protected to public.
20867 * RadioButton.cs: DoubleClick -> base class, and remove unused
20870 * MonthCalendar.cs: ImeMode property -> base class, and mark many
20873 * NumericUpDown.cs: TextChanged -> base class.
20875 * CheckedListBox.cs: mark our ObjectCollection class as new to
20878 * FolderBrowserDialog.cs: make HelpRequest event new and have it
20879 muck with the base class.
20881 * StatusBar.cs: fix some mcs warnings about Update being the same
20882 name as a base class method.
20884 * RichTextBox.cs: mark some events as new, and make them do things
20885 to the base class impl.
20887 * UserControl.cs: mark TextChanged as new, and have it manipulate
20890 * UpDownBase.cs: mark some things new.
20892 * CheckBox.cs: mark DoubleClick "new", and add some text about
20893 what we need to look at.
20895 * Panel.cs: make the events "new", and manipulate the base
20896 version. these are just here for attributes.
20898 * AccessibleObject.cs: make owner private.
20900 * Control.cs: deal with AccessibleObject.owner being private.
20901 cache our own copy if we need it.
20903 * Button.cs: add "new" to the DoubleClickEvent.
20905 * ListBox.cs: no need to track our own has_focus here. let
20906 Control.has_focus do it for us. Also some other work to clear up
20907 warnings about not overriding base class methods of the same name.
20909 * ComboBox.cs: clear up some warnings about not override base
20910 class methods of the same name.
20912 2006-12-01 Chris Toshok <toshok@ximian.com>
20914 * Form.cs: flag a few things as "new" to quiet some of the mcs
20919 * PrintPreviewDialog.cs: same.
20921 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
20922 now DGV isn't so horrible on the class status page. also, move
20923 all events to using System.ComponentModel.EventHandlerList. my
20926 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
20928 * MdiWindowManager.cs:
20929 - Set form to active mdi child if shown,
20930 and update the active mdi child to the next
20931 remaining child in the z-order if the form is hidden.
20934 - Track if the form has been visible and if its
20935 visibility is beeing changed, so that the MdiClient
20936 can properly decide the ActiveMdiChild. The MdiClient
20937 cannot track this since the form can change visibility
20938 before MdiClient is created.
20941 - Don't activate anything of the parent form is changing
20943 - Rework ActiveMdiChild to only return visible mdi
20944 children and take into account several other corner
20947 2006-12-01 Chris Toshok <toshok@ximian.com>
20949 * IBindableComponent.cs: new 2.0 interface.
20951 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
20953 * DataGrid.cs: Font for caption area is bold by default.
20955 2006-12-01 Everaldo Canuto <everaldo@simios.org>
20957 * Menu.cs: Tag property for 2.0.
20959 2006-11-01 Everaldo Canuto <everaldo@simios.org>
20961 * ThemeWin32Classic.cs: Adjust menu separator drawing.
20963 2006-12-01 Chris Toshok <toshok@ximian.com>
20965 * TreeView.cs: doh, the Begin* events should be
20966 TreeViewCancelEventHandler.
20968 2006-12-01 Chris Toshok <toshok@ximian.com>
20970 * Form.cs: Form.ControlCollection already stores off the
20971 form_owner field. don't access the base class's internal "owner"
20974 * Control.cs: make all the fields in Control.ControlCollection
20975 private. there's no need for any internal fields here.
20977 2006-12-01 Chris Toshok <toshok@ximian.com>
20979 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
20980 OnHandleCreated. Fixes bug #80109.
20982 2006-12-01 Chris Toshok <toshok@ximian.com>
20984 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
20985 SplitContainer.cs, Control.cs, StatusStrip.cs,
20986 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
20987 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
20988 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
20989 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
20990 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
20991 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
20992 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
20993 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
20994 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
20995 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
20997 do most of the work to convert our code over to use
20998 System.ComponentModel.Component.Events for
20999 adding/removing/dispatching events.
21002 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
21004 * DataGridView.cs: Fix an ArgumentNullException reported
21005 twice today in IRC.
21007 2006-11-30 Mike Kestner <mkestner@novell.com>
21009 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
21010 grabbed listbox. Fixes #80036 and #80101.
21012 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
21014 * Message.cs: Changed ToString() to match MS.
21016 2006-11-30 Jackson Harper <jackson@ximian.com>
21018 * TextBoxBase.cs: You can still change the selected text on a read
21020 * TextControl.cs: Lower magic number for wrap calculations. This
21021 lets text get closer to the right (far) edge.
21023 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
21025 * Control.cs: Tweak 2.0 layout properties.
21026 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
21027 * TextRenderer.cs: Add a new overload.
21028 * ToolStrip*: Huge amount of changes and new features.
21030 2006-11-30 Mike Kestner <mkestner@novell.com>
21032 * ComboBox.cs: fixes for LargeChange and Maximum to get the
21033 scroll range correct. Fixes #79994.
21035 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
21037 * MdiWindowManager.cs: Update main form's text when
21038 a form is closed. (fixes #80038)
21040 2006-11-30 Everaldo Canuto <everaldo@simios.org>
21043 - Fix an regression in ButtonSize.
21044 - Get ImeMode default value change to "Disable".
21045 - Get ShowTooltips default value change to true, default value is
21046 "false" but after make a test in .NET we get "true" result as default.
21048 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
21050 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
21052 2006-11-29 Chris Toshok <toshok@ximian.com>
21054 * XplatUIWin32.cs (GetWindowTransparency): check return value of
21055 GetLayeredWindowAttributes. if it's 0, return 1.0, as
21056 SetWindowTransparency hasn't been called.
21058 2006-11-29 Chris Toshok <toshok@ximian.com>
21060 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
21062 (set_AllowTransparency): reorder things a little so that the
21063 WS_EX_LAYERED style is removed properly.
21065 2006-11-29 Chris Toshok <toshok@ximian.com>
21067 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
21069 * Form.cs: only call the XplatUI transparency method (get/set) if
21070 SupportsTransparency says it's supported. Otherwise fallback to
21071 doing nothing (in the set case) or returning the instance field we
21072 cache (in the get case).
21074 * XplatUIStructs.cs: add TransparencySupport flag enum.
21076 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
21077 change to SupportsTransparency.
21079 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
21080 TransparencySupport.None from SupportsTransparency.
21082 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
21083 TransparencySupport.Set from SupportsTransparency.
21085 * XplatUIWin32.cs: implement GetWindowTransparency calling
21086 GetLayeredWindowAttributes, and implement SupportsTransparency by
21087 checking whether or not both
21088 GetWindowTransparency/SetWindowTransparency are available
21089 entrypoints. We need to do this since SetWindowTransparency is
21090 available as of win2k, but GetWindowTransparency requires winxp.
21093 * XplatUI.cs: Add GetWindowTransparency, and change
21094 SupportsTransparency to allow for either/both Get/Set.
21096 2006-11-29 Chris Toshok <toshok@ximian.com>
21098 * DataGrid.cs: keep from going into an infinite loop redrawing a
21099 datagrid that has no datasource. Fixes bug #80033.
21101 2006-11-29 Chris Toshok <toshok@ximian.com>
21103 * MenuItem.cs: fix the NRE when we assign text (and therefore call
21104 Invalidate) before the mainmenu has been assigned to a control.
21106 2006-11-29 Chris Toshok <toshok@ximian.com>
21108 * DataGrid.cs: detect when we should be double the double click
21109 row/column autosize stuff, although that codepath has yet to be
21110 written. part of the work for bug #79891.
21112 2006-11-29 Chris Toshok <toshok@ximian.com>
21114 * Binding.cs (SetControl): fix unit test.
21116 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21118 * PageSetupDialog.cs: Validate the margins and set them in
21120 * NumericTextBox.cs: New class to mimic the behavior of the
21121 textboxes used in the printing dialogs.
21123 2006-11-29 Andreia Gaita <avidigal@novell.com>
21125 * Form.cs: Revert previous change (remove call UpdateBounds
21126 from form constructor), because it messes with the handle creation
21127 order, and that one needs lots and lots of love.
21128 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
21129 for valid printer and throw InvalidPrinterException if document
21130 is set but printer not valid), adding a MonoTODO. Once
21131 handle creation is done properly, we can put this back in.
21133 2006-11-28 Everaldo Canuto <everaldo@simios.org>
21135 * MenuItem.cs: Create a invalidate method for menu item, to be
21136 calling from set text, it make text changes to imadiate update
21137 on screen. Fixes #80013.
21139 2006-11-28 Everaldo Canuto <everaldo@simios.org>
21141 * ToolBar.cs: Fixes and simplify toolbar button layout, it
21142 fixes bug #80070 and some other problem on toolbar buttons
21145 2006-11-28 Everaldo Canuto <everaldo@simios.org>
21147 * ThemeWin32Classic.cs: Paint toolbar toggle button background
21148 with dotted brush. Fixes #79564
21150 2006-11-28 Andreia Gaita <avidigal@novell.com>
21152 * Form.cs: Removed call to UpdateBounds on Form
21153 constructor, it was causing a call to CreateHandle
21154 before it was supposed to.
21155 * PrintControllerWithStatusDialog: Applied patch
21156 by Chris Toshok to hide controller when there are
21157 no printers available.
21158 PrintDialog.cs: initialize printer settings to
21159 null - correct DefaultValues test #5
21160 * PrintPreviewControl.cs: Move PrintController
21161 initialization to GeneratePreview
21162 * PrintPreviewDialog.cs:
21163 - Remove Preview generation from Document_set(). It is
21165 - Throw InvalidPrinterException on CreateHandle if
21166 a Document is set but there are no printers or
21167 printer is not valid.
21168 * ThemeWin32Classic: don't paint PrintPreviewControl
21169 if there is nothing to paint
21171 2006-11-28 Miguel de Icaza <miguel@novell.com>
21173 * Form.cs: Add another popular method.
21175 * TabPage.cs: ditto.
21177 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
21179 * MenuItem.cs: Fixed a warning.
21180 * InternalWindowManager: Fixed a warning.
21182 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
21185 - When cloning a menu also clone MdiList and clone the
21186 window menu items properly (as the forms and menuitems
21187 are kept in an internal hashtable, these need updating
21189 - Rewrote the window menu code, menu items are added in the
21190 order the forms were added to their parent, and they are
21191 updated every time the window menu is shown (before the
21192 list was only generated once, in the current order of the
21193 forms, and would never be updated). A checkmark is shown
21194 next to the item corresponding to the active mdi child.
21196 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
21198 * XplatUIStructs.cs:
21199 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
21202 - Added TME_NONCLIENT to TMEFlags.
21203 - Handles WM_NCMOUSEMOVE in GetMessage to
21204 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
21206 * MdiWindowManager:
21207 - Now merges mdi child menu to parent menu when maximized.
21208 - Recalculate NC areas of both mdi child and mdi parent.
21210 on window state and size changes.Fixes #79844 (3).
21211 - Handle WM_NCCALCSIZE to properly calculate borders.
21214 - Add/remove to the mdi containers list of mdi children
21215 in the order they are added.
21216 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
21217 to the maximized mdi child.
21219 * InternalWindowManager.cs:
21220 - Only execute a click on the control buttons on the mouse up,
21221 not on the mouse down. Show the state of the button
21222 (was only showing Normal state, never Pressed state). The
21223 pressed button now follows the mouse (if you click the Close
21224 button and move the mouse over the Maximize button, the
21225 Maximize button will be shown as pressed). Since Win32 does
21226 not generate WM_NCLBUTTONUP if you release the button outside
21227 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
21230 * ThemeWin32Classic.cs:
21231 - Draw a missing border around mdi child forms. Fixes #79844 (2).
21234 - Added a list of forms which contains the order the forms are
21235 added to the mdi parent.
21236 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
21237 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
21238 - If the active form changes set the scrollbars to the top
21239 of the Z order, otherwise the form could hide them.
21240 - Scrollbars are now sized according to ClientSize, not
21241 to Size, and they take into account the other scrollbar
21242 to determine maximum.
21244 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
21247 * XplatUIDriver.cs:
21251 - Added RequestAdditionalWM_NCMessages for windows to
21252 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
21253 Currently only implemented in XplatUIWin32.
21255 2006-11-27 Chris Toshok <toshok@ximian.com>
21257 * Hwnd.cs: only add the hwnd to the windows hash in
21258 set_WholeWindow and set_ClientWindow if whole_window/client_window
21259 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
21261 2006-11-27 Mike Kestner <mkestner@novell.com>
21263 * ComboBox.cs: remove redundant OnDropDown call. It is called
21264 from the ComboListBox.ShowWindow code. Fixes #79969.
21266 2006-11-27 Chris Toshok <toshok@ximian.com>
21268 * Hwnd.cs: remove the setters for ExposePending and
21269 NCExposePending - noone uses them.
21271 2006-11-27 Jackson Harper <jackson@ximian.com>
21273 * TextControl.cs: new param for ReplaceSelection which determines
21274 whether we select the new selection, or set the cursor to the end
21275 of the new selection.
21276 * TextBoxBase.cs: Use new param for ReplaceSelection. When
21277 pasting, select the new text.
21278 * RichTextBox.cs: Use new param for ReplaceSelection.
21280 2006-11-27 Jackson Harper <jackson@ximian.com>
21282 * TextBoxBase.cs: Set the selection to the caret after the caret
21283 is moved, otherwise they get out of sync.
21285 2006-11-26 Everaldo Canuto <everaldo@simios.org>
21287 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
21290 2006-11-26 Everaldo Canuto <everaldo@simios.org>
21292 * ThemeWin32Classic.cs:
21293 - Fix toolbar drop down arrow position.
21294 - Fix drop down appearance when ToolBar.Appearance is normal,
21297 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
21299 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
21300 * Control.cs: Same.
21301 * UpDownBase.cs: Same.
21302 * ButtonBase.cs: Same.
21303 * ScrollBar.cs: Same.
21304 * TrackBar.cs: Same.
21305 * PictureBox.cs: Same.
21306 * UserControl.cs: Same.
21308 * ListControl.cs: Same.
21309 * TextBoxBase.cs: Same.
21310 * ListView.cs: Same.
21311 * RichTextBox.cs: Same.
21312 * TreeView.cs: Same.
21314 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
21317 - Text label for where
21318 - Text label comment was not shown
21320 2006-11-23 Everaldo Canuto <everaldo@simios.org>
21322 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
21324 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
21326 * InternalWindowManager.cs:
21327 - Handle WM_PARENTNOTIFY to activate the form
21328 if any child control is clicked.
21329 - The form is only sizable if not minimized.
21331 * MdiWindowManager.cs:
21332 - Save the IconicBounds if the form is moved.
21333 - Rework SetWindowState, now the window bounds
21334 are stored only if the old window state is Normal.
21337 - In SetWindowStates store the old window state if
21338 the window is maximized and restore window state if
21339 the window looses focus.
21340 - Don't handle any scrollbar value changes if
21341 initializing the scroll bars. Fixes #79771.
21342 - Reworked ArrangeIconicWindows. Current algorithm
21343 tests bounds agains all other minimized windows, if
21344 any intersections create new bounds (going left to
21345 right, bottom to top) and then test again. When
21346 successful the bounds are saved and never computed
21347 again. Fixes #79774.
21349 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
21351 * InternalWindowManager.cs: Added HandleTitleBarUp.
21353 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
21355 * NumericUpDown.cs: In .NET 1.1, user entered text is still
21356 hexadecimal in ParseUserEdit.
21359 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
21361 * MdiWindowManager.cs:
21362 - Handle a click on the form's icon to show the
21363 system menu (when maximized). Fixes #79775.
21364 - Change the existing click handler for the form's
21365 icon when not maximized to show on MouseUp.
21368 * Form.cs: In OnResize only layout the mdi child's
21369 parent if it actually has a parent. Might not if
21370 the window is closing.
21373 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
21375 * MdiClient.cs: Ignore active MDI client for text of parent, if
21376 child has no text set.
21378 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
21380 * ToolBar.cs: Fixed ToString to match MS.
21382 2006-11-22 Andreia Gaita <avidigal@novell.com>
21385 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
21386 update inner values on set. Fixes #79966.
21387 - Override OnLostFocus to update value on NET 2. Fixes #79950.
21388 - Fix hexadecimal parsing.
21390 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
21391 parent. Fixes #79957
21393 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
21395 * Control.cs: After calling SetWindowsPos in SetBoundsCore
21396 the actual size has to be queried, since if height /
21397 width is negative Win32 changes it to 0.
21398 Fixes #79999 on Windows.
21400 * XplatUIX11.cs: Set height / width to 0 if negative
21401 in SetWindowPos. Fixes #79999 on Linux.
21403 2006-11-22 Everaldo Canuto <everaldo@simios.org>
21405 * ThemeWin32Classic.cs: Fix text redenring when button is
21408 2006-11-22 Everaldo Canuto <everaldo@simios.org>
21410 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
21411 and later navigate by mouse. Fixes #79528.
21413 2006-11-21 Everaldo Canuto <everaldo@simios.org>
21415 * ToolBar.cs: Set default value for TabStop to false in
21416 constructor, it fixes remaining behavior of bug #79863.
21418 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
21420 * MdiWindowManager.cs:
21421 * InternalWindowManager.cs:
21422 - Moved a few methods specific to Mdi from
21423 InternalWindowManager to MdiWindowManager.
21426 2006-11-21 Chris Toshok <toshok@ximian.com>
21428 * XplatUIOSX.cs: stub out InvalidateNC.
21430 * XplatUIWin32.cs: implement InvalidateNC using the call I found
21431 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
21433 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
21435 * XplatUIDriver.cs: add InvalidateNC abstract method.
21437 * XplatUI.cs: add InvalidateNC.
21439 2006-11-21 Everaldo Canuto <everaldo@simios.org>
21441 * ToolBar.cs: Invalidate complete button area when pressed status
21443 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
21444 * ThemeWin32Classic.cs: Increase vertical and horizontal position
21445 by 1 when button is pressed.
21447 2006-11-20 Everaldo Canuto <everaldo@simios.org>
21449 * ToolButton.cs: Invalidate middle of DropDown button when
21450 ToolBar theres DropDownArrows.
21451 * ThemeWin32Classic.cs: Change position of DropDown arrow and
21452 fix DropDown drawing operations.
21454 2006-11-20 Chris Toshok <toshok@ximian.com>
21456 * NativeWindow.cs: fix the formatting of functions ('{' on the
21457 following line), and enable the thread exception dialog.
21459 * Application.cs: remove the duplicate exception catching from
21462 2006-11-20 Everaldo Canuto <everaldo@simios.org>
21464 * Toolbar.cs: Triggers button click event when click on icon
21465 of dropdown ToolBarButton. Fixes #79912.
21467 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
21470 * ThemeWin32Classic.cs:
21471 - Added a property WindowBorderFont to enable themeing
21472 of mdi child windows' Text.
21474 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
21476 * InternalWindowManager.cs:
21479 * MdiWindowManager.cs:
21480 - If mdi child is maximized, set mdi parent's
21481 text to "Parent - [Child]". Fixes #79770.
21482 - If there is any maximized mdi child windows, only the active
21483 window (and any new windows) is maximized, the rest are normal.
21484 - On a WindowState change only save mdi child's window bounds
21485 if the old window state was normal. Fixes #79774.
21486 - The scroll bars are now calculated on hopefully all
21487 necessary events. Fixed #79771 / #79844->6 / #79906.
21488 - MdiClient.SizeScrollBars() now takes into account docked
21489 controls in the parent when calculating available space.
21490 - InternalWindowManager now always repaints the entire title
21491 area. Fixes #79844->1/4/5.
21492 - Added RequestNCRecalc on mdi child windowstate changes.
21495 2006-11-20 Mike Kestner <mkestner@novell.com>
21497 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
21498 in the MouseUp handler of the listbox and move the return handling
21499 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
21501 2006-11-20 Everaldo Canuto <everaldo@simios.org>
21503 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
21505 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
21507 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
21508 working in 1.2.x anymore. So, updated.
21510 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
21512 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
21513 NumberGroupSeparator of current culture instead of assuming en-US.
21516 2006-11-17 Mike Kestner <mkestner@novell.com>
21518 * Control.cs: Add the concept of implicit bounds setting so that
21519 dock/undock round trips preserve explicitly set size/locations.
21522 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
21524 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
21525 can't handle those filters. (Fixes bug #79961)
21527 2006-11-17 Chris Toshok <toshok@ximian.com>
21529 [ fixes the exit/crashes associated with #79835. it's clearly
21530 suboptimal though, we need to figure out a better way to solve
21533 * PrintPreviewControl.cs: deal with the new invalid printer
21536 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
21537 and return false (so CommonDialog.ShowDialog doesn't actually show
21540 * PrintDialog.cs: enable/disable the Ok button depending on
21541 whether or not the printer is valid.
21543 * CommonDialog.cs (ShowDialog): only actually show the form if
21544 RunDialog returns true.
21546 2006-11-17 Jackson Harper <jackson@ximian.com>
21548 * TextControl.cs: When soft splitting a line, mark it as a soft
21549 split line. Also carry over the current line break to the next
21552 2006-11-17 Chris Toshok <toshok@ximian.com>
21554 * XplatUIX11.cs: when scrolling a window with an invalid area, we
21555 only want to shift the part of the invalid area that overlaps the
21556 area we're scrolling. we also don't want to clear the invalid
21557 area unless the invalid area was entirely contained within the
21560 2006-11-16 Chris Toshok <toshok@ximian.com>
21562 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
21563 also make sure to free the memory returned by XGetWindowProperty
21566 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
21568 2006-11-16 Chris Toshok <toshok@ximian.com>
21570 * XplatUI.cs: add a new super secret way to get at the totally
21571 unsupported X11 backend.
21573 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
21575 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
21577 2006-11-16 Jackson Harper <jackson@ximian.com>
21579 * TreeView.cs: Allow more explicit setting of top node position
21580 for scrollbars. Slower algo, but more accurate.
21581 - CollapseAll should maintain the current top node.
21582 * TextBoxBase.cs: When positioning the caret, use the line, pos
21583 method, since the x, y method does not grab the correct tag, and
21584 the caret height never gets set correctly. (Maybe I should just do
21585 away with the caret having its own height, and always use the
21586 carets current tag for height).
21588 2006-11-16 Jonathan Pobst <monkey@jpobst.com
21590 [Fixes 79778, 79923]
21592 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
21593 Parent to the FosterParent instead.
21595 2006-11-16 Jackson Harper <jackson@ximian.com>
21597 * TreeView.cs: Need to recalc the topnode when we expand or
21598 collapse. The scrolling methods can't handle this on their own,
21599 since they use differences between the last scroll position, and
21600 those difference get completely messed up since we are expanding
21601 nodes. This problem should probably be fixed in the scrolling
21602 methods, so they can figure out exactly where they are, but this
21603 will slow things down a little.
21604 * ThemeWin32Classic.cs: Special case for groupboxes with empty
21605 strings, makes nunit-gui look a lot nicer.
21607 2006-11-16 Chris Toshok <toshok@ximian.com>
21609 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
21610 the broken multithreaded event handling we have in here. File
21611 this entry under "Why we should move to the new X11 backend".
21613 Any thread can make it into UpdateMessageQueue, which gets events
21614 from the X socket - some of which could belong to hwnds being
21615 managed by a different thread. We can also have multiple threads
21616 in UpdateMessageQueue at the same time, with each one reading from
21617 the X socket. This leads to many problems, with the following
21620 We can't use hwnd.Queue.Enqueue anywhere in here and must use
21623 The MotionNotify compression we do can't work across threads
21624 (without locking the entire queue, perhaps) since we call
21625 hwnd.Queue.Peek, so we just punt and don't compress motion events
21626 unless the owning thread is the one which got the X event.
21628 ConfigureNotify is another fun one, since it modifies the hwnd's
21629 bounds and then enqueues the event. We add a lock to Hwnd which
21630 is held when setting configure_pending to true (and enqueuing the
21633 There is a race wrt the wake socket. we need to make sure that
21634 only 1 thread is waiting on that socket, or else a thread could
21635 sleep waiting for data that never comes. It's difficult (but not
21636 impossible) to make happen, because it seems to require something
21637 like the following:
21639 1. Thread 1 polls on wake_receive
21641 2. poll returns saying there's data to be read on
21644 3. Thread 2 polls on wake_receive and immediately returns
21645 saying there's data to be read.
21647 4. Thread 2 reads the wakeup byte from wake_receive
21649 5. Thread 1 attempts to read the wakeup byte from
21652 6. Thread 2 exits (due to a form closing, perhaps).
21654 7. Thread 1 blocks forever.
21658 Fixing the Expose handling isn't done yet, and the races inherent
21659 in that piece of code are responsible for the drawing mistakes you
21660 see when generating expose events in a MT app (like NPlot). This
21661 one is the likely to be the hardest to bandaid, and it doesn't
21662 appear to cause anything but drawing problems. The other issues
21663 caused apps to exit or hang.
21665 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
21666 called from a different thread than the one that should be calling
21669 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
21671 2006-11-15 Chris Toshok <toshok@ximian.com>
21673 * Application.cs: null out the context's MainForm when we exit
21674 RunLoop. Fixes a newly checked in unit test as well as the last
21675 ODE from bug #79933.
21677 2006-11-15 Chris Toshok <toshok@ximian.com>
21679 * Form.cs (set_Owner): allow a null value so we can clear the
21681 (Dispose): set all our owned_form's Owner properties to null, and
21682 clear the owned_forms collection.
21683 (WM_CLOSE): clean up this a little bit.. still not right though.
21685 * ApplicationContext.cs: OnMainFormClosed should only call
21686 ExitThreadCore if the main form isn't recreating. Fixes unit
21689 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
21693 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
21695 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
21699 * Hwnd.cs: Add a flag to show a window, but not activate it, to
21700 keep popup window types from stealing focus from the main form
21703 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
21705 * MenuAPI.cs: Set above flag to true.
21707 2006-11-15 Chris Toshok <toshok@ximian.com>
21709 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
21710 the button being released is not in wParam.
21712 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
21714 * Form.cs: Add the released button to MouseEventArgs.Button
21715 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
21718 2006-11-15 Chris Toshok <toshok@ximian.com>
21720 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
21721 GetText(). untested because it's unused in our implementation.
21722 Control.Text always caches the text, even if
21723 ControlStyles.CacheText is not set.
21727 2006-11-15 Chris Toshok <toshok@ximian.com>
21731 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
21732 message. no hiding, no disposing.
21734 in the WM_CLOSE handler, hide the form if it's modal.
21736 2006-11-15 Chris Toshok <toshok@ximian.com>
21738 * XplatUIX11.cs: use AddExpose instead of sending a message.
21739 fixes textbox border drawing.
21741 2006-11-15 Chris Toshok <toshok@ximian.com>
21743 * PropertyGridView.cs: keep from crashing on mouse move/down when
21744 the property grid is empty.
21746 2006-11-14 Jackson Harper <jackson@ximian.com>
21748 * TextControl.cs: Make PageUp and PageDown more like the MS
21750 * TextBoxBase.cs: When we set the text property position the
21751 cursor at the beginning of the document.
21753 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21755 * Form.cs: if a mdi child's WindowState has changed
21756 before it's creation, it would display wrong control
21759 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
21761 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
21764 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21766 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
21767 the window gets to paint its borders even if the window is
21770 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
21771 otherwise the old control buttons would still be painted
21772 if the window gets bigger.
21774 * PaintEventArgs.cs: add an internal method so that the clip
21775 rectangle can be changed.
21777 2006-11-13 Chris Toshok <toshok@ximian.com>
21779 [ fixes bug #79745 ]
21781 * NotifyIcon.cs: lots of cleanup.
21783 * X11Structs.cs: add an enum for XEMBED messages.
21785 * XplatUIX11.cs: reindent one of the giant switch statements, it
21786 was taking up an additional tab stop, and this file is already way
21787 too wide for my laptop's screen.
21789 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
21790 we get it, resize the hwnd to the WMNormalHints max_width/height.
21792 2006-11-13 Jackson Harper <jackson@ximian.com>
21794 * TextBoxBase.cs: Compute the value changes for the mouse wheel
21797 2006-11-13 Chris Toshok <toshok@ximian.com>
21799 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
21800 #79898. force a reference to the Region to stick around so the
21801 unmanaged object isn't collected (rendering our handle in the MSG
21804 2006-11-13 Chris Toshok <toshok@ximian.com>
21806 * XplatUIX11.cs: fix #79917 for window managers which support
21808 using XStoreName on the raw utf8, and we need to convert to
21809 COMPOUND_TEXT if it's non-latin1.
21811 2006-11-13 Chris Toshok <toshok@ximian.com>
21813 * Form.cs (set_DialogResult): we need to set closing to false if
21814 we're setting our result to None. fixes bug #79908.
21816 2006-11-13 Jackson Harper <jackson@ximian.com>
21818 * TextControl.cs: When formatting text, compute the adjusted tag
21819 lengths correctly, using FindTag for the end tag instead of trying
21820 to figure it out outselves.
21821 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
21822 the item, ItemHeight doesn't work, because trees with large
21823 imagelists use those for their height
21824 * TreeView.cs: ActualItemHeight factors in the image height
21825 - compute left edge of checkboxes correctly
21826 - when expanding/collapsing move the bottom down one pixel, so we
21827 aren't moving part of the node
21829 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
21831 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
21832 stack in PaintEventStart so that it won't get disposed by the gc
21833 before reaching PaintEventEnd.
21835 2006-11-13 Jackson Harper <jackson@ximian.com>
21837 * TextBoxBase.cs: Don't select the word if we are on a line with
21839 - We don't need to position the caret on mouse up, since the mouse
21840 move handler should be doing this
21841 - When double clicking a blank line, the caret is advanced to the
21844 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
21846 * TreeNodeCollection.cs: Avoid duplicating indexer code.
21848 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
21850 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
21851 Fixes part of bug #79910.
21853 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
21855 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
21856 (bug #79903). Some minor string updates to match ms.
21858 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
21860 * FileDialog.cs: Don't add an extension if the filename
21861 already ends with that extension.
21863 2006-11-10 Jackson Harper <jackson@ximian.com>
21865 * TreeView.cs: Use the currently highlighted node for the
21866 BeforeSelect event.
21867 * TextBoxBase.cs: There is no need to expand selection on
21869 - CanUndo means 'is there any undo operations', not 'is undo
21870 allowed on this textcontrol. Fixed ClearUndo unit test.
21872 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
21874 * Button.cs: only perform click when button is Selectable (so as
21875 not to activate default buttons when they're disabled)
21877 * Control.cs: Rewrite of the SelectNextControl and related
21878 methods. HandleClick now selects next control if the current one
21881 * Form.cs: OnActivated selects next active control only if Load
21882 has already occurred. If Load hasn't run, there's no point in
21883 selecting here, Load might change the state of controls.
21885 * FocusTest.cs: Tests marked as working again for these fixes
21887 2006-11-10 Chris Toshok <toshok@ximian.com>
21889 * XplatUIX11.cs: a couple of fixes.
21891 - use XInternAtoms with almost all the atoms we need to register,
21892 instead of many, many calls to XInternAtom. should help a bit on
21893 startup time, at the expense of making the code look a little
21896 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
21897 isn't reparented (which seems to be a clue that we're running fon
21898 compiz) and they have an Owner form. This fixes the tool windows
21899 in paint.net when running under compiz.
21901 - when setting the opacity of a window, support both the case
21902 where the window has been reparented and also when it hasn't been.
21903 Since compiz/beryl doesn't seem to reparent windows, and these are
21904 the only window managers which support translucency, I'm not sure
21905 why we need the hwnd.reparented case at all.. but leave it in.
21906 now we get translucent windows in paint.net under compiz/beryl.
21908 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
21910 * FileDialog.cs: Always return the value for FilterIndex that
21911 was set. Internally convert it to values that make sense.
21913 2006-11-10 Everaldo Canuto <everaldo@simios.org>
21915 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21917 2006-11-10 Everaldo Canuto <everaldo@simios.org>
21919 * Toolbar.cs: Change default value of DropDownArrows to true, the
21920 signature still using false to make it compatible with MS but the
21921 initial value is true. Fixes #79855.
21923 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
21925 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
21926 only available on Linux.
21928 2006-11-09 Everaldo Canuto <everaldo@simios.org>
21930 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
21931 reduce number of calls to redraw method during toolbar creation.
21933 2006-11-09 Mike Kestner <mkestner@novell.com>
21935 * ListView.cs : raise SelectedIndexChanged when an item is selected
21936 programmatically via the Item.Selected property. Gert's nice
21937 ListViewSelectedIndexChanged test fixture now runs clean.
21939 2006-11-09 Mike Kestner <mkestner@novell.com>
21941 * ListView.cs : raise SelectedIndexChanged when a selected item is
21942 removed from the item collection using Remove or RemoveAt.
21944 2006-11-09 Mike Kestner <mkestner@novell.com>
21946 * ListView.cs : raise SelectedIndexChanged once per selected item
21947 for compat with MS. Fixes #79849+.
21949 2006-11-09 Chris Toshok <toshok@ximian.com>
21951 * TabControl.cs: initialize row_count to 0, and set it to 1 when
21952 we need to (if we have any tab pages). Fixes unit test.
21954 2006-11-09 Chris Toshok <toshok@ximian.com>
21956 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
21957 width is 0, not 3. Fixes a unit test.
21959 2006-11-09 Mike Kestner <mkestner@novell.com>
21961 * ListView.cs : use Implicit scrollbars so that focus isn't
21962 stolen from the listview when they are clicked. Fixes #79850.
21964 2006-11-09 Chris Toshok <toshok@ximian.com>
21966 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
21967 have a root item. Fixes #79879.
21969 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
21973 - An ArgumentException is now thrown if a wrong filter
21974 is applied (matches ms). The previous filter doesn't change
21975 anymore if an exception is thrown.
21976 - Changing the FileName property also affects FileNames
21977 * ColorDialog.cs: The length of the CustomColors array is always
21978 16. It doesn't matter if we use a smaller array or null to update
21979 or change the custom colors property.
21980 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
21981 for RootFolder if we get a undefined value.
21983 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
21985 * StatusBarPanel.cs:
21986 - Width is set to MinWidth if Width is smaller than
21987 MinWidth. Fixes #79842.
21988 - MinWidth now always overrides Width (MSDN says MinWidth
21989 is set to Width when AutoSize = None, but they do not
21991 - Style has now the the correct default value.
21993 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
21996 - The control is completely invalidated on
21997 Got/LostFocus to draw the focus rectangle correctly.
21998 - When AutoSize then height is always 45 (width for
21999 vertical controls).
22001 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
22002 on the mouse when moved and it doesn't move when grabbed
22003 until the mouse moves as well. Also fixed some wrong
22004 calculations when clicking on the thumb (control thought
22005 click was outside of thumb and didn't grab it).
22006 Fixes some of the issues in #79718.
22008 2006-11-08 Everaldo Canuto <everaldo@simios.org>
22010 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
22012 2006-11-08 Chris Toshok <toshok@ximian.com>
22014 * PropertyGridView.cs: only call ToggleValue if the item is not
22017 2006-11-08 Jackson Harper <jackson@ximian.com>
22019 * TextBoxBase.cs: The RichTextBox and textbox have very different
22020 word selection methods. Implement the textbox's simple word
22021 selection here, and let the RichTextBox override and provide it's
22023 - Don't do extra selection on mouseup
22024 * RichTextBox.cs: Use the documents word selection algorithm, I
22025 think ideally, this function will be pulled into the
22026 RichTextBox.cs code someday.
22028 2006-11-08 Chris Toshok <toshok@ximian.com>
22030 * RootGridEntry.cs: new class to represent GridItemType.Root.
22032 * CategoryGridEntry.cs: reformat, and add boilerplate.
22034 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
22035 returns the UI parent anyway, and we need special handling to
22036 implement the GetTarget method in the face of it. Also, implement
22039 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
22040 a root grid item, and use that instead of PropertyGrid.grid_items.
22041 Also, make use of TypeConverters (and add limitted support for
22042 ICustomTypeDescriptors) when initially populating the grid.
22043 Arrays now show up more or less properly.
22045 2006-11-08 Chris Toshok <toshok@ximian.com>
22047 * Application.cs: set the modal dialog to non modal after we close
22048 it. Fixes bug #79866.
22050 2006-11-08 Jackson Harper <jackson@ximian.com>
22052 * TextControl.cs: When combining lines carry over the line end
22053 style from the end line.
22054 - Invalidate the selected area when setting it, if it is visible.
22055 * TextBoxBase.cs: Only rich text box can do full line selects.
22056 - Make sure to set the cursor position when there is a click,
22057 otherwise two clicks in separate areas could cause a large chunk
22060 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22062 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
22065 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22067 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
22068 time. Remove tooltips when ToolButton click events. Fixes #79856.
22070 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22072 * MenuAPI.cs: Ignore right click for menu actions and fixes
22073 menu border when clicked. Fixes #79846.
22075 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22077 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
22078 MouseState after create wParam for message, this fixes mouse button
22079 equal none in mouse up events.
22081 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
22083 * Control.cs : Focus() now calls Select to set the Container's
22084 Active Control and to give it focus. To avoid infinite recursion
22085 (because ActiveControl also calls Focus at one point), a check
22086 is made in Focus with the help of a new internal variable
22089 2006-11-07 Mike Kestner <mkestner@novell.com>
22091 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
22092 if there's a selection. Fixes #79849.
22094 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
22096 * PropertyGrid.cs: Avoid fixed height of help description label.
22097 Fixes part of bug #79829.
22099 2006-11-07 Chris Toshok <toshok@ximian.com>
22101 * XplatUIX11.cs: fix #79790 again, by using the
22102 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
22104 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22106 * ToolBar.cs: Fix left click checking.
22108 2006-11-07 Chris Toshok <toshok@ximian.com>
22110 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
22112 2006-11-07 Chris Toshok <toshok@ximian.com>
22114 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
22115 PropertyManager unit tests.
22117 * PropertyManager.cs: make property_name internal.
22119 2006-11-07 Chris Toshok <toshok@ximian.com>
22121 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
22122 pass a unit test. Also, don't set image_index to anything in
22123 response to setting the ImageList property.
22125 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22127 * ToolBar.cs: Ignore click events when mouse button is not a
22128 left button, only accepts other button for dropdown menus.
22131 2006-11-07 Chris Toshok <toshok@ximian.com>
22133 * DataGrid.cs: make the back and parent row buttons a little less
22136 2006-11-07 Jackson Harper <jackson@ximian.com>
22138 * TextBoxBase.cs: When converting to Text don't put line breaks in
22139 for soft line breaks.
22140 * TextControl.cs: There is an initial "fake" line in the document,
22141 this is now a soft break line, so that an extra line feed doesn't
22142 get added to the end of documents.
22144 2006-11-07 Chris Toshok <toshok@ximian.com>
22148 * CurrencyManager.cs: if the list is readonly, don't bother
22149 checking if IBindingList.AllowNew is true.
22151 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
22152 for non-DataRowView datasources.. or rather, make it not crash.
22153 (DataGridPaintRelationRow): make sure we limit the row painting to
22154 the area not covered by the row header, and make our cell width at
22155 least large enough to cover the relation area. This allows grids
22156 that have relations but no rows to render correctly.
22157 (DataGridPaintRowContents): same type of changes here.
22158 (SetDataSource): move back to always calling
22159 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
22160 navigating back through relations.
22161 (HitTest): handle the case where we have no cells but have
22162 relations. Right now we generate a hit in cell 0 of whatever the
22163 row is, not sure if this is strictly correct, but it works for our
22166 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
22167 bother doing anything.
22169 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
22171 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
22172 early version of StatusStrip. Not responsible for eaten
22173 application or firstborn children.
22175 2006-11-06 Chris Toshok <toshok@ximian.com>
22177 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
22178 call GetTabRect with a -1 index. Fixes #79847.
22180 2006-11-06 Jackson Harper <jackson@ximian.com>
22182 * TreeNodeCollection.cs: Update scrollbars after clearing.
22184 2006-11-06 Chris Toshok <toshok@ximian.com>
22186 * NumericUpDown.cs: fix the ToString method for some unit test
22189 2006-11-06 Chris Toshok <toshok@ximian.com>
22192 - set the initial SelectedGridItem if we can.
22194 - Exclude non-mergable properties only if we're merging > 1
22195 object. Merging 1 object isn't really merging, obviously.
22197 - Handle PropertySort.NoSort just like Alphabetical, which is
22198 wrong of course, but at least gets things on the screen.
22200 * PropertyGridView.cs:
22201 - Add method "FindFirstItem" which finds the first property grid
22202 item, so we can select it by default.
22204 - make use of GridEntry.CanResetValue.
22206 - Don't call RedrawBelowItemOnExpansion here anymore, the
22207 individual GridEntry's will do that.
22209 - Remove the ITypeDescriptorContextImpl internal class.
22212 - this class needs to implement ITypeDescriptorContext, as it's
22213 what MS's PropertyDescriptorGridEntry does, which means we can
22214 remove the ITypeDescriptorContextImpl internal class from
22215 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
22217 - keep a reference to our PropertyGridView, and move the call to
22218 RedrawBelowItemOnExpansion here from PGV. This means
22219 programmaticly setting Expanded actually does something visible.
22221 - add a CanResetValue() function which takes into account our
22222 possibly multiple "selected_objects" in the merged case. Shifting
22223 PropertyGridView to use this method fixes another unreported
22224 crasher found running the test for #79829.
22226 - when Top or Bounds is updated, make sure the PropertyGridTextBox
22227 is updated to reflect this.
22229 * CategoryGridEntry.cs: the ctor takes the PGV now.
22231 2006-11-06 Jackson Harper <jackson@ximian.com>
22233 * TextControl.cs: These are 1 based.
22234 * TextBoxBase.cs: When setting the selected text, don't change the
22235 selected text tags, this is done by ReplaceText, just position the
22236 cursor at the end of the new text.
22238 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
22240 * ListView.cs: Allow label edit only when, when LabelEdit is
22243 2006-11-06 Jackson Harper <jackson@ximian.com>
22245 * TextControl.cs: If a suitable wrapping position isn't found,
22246 just wrap right in the middle of a word.
22248 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
22250 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
22253 2006-11-06 Jackson Harper <jackson@ximian.com>
22255 * TreeView.cs: Can't use the VisibleCount property when setting
22256 scrollbar heights, because this doesn't take into account whether
22257 or not the horz scrollbar just came visible.
22259 2006-11-05 Everaldo Canuto <everaldo@simios.org>
22261 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
22262 activated. Fixes #79369, #79832.
22264 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
22266 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
22267 had to remove support for links that point to a directory. FileInfo
22268 returns no usefull information (means, the directory they point to)
22269 for such links. Replaced some empty string ("") with String.Empty.
22271 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
22273 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
22274 NullReferenceException when attempting to remove node that is not in
22275 collection. Throw NullReferenceException when null is passed to
22276 Remove. Allow first element of the collection to be removed. Fixes
22277 bug #79831. In GetEnumerator ().Current return null if positioned
22278 before the first element of the collection. In GetEnumerator ().Reset,
22279 position before first element of the collection.
22281 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
22283 * PropertyGrid.cs: To match MS, remove default title and description
22284 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
22287 2006-11-04 Chris Toshok <toshok@ximian.com>
22289 * Theme.cs: add a Clamp method, just for kicks.
22291 * ThemeWin32Classic.cs: clamp all color components to [0..255].
22293 2006-11-04 Chris Toshok <toshok@ximian.com>
22295 * Form.cs: if the form isn't visible, Close() does nothing.
22297 2006-11-03 Chris Toshok <toshok@ximian.com>
22299 * Form.cs (Close): if the form is modal, don't Dispose of it, only
22301 (WndProc): don't Dispose after handling the WM_CLOSE message.
22303 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
22304 them as such, instead of using casts from Control to Form. Also,
22305 don't Dispose of the modal dialog when we fall out of the loop -
22306 Close() it instead.
22310 2006-11-03 Chris Toshok <toshok@ximian.com>
22312 * Control.cs (Dispose): only go through the dispose thing if we're
22313 @disposing, and we haven't already been disposed. Fixes bug
22316 * Form.cs: no reason to call "base.Dispose()" here instead of
22319 2006-11-03 Mike Kestner <mkestner@novell.com>
22321 * ComboBox.cs : use ToString instead of casts in AddItem for
22322 sorting functionality. Fixes #79812.
22324 2006-11-03 Chris Toshok <toshok@ximian.com>
22326 * Application.cs: pave the way for actually using the thread
22327 exception dialog. it's ifdefed out at the moment.
22329 2006-11-03 Chris Toshok <toshok@ximian.com>
22331 * ThreadExceptionDialog.cs: until we get a better layout, actually
22332 hide the details textbox and label when we shouldn't see them.
22334 2006-11-03 Jackson Harper <jackson@ximian.com>
22336 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
22337 multiline textboxes anymore. This method also determines the
22338 width/height of a textboxes canvas area.
22339 - Sorta a revert of the last patch. For multiline just position
22340 the controls, then bail. This way the scrollbar width won't be
22343 2006-11-03 Everaldo Canuto <everaldo@simios.org>
22345 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
22346 it dont need. Fixes #79537.
22348 2006-11-02 Jackson Harper <jackson@ximian.com>
22350 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
22351 send the status after firing the DndOver event.
22353 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
22355 * TrackBar.cs: Now orientation only switches height / width if
22356 the control's handle is created (Win32 does it like this). Also
22357 fixed a typo in ToString() for a test to pass, changed the
22358 exception thrown in set_LargeChange and set_SmallChange to
22359 match Win32 behaviour, and added TrackBar tests to the unit
22362 2006-11-02 Chris Toshok <toshok@ximian.com>
22364 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
22365 not _NET_WM_STATE_NO_TASKBAR.
22367 2006-11-02 Jackson Harper <jackson@ximian.com>
22369 * TextControl.cs: Increment count by one, since in the update view
22372 2006-11-02 Jackson Harper <jackson@ximian.com>
22374 * TextBoxBase.cs: Use client rectangle not bounds for checking if
22375 the mouse is in the client rectangle (duh).
22377 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
22379 * TrackBar.cs: Fixed trackbar jumping around when clicking
22380 on it - the trackbar was not detecting correctly at which
22381 side of the thumb the click was done. (fixes #79718)
22383 2006-11-02 Everaldo Canuto <everaldo@simios.org>
22385 * ListBox.cs: scroll visible area when change SelectedIndex to
22386 a non visible area. Fixes #79481.
22388 2006-11-01 Jackson Harper <jackson@ximian.com>
22390 * TextControl.cs: When replacing the selection move the selection
22391 start/end/anchor to the end of the new text.
22393 2006-11-01 Jackson Harper <jackson@ximian.com>
22395 * XplatUIWin32.cs: When setting the parent change the controls
22396 visibility to it's visibility flag, not to it's old parents
22397 visibility (.Visible walks the parent chain).
22399 2006-11-01 Chris Toshok <toshok@ximian.com>
22401 * XplatUIX11.cs: revert the #79790 fix, as the simple.
22402 XSetTransientForHint fix breaks paint .net's tool windows. more
22403 work needed for that one.
22405 2006-11-01 Chris Toshok <toshok@ximian.com>
22407 * ScrollBar.cs: throw ArgumentException instead of Exception in
22408 LargeChange/SmallChange setters. fixes unit tests.
22410 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
22412 * ContainerControl.cs: reverted rev.67183 (which was itself
22413 a reversion of rev.66853... eh).
22415 * Control.cs: Fixes Reflector hang by changing Focus() call
22416 to what it was before rev.66643 (calling Select() here sets
22417 ActiveControl, which in some situations calls back Focus and
22418 eventually does a stack overflow). Temp fix.
22419 Changes to GetNextControl() to not look for children to select when
22420 parent cannot be selectable (so it looks for siblings instead)
22422 2006-10-31 Mike Kestner <mkestner@novell.com>
22424 * CheckedListBox.cs : off by one error in returned index from
22425 ObjectCollection.Add. Fixes #79758.
22427 2006-10-31 Chris Toshok <toshok@ximian.com>
22429 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
22430 calls for the textbox/spinner, to keep from recursing to the point
22431 where we crash. Fixes #79760.
22433 2006-10-31 Chris Toshok <toshok@ximian.com>
22435 * ListControl.cs (set_SelectedValue): don't throw exceptions on
22436 null/"" value, just return. matches ms's behavior and fixes some
22439 2006-10-31 Chris Toshok <toshok@ximian.com>
22441 * Control.cs (set_Capture): make a logic a little easier to
22444 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
22445 if it's being destroyed. A necessary fix surely, but a bandaid
22446 also, to fix the stuck capture problem in bug #78413.
22448 2006-10-31 Chris Toshok <toshok@ximian.com>
22450 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
22451 convention of clearing hwnd.ClientRect when we set the
22452 width/height (so it'll be recalculated by Hwnd).
22454 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
22456 * ContainerControl.cs: reversed Contains check from
22457 ActiveControl due to hanging problems. This fix
22458 partly regresses #79667 (button does not have
22459 initial focus), so this might be a symptom for
22460 a larger parenting problem (set_ActiveControl
22461 is being called but the child control does
22462 not have the parent set yet?)
22464 2006-10-31 Mike Kestner <mkestner@novell.com>
22466 * MenuAPI.cs : fix keynav when menu is click activated.
22468 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
22470 * ToolStrip*: Version 0.2.
22472 * MenuStrip.cs: Version 0.1.
22474 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
22476 2006-10-30 Chris Toshok <toshok@ximian.com>
22478 [ fixes the oversized notify icon issue in bug #79745 ]
22480 * NotifyIcon.cs: scale the icon down to the size we're given by
22481 the XplatUI layer (this would be faster if we did it once instead
22482 of whenever we paint..) Also, remove the WM_NCPAINT handling,
22483 since it's never invoked.
22485 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
22486 pixels high by default, so let's hardcode our systray icon to that
22487 size. The SYSTEM_TRAY protocol should really have a way for
22488 client apps to query for the correct icon size.. but oh well. A
22489 couple of patches to deal with the screwy client_window ==
22490 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
22491 instance, and also make sure we don't XSelectInput twice).
22493 2006-10-30 Chris Toshok <toshok@ximian.com>
22495 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
22496 recreating forms. Control recreation is the bane of my existence.
22497 Fix it in a way that keeps everyone happy.
22499 2006-10-30 Chris Toshok <toshok@ximian.com>
22501 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
22502 just non-CHILD ones. otherwise sometimes scrollbars end up with
22503 client_windows not being resized to the proper size (ReportBuilder
22504 shows this extremely well).
22506 2006-10-30 Chris Toshok <toshok@ximian.com>
22508 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
22509 for non-WS_EX_APPWINDOW windows. This is what keeps them from
22510 showing up in the gnome taskbar. Fixes bug #79790.
22512 2006-10-30 Chris Toshok <toshok@ximian.com>
22514 * ApplicationContext.cs: guard against a NRE.
22516 * Application.cs: null out the old MainForm for the context, so we
22517 don't try to use it again once it's disposed. Fixes bug #79783.
22519 2006-10-30 Chris Toshok <toshok@ximian.com>
22521 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
22522 BindingContext, set the data source directly, otherwise do the
22523 lazy approach - the actual ListManager will be created when we get
22524 a BindingContext. Fixes bug #79700.
22526 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
22528 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
22529 XplatUIX11.cs: Remove old 2 parameter SetVisible.
22531 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
22533 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
22535 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
22536 of SetVisible that allows a window to be shown, but not activated.
22537 This is needed on Windows for MenuStrip, and can probably be used
22538 with MainMenu and ComboBox to fix the focus stealing issues on
22541 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
22543 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
22545 * PictureBox.cs: Fix the output of the ToString method.
22547 2006-10-29 Chris Toshok <toshok@ximian.com>
22549 * Control.cs (get_TopLevelControl): fix bug #79781.
22551 2006-10-29 Chris Toshok <toshok@ximian.com>
22553 * ListControl.cs (set_DataSource): throw Exception here, not
22554 ArgumentException, to match MS behavior.
22556 2006-10-29 Chris Toshok <toshok@ximian.com>
22558 * Form.cs: remove the try-catch's around calls to GetWindowState.
22559 We can just check the return value.
22561 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
22564 * XplatUI.cs: Add note about additional return value for
22567 2006-10-29 Chris Toshok <toshok@ximian.com>
22569 * Control.cs (CreateHandle): when we create our handle, we also
22570 create the handles of our child controls. Fixes one of the
22571 Control unit tests (CH11).
22573 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
22575 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
22577 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
22579 * ThemeClearlooks.cs: A little speedup.
22581 2006-10-27 Chris Toshok <toshok@ximian.com>
22583 * Control.cs: implement Control.FromChildHandle in a way that
22584 matches the docs (and fixes the failed test.)
22586 2006-10-27 Chris Toshok <toshok@ximian.com>
22588 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
22591 * DataGrid.cs: implement ResetForeColor such that the tests
22594 2006-10-27 Chris Toshok <toshok@ximian.com>
22596 * ToolBarButton.cs: setting text/tooltiptext to null results in it
22597 being set to "". Fixes bug #79759.
22599 2006-10-27 Jackson Harper <jackson@ximian.com>
22601 * TextControl.cs: We need to clear the entire selection area when
22602 setting the start, otherwise multiline selections are still
22605 2006-10-26 Chris Toshok <toshok@ximian.com>
22607 * PropertyGridView.cs:
22609 - ifdef all the code specific to the double
22610 buffer case, and provide some alternatives in the non-doublebuffer
22611 code, which makes heavy use of XplatUI.ScrollWindow to move things
22612 around without having to invalidate (and cause flicker). There
22613 are still some drawing problems in the non-doublebuffered case, so
22614 DOUBLEBUFFER is defined by default.
22616 - Fix the way dropdowns are handled. now we explicitly watch for
22617 the events which might cause the dropdown to close, and break out
22618 of the nested event loop there. This gets rid of all Capture
22619 code, at the expense of the Msg special casing. Seems to work,
22620 though, and fixes bug #79743.
22622 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
22623 * Control.cs: SetIsRecreating now recreates implicitly added
22624 child controls as well. Finally fixes #79629. The flag passed to
22625 SetIsRecreating has also been removed since it wasn't used.
22627 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22629 * PageSetupDialog.cs: Clean some code, fix some bits,
22630 add some checks, and add a printer sub-dialog.
22632 2006-10-26 Chris Toshok <toshok@ximian.com>
22634 * PropertyGrid.cs: make set_SelectedObject call
22635 set_SelectedObjects, and move the duplicate logic to the
22636 SelectedObjects setter. Also, raise SelectedObjectsChanged.
22638 * PropertyGridView.cs: hide the textbox when we get a
22639 SelectedObjectsChanged event.
22643 2006-10-26 Chris Toshok <toshok@ximian.com>
22645 * PropertyGridView.cs: deal with the type converter not supporting
22646 GetStandardValues() or GetStandardValues() returning null, which
22647 is does in the default case. Fixes #79742.
22649 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
22651 * CheckedListBox.cs: nunit no longer crashes when selecting
22652 Project/Edit menu option
22654 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
22656 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
22657 is no menu selected. fixes #79739
22659 2006-10-25 Chris Toshok <toshok@ximian.com>
22661 * PropertyGridView.cs: factor out the splitter invalidation code
22662 into the SplitterPercent setter, and for kicks implement the
22663 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
22664 amount in either direction.
22666 2006-10-25 Chris Toshok <toshok@ximian.com>
22668 * PropertyGridView.cs: do some cleanup of the brush used to draw
22669 text - read only fields should be grayed out. not sure how to do
22670 this with the textbox, though. but the textbox's should also be
22671 readonly now at least. Also, hide/show the textbox when resizing
22674 * CursorConverter.cs: use System.Reflection when getting the
22675 properties of Cursors, as TypeDescriptor.GetProperties isn't
22676 returning static properties.
22678 2006-10-25 Chris Toshok <toshok@ximian.com>
22680 * PropertyGridView.cs: factor out the up/down handling, and reuse
22681 it for page up/down. also add End/Home support.
22683 2006-10-25 Chris Toshok <toshok@ximian.com>
22685 * PropertyGridView.cs:
22687 - ensure the selected grid item is visible in the scrolled area,
22690 - fix Keys.Down handling when you're on the last item in the
22693 2006-10-25 Mike Kestner <mkestner@novell.com>
22695 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
22696 clicks too. Fixes #79725.
22698 2006-10-24 Chris Toshok <toshok@ximian.com>
22700 * PropertyGrid.cs: use property.Converter instead of
22701 TypeDescriptor.GetConverter(property.PropertyType), so we catch
22702 TypeConverters declared on the property as well as on the
22703 PropertyType. Fixes bug #79678.
22705 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
22707 * MimeIcon.cs, Mime.cs:
22708 Fallback to the default platform handler if no shared mime info
22709 stuff exists (fixes #79693).
22711 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22712 * ContainerControl.cs: Incorrect contains check in ActiveControl
22713 from previous fix (duh).
22715 2006-10-20 Chris Toshok <toshok@ximian.com>
22717 * PropertyGridView.cs: the dropdown should be MIN(number of items
22718 in list, 15). Fixes #79551.
22720 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22721 Fixes #79384, #79394, #79652, #79667
22724 - Modal windows are now destroyed in the proper order for windows
22726 * ContainerControl.cs:
22728 - ActiveControl setter has more conditions on when to return:
22729 - if we're reselecting the active control, but it actually
22730 didn't have focus (window hidden or some such), it runs
22731 - if the active control being selected doesn't actually
22732 exist in the container, it returns
22736 - The ShowDialog now gets the current form as the owner when
22737 invoking without parameters, and correctly activates the owner
22742 - MessageBox now catches the Escape key to exit
22744 2006-10-20 Chris Toshok <toshok@ximian.com>
22746 * PropertyGridView.cs: fix a number of issues (bug #78565, and
22747 most of bug #79676):
22749 - you can navigate around the property grid with the arrow keys.
22751 - the dropdown is sized properly when the pg has a vertical
22754 - fix the indentation for subentries, and properly select the
22757 - fix the gray bar's drawing (only draw it to the last element,
22758 not for the height of the control. Also make sure we draw that
22759 last horizontal grid line.
22761 - use the same mechanism the datagrid uses wrt the editing textbox
22762 when scrolling/resizing/etc. Namely, we hide it first, do the
22763 operation, then show it again (if it's still visible).
22765 - aggressively remove a lot of unnecessary refreshes (and also
22766 calls to Invalidate(). call more limited variants, and only redraw
22771 - when we're populating the merged collection, fill in the UI
22772 parent with either the passed in item, or the category item we
22775 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
22777 * GridItem.cs: drop some fully qualified names.
22779 * GridEntry.cs: add a "UIParent", which is basically the parent
22782 * GridItemCollection.cs: add an IndexOf method.
22784 2006-10-20 Mike Kestner <mkestner@novell.com>
22786 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
22787 a working win32 NC invalidation mechanism, we can't invalidate
22788 menus. [Fixes #79705]
22790 2006-10-20 Mike Kestner <mkestner@novell.com>
22792 * ListBox.cs : don't update the VScrollbar if the list is empty,
22793 just hide it. [Fixes #79692]
22795 2006-10-20 Jackson Harper <jackson@ximian.com>
22797 * RichTextBox.cs: Handle some special chars better, and don't skip
22798 the entire group when we encounter a special char that we don't
22801 2006-10-18 Chris Toshok <toshok@ximian.com>
22803 * PropertyGridView.cs: address a number of issues from bug #79676,
22804 mostly of the cosmetic variety.
22806 - The highlight rectangle for indented items not extends all the
22809 - Indented items aren't indented so much.
22811 - the dropdown is properly sized width-wise if the pg has a
22812 vertical scrollbar.
22814 2006-10-18 Chris Toshok <toshok@ximian.com>
22816 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
22817 systray stuff is rather convoluted to begin with.
22819 systray icons are a single window for some reason (that I haven't
22820 figured out yet), and for them, client_window == whole_window.
22821 Given the way the tests are structured elsewhere to determine
22822 which paints are pending (client vs. nc), that situation will
22823 always yield PAINT, not NCPAINT. So, if we have a pending
22824 nc_expose and no pending expose, remove the hwnd from the paint
22825 queue, and also set nc_expose_pending to false, to keep us from
22826 blocking further expose's adding the hwnd to the paint queue.
22828 phew. like i said, a rather convoluted change. Fixes the
22829 notifyicon repaint issues in bug #79645.
22831 2006-10-18 Chris Toshok <toshok@ximian.com>
22833 * Form.cs: when getting the backcolor of the form, don't get
22834 base.BackColor, as this allows parents to influence the background
22835 color. This breaks mdi forms. Instead, if the background_color
22836 is empty, return the default.
22838 2006-10-18 Chris Toshok <toshok@ximian.com>
22840 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
22841 to being private instead of internal static.
22843 * Control.cs: remove all the stupid ParentWaitingOnRecreation
22844 crap, it wasn't working for more deeply nested controls anyway,
22845 and we already have the is_recreating flag - use that instead.
22846 Before calling DestroyHandle in RecreateHandle, recurse through
22847 the control tree setting it to true. this returns the recreate
22848 code to much of its original simplicity, while now guaranteeing we
22849 actually recreate everything we're supposed to. This change gets
22850 fyireporting actually showing mdi children.
22852 2006-10-17 Chris Toshok <toshok@ximian.com>
22854 * Form.cs: remove some debug spew, and collapse some duplicate
22855 code at the end of SetClientSizeCore.
22858 - add some more debug spew here too wrt Destroy handling.
22859 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
22860 in Control's handling of WM_DESTROY.
22861 - Remove the handling of zombie window DestroyNotifies from the
22862 event loop - we don't need it. Now the only DestroyNotifies we
22863 actually handle are ones generated by X.
22864 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
22865 match gtk's (functioning) handling of this. This keep metacity
22866 from leaving droppings in the form of wm borders with no window
22867 contents all over the place.
22870 - add a bunch of debug spew wrt control recreation.
22871 - fix a bug where we weren't tracking Visible properly on
22873 - fixed the WM_PAINT double buffer handling to support re-entrant
22874 calls (yes, i know it's gross, but it's happening to us).
22876 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
22877 * ThemeWin32Classic.cs: changed drawing of selected days
22878 to make them look better.
22880 2006-10-16 Chris Toshok <toshok@ximian.com>
22882 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
22883 drawing_stack. Nuke the ClientDC/NonClientDC properties.
22885 * XplatUIX11.cs: move away from using hwnd.client_dc and
22886 hwnd.non_client_dc and on to a stack of dc's (and in window's
22887 case, PAINTSTRUCT's), so we can deal with nested Paint calls
22888 without puking or not disposing of Graphics objects.
22890 * XplatUIOSX.cs: same.
22892 * XplatUIWin32.cs: same.
22894 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
22896 * FileDialog.cs: Don't call on_directory_changed inside
22897 OnSelectedIndexChanged (it changes the SelectedIndex too).
22898 Instead move it to OnSelectionChangeCommitted.
22900 2006-10-13 Chris Toshok <toshok@ximian.com>
22902 * XplatUIX11.cs: more Destroy work. the current code does the
22903 following things, in order:
22905 1. Enumerates all handles of all controls at or below the one
22906 being destroyed, in pre-order. As it is doing this, it marks the
22907 handles as zombie and clears all references to them.
22909 2. calls XDestroyWindow on the window passed in.
22911 3. SendMessage's WM_DESTROY to all he handles in the accumulated
22914 2006-10-13 Chris Toshok <toshok@ximian.com>
22916 * XplatUIX11.cs: set hwnd.zombie to true before calling
22917 SendMessage (WM_DESTROY). this keeps us from marking the new
22918 window a zombie, and also keeps us from calling sendmessage at
22921 2006-10-13 Jackson Harper <jackson@ximian.com>
22923 * TextControl.cs: Do not show the caret and selection at the same
22924 time. Reduces ugliness by 35%.
22926 2006-10-13 Chris Toshok <toshok@ximian.com>
22928 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
22929 zombie after we do the recursive call, so we actually do call
22930 SendMessage on the children controls.
22931 (GetMessage): if we find a pending paint event for a zombie hwnd,
22932 remove the hwnd from the paint queue, or else it will always be
22933 there (and we'll effectively loop infinitely)
22935 2006-10-13 Mike Kestner <mkestner@novell.com>
22937 * MenuItem.cs : add Selected format under keynav too.
22940 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
22942 * PropertyGrid.cs: Fixed some NRE's and small difference between our
22943 implementation and that of MS.
22945 2006-10-13 Chris Toshok <toshok@ximian.com>
22947 * Control.cs (OnInvalidated) only futz with the invalid_region if
22948 the control is double buffered. this fixes the apparent hang in
22949 the ListView unit tests. Someone needs to make the
22950 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
22952 2006-10-13 Chris Toshok <toshok@ximian.com>
22954 * PropertyGridView.cs:
22956 - do a little refactoring so that only one place calls
22957 dropdown_form.Hide, and that is CloseDropDown. make everywhere
22958 else call that. Also make it Refresh, since there are redraw bugs
22959 otherwise (we should take a look at that...)
22961 - do a little more refactoring work to share the body of code
22962 involved with the drop down. it was duplicated in the code
22963 dealing with the listbox handling and in the code dealing with the
22966 - add a Capture to the dropdown form's control once it's
22967 displayed, and add a MouseDown handler that checks to make sure
22968 the position is inside the control. If it's not, close the
22969 dropdown. This fixes #78190.
22971 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
22972 if the value is different than the initial value.
22974 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
22976 * Control.cs: see #78650
22977 - Fixed GetNextControl for several cases:
22978 - Changed FindFlatForward to return
22979 correct sibling control when more than one
22980 control has same TabIndex as the currently
22982 - Changed FindFlatBackward to loop children
22983 from last to first and apply same logic as in
22985 - Changed FindControlForward to search for
22986 children when control is not a container
22987 but has children, or search for siblings if
22988 control is a container...
22989 - Changed FindControlBackward to continue
22990 searching for child controls when hitting
22993 - Fixed Focus method to update ActiveControl
22994 (FocusTest.FocusSetsActive failure)
22997 - Focus rectangle now refreshes when gaining
22999 - Removed grab for Tab key on IsInputKey that
23000 was keeping tab navigation from working (#78650)
23002 2006-10-13 Chris Toshok <toshok@ximian.com>
23004 * PropertyGridView.cs:
23005 - Rewrite SetPropertyValue to loop over SelectedGridItem's
23008 - Deal with GridItem.Value == null a few places.
23011 - replace the PopulateGridItemCollection with a pair of methods
23012 which compute the intersection of all the properties in the
23013 SelectedObjects array. Fixes #79615.
23015 - Throw ArgumentException from set_SelectedObjects if there's a
23018 - Add GetTarget method which can be used to traverse up the
23019 GridItem.Parent chain. It depends on the assumption that
23020 selected_objects for different GridEntries are always in the same
23021 order (a safe assumption). Use this method and loop over all the
23022 selected objects in the entry when calling RemoveValueChanged and
23025 * GridEntry.cs: Make this handle multiple selected objects.
23026 .Value returns null if not all the selected objects share the same
23029 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
23030 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
23031 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
23032 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
23033 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
23034 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
23035 add additional functionality.
23037 2006-10-12 Mike Kestner <mkestner@novell.com>
23039 * ErrorProvider.cs : new ToolTipWindow ctor sig.
23040 * HelpProvider.cs : new ToolTipWindow ctor sig.
23041 * ToolTip.cs : remove ToolTip param from Window sig since it is
23043 * ToolBar.cs : add tooltip support. Fixes #79565.
23045 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
23047 * ComboBox.cs: move the events in set_SelectedIndex to
23048 after the call to HighlightIndex in order to avoid
23049 possible recursion and subsequent problems with the call
23050 to HighlightIndex and include a range check in
23051 set_HighlightIndex. Fixes #79588
23053 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
23055 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
23056 to ui thread's settings instead of sunday.
23057 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
23059 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
23061 * DateTimePicker.cs
23063 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
23064 and implement missing functionality (selecting different parts
23065 of the date and edit them individually with the keyboard).
23067 2006-10-11 Chris Toshok <toshok@ximian.com>
23069 * Control.cs (OnInvalidated): fix NRE relating to last change.
23071 2006-10-11 Chris Toshok <toshok@ximian.com>
23073 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
23074 atoms in _NET_WM_STATE here if the window is maximized. We need
23075 to do this because we're *replacing* the existing _NET_WM_STATE
23076 property, so those atoms will be lost otherwise, and any further
23077 call to GetWindowState will return Normal for a window which is
23078 actually maximized. Fixes #79338.
23080 2006-10-11 Jackson Harper <jackson@ximian.com>
23082 * TextControl.cs: Special case for setting selection end to
23083 selection start, we basically kill the anchor.
23084 - some todo comments.
23086 2006-10-11 Chris Toshok <toshok@ximian.com>
23088 * Control.cs: switch to using an "invalid_region" to track which
23089 parts of the image buffer need updating. This is more code than
23090 the simple fix from r66532. That version just attempted to always
23091 fill the entire buffer on redraw, which turns out to be
23092 inefficient when invalidating small rectangles. This version
23093 simply adds the invalid rectangle to the invalid region. When we
23094 get any WM_PAINT message we see if it can be filled using the
23095 image buffer, and if it can't (if the paint event's clip rectangle
23096 is visible in the invalid region) we first fill the image buffer.
23097 So, the image buffer is still a cache, we just fill it lazily.
23099 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
23100 need it any longer.
23102 2006-10-11 Chris Toshok <toshok@ximian.com>
23104 * XplatUIX11.cs (SetWindowPos): we need to update both position as
23105 well as size after calling XMoveResizeWindow. This keeps us from
23106 ignoring future SetWindowPos calls. Fixes the disappearing
23107 DateTimePicker in the ToolBarDockExample from bug #72499.
23109 2006-10-11 Chris Toshok <toshok@ximian.com>
23111 * TextBoxBase.cs: reorder things a bit when it comes to
23112 resizing-causing-recalculation. we were recalculating the
23113 document when our position was changed, which shouldn't happen.
23114 We only care about size changes. Clear up some more redundant
23115 recalculation calls while I'm at it. This makes the toolbar dock
23116 example snappy when you're just dragging toolbars around (since it
23117 causes a relayout whenever you move one.)
23119 2006-10-11 Chris Toshok <toshok@ximian.com>
23121 * ToolBarButton.cs (get_Rectangle): this only returns
23122 Rectangle.Empty if Visible == false, or Parent == null.
23123 Parent.Visible doesn't matter.
23125 2006-10-10 Chris Toshok <toshok@ximian.com>
23127 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
23128 by .net 1.1, so switch to an internal method instead.
23130 2006-10-10 Chris Toshok <toshok@ximian.com>
23132 * Control.cs (WM_PAINT): when a control is double buffered we draw
23133 initially to the ImageBuffer and then copy from there. But when a
23134 parent control which has child controls is double buffered, the
23135 initial drawing doesn't encompass the entire ClientRectangle of
23136 the parent control, so we end up with uninitialized bits (this is
23137 easily seen by dragging the top toolbar in
23138 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
23139 manually set the ClipRectangle of the paint_event (only the one we
23140 use to populate the ImageBuffer) to ClientRectangle. Fixes more
23141 of the nastiness in bug #72499.
23143 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
23144 which we use in Control.cs's WM_PAINT handling.
23146 2006-10-10 Jackson Harper <jackson@ximian.com>
23148 * TextBoxBase.cs: Finish off the autoscrolling stuff.
23150 2006-10-10 Chris Toshok <toshok@ximian.com>
23152 * Cursor.cs: Apply a slightly different patch to the one suggested
23155 2006-10-10 Jackson Harper <jackson@ximian.com>
23157 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
23158 not the parent form.
23159 * TextControl.cs: use difference in old line count vs new count to
23160 calculate how many lines were added, this takes into account soft
23161 line breaks properly.
23163 2006-10-10 Chris Toshok <toshok@ximian.com>
23165 * LinkLabel.cs: don't call MeasureCharacterRanges against a
23166 rectangle located at 0,0 and the size of the text. Use
23167 ClientRectangle instead. This fixes rendering of non-left aligned
23170 2006-10-10 Jackson Harper <jackson@ximian.com>
23172 * TextBoxBase.cs: When we set the selection start position the
23174 * TextControl.cs: Need to update the caret when we decrement it to
23176 - Make sure that the selection_visible flag gets reset to false if
23177 the selection isn't visible. Before this you could get it set to
23178 visible by changing the selection start, then changing the end to
23181 2006-10-09 Jackson Harper <jackson@ximian.com>
23183 * TreeView.cs: Don't update scrollbars when we aren't visible.
23184 * TreeNodeCollection.cs: Only need to update scrollbars if being
23185 added to an expanded visible node or the root node.
23187 2006-10-09 Chris Toshok <toshok@ximian.com>
23189 * XplatUIX11.cs (SendMessage): fix NRE.
23191 2006-10-09 Jackson Harper <jackson@ximian.com>
23193 * TextBoxBase.cs: Implement horizontal autoscrolling.
23194 * TextControl.cs: Add a movement types that allows moving forward
23195 and backwards without wrapping.
23197 2006-10-09 Mike Kestner <mkestner@novell.com>
23199 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
23200 with focus "expansion" of labels. Fixes #79532 and then some.
23201 * ThemeWin32Classic.cs : add LineLimit to ListView label format
23204 2006-10-09 Jackson Harper <jackson@ximian.com>
23206 * TextBoxBase.cs: Set the default max values to MaxValue since
23207 we use the scrollbar for autoscrolling and the default value is
23208 100. If we don't do this the caret won't keep up with typing
23209 after about 18 characters.
23210 * TextControl.cs: Make sure the selection is offset by the
23211 viewport x. This fixes selection when using auto scrolling.
23213 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
23215 * Form.cs: The active control should be selected after the
23216 OnLoad so that any child control initialization that affects
23217 the selection is done. Fixes #79406
23219 2006-10-06 Chris Toshok <toshok@ximian.com>
23221 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
23222 to have no evil effects.
23224 - Stop selecting StructureNotifyMask on non-toplevel windows.
23226 The only way children should be resized is by using the SWF api,
23227 and we already send WM_WINDOWPOSCHANGED messages in those cases.
23228 Toplevel windows can be interacted with via the window manager,
23229 and so we keep the input mask there.
23231 The other event StructureNotifyMask gives us (that we care
23232 about) is DestroyNotify. The code is already structured such
23233 that it assumes we won't be getting a DestroyNotify event for
23234 the window we pass to XDestroyWindow (which is what
23235 StructureNotifyMask is supposed to guarantee.) So, that code
23236 shouldn't be affected by this either.
23238 - Stop selecting VisibilityChangeMask altogether.
23240 We weren't doing anything with the resulting events anyway.
23242 This vastly reduces the number of X requests and events we see
23243 when resizing/laying out a large ui.
23245 2006-10-06 Chris Toshok <toshok@ximian.com>
23247 * ScrollableControl.cs (DisplayRectangle): we need to take into
23248 account the DockPadding regardless of whether or not auto_scroll
23249 == true. rework this slightly to this effect, and fix bug #79606,
23250 and part of #72499 (you can now see the drag handles and drag
23253 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
23255 * ListViewItem.cs: Collections of selected and checked items are now
23256 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
23257 we mark the collection "dirty".
23258 * ListView.cs: Marked collections readonly. Modified UpdateSelection
23259 to only clear SelectedItems when a new item is selected and MultiSelect
23260 is enabled. CheckedItems and SelectedItems now subscribe to Changed
23261 event of ListViewItemCollection, and mark its list dirty whenever
23262 that event is fire. This allows us to return selected/checked items
23263 in the same order as they are in the Items collection. This matches
23266 2006-10-06 Chris Toshok <toshok@ximian.com>
23268 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
23269 right mouse clicks. Fixes bug #79593.
23271 2006-10-06 Chris Toshok <toshok@ximian.com>
23273 * Splitter.cs: doh, fix splitters that don't want to cancel the
23274 movement when you drag them. Also, impose the limits on the
23275 values we send to the SplitterMovingEvent. Fixes #79598.
23277 2006-10-06 Jackson Harper <jackson@ximian.com>
23279 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
23280 since we use this for auto scrolling also.
23282 2006-10-05 Chris Toshok <toshok@ximian.com>
23284 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
23285 beginning to think that most datagrid column types don't need this
23286 method. Fixes bug #79392.
23288 2006-10-05 Chris Toshok <toshok@ximian.com>
23290 * DataGrid.cs: move back to a more lazy scheme for creating the
23291 CurrencyManager, so we aren't updating it every time you set
23292 either DataSource or DataMember. Also, don't call
23293 RecreateDataGridRows if the currency manager hasn't changed.
23295 2006-10-05 Chris Toshok <toshok@ximian.com>
23297 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
23298 emitted, SelectedIndex should already be updated. Fixes bug
23301 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
23303 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
23304 ToolStripTextBox.cs: Initial commit.
23305 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
23307 2006-10-05 Jackson Harper <jackson@ximian.com>
23309 * TabControl.cs: We need to invalidate the tab control area when
23310 new ones are added (duh).
23312 2006-10-03 Chris Toshok <toshok@ximian.com>
23314 * Form.cs (ProcessDialogKey): if the focused control is in this
23315 form and is a button, call its PerformClick method here. Fixes
23318 2006-10-04 Jackson Harper <jackson@ximian.com>
23320 * TabPage.cs: Ignore setting of Visible, and add an internal
23321 method for setting the controls visibility. TabPage's Visible
23322 property is a little strange on MS, this seems to make us
23323 compatible, and fixes cases where people set all the tab pages to
23325 * TabControl.cs: Use the new internal setting on tab pages
23328 2006-10-03 Mike Kestner <mkestner@novell.com>
23330 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
23332 2006-10-03 Mike Kestner <mkestner@novell.com>
23334 * ListView.cs : use is_visible instead of Visible to check if
23335 scrollbars should be placed/sized. Also some max_wrap_width
23336 love for LargeIcon view. [Fixes #79533]
23338 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
23341 Make set_TextAlign() do actually update the align. Fixed #78403.
23343 2006-10-03 Chris Toshok <toshok@ximian.com>
23345 * DataGrid.cs: fix a crash when switching datasources if the
23346 vertical scrollbar is at someplace other than Value = 0. Also,
23347 reduce the number of recalculation passes we do in SetDataSource
23350 2006-10-03 Jackson Harper <jackson@ximian.com>
23352 * TextBoxBase.cs: Move the if value the same bail check up, we
23353 don't want to empty the document if it is already empty, this
23354 seems to severly mess up the caret. TODO: I should probably fix
23355 the empty statement to update teh caret somehow.
23357 2006-10-03 Chris Toshok <toshok@ximian.com>
23359 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
23360 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
23361 reflection, an internal row type, properties on said type, etc.)
23362 will work with our datagrid. Fixes #79531.
23364 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
23366 * FileDialog.cs: Don't crash if a path is not accessible
23367 (System.UnauthorizedAccessException). Fixes #79569.
23368 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
23369 a ':' too. Return unknown icon for those paths/files.
23371 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
23373 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
23374 GetContainerControl returns null.
23376 2006-10-02 Chris Toshok <toshok@ximian.com>
23378 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
23379 call to XGetWindowAttributes instead of "handle". fixes an X
23380 error using notifyicon after the NotifyIconWindow to Form base
23383 2006-10-02 Chris Toshok <toshok@ximian.com>
23385 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
23386 server grab and looping we need to do to get down to the most
23387 deeply nested child window.
23388 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
23389 QueryPointer again after the WarpPointer so we can generate a
23390 proper (fake) MotionNotify event to be enqueued in the destination
23392 (GetCursorPos): call QueryPointer.
23396 2006-10-02 Jackson Harper <jackson@ximian.com>
23398 * NotifyIcon.cs: Derive the notify icon from a form, so things
23399 like FindForm work on it.
23400 - Swallow the WM_CONTEXTMENU message, since that is generated on
23401 mouse down, and context menu is a mouse up kinda guy. I believe
23402 the correct fix here is probably to make the notify icon entirely
23403 NC area, but this seems to work fine for anyone not manipulating
23406 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
23408 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
23409 ToolStripItemCollection.cs, ToolStripLabel.cs,
23410 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
23411 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
23412 Initial implementation.
23413 * TextRenderer.cs: Provide padding to MeasureText.
23415 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
23417 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
23418 of ButtonBaseAccessibleObject. Fix bug #79552.
23420 2006-10-02 Jackson Harper <jackson@ximian.com>
23422 * MdiWindowManager.cs: When maximizing use the containers client
23423 rect, not it's bounds, so nc area is accounted correctly.
23424 - Use the parent form's size for the menu position, since the
23425 client isn't always the full form size.
23427 2006-10-01 Chris Toshok <toshok@ximian.com>
23429 * ScrollableControl.cs: make sure neither right_edge or
23430 bottom_edge are < 0, since they're used as LargeChange for the
23431 horiz/vert scrollbars respectively. Fixes #79539.
23433 2006-10-01 Chris Toshok <toshok@ximian.com>
23435 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
23436 the xplatuix11 code can cause us to destroy/recreate our handle.
23440 - this code can be invoked many times for the same Hwnd. Make
23441 sure we only destroy the client window once (the first time this
23442 method is called). This fixes bug #79544.
23443 - Remove the call to the improperly bound XSync. why we had two
23444 bindings to this, I will never know, but this call resulted in
23445 events being discarded from the queue(!).
23446 - correct a misunderstanding of _XEMBED_INFO - the second atom is
23447 not our current state but the state we wish to be in. So, 0 if
23448 we don't want to be mapped. Change it to 1.
23449 (SystrayRemove): The XEMBED spec makes mention of the fact that
23450 gtk doesn't support the reparent of client windows away from the
23451 embedder. Looking at gtksocket-x11.c seems to agree with this.
23452 The only avenue we have for removing systray icons is to destroy
23453 them. We don't want the handle to go away for good, though, so
23454 call InternalRecreateHandle on the NotifyIconWindow. Fixes
23457 2006-10-01 Chris Toshok <toshok@ximian.com>
23459 * Form.cs (WndProc): inline the native_enabled variable usage into
23460 the cases in which it's used. Fixes #79536.
23462 2006-09-29 Mike Kestner <mkestner@novell.com>
23464 * ListView.cs : toggle the selection state for ctrl clicks in
23465 multiselect mode. [Fixes #79417]
23467 2006-09-29 Mike Kestner <mkestner@novell.com>
23469 * ListView.cs : kill CanMultiSelect and refactor the selection
23470 code to support multiselection in the absence of mod keys. Steal
23471 arrow/home/end keys by overriding InternalPreProcessMessage to
23472 restore regressed keynav behavior.
23475 2006-09-29 Jackson Harper <jackson@ximian.com>
23477 * MdiClient.cs: Repaint the titlebars when the active window is
23480 2006-09-29 Chris Toshok <toshok@ximian.com>
23482 * Application.cs: when entering a runloop with a modal, make sure
23483 the hwnd is enabled. Fixes #79480.
23485 2006-09-29 Chris Toshok <toshok@ximian.com>
23487 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
23488 when ListManager.CanAddRows == false, bump us back one.
23490 * DataGridColumnStyle.cs (ParentReadOnly): remove the
23491 listmanager.CanAddRows check. This makes ArrayLists uneditable
23492 using a datagrid, which is not right.
23493 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
23494 is an IEditable, but call property_descriptor.SetValue regardless.
23497 2006-09-29 Chris Toshok <toshok@ximian.com>
23499 * DataGridBoolColumn.cs: we need to test equality in the face of
23500 possible null values (as is the case with the default NullValue).
23501 This patch keeps us from crashing in that case.
23503 2006-09-29 Jackson Harper <jackson@ximian.com>
23505 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
23506 here, since it will get called for every node collection in the
23507 tree. This is now done in the treeview once the sorting is
23509 * TreeView.cs: Recalculate the visible order, and update the
23510 scrollbars after sorting, set the top nope to the root so that the
23511 recalc actually works.
23513 2006-09-29 Chris Toshok <toshok@ximian.com>
23515 * LinkLabel.cs: more handling of the default link collection in
23516 the face of LinkArea manipulation. The default link collection
23517 contains 1 element (start=0,length=-1). If the user sets LinkArea
23518 to anything and the links collection is the default, clear it.
23519 Then only add the link if its nonempty. Fixes #79518.
23521 2006-09-29 Chris Toshok <toshok@ximian.com>
23523 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
23524 piece correctly when we hit a '\n'. Fixes #79517.
23526 2006-09-29 Chris Toshok <toshok@ximian.com>
23528 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
23529 change the binding of gdk_init_check to take two IntPtr's, and
23530 pass IntPtr.Zero for both of them. Fixes #79520.
23532 2006-09-29 Mike Kestner <mkestner@novell.com>
23534 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
23537 2006-09-28 Jackson Harper <jackson@ximian.com>
23539 * XplatUIX11.cs: When translating NC messages make sure we go from
23540 whole window to screen, not client window to screen.
23541 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
23542 method doesn't exist
23543 - Skip over controls that aren't forms when arranging.
23545 2006-09-28 Jackson Harper <jackson@ximian.com>
23547 * XplatUIWin32.cs: Clip the rect to the parent window.
23548 * XplatUIStructs.cs: Add clipping modes struct.
23549 * InternalWindowManager.cs: New private method that factors title
23550 bar heights in when calculating the pos of an NC mouse message.
23551 - Use SendMessage to force a paint when the form's size is changed
23552 instead of painting the decorations immediately.
23553 - Don't let the NC button click messages get to DefWndProc,
23554 because they will attempt to handle windowing themself, and this
23555 messes up z-order (it will put them in front of the scrollbars).
23556 * XplatUIX11.cs: Make sure that we don't reset window managers if
23557 we already have one (ie the window is an MDI window).
23559 2006-09-28 Chris Toshok <toshok@ximian.com>
23561 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
23562 menu code really needs going over.
23564 2006-09-27 Chris Toshok <toshok@ximian.com>
23566 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
23567 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
23568 window is maximizable. So, we need to make sure that even if we
23569 clear the border/wm frame of those functions, they're still
23570 available (basically, we remove the decoration without removing
23571 the function). Half the fix for #79338.
23573 2006-09-27 Chris Toshok <toshok@ximian.com>
23575 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
23578 2006-09-27 Chris Toshok <toshok@ximian.com>
23580 * Splitter.cs: reorder things a bit so that we don't actually
23581 draw/move the splitter until after calling OnSplitterMoving. This
23582 lets users cancel/disallow the movement by explicitly setting
23583 event.SplitX/SplitY. Fixes #79372.
23585 2006-09-27 Jackson Harper <jackson@ximian.com>
23587 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
23588 because it is most likely on a window being destroyed, and that
23589 will give us an X11 error.
23591 2006-09-27 Chris Toshok <toshok@ximian.com>
23593 * PropertyGridView.cs: half of the fix for #78190. Clicking on
23594 the dropdown button now toggles between showing and hiding the
23595 dropdown. Also, get rid of dropdown_form_showing and just use
23596 dropdown_form.Visible. We still don't do a grab, but I'll leave
23597 that part to someone who has handled Capture-fu before.
23599 2006-09-27 Chris Toshok <toshok@ximian.com>
23601 * DataGrid.cs: return false if alt isn't pressed when '0' is
23602 pressed. this keeps the '0' key from being swallowed, and fixes
23605 2006-09-27 Chris Toshok <toshok@ximian.com>
23607 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
23608 Calling Refresh (in response to a scrollbar event) screws up the
23609 scrollbar painting. Fixes bug #78923.
23611 2006-09-27 Chris Toshok <toshok@ximian.com>
23613 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
23614 then insert into hashtable" blocks threadsafe.
23616 2006-09-27 Chris Toshok <toshok@ximian.com>
23618 * MessageBox.cs (CreateParams): the styles should be |'ed with our
23619 baseclass's, since otherwise the
23620 ControlBox/MinimizeBox/MaximizeBox assignments above have no
23621 effect. This gets the close button back in messageboxes.
23623 2006-09-27 Chris Toshok <toshok@ximian.com>
23625 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
23626 flag, not just != 0. this makes flags that are actually multiple
23627 bits (like WS_CAPTION) work. fixes bug #79508.
23629 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
23631 * PageSetupDialog.cs: add support for getting and settings the
23632 paper size, source and orientation.
23634 2006-09-26 Chris Toshok <toshok@ximian.com>
23636 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
23637 and caption == "", we need to remove the resize handles as well as
23640 * Control.cs (set_Text): turns out that setting Text on a form
23641 should change the WM styles on the window, since if ControlBox ==
23642 false, the only way to get a window border is to have a non-""
23643 Text property. check winforms/forms/text.cs for an example. so,
23644 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
23645 update both window styles and title. This fixes a lot of dialogs
23646 (including the preferences dialog in MonoCalendar.)
23648 2006-09-26 Chris Toshok <toshok@ximian.com>
23650 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
23651 control isn't a Form), call Win32ShowWindow to hide the window,
23652 but don't update the control Visible property. When we reparent
23653 back to a parent control, call SetVisible in order for the
23654 window's visibility to be reinstated.
23656 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
23659 * Control.cs (ControlCollection.Remove): remove that value.Hide()
23660 call for good, since it breaks MonoCalendar (and other things I'm
23661 sure.) Also, set all_controls to null *after* the owner calls,
23662 which end up regenerating it.
23663 (ChangeParent): allow new_parent to be == null, passing
23664 IntPtr.Zero down to XplatUI.
23666 this fixes #79294 the right way.
23668 2006-09-26 Mike Kestner <mkestner@novell.com>
23670 * GridEntry.cs : internal SetParent method.
23671 * PropertyGrid.cs : attach to property changed on the proper
23672 target if we have a hierarchical grid with subobjects. Setup
23673 GridItem.Parent for hierarchical items.
23674 * PropertyGridView.cs : Set value on the correct target for
23675 hierarchical grids. [Fixes #78903]
23677 2006-09-26 Chris Toshok <toshok@ximian.com>
23679 * Control.cs (ChildNeedsRecreating): this should return true if
23680 either we're being recreated and the child is in our list, or our
23681 parent is waiting for our recreation.
23683 2006-09-26 Chris Toshok <toshok@ximian.com>
23685 * Control.cs (ControlCollection.Remove): reinstate the
23686 value.Hide() call as suggested in bug #79294.
23688 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
23690 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
23691 coordinates (versus a relative move).
23693 2006-09-26 Chris Toshok <toshok@ximian.com>
23695 * Control.cs: rework child recreation a little bit. It turns out
23696 that we race between the DestroyNotify the WM_DESTROY message. If
23697 the parent gets its DestroyNotify before the child gets the
23698 WM_DESTROY message, the child ends up not recreating (since the
23699 parent finishes its recreation on DestroyNotify, and the child
23700 checks ParentIsRecreating.)
23702 So, instead we store off a list of all the child controls which
23703 need to be recreated when the parent control starts to recreate
23704 itself. Then, when child controls get their WM_DESTROY message we
23705 check to see if they're in the parent's pending recreation list,
23706 and if so, we recreate. This removes all dependency on ordering
23707 from the code and fixes the initial MonoCalendar upgrade dialog.
23709 2006-09-26 Jackson Harper <jackson@ximian.com>
23711 * TextControl.cs: Use the Line to get the length of the line,
23712 since soft line breaks can change the end line.
23714 2006-09-26 Chris Toshok <toshok@ximian.com>
23716 * Control.cs (ControlCollection.AddImplicit): don't add the
23717 control again if it's already in one of our lists. This keeps us
23718 from adding controls over and over again for comboboxes when their
23719 handle gets recreated (as the combobox adds implicit controls in
23720 OnHandleCreated). Fixes the X11 errors in bug #79480.
23722 2006-09-26 Jackson Harper <jackson@ximian.com>
23724 * TextControl.cs: When deleting characters make sure that any
23725 orphaned zero lengthed tags get deleted.
23726 - Fix ToString for zero lengthed tags.
23728 2006-09-25 Jackson Harper <jackson@ximian.com>
23730 * TextControl.cs: When getting a tag at the location there can be
23731 multiple tags at the same spot, these are 0-lengthed tags that
23732 appear when extra formatting has been stuck in a location. We
23733 need to pull out the last of these 0 lengthed tags.
23735 2006-09-25 Jackson Harper <jackson@ximian.com>
23737 * TextControl.cs: Fix print out in debug method.
23738 * TextBoxBase.cs: When text is set bail if we are setting to the
23741 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
23743 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
23744 It is now possible to change the selected index in a FontXXXListBox
23745 with the up and down arrow keys from the FontXXXTextBoxes.
23746 Also, send the FontXXXTextBox mouse wheel event to the corresponding
23747 FontXXXListBoxes to match ms.
23749 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
23751 * SystemInformation.cs: Return a clone of the theme's MenuFont because
23752 anyone can dispose it, anytime. All other properties returns enums,
23753 structs or basic types so they don't need such tricks.
23755 2006-09-22 Jackson Harper <jackson@ximian.com>
23762 * XplatUIDriver.cs: Update interface to add a primary selection
23763 flag, so the driver can use the primary selection buffer if
23765 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
23767 * RichTextBox.cs: We need to supply the data object to paste now
23768 (so we can choose to supply CLIPBOARD or PRIMARY).
23769 * TextBoxBase.cs: Supply data object to paste (see above).
23770 - Middle click uses the primary selection data object.
23772 2006-09-21 Chris Toshok <toshok@ximian.com>
23774 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
23775 of SetWMStyles. It's still a rat's nest and is largely
23776 order-dependent which I dislike immensely. This also fixes the X
23777 button disappearing from toplevel forms.
23779 2006-09-21 Mike Kestner <mkestner@novell.com>
23781 * ListBox.cs: move Jordi's click/dblclick raising code to the
23784 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
23786 * ListBox.cs: Fixes 79450
23788 2006-09-21 Mike Kestner <mkestner@novell.com>
23790 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
23791 to deal with people updating the TreeNodeCollection after the tree
23792 is disposed. "Fixes" 79330.
23794 2006-09-20 Jackson Harper <jackson@ximian.com>
23796 * TextControl.cs: Push the cursor record onto the undo stack
23797 before the delete action. This fixes 78651.
23799 2006-09-20 Jonathan Chambers <joncham@gmail.com>
23801 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
23802 CreateParams. Fixes 79329.
23804 2006-09-19 Chris Toshok <toshok@ximian.com>
23806 * XplatUIX11.cs: a couple of blanket code massage passes to clean
23807 things up a bit. First, get rid of the NetAtoms array (and the NA
23808 enum), and just embed the atoms as static fields. Also, add a
23809 couple of functions (StyleSet and ExStyleSet) to clean up all the
23810 bitmask testing of styles.
23812 * X11Structs.cs: remove the NA enum, not needed anymore.
23814 2006-09-19 Chris Toshok <toshok@ximian.com>
23816 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
23817 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
23818 added cleanup to get MessageBox titles appearing again, which were
23819 broken by my earlier fix for caption-less/ControlBox-less windows.
23821 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
23823 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
23824 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
23825 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
23826 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
23827 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
23828 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
23829 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
23830 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
23831 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
23832 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
23833 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
23835 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
23836 ToolStripButton.cs: Stubs needed for above.
23837 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
23839 2006-09-15 Chris Toshok <toshok@ximian.com>
23842 - make the MessageQueues hashtable Synchronized.
23844 - SendMessage: if the Hwnd is owned by a different thread, use the
23845 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
23846 thread. Fixes bug #79201.
23848 2006-09-15 Chris Toshok <toshok@ximian.com>
23850 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
23851 ControlBox == false, we disallow maximize/minimize/close. If the
23852 form Caption is "" we also disallow move (and get rid of the Title
23853 decoration). Unfortunately, regardless of how things are set,
23854 we're stuck with the Title and WM menu.
23856 2006-09-15 Chris Toshok <toshok@ximian.com>
23858 * Application.cs: add locking around the static message_filters
23859 ArrayList, part of #79196.
23861 2006-09-15 Chris Toshok <toshok@ximian.com>
23863 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
23864 Form.ControlBox == false, the window has no titlebar nor resize
23865 handles. fixes bug #79368.
23867 2006-09-15 Chris Toshok <toshok@ximian.com>
23869 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
23870 >= 0. Fixes bug #79370.
23872 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
23873 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
23875 Add properties: LayoutEngine, Margin, DefaultMargin.
23876 Add method: GetPreferredSize.
23877 Move layout logic from PerformLayout to layout engines.
23879 2006-09-13 Chris Toshok <toshok@ximian.com>
23881 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
23882 fix for #79326 broke #78718, so this change addresses that.
23884 - in SendWMDestroyMessages remove the call to
23885 CleanupCachedWindows, since we might be recreating the control and
23886 need to maintain the references to right Hwnd handles. Also, set
23887 the zombie flag to true for each of the children in the hierarchy
23888 instead of calling hwnd.Dispose. This will cause GetMessage to
23889 ignore all events for the window except for DestroyNotify.
23891 - In GetMessage, ignore messages except for DestroyNotify for
23894 * Control.cs: revert the is_recreating fix from the last
23895 ChangeLog. It's definitely "right", but it breaks switching from
23896 an MDI form to a non-MDI form. Will need to revisit that.
23898 * Hwnd.cs: add a zombie flag, which means "the
23899 client_window/whole_window handles are invalid, but we're waiting
23900 for the DestroyNotify event to come in for them". Set the flag to
23901 false explicitly if setting WholeWindow/ClientWindow, and also
23904 2006-09-13 Chris Toshok <toshok@ximian.com>
23906 * XplatUIX11.cs: rework window destruction slightly.
23908 - when destroying the windows associated with a control, we don't
23909 need 2 separate XDestroyWindow calls. Just the one for the
23910 whole_window (or for client_window if whole_window is somehow
23911 IntPtr.Zero -- can this happen?) is enough.
23913 - reworked SendWMDestroyMessages slightly, so we always dispose
23914 the child control hwnd's after sending the messages.
23916 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23917 the two places it was used (one was even using hwnd.Handle and the
23918 other hwnd.client_window. ugh), adding another call in
23919 SendWMDestroyMessages. We need this new call because now the
23920 DestroyNotify events in the queue will be ignored for the child
23921 controls (as their hwnd's were disposed, and the window id's
23922 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
23924 - this fixes bug #79326.
23926 2006-09-13 Chris Toshok <toshok@ximian.com>
23928 * Control.cs: don't always set is_recreating to false at the end
23929 of RecreateHandle, since sometimes we're not done (and won't be
23930 until WndProc handles the WM_DESTROY message). Also, set
23931 is_recreating to false in the WM_DESTROY handling code. Part of
23932 the fix for bug #79326.
23934 2006-09-13 Miguel de Icaza <miguel@novell.com>
23936 * X11DesktopColors.cs: Start the droppage of debugging messages.
23938 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
23940 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
23942 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
23944 2006-09-12 Chris Toshok <toshok@ximian.com>
23946 * DataGrid.cs (get_ListManager): if the list_manager is null, try
23947 to create it using SetDataSource. Fixes bug #79151.
23949 2006-09-11 Chris Toshok <toshok@ximian.com>
23951 * XEventQueue.cs: add a DispatchIdle property.
23953 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
23954 either the queue is null, or the queue has DispatchIdle set to
23956 (DoEvents): set queue.DispatchIdle to false around the
23957 peek/translate/dispatch message loop in this method. This keeps
23958 Application.Doevents from emitting idle events. Part of the fix
23961 2006-09-11 Chris Toshok <toshok@ximian.com>
23963 * DataGrid.cs (set_DataSource): make this work for both the
23964 winforms/datagrid test and ReportBuilder. It seems as though when
23965 we've created a ListManager (or maybe it's if we have a
23966 BindingContext?), when we set the DataSource it clears the
23967 DataMember to "". otherwise we reuse the datamember. Fixes bug
23970 2006-09-11 Chris Toshok <toshok@ximian.com>
23972 * XplatUIX11.cs: deal with queue being null, which happens in all
23973 the Clipboard functions. Fixes one of the two problems mentioned
23976 2006-09-11 Chris Toshok <toshok@ximian.com>
23978 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
23979 button on various spots (including outside the menu) works closer
23980 to MS, and doesn't crash. Fixes #79343.
23982 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
23984 * ListView.cs: Do not initialize item_sorter in init. To match MS,
23985 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
23986 and the internal comparer is set. When a new ListViewItemSorter is set,
23987 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
23988 was specified. No further processing is necessary if SortOrder is set
23989 to it's current value. If Sorting is modified to None, and View is
23990 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
23991 (either custom or our internal ItemComparer) to null, on 1.0 profile
23992 only set item_sorter to null if its our internal IComparer. If Sorting
23993 is modified to Ascending or Descending, then use our internal IComparer
23994 if none is set, and if the current IComparer is our internal one then:
23995 on 2.0 profile always replace it with one for new Sorting, and on 1.0
23996 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
23997 Enum.IsDefined to verify whether a valid View value is specified in
23998 its setter. Automatically sort listview items when listview is
23999 created. In Sort, do nothing if ListView is not yet created, or if
24000 no item_sorter is set (no Sorting was set, Sorting was explicitly set
24001 to None or ListViewItemSorter was set to null). Added Sort overload
24002 taking a bool to indicate whether the ListView should be redrawn when
24003 items are sorted (we use this in ListViewItemCollection to avoid double
24004 redraws). Modified our internal IComparer to take the sort order into
24005 account. In Add and AddRange methods of ListViewItemCollection, also
24006 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
24007 view), but use overload with noredraw option to avoid double redraw.
24008 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
24009 true when View is Tile, and do the same when attempting to set View to
24010 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
24011 for selected/checked indices, as it involves overhead when sorting is
24012 done while these collections are not used all that often. Instead
24013 we'll build the indices on demand. Modified IList implementation of
24014 CheckedIndexCollection to use public methods if object is int.
24015 Modified CheckedListViewItemCollection to hide checked items if
24016 ListView.CheckBoxes is false. Removed LAMESPEC remark in
24017 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
24018 IList implementation in SelectedIndexCollection to use public methods
24019 if object is int. Modified SelectedListViewItemCollection to hide
24020 selected items if listview is not yet created.
24021 * ListViewItem.cs: CheckedIndices list no longer needs to be
24022 maintained separately (see ListView changes). Also clone font, fixes
24025 2006-09-11 Mike Kestner <mkestner@novell.com>
24027 * ComboBox.cs: if we are updating the contents of the currently
24028 selected index, refresh the control or the textbox selection.
24031 2006-09-11 Mike Kestner <mkestner@novell.com>
24033 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
24034 the 'specified' logic has been moved there. This seems like a bug
24035 in Control.cs, since our current SetBoundsCore completely ignores
24036 the specified parameter. Peter's commit seems to indicate that is
24037 the way the MS control implementation works. [Fixes #79325]
24039 2006-09-10 Jonathan Chambers <joncham@gmail.com>
24041 * XplatUI.cs: Set default_class_name to be composed
24042 of current domain id. This allows MWF to be loaded in multiple
24045 2006-09-09 Miguel de Icaza <miguel@novell.com>
24047 * X11Keyboard.cs: If we are unable to obtain the input method, do
24048 not call CreateXic to create the input context. Should fix
24051 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
24053 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
24054 Simplified gnome support by adding more pinvokes to get the
24055 icon for a file or mime type.
24057 2006-09-08 Jackson Harper <jackson@ximian.com>
24059 * MenuAPI.cs: Deslect popup context menu items before closing the
24060 window, so that you don't see the previously selected item
24061 selected when you reopen the menu.
24062 * TextControl.cs: Update the cursor position even if we don't have
24063 focus. This fixes typing in things like the ComboBox. I'm not
24064 totally sure we should always set the visibility if we don't have
24065 focus, but couldn't find any corner cases where the cursor showed
24066 up when it shouldn't.
24068 2006-09-08 Chris Toshok <toshok@ximian.com>
24070 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
24071 our arrays are length 256. & 0xff before indexing. Fixes the
24072 crash in bug #78077.
24074 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24076 * ThemeWin32Classic.cs:
24077 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
24078 is true. Handle that check box too.
24080 2006-09-07 Chris Toshok <toshok@ximian.com>
24082 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
24085 2006-09-07 Chris Toshok <toshok@ximian.com>
24087 * Control.cs: in set_BackColor only do the work if
24088 background_color != value.
24090 * XplatUIX11.cs: move the clearing of invalid areas (both client
24091 and nc) to the same block of code where we set (nc_)expose_pending
24092 to false. That is, move it from PaintEventEnd to PaintEventStart,
24093 so things that cause invalidates from within OnPaint will trigger
24094 another call to OnPaint. Fixes bug #79262.
24096 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
24098 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
24099 * FileDialog.cs: Fix typo
24101 2006-09-07 Jackson Harper <jackson@ximian.com>
24103 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
24104 for tab pages if they have any.
24106 2006-09-06 Mike Kestner <mkestner@novell.com>
24108 * Splitter.cs: use the "current" rect when finishing drag handle
24109 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
24111 2006-09-06 Mike Kestner <mkestner@novell.com>
24113 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
24114 support offset splitters. [Fixes #79298]
24116 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
24118 * Mime.cs: Fixed a bug that could override the global mime type
24121 2006-09-05 Jackson Harper <jackson@ximian.com>
24123 * TabControl.cs: Better calculation method for setting the slider
24124 pos. Prevents crashes on really wide tabs.
24125 - Draw Image on tab pages if an image list is used.
24127 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24129 * MonthCalendar.cs: When Font changes, the Size should be
24130 updated to fit the new font's space requirements.
24132 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
24134 * ListBox.cs: If the items are cleared with Items.Clear set
24137 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24139 * MonthCalendar.cs: Handle arrow keys as input keys. Also
24140 fire DateChanged event instead of DateSelected event when
24141 the date was changed by keyboard interaction.
24143 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24145 * DateTimePicker.cs: Handle DateChanged for the associated
24146 month_calendar control, and set month_calendar.Font from
24147 OnFontChanged method, as well as resize the height of the
24148 control when needed. Make PreferredHeight proportional.
24150 2006-09-01 Chris Toshok <toshok@ximian.com>
24152 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
24155 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
24157 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
24159 * FileDialog.cs: Set ClientSize instead of window size, to allow space
24160 for decorations (Fixes #79219)
24162 2006-09-01 Mike Kestner <mkestner@novell.com>
24164 * ComboBox.cs: first stab at sorting plus some selection handling
24165 fixes to bring us more in line with MS behavior. Also switches back
24166 to index based selection. Alternative patches for index-based
24167 selection were provided by Jackson Harper, Carlos Alberto Cortez,
24168 and latency@gmx.de on bug 78848. I assume they were similar to this
24169 code I've had simmering in my tree forever.
24172 2006-09-01 Chris Toshok <toshok@ximian.com>
24174 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
24175 when setting list position guard against ending up with a -1 index
24176 (the other part of the fix for #78812). Should probably make sure
24177 we don't need the analogous fix in the ItemDeleted case.
24180 - in SetDataSource, work around the fact that the way
24181 OnBindingContextChanged is invoked will cause us to re-enter this
24182 method. I'll remove the hack once I investigate
24183 OnBindingContextChanged.
24185 - fix the logic in set_DataSource and set_DataMember (basically
24186 what to do if the other of the two is null.)
24188 - in OnListManagerItemChanged, we need to take into account the
24189 edit row when deciding whether or not to call RecreateDataGridRows
24190 (part of the fix for #78812).
24192 2006-09-01 Jackson Harper <jackson@ximian.com>
24194 * Splitter.cs: Don't do anything if there is no control to affect
24195 (prevents us from crashing in weird tet cases).
24196 * TreeView.cs: Bounding box for the mouse movement reverting
24197 focus/selection back to previously selected node. This matches
24198 MS, and makes the tree a lot more useable.
24199 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
24200 use clipping so they are not drawn. This fixes when the control
24201 is set to have a transparent background, or if it was over an
24204 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
24206 * MimeIcon.cs: Improved handling for reading default icons when
24207 using gnome (2.16 made it necessary). Check and read svg icons
24208 first, then 48x48 and then 32x32 icons.
24210 2006-08-31 Chris Toshok <toshok@ximian.com>
24212 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
24215 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
24216 ProcessKeyPreview. Fixes part of #77806.
24218 * DataGrid.cs: big patch.
24220 - revert the queueing up of DataSource/DataMember if inside
24221 BeginInit/EndInit calls. That's not the way the datagrid achieves
24222 its delayed databinding. Instead, call SetDataSource in
24223 OnBindingContextChanged. This mimic's MS's behavior, and fixes
24226 - Also, it wasn't mentioned in #78811, but the test case exhibits
24227 behavior that was lacking in our datagrid implementation - Columns
24228 that have mapping names that don't exist in the datasource's
24229 properties aren't shown. Yuck. To fix this I added the bound
24230 field to the column style, and basically any calculation to figure
24231 out anything about columns uses a loop to find the bound columns.
24232 still need to investigate if I can cache an array of the bound
24233 columns or if the indices must be the same.
24235 - When setting CurrentCell, we no longer abort if the cell being
24236 edited was in the add row. This fixes the other part of #77806.
24238 - The new code also fixes #78807.
24240 * ThemeWin32Classic.cs: perpetrate the same disgusting
24241 column.bound field hack, and only render bound fields.
24243 2006-08-31 Chris Toshok <toshok@ximian.com>
24245 * DataGridColumnStyle.cs: add bound field. this field is true if
24246 the datasource has a property corresponding to the mapping name.
24248 * DataGridTableStyle.cs: set the bound field on the column styles
24249 depending on whether or not we have a column for that property.
24251 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
24253 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
24254 splitter control (fixes #79228)
24256 2006-08-31 Chris Toshok <toshok@ximian.com>
24258 * DataGridColumnStyle.cs: we need to delay the assignment of
24259 property descriptor until the last possible moment due to the lazy
24260 databinding stuff in the datagrid. Also, fix the exceptions
24261 thrown by CheckValidDataSource to match MS.
24263 2006-08-31 Jackson Harper <jackson@ximian.com>
24265 * Form.cs: When activated select the active control, if there is
24266 no active control, we select the first control.
24267 * XplatUIX11.cs: If there is no focus control when we get a
24268 FocusIn event, find the toplevel form and activate it. This
24269 occurs when you popup a window, it becomes the focus window, then
24270 you close that window, giving focus back to the main window.
24272 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24274 * MonthCalendar.cs:
24275 * ThemeWin32Classic.cs: Cache Font in bold style, as well
24276 as StringFormat with Center alignments in MonthCalendar,
24277 instead of creating new ones when drawing the control.
24278 Also, draw the month name in bold style.
24280 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
24283 - PerformLayout(): It would seem MS performs the fill even if the
24284 control is not visible (part of #79218 fix)
24285 - ResetBackColor(): Use the setter to reset the color, to allow
24286 overriders to catch the change.
24288 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
24289 - CreateHandle(): dito (part of $79218 fix)
24290 - Don't set an icon if we have a dialog
24291 * ScrollableControl.cs:
24292 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
24293 - ScrollIntoView(): No need to scroll if control is already visible
24294 (resolves fixme and fixes #79218)
24296 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24298 * MonthCalendar.cs: Change proportions in SingleMonthSize
24299 to match the aspect of the original control.
24301 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
24303 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
24304 get updated when they get maximized.
24306 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
24308 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
24310 2006-08-29 Chris Toshok <toshok@ximian.com>
24312 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
24314 2006-08-29 Jackson Harper <jackson@ximian.com>
24316 * TreeView.cs: Need to track selected node and highlighted node,
24317 they aren't always the same thing, when the mouse is down on a
24318 node it is hilighted, but not selected yet.
24319 - Do the HideSelection stuff right
24320 - Need to focus on rbutton mouse down. And redraw selection when
24321 right click is mouse upped.
24323 2006-08-29 Mike Kestner <mkestner@novell.com>
24325 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
24326 when SubItems.Count < Columns.Count. [Fixes #79167]
24328 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
24330 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
24332 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
24334 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
24335 from X. Only send based on ConfigureNotify if we don't have the
24336 correct location in hwnd (if the window manager moved us)
24338 2006-08-28 Mike Kestner <mkestner@novell.com>
24340 * ListView.cs: remove a TODO.
24341 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
24342 [Fixes ListView part of #79166]
24344 2006-08-28 Mike Kestner <mkestner@novell.com>
24346 * ListView.cs: move wheel handler to parent since it is focused
24347 instead of the item_control now. [Fixes #79177]
24349 2006-08-28 Mike Kestner <mkestner@novell.com>
24351 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
24352 when the control is focused. [Fixes #79171]
24354 2006-08-28 Mike Kestner <mkestner@novell.com>
24356 * ListView.cs: size the item and header controls for empty and
24357 unscrollable views.
24358 * ThemeWin32Classic.cs: draw disabled backgrounds.
24361 2006-08-28 Chris Toshok <toshok@ximian.com>
24363 * Form.cs: remove unused "active_form" static field.
24365 * Hwnd.cs: lock around accesses to static windows collection.
24367 * Application.cs: lock threads in Exit ().
24369 2006-08-28 Chris Toshok <toshok@ximian.com>
24371 * NativeWindow.cs: lock around accesses to window_collection.
24373 2006-08-28 Chris Toshok <toshok@ximian.com>
24375 * Control.cs: err, fix this the right way, by locking on controls
24376 when using it. not by making it synchronized.
24378 2006-08-28 Chris Toshok <toshok@ximian.com>
24380 * Control.cs: make the static "controls" field synchronized, as it
24381 gets updated from multiple threads.
24383 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
24385 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
24386 Prevent other threads from exiting when calling thread sets quit state.
24387 * XEventQueue.cs: Added PostQuitState property
24389 2006-08-27 Chris Toshok <toshok@ximian.com>
24391 * AsyncMethodData.cs: add a slot for the window handle.
24393 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
24394 window (the destination control's window, not the foster window).
24396 * Control.cs (BeginInvokeInternal): store the window's handle in
24397 the AsyncMethodData.
24400 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
24403 - PostQuitMessage: Removed resetting S.D display handle, we might have
24404 another loop started after calling PostQuitMessage (Fixes #79119)
24405 - Created destructor to reset S.D handle
24407 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
24409 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
24411 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24413 * TextControl.cs (Insert): Update the caret position even if we don't
24414 have a handle yet, just don't call the driver in that case.
24415 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
24416 to the end of the new selection text (Fixes #79184)
24418 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24420 * Form.cs (Activate): Only activate if the handle is created)
24422 - Mark window as invisible when it's disposed
24423 - Check if window handle is created when setting window visible,
24424 instead of relying just on the is_created variable
24425 - Check if object is disposed when creating the control (Fixes #79155)
24427 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24429 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
24430 when allowing layout again. Otherwise we re-generate the anchoring
24431 distance to the border again and actually alter what the user wanted
24432 This is ugly, it'd be better if we used DisplayRectangle instead of
24433 ClientRectangle for Control.UpdateDistances, but that causes us to
24434 have other problems (initial anchoring positons would be wrong)
24437 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24440 - The size and location setters shouldn't go directly to
24441 SetBoundsCore, but to SetBounds, which triggers layout on the
24442 parent, then calls SetBoundsCore. (Related to fix for #78835)
24443 - SetBounds: Moved actual location update code into this function
24444 from SetBoundsCore, to match MS. Added call to PerformLayout if
24445 we have a parent (to trigger resizing of anchored parents if the
24446 child size has changed (see testcase for #78835)
24447 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
24449 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
24451 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24453 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
24454 System.Drawing when a toplevel window gets closed; there might
24455 be other toplevel windows belonging to the same app (Fixes #78052)
24457 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
24459 * FileDialog.cs: After reading FileDialog settings from mwf_config
24460 use Desktop prefix only if a real folder doesn't exist anymore.
24461 * FontDialog.cs: Added char sets.
24462 It is now possible to select the font, size or style with the
24465 2006-08-25 Kornél Pál <kornelpal@gmail.com>
24467 * PrintPreviewDialog.cs: Use assembly name constants.
24469 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24471 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
24472 scrollbar from whacking it's buttons)
24474 2006-08-24 Chris Toshok <toshok@ximian.com>
24476 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
24477 in this patch (aggregating setting Left/Top/Width/Height to
24478 setting Bounds on the scrollbars), but the crux of the fix is in
24479 Recalculate, where we scroll by the remaining scroll_position if
24480 we're hiding a scrollbar. The 2*$5 reward in the comment is
24483 2006-08-24 Jackson Harper <jackson@ximian.com>
24486 * MdiWindowManager.cs: If the form is made a non-mdi window we
24487 need to remove the form closed event so that closing forms works
24490 2006-08-24 Jackson Harper <jackson@ximian.com>
24492 * Control.cs: Make IsRecreating internal so that the driver can
24494 - Temporarily remove the Hide when controls are removed, its
24495 making a whole bunch of things not work because visibility isn't
24496 getting reset elsewhere correctly
24497 * Form.cs: Need to do a full handle recreation when the mdi parent
24499 * XplatUIX11.cs: If we are recreating handles don't dispose the
24500 HWNDs. What was happening is the handles were being recreated in
24501 SendWMDestroyMessages, but then flow continued on in that method
24502 and destroyed the new handles.
24504 2006-08-23 Jackson Harper <jackson@ximian.com>
24506 * Form.cs: MdiClient is always at the back of the bus
24507 * Control.cs: When the order of items in the collection is changed
24508 we need to reset the all_controls array
24509 - do the same sorta setup thats done when adding a control when a
24510 control is set on the collection.
24512 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24514 * TextBoxBase.cs (get_Text): Return an empty array if our document
24515 is empty (fixes #79052)
24517 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24519 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
24520 on WM_SYSCHAR messages (fixes #79053)
24522 2006-08-23 Chris Toshok <toshok@ximian.com>
24524 * DataGrid.cs: fix flickering when scrolling vertically.
24526 2006-08-23 Chris Toshok <toshok@ximian.com>
24528 * DataGrid.cs (EndEdit): only invalidate the row header when we
24531 2006-08-23 Chris Toshok <toshok@ximian.com>
24533 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
24534 methods. fixes the flicker when scrolling around.
24536 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24538 * FileDialog.cs: Making sure the control is created before we get a
24539 chance to use it with BeginInvoke (Fixes #79096)
24541 2006-08-23 Chris Toshok <toshok@ximian.com>
24543 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
24544 width to use when painting the rows.
24546 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24549 - Throw ArgumentException if a negative value is passed to SelectionLength
24550 - Update the selection end if start is moved. end needs to be always
24551 after start. (Fixes #79095)
24552 - Track selection length; MS keeps the selection length even if start
24553 is changed; reset on all other operations affection selection
24555 2006-08-22 Jackson Harper <jackson@ximian.com>
24557 * TreeView.cs: Make sure both scrollbars get displayed and sized
24558 correctly when the other bar is visible.
24559 - Use the original clip rectangle for checking if the area between
24560 the two scrollbars is visible, not the viewport adjusted clipping
24563 2006-08-22 Jackson Harper <jackson@ximian.com>
24565 * Binding.cs: We don't use IsBinding because it requires the
24566 control to be created, which really shouldn't be necessary just to
24567 set a property on the control.
24569 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24571 * ComboBox.cs: Some CB.ObjectCollection methods must throw
24572 ArgumentNullReferenceException when the argument is null.
24574 2006-08-21 Jackson Harper <jackson@ximian.com>
24576 * Timer.cs: Track the thread that the timer is started in (NOT
24577 CREATED), this way messages for it will only be triggered on its
24579 * XEventQueue.cs: Track the timers here, this makes timers per
24581 * XplatUIX11.cs: The timers are moved to the XEventQueue.
24583 2006-08-19 Chris Toshok <toshok@ximian.com>
24585 * XplatUIX11.cs: after further communication with pdb, we get the
24586 best of both worlds. SetZOrder working for un-Mapped windows, and
24587 no X errors for un-mapped windows.
24589 2006-08-19 Chris Toshok <toshok@ximian.com>
24591 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
24592 as it was causing pdn toolbars to not have the correct stacking.
24594 2006-08-18 Mike Kestner <mkestner@novell.com>
24596 * ListView.cs : guard against negative ClientArea.Width in scrollbar
24597 calculation. Not sure why control should ever be setting a negative
24598 width though. Fixes #78931.
24600 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24602 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
24603 null items in ObjectCollection class.
24604 * ListBox.cs.: Likewise.
24606 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
24608 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
24609 as the base method in ThemeWin32Classic should work fine.
24612 2006-08-18 Jackson Harper <jackson@ximian.com>
24614 * Binding.cs: When validating if the value entered doesn't convert
24615 properly reset to the old value.
24616 * RadioButton.cs: Don't fire click when we get focus.
24618 2006-08-18 Jackson Harper <jackson@ximian.com>
24620 * FileDialog.cs: Paint the selection on the directory combobox the
24623 2006-08-17 Jackson Harper <jackson@ximian.com>
24625 * ErrorProvider.cs: Don't allow the error control to be selected.
24626 * Control.cs: Don't send the SetFocus messages, the control
24627 activation will do this, and if we do it blindly here validation
24630 2006-08-17 Jackson Harper <jackson@ximian.com>
24633 * ContainerControl.cs: Make validation events fire in the correct
24634 order. TODO: For some reason the first validation event is not
24637 2006-08-17 Mike Kestner <mkestner@novell.com>
24639 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
24641 2006-08-17 Mike Kestner <mkestner@novell.com>
24643 * ComboBox.cs : implement scroll wheel support for popped-down
24644 state. Fixes #78945.
24646 2006-08-17 Jackson Harper <jackson@ximian.com>
24648 * TreeView.cs: Specify treeview actions (old patch that didn't get
24649 committed for some reason).
24650 - Don't let the mouse wheel scroll us too far. Just want to make
24651 the bottom node visible, not scroll it all the ways to the top.
24653 2006-08-17 Jackson Harper <jackson@ximian.com>
24655 * XplatUIX11.cs: Mouse wheel events go to the focused window.
24657 2006-08-17 Mike Kestner <mkestner@novell.com>
24659 * ComboBox.cs : don't do mouseover selection in simple mode.
24661 2006-08-16 Jackson Harper <jackson@ximian.com>
24663 * Form.cs: Fire the closing events for all the mdi child windows
24664 when a window is closed. If the cancel args are set to true, the
24665 main window still gets the event fired, but it doesn't not close.
24666 * MdiWindowManager.cs: Do this closing cleanup in a Closed
24667 handler, instead of when the button is clicked, so cancelling the
24668 close works correctly.
24669 * ComboBox.cs: Send the mouse down to the scrollbar.
24671 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24673 * ListBox.cs: When passing 'null' to SelectedItem,
24674 set SelectedIndex to -1, to unselect items. This is the
24675 observed behaviour in .Net.
24677 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
24679 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
24680 MS flags saying there won't be any. (fixes #78800)
24681 * Control.cs (HandleClick): Made virtual
24683 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
24685 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
24686 cultures. Fixed bug #78399.
24688 2006-08-16 Jackson Harper <jackson@ximian.com>
24690 * Form.cs: Use the MdiClients MdiChildren property to access
24691 MdiChildren instead of creating the array from the child controls.
24692 * MdiClient.cs: Maintain a separate array of the mdi children, so
24693 that insertion order is maintained when the Z-order is changed.
24695 2006-08-16 Mike Kestner <mkestner@novell.com>
24697 * ListView.cs : add an ItemComparer and default to it for sorting.
24698 Fixes #79076, but sorting needs a complete overhaul to be compat with
24701 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24703 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
24705 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24707 * Hwnd.cs (Mapped): Properly traverse the tree
24709 2006-08-15 Chris Toshok <toshok@ximian.com>
24711 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
24712 pass manager.Current.GetType() to ParseData. It has to be the
24713 property type. So, hold off doing the ParseData until we're in
24714 SetPropertyValue where we know the type. This fixes the crash in
24715 #78821 but the textbox is still empty.
24717 2006-08-15 Chris Toshok <toshok@ximian.com>
24720 - when we're scrolling, only call Edit() again if the
24721 current cell is still unobscured. Fixes bug #78927.
24722 - when handling mousedown on a cell, ensure the cell is visible
24723 before calling Edit.
24724 - remove the properties from DataGridRow, and remove the
24725 DataGridParentRow class altogether.
24728 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24730 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
24731 fire OnTextChanged by ourselves. There's no point calling base,
24732 we don't set the base value anywhere else. Fixes #78773.
24734 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24736 * ListBox.cs: Call CollectionChanged when modifying
24737 an item from Items indexer, to update the actual items
24740 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24742 * PrintDialog.cs: Small fixes for focus and a pair of checks,
24743 to match .Net behaviour.
24745 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24747 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
24749 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24751 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
24753 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24755 * MessageBox.cs: Prevent potential NRE exception.
24756 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
24758 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
24760 * MessageBox.cs: Calculate the owner of a messagebox, also make
24761 it topmost. Fixes #78753
24763 2006-08-14 Chris Toshok <toshok@ximian.com>
24765 * XplatUIX11.cs: A couple of fixes so that metacity will let us
24766 programmatically move windows. first, set the PPosition hint as
24767 well as the USPosition hint. Second include some code from pdb
24768 that sets the window type to NORMAL when we set the transient for
24769 hint. This is because, in the absence of a window type, metacity
24770 thinks any window with TransientFor set is a dialog, and refuses
24771 to let us move it programmatically. fascists.
24773 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
24775 * XplatUIX11.cs: When setting normal hints, take into consideration
24776 an different hints previously set so we don't delete them (fixes #78866)
24778 2006-08-12 Chris Toshok <toshok@ximian.com>
24780 * ToolBarButton.cs: make Layout return a boolean, if something to
24781 do with the button's layout changed.
24784 - add another parameter to Redraw, @force, which all existing
24786 - make the Layout function return a boolean which is true if the
24787 layout has actually changed. Redraw now uses this (and @force)
24788 to determine when to invalidate. At present the only place
24789 where @force can be false is the call from OnResize, when
24790 background_image == null. So, resizing a toolbar when the
24791 layout doesn't change results in no drawing.
24793 2006-08-12 Chris Toshok <toshok@ximian.com>
24795 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
24796 the VScrollBar and HScrollbar reversed. oops.
24798 * DataGrid.cs: fix the logic that assigns sizes to the implicit
24799 scrollbars. we were assigning them twice (once in
24800 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
24801 therefore causing two scrollbar resizes (and redraws?) to happen
24804 2006-08-12 Chris Toshok <toshok@ximian.com>
24806 * ToolBarButton.cs: redraw the entire button if the theme tells us
24809 * Theme.cs: add ToolBarInvalidateEntireButton.
24811 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
24812 buttons, just the border.
24814 * ThemeNice.cs: redraw the entire toolbar button since we need to
24815 draw the highlight image.
24817 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
24818 we need to redraw the entire button (not just the border).
24820 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
24822 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
24823 for vertical bars. Fixes the mismatches shown by #78513
24825 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
24827 * FileDialog.cs: If a saved/remembered path doesn't exist
24828 anymore, fall back to "Desktop".
24830 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
24832 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
24833 parent. It's apparently legal to not have one
24835 - SetZOrder: Don't try to set Z-Order on an unmapped window
24836 - CreateWindow: 0,0 are legal coordinates for a window. don't move
24837 it unless the coordinates are negative
24839 2006-08-10 Mike Kestner <mkestner@novell.com>
24841 * ListControl.cs: allow null for DataSource. Clear DisplayMember
24842 when setting to null per msdn docs. Fixes #78854.
24844 2006-08-10 Chris Toshok <toshok@ximian.com>
24846 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
24847 flickering by setting a clip rectangle on the Graphics when we
24848 need to redraw just a particular menuitem. Also, rename "OnClick"
24849 to "OnMouseDown" to reflect what it actually is.
24851 * Form.cs: track the OnMouseDown change.
24853 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
24855 * CommonDialog.cs: Properly inherit the CreateParams from the form
24856 and only change what we need. Fixes #78865
24858 2006-08-10 Chris Toshok <toshok@ximian.com>
24860 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
24861 flickering in flat mode (and most of the flickering in general) by
24862 only invalidating the button border (and not the entire rectangle)
24863 when the state changes. A couple of cases still flicker:
24864 ToggleButtons, and the dropdown arrow case when the user mouse
24867 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
24869 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
24870 for german keyboards. Numlock state shouldn't affect the behaviour
24871 of the Del key. Fixes bug #78291.
24873 2006-08-10 Chris Toshok <toshok@ximian.com>
24875 * ListControl.cs: remove the items.Clear line from BindDataItems,
24876 as this is the first thing done by both subclasses in their
24877 SetItemsCore overrides. Also, add a ItemChanged handler, and when
24878 passed -1, refresh the list. This gets databinding working when
24879 the datasource is set on the list before the datasource is
24880 populated (as in wf-apps/ReportBuilder.)
24882 * ComboBox.cs: remove the argument to BindDataItems. This call
24883 should really go away, and be initiated by the ListControl code.
24885 * ListBox.cs: same.
24887 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
24889 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
24890 if no data is in the document when the control is displayed
24892 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
24894 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
24897 - PositionCaret: Allow positioning of caret but don't call methods
24898 requiring a handle if the window isn't created yet
24899 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
24900 - owner_HandleCreated: Don't position the caret, just update it's
24901 location. User might have already set a different position
24903 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
24905 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24906 windows. Screws up the returned coordinates for child windows.
24907 Fixes #78825. I'm hoping this doesn't break something, since the
24908 code was explicitly put in 8 months ago, but no bug was attached.
24909 Menus still seem to work properly.
24911 2006-08-08 Chris Toshok <toshok@ximian.com>
24913 * DataGrid.cs: make BeginInit/EndInit actually do what they're
24914 supposed to do - delay data binding until the EndInit call. Also,
24915 make the table style collection's CollectionChangeAction.Refresh
24918 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24919 (with action = Refresh) when a consituent table's MappingName is
24922 2006-08-08 Chris Toshok <toshok@ximian.com>
24924 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
24925 Invalidate, since changing the text can change the size of the all
24928 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
24930 * Form.cs (AddOwnedForm): Still need to add the form to our listif
24931 we don't have it yet
24933 2006-08-08 Chris Toshok <toshok@ximian.com>
24935 * PrintControllerWithStatusDialog.cs: don't .Close() the status
24936 dialog, as this causes X errors later on, since we actually
24937 destroy the window. Instead, .Hide() it.
24939 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
24941 * ComboBox.cs: Added focus reflection for popup window
24943 - Removed transient setting for non-app windows for now, not sure it
24945 - Fixed logic checking if we have captions when deciding
24946 override_redirect, WS_CAPTION is two bits and a 0 check was not
24948 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
24951 - AddOwnedForm: Don't just add the form to the list, call the property
24952 to ensure the driver is informed about the ownership as well
24953 - CreateHandle: Set the TopMost status in the driver if we have an owner
24954 * XplatUI.cs: Fixed debug statement
24956 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
24957 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24958 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
24959 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
24960 TrackBarRenderer.cs: Make constructor private.
24961 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
24962 * ProfessionalColorTable.cs: Make properties virtual.
24964 2006-08-06 Duncan Mak <duncan@novell.com>
24966 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
24969 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
24970 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24971 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
24972 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
24973 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
24974 Initial import of new 2.0 classes.
24976 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
24977 * Application.cs: Add 2.0 VisualStyles properties.
24979 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
24980 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24981 XplatUIX11.cs: Create property to allow access to existing private
24982 variable "themes_enabled"
24984 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24986 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
24987 file size, as otherwise our class libraries fail using windows. Fixes
24990 2006-08-04 Jackson Harper <jackson@ximian.com>
24993 * XplatUIX11.cs: Move the toolwindow window manager creation into
24994 the X11 driver, this way on win32 we can let windows create/handle
24997 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24999 * PrintDialog.cs: Remove some redundant checks, add some others,
25000 clean some code, and move the focus to the text boxes when the
25001 values are incorrect.
25003 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
25005 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
25007 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
25009 * NumericUpDown.cs: Setting the Minimum and Maximum is now
25010 handled correctly. Fixes bug #79001.
25012 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25014 * PrintDialog.cs: The "Copies" numeric up down must have
25015 set the Minimum property to 1; only if the value is bigger
25016 than 1, activate "Collate" check box. This is the behaviour of .Net.
25017 Also modify the Document elements only if it is not null.
25019 2006-08-03 Jackson Harper <jackson@ximian.com>
25021 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
25022 length. (We have a larger array then actual node count).
25024 2006-08-03 Jackson Harper <jackson@ximian.com>
25026 * ComboBox.cs: Don't show selection by default.
25027 - The SelectAll isn't needed here, since the focus code should do
25029 - DDL style lists to manual selection drawing, so when they
25030 get/lose focus they have to invalidate.
25032 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
25034 * TextBoxBase.cs: Don't always show all selections by default.
25036 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
25037 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
25038 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
25039 Fixed various typos.
25041 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
25043 * Control.cs: Removing the controls in a ControlCollection with
25044 Clear now hides the controls as expected. Fixes bug #78804.
25046 2006-08-03 Jackson Harper <jackson@ximian.com>
25048 * Control.cs: Revert previous focus patch, it breaks reflector.
25050 2006-08-03 Jackson Harper <jackson@ximian.com>
25052 * ComboBox.cs: Cleanup selection and focus with the combobox.
25053 This also eliminates some duplicated keyboard code, since now
25054 everything is handled by the main class.
25055 - Make list selection work on mouse up instead of down, to match
25058 2006-08-02 Jackson Harper <jackson@ximian.com>
25060 * Control.cs: Setting focus needs to go through the whole
25061 selection mechanism.
25063 2006-08-02 Chris Toshok <toshok@ximian.com>
25065 * PrintPreviewDialog.cs: change MinimumSize to use
25066 base.MinimumSize so it works.
25068 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
25071 - UpdateCaret: Added sanity check in case caret isn't defined yet
25072 - Line.Delete: Now updating selection and caret markers if we're
25073 transfering a node (Properly fixes #78323)
25074 - SetSelectionEnd: Added sanity check
25075 * TextBoxBase.cs: Removed broken attempt to fix #78323
25077 2006-08-01 Chris Toshok <toshok@ximian.com>
25079 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
25080 Close() call is handled in Form, not here.
25082 2006-08-01 Chris Toshok <toshok@ximian.com>
25084 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
25087 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
25088 for sizes < 100% zoom. The code now aggressively attempts to keep
25089 from calling document.Print (), and tries not to use the scaling
25090 g.DrawImage whenever possible (it still does if you scale to >
25091 100%, since usually that involves huge images).
25093 * PrintPreviewControl.cs: hook up the close button.
25095 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
25096 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
25097 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
25098 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
25099 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
25100 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
25101 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
25102 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
25103 Removed [Serializable] for 2.0 Event Handlers.
25105 2006-07-31 Jackson Harper <jackson@ximian.com>
25107 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
25108 * TextControl.cs: Uncomment out the body of this method.
25110 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
25112 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
25115 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
25117 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
25118 that embed TextBox and need selections visible even if textbox is not
25119 focused to enforce that behaviour.
25120 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
25123 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
25126 - Added new SetSelectionStart/SetSelectionEnd overloads
25127 - Fixed viewport width assignment to be accurate
25128 - Adjusted alignment line shift calculations to allow cursor on right
25129 aligned lines to be always visible at the right border (like MS)
25131 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
25132 - TextBoxBase_SizeChanged: recalculating canvas on size changes
25133 - CalculateScrollBars: Use ViewPort size instead of window size, to
25134 properly consider space occupied by the border and scrollbars
25136 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
25137 calculations; no longer leaves artifacts
25138 - CaretMoved: Adjusted window scrolling to match MS and fixed several
25139 calculation bugs (Still missing right/center align calculations)
25141 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
25143 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
25144 use of both scroll rect and clip rect, as they do the same.
25146 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
25148 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
25149 in the event handler (fixes #78912)
25151 2006-07-31 Chris Toshok <toshok@ximian.com>
25153 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
25154 grid.ListManager.Count, since grid.ListManager might be null.
25155 This of course begs the question "why are we drawing rows for a
25156 grid with no list manager (and therefor no rows)?" Fixes the
25157 crash in bug #78929.
25159 2006-07-31 Chris Toshok <toshok@ximian.com>
25161 * RelatedPropertyManager.cs: Don't always chain up to the parent
25162 ctor. instead, call SetDataSource if the parent's position is !=
25163 -1. Fixes the crash in #78822.
25165 2006-07-31 Chris Toshok <toshok@ximian.com>
25167 * DataGrid.cs (get_ListManager): use field instead of property
25168 accessors for datasource and datamember.
25169 (RowsCount): make internal again.
25170 (OnMouseDown): end edits before resizing columns/rows.
25171 (OnMouseUp): restart edits after resizing columns/rows.
25173 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
25175 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
25176 This fixes the situation where the last set cursor is displayed
25177 whenever the mouse is over scrollbars.
25179 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25181 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
25182 Document properties, as well as initial values.
25184 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
25186 * XplatUIWin32.cs (SetBorderStyle): Setting both border
25187 and ClientEdge results in a 3-pixel border, which is
25190 2006-07-28 Jackson Harper <jackson@ximian.com>
25192 * TreeNodeCollection.cs: Fix the clear method.
25193 - Fix the Shrink also
25195 2006-07-27 Jackson Harper <jackson@ximian.com>
25197 * TreeView.cs: Make sure the visible order is computed when we
25198 attempt to size the scrollbars (for trees that mess with the
25199 scrolling when they shouldn't.
25200 - Make sure to give the scrollbars valid values.
25202 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
25204 * XplatUIX11.cs: Move motion compression code to where it
25205 has less performance impact
25207 2006-07-26 Jackson Harper <jackson@ximian.com>
25209 * UpDownBase.cs: When the control is selected make the child
25210 controls non selectable, so that a click on them won't do a
25211 focus/unfocus cycle.
25212 - Don't give focus to the text box when the spinner is selected.
25213 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
25215 2006-07-26 Chris Toshok <toshok@ximian.com>
25217 * ThemeWin32Classic.cs: add print preview rendering. I'm not
25218 satisfied with this solution. If the bitmaps are small, we should
25219 just cache them in the PrintPreviewDialog and draw them here.
25220 Also, the layout is broken for the 2-up and 3-up cases.
25222 * Theme.cs: add PrintPReviewControlPaint.
25224 * PrintPreviewDialog.cs: first pass implementation.
25226 * PrintPreviewControl.cs: first pass implementation. No
25229 * PrintDialog.cs: only validate fields if that particular portion
25230 of the UI is enabled. Also, set the document's controller to a
25231 PrintControllerWithStatusDialog wrapping the document's print
25234 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
25235 bring up a SaveFileDialog (i hope we don't want to match the
25236 behavior of the crappy windows file entry) and set the
25237 PrinterSettings.PrintFileName accordingly.
25239 2006-07-26 Jackson Harper <jackson@ximian.com>
25241 * ContainerControl.cs: Add a field that disables auto selecting
25242 the next control in a container when the container is activated.
25243 * UpDownBase.cs: Don't select the text box when the up down is
25246 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
25248 * XEventQueue.cs: Added methods for peeking (used for compression
25249 of successive events)
25250 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
25251 mouse move events (fixes #78732)
25253 2006-07-25 Jackson Harper <jackson@ximian.com>
25255 * UpDownBase.cs: Use an internal class for the textbox so that we
25256 can control focus. the updown control should always have focus,
25257 if either the text area or the buttons are clicked.
25258 - Send the key messages to the textbox, since it never actually
25260 - Activate and decativate the textbox caret.
25262 2006-07-24 Jackson Harper <jackson@ximian.com>
25264 * Control.cs: Use the directed select when selecting a control,
25265 this way the container controls override will get called and the
25266 whole ActiveControl chain will get triggered. TODO: probably need
25267 to make sure this gets done everywhere instead of the old
25269 * ContainerControl.cs: Implement the directed Select method to
25270 find and activate the correct child control.
25272 2006-07-22 Mike Kestner <mkestner@novell.com>
25274 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
25275 menu handling code so that clicks without a grab work too.
25278 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
25280 * FileDialog.cs: Enable the BackButton when dirstack has one element.
25281 Added some small optimizations.
25283 2006-07-21 Matt Hargett <matt@use.net>
25285 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
25287 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
25289 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
25290 tests pass and match MS in some strange border cases.
25292 2006-07-21 Chris Toshok <toshok@ximian.com>
25294 * ThemeWin32Classic.cs: handle drawing of the relation links and
25295 parent row buttons.
25297 * Theme.cs: change args to DataGridPaintParentRow.
25299 * DataGrid.cs: Don't use controls for the relation links and
25300 parent buttons, so we have to handle all their interactions in
25301 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
25302 when we're navigating through child tables, so we can reinstate
25303 selection, expanded state, current cell, etc.
25305 2006-07-20 Chris Toshok <toshok@ximian.com>
25307 * ToolBar.cs: When we redraw a button, for whatever reason,
25308 there's no reason to redraw the entire toolbar. Also, don't call
25309 Control.Refresh from within Redraw, as it's much heavier than
25310 Invalidate (which is really what we want).
25312 2006-07-20 Chris Toshok <toshok@ximian.com>
25314 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
25315 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
25316 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
25317 traces from within a debug IBindingList datasource
25318 (in mono/winforms/datagrid) for *days*, I've finally gotten things
25319 to work in a similar fashion.
25321 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25323 * ListBox.cs: Don't call Sort () when setting
25324 the Sorted property to false (avoid an unnecessary sort).
25326 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25328 * ListControl.cs: DataSource should throw an ArgumentException
25329 instead of a normal exception when the argument is not of the
25332 2006-07-20 Mike Kestner <mkestner@novell.com>
25334 * Control.cs: add InternalPreProcessMessage to allow us to steal
25335 key events before MWF gets its paws on them. Adapted from a
25337 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
25338 up/down/left/right navigation. Override the new internal control
25339 method to steal the events since they never make it to WndProc.
25340 * ToolBarButton.cs: don't worry about pushed when setting hilight
25341 since the drawing code prefers pushed to hilight. Invalidate on
25342 Hilight changes. Fixes #78547 and #78525.
25344 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
25346 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
25347 the canvas size. Fixes #78868
25349 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
25351 * Splitter.cs: Track requested split position until first layout
25352 is performed. Fixes #78871
25354 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
25356 * Application.cs: Removed code that forces 1.x for the version
25357 number if the version started with 0. Not sure why that code was
25358 there and I couldn't find any bugs that indicated we needed it.
25361 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
25363 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
25364 ResetDefaults(), just write some output to the console until it's
25365 implemented. Fixes bug #78907 for now. Eliminated two warnings.
25367 2006-07-19 Jonathan Chambers <joncham@gmail.com>
25369 * PropertyGridView.cs: set StartPosition of drop down forms
25370 so they appear in correct initial spot. Fixes #78190.
25372 2006-07-19 Mike Kestner <mkestner@novell.com>
25374 * ThemeWin32Classic.cs: use parent background color when drawing
25375 flat toolbars. Restructure the conditionals to make sure non-flat
25376 non-Divider toolbars are filled too. Fixes #78837.
25378 2006-07-19 Mike Kestner <mkestner@novell.com>
25380 * ListBox.cs: Sort on collection changes even if the handle
25381 isn't created yet. Fixes #78813.
25383 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25385 * ListControl.cs: DisplayMember should never be null,
25386 and now we assign String.Empty when null is passed to it (this
25389 2006-07-17 Mike Kestner <mkestner@novell.com>
25391 * ListViewItem.cs: restructure Font and subitem Font handling
25392 to hold a specific font and refer back to owner on null.
25395 2006-07-17 Mike Kestner <mkestner@novell.com>
25397 * ToolBar.cs: bandaid for side-effect of previous patch which was
25398 discarding explicit heights for non-AutoSize toolbars. Need to
25399 extend my format tester to deal with AutoSize=false. Fixes #78864.
25401 2006-07-15 Jackson Harper <jackson@ximian.com>
25403 * LabelEditTextBox.cs:
25404 * TreeView.cs: Use a new LabelEdit class for node editing, this
25405 class automatically 'closes' itself when it gets the enter key or
25407 - Use the client rectangle when setting the trees scrollbars, so
25408 border style is taken into account.
25410 2006-07-14 Jackson Harper <jackson@ximian.com>
25413 * TreeView.cs: Make the editing work similar to MSs, firing the
25414 events correctly and ending edits correctly.
25416 2006-07-14 Mike Kestner <mkestner@novell.com>
25418 * ToolBarButton.cs:
25419 * ToolBar.cs: layout restructuring and redraw enhancements to support
25420 formatting changes gracefully, like setting TextAlign, ImageList,
25421 ButtonSize, and Appearance. Handles explicit button sizing quirks
25422 of the MS controls. Things like flat toolbars ignoring button size
25423 but becoming constant sized at the largest button's size. Normal
25424 toolbars with an image set cannot be shrunk smaller than the image,
25425 but text can be clipped/ignored.
25426 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
25427 is zero. Seems like DrawString should be smart enough to not put
25428 anything on screen though. Also trim labels and ellipsize at the char
25429 boundary, not word.
25430 Fixes #78711 and #78483.
25432 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
25434 * FolderBrowserDialog.cs: Disable "New Folder" button and
25435 "New Folder" contextmenu menuitem if a folder like "My Computer"
25438 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
25440 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
25441 * FolderBrowserDialog.cs:
25442 - Use MWFConfig to store and read size and position settings
25443 - Added code to create a new folder (button or context menu).
25444 Use TreeView labeledit to change the name of the new folder.
25446 2006-07-14 Jackson Harper <jackson@ximian.com>
25448 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
25449 when the tree is scrolled we end editing.
25451 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
25453 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
25456 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
25458 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
25459 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
25460 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
25461 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
25462 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
25463 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
25464 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
25465 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
25466 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
25467 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
25468 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
25469 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
25470 ListViewItemSelectionChangedEventHandler.cs,
25471 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
25472 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
25473 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
25474 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
25475 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
25476 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
25477 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
25478 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
25479 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
25480 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
25481 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
25482 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
25483 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
25484 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
25485 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
25486 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
25487 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
25488 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
25489 WebBrowserNavigatingEventHandler.cs,
25490 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
25492 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
25494 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
25495 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
25496 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
25497 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
25498 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
25499 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
25500 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
25501 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
25502 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
25503 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
25504 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
25505 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
25506 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
25507 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
25508 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
25509 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
25510 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
25511 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
25512 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
25513 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
25514 ListViewItemStates.cs, MaskFormat.cs: Added
25516 2006-07-13 Jonathan Chambers <joncham@gmail.com>
25518 * PropertyGridView.cs: Fix keyboard navigation of drop down.
25519 Patch from eno for bug 78558.
25521 2006-07-13 Jackson Harper <jackson@ximian.com>
25523 * TreeView.cs: When an edit is finished make sure that the
25524 selected node is visible.
25525 - When setting the top/bottom use the scrollbars is_visible, so
25526 everything will be set correctly even if the tree isn't visible
25529 2006-07-13 Jackson Harper <jackson@ximian.com>
25531 * ComboBox.cs: Revert the item->index part of my previous patch.
25532 * TreeView.cs: Use LostFocus instead of Leave for detecting when
25533 the edit box has lost focus (duh).
25534 - Just make the edit box not visible when we get return, that will
25535 take the focus, which will call EndEdit
25536 * TreeNode.cs When we start editing, notify the treeview.
25538 2006-07-12 Jackson Harper <jackson@ximian.com>
25540 * ComboBox.cs: Clear out old items before setting the item list.
25541 This prevents databound controls from having their items added
25543 - Switch the combobox to use indices whereever possible instead of
25544 using Item's. This allows usto navigate through lists that have
25545 more then one item with the same string value (ie a, b, b, a).
25546 - Scroll the listboxes scrollbar when a non visible item is
25548 - Allow keypress to cycle through all the possible values. For
25549 example if you have b1, b2, b3 and hold down the B key all the
25550 values will be cycled through.
25552 2006-07-12 Jackson Harper <jackson@ximian.com>
25555 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
25556 this using the internal methods.
25557 * Control.cs: Add OnGotFocusInternal. A new method that allows
25558 controls to "override" OnGotFocus and change focus behavior if
25560 - Same thing for LostFocus
25561 * ComboBox.cs: Pass off focus to the text control properly.
25563 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
25565 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
25566 * FolderBrowserDialog.cs: Almost a complete rewrite.
25567 - Better support for Environment.Specialfolders
25568 - Added support for MWFVFS
25569 - Made setting SelectedPath work
25571 2006-07-12 Jackson Harper <jackson@ximian.com>
25573 * Control.cs: Optimze getting all the controls.
25575 2006-07-11 Jackson Harper <jackson@ximian.com>
25577 * ContainerControl.cs: Override SETFOCUS in the container control,
25578 so that it is not selected on mouse click.
25580 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
25582 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
25583 Hopefully we will have a better way once all of focus is complete.
25585 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
25587 * ThemeWin32Classic.cs: Commented out some debug code and fixed
25588 a compile error with csc.
25590 2006-07-11 Jackson Harper <jackson@ximian.com>
25592 * Control.cs: When hiding a control only select the next control
25593 if the current control was focused.
25594 - Don't handle enter/leave when setting/killing focus, this is
25595 done by the container control.
25596 - Remove is_selected, it's not needed anymore.
25597 - Add utility methods for selecting a child control, and for
25598 firing the Enter/Leave events.
25599 * ContainerControl.cs: When a control is activated fire the
25600 enter/leave events.
25601 - Don't wrap when processing the tab key, so that focus can be
25602 moved outside of the container.
25603 - Use the correct active control
25605 2006-07-11 Jackson Harper <jackson@ximian.com>
25607 * ComboBox.cs: Remove some debug code that was blinding me.
25608 * UpDownBase.cs: These controls actually aren't implicit, they are
25609 visible to the user.
25611 2006-07-10 Chris Toshok <toshok@ximian.com>
25613 * DataGrid.cs: move back to the is_adding boolean field. god i
25614 hate this is_editing/is_adding/is_changing stuff.
25616 2006-07-10 Chris Toshok <toshok@ximian.com>
25618 * DataGridTableStyle.cs: just check if the property type is bool.
25619 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
25620 Don't use CanRenderType.
25622 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
25623 if our text == NullText. Remove CanRenderType.
25625 * DataGridBoolColumn.cs: nuke CanRenderType.
25627 * DataGrid.cs: reenable some code to end the current edit inside
25628 of set_CurrentCell. This fixes the other 1.1.16 regression.
25629 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
25630 Also, remove the visible_row_count arg from CalcRowHeaders, since
25631 we don't need to worry about the actual height of the area.
25633 2006-07-10 Chris Toshok <toshok@ximian.com>
25635 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
25638 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
25639 the real sense of the IsInEditOrNavigateMode property (true =
25640 navigate, false = edit). Also, update OnKeyPress to reflect this.
25642 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
25643 column style exists, we still need to set its property descriptor
25644 to match up with our list manager.
25646 2006-07-10 Chris Toshok <toshok@ximian.com>
25648 * ThemeWin32Classic.cs: implement the new row/header painting
25649 approach. The parent row painting will likely go away and
25650 replaced with label controls, but the rest seems to work ok (and
25653 * Theme.cs: change the way we draw datagrid rows. we don't draw
25654 the row headers as a block now. Instead we draw them in the
25655 normal draw-row loop. Add some calls for drawing parent rows and
25658 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
25659 a default table style. Set the defaults from ThemeEngine.Current,
25660 not SystemColors. Fix lots of misc issues with property setters.
25662 * DataGrid.cs: move loads of style information out of this class
25663 as it's being duplicated with DataGridTableStyle. keep track of a
25664 special DataGridTableStyle for the properties we used to mirror
25665 here. Switch all the style properties to access this table style
25666 instead of instance fields of this class. Also add a internal
25667 class to represent parent rows (more needs to be stored here, like
25668 the selection state from the parent table, as well as the
25669 expansion state.) Also, for datasources with relations, do the
25670 right thing for collapse/expand, and add support for the
25671 navigation/parent row buttons.
25673 Lastly, fix the crash in the 1.1.16 build.
25675 * GridTableStylesCollection.cs: make the explicit interface
25676 implementations call the class's methods as opposed to duplicating
25679 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
25680 0 so the text doesn't jump around when we move the cursor.
25682 2006-07-10 Jackson Harper <jackson@ximian.com>
25685 * ListBox.cs: Match MS's ToString (this makes debugging focus
25686 stuff infinitely easier).
25688 2006-07-10 Jackson Harper <jackson@ximian.com>
25690 * Control.cs (SelectNextControl): When checking the control's
25691 parent use this instead of ctrl.parent so that null can be passed
25692 to SelectNextControl. (I have unit tests for this).
25693 - Remove unused var.
25695 2006-07-10 Chris Toshok <toshok@ximian.com>
25697 * CurrencyManager.cs: correct one regression, the removal of the
25698 finalType field. Also, add a MonoTODO on CanAddRows, implement
25699 Refresh() correctly, and fix some event emission in
25700 ListChangedHandler.
25702 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
25704 * FileDialog.cs: Don't use brackets for new folders if they exist
25705 under *nix. Instead use -(number of existing folders +1).
25707 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
25710 - Fixed really nasty bug #78771
25711 - Don't block the whole GUI when reading directories with a lot of
25712 entries. Use an other thread instead and call BeginInvoke to
25713 update the ListView in MWFFileView
25715 2006-07-07 Chris Toshok <toshok@ximian.com>
25717 * Control.cs (Dispose): release any Capture when disposing.
25719 2006-07-07 Chris Toshok <toshok@ximian.com>
25721 * LinkLabel.cs (Select): if we chain up to the parent, set
25722 focused_index to -1 so we'll search for the first available link
25723 the next time the user tabs into us. Also, if the direction is
25724 backward and focused_index == -1, start the search from the last
25727 2006-07-07 Chris Toshok <toshok@ximian.com>
25729 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
25730 is beyond the end of the text, don't do anything.
25731 (CreateLinkPieces): set our ControlStyles.Selectable based on
25732 whether or not we have any links.
25733 (Link.Invalidate): use a loop instead of foreach.
25734 (Link.set_Start): null out owner.sorted_links so it'll be
25735 recreated by CreateLinkPieces.
25737 2006-07-06 Chris Toshok <toshok@ximian.com>
25739 * LinkLabel.cs: revert the SetStyle change.
25741 2006-07-06 Chris Toshok <toshok@ximian.com>
25743 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
25744 (OnEnableChanged): s/Refresh/Invalidate
25745 (OnGotFocus): if we have a focused index already, refocus it (so
25746 if we mouse out/in to the window it'll focus the right link).
25747 (OnKeyDown): move the tab handling out of here.
25748 (OnLostFocus): don't set focused_index to -1, so we can refocus it
25749 when we lose focus.
25750 (OnMouseDown): don't Capture here - Control handles it. Also,
25751 focus the active link.
25752 (OnMouseUp): don't deal with Capture.
25753 (OnPaintBackgroundInternal): remove.
25754 (OnTextAlignChanged): CreateLinkPieces before calling the
25755 superclass's method.
25756 (OnTextChanged): call CreateLinkPieces before calling superclass's
25758 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
25760 (Select): implement this, moving the selection between different
25761 links, and call parent.SelectNextControl if we don't have another
25762 link to focus in the given direction.
25763 (CreateLinkPieces): call Invalidate instead of Refresh.
25765 2006-07-06 Chris Toshok <toshok@ximian.com>
25767 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
25768 new LinkLabel internals.
25770 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
25771 over pieces looking for active/focused/etc links. also, deal with
25772 runs of text (and links) with embedded \n's in them, and use
25773 MeasureCharacterRanges instead of MeasureString to figure out the
25774 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
25777 2006-07-04 Jackson Harper <jackson@ximian.com>
25779 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
25780 XKB or key auto repeat, do it manually. Without key auto repeat,
25781 when a key is held down we get key press, key release, key press,
25782 key release, ... with auto repeat we get key press, key press, key
25783 press ..., and then a release when the key is actually released.
25785 2006-07-03 Jackson Harper <jackson@ximian.com>
25788 * ThemeWin32Classic.cs: Tabs do not obey normal background color
25789 rules, they are always control color regardless of the background
25792 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
25794 * FileDialog.cs: Added internal class MWFConfig.
25795 Removed Registry support and replaced it with support for the new
25796 MWFConfig class. See MWFConfig comments for more information.
25798 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
25800 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
25801 rectangle. Added some patches from eno from bug #78490 and fixed
25802 the arrow position for small up and down CPDrawScrollButtons.
25804 2006-06-30 Jackson Harper <jackson@ximian.com>
25806 * InternalWindowManager.cs: Remove some debug code.
25807 * Form.cs: When an MdiParent is set to null, the window is
25808 "detatched" and becomes a normal window.
25809 * MdiClient.cs: Don't bring the new child form to the front until
25810 it is activated (setting it as active does this), this makes the
25811 previously active forms titlebar get redrawn as inactive.
25813 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
25815 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
25816 with later controls
25818 2006-06-29 Mike Kestner <mkestner@novell.com>
25820 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
25821 arrow in keynav state. Fixes #78682.
25823 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
25825 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
25826 order (fixes #78393)
25828 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
25830 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
25831 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
25832 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
25833 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
25834 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
25835 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
25836 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
25837 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
25838 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
25839 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
25840 enumerations (FlagsAttribute, SerializableAttribute, added/removed
25843 2006-06-28 Mike Kestner <mkestner@novell.com>
25845 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
25847 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
25850 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
25851 item lines from other area (It also makes BackColor consistent and
25852 compatible with .NET). Fixed bug #78564.
25854 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
25856 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
25857 Patch from Eno for #78555.
25859 2006-06-27 Chris Toshok <toshok@ximian.com>
25861 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
25863 * DataGridColumnStyle.cs: same.
25865 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
25867 * DataGridDrawingLogic.cs: nuke.
25869 2006-06-27 Chris Toshok <toshok@ximian.com>
25871 * DataGridTableStyle.cs: clean up the constructors, and build the
25872 list of child relations for this table. I have no idea if this is
25873 where we should be doing it (it probably isn't), but since we're
25874 already iterating over the properties..
25876 * DataGrid.cs: add row resizing. for now we add a DataGridRow
25877 struct and array for keeping track of row information, similar to
25878 what's shown in a hack on
25879 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
25881 * Theme.cs: be consistent about the naming of DataGrid methods,
25882 prefering ColumnWidths and RowHeights over columnsWidths and
25885 * ThemeWin32Classic.cs: same, and also add support for variable
25886 sized rows (and the +/- expansion icons for related rows).
25888 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
25890 * TextBoxBase.cs: Applied Eno's patch from #78660
25892 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
25894 * Form.cs (ScaleCore): We don't want to scale our form if it's
25895 state is minimized or maximized, but we still need to scale our
25896 child windows. Also, added try/finally block to ensure layout
25897 gets reset (Fixes #78697)
25899 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
25901 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
25903 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
25905 * Form.cs: Fixed c+p error and added check to resize form if minimum
25906 size is bigger than current size (Fixes #78709)
25908 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
25910 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25912 2006-06-26 Mike Kestner <mkestner@novell.com>
25914 * ComboBox.cs: only do Keypress handling in the combo when there
25915 are items in the collection. Fixes #78710.
25917 2006-06-26 Chris Toshok <toshok@ximian.com>
25919 * Binding.cs: make this work bi-directionally. also, clear up
25920 other mixups between Push/Pull Data (e.g. we're supposed to pull
25921 data when validating).
25923 * BindingManagerBase.cs: trim some fully qualified collection
25926 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
25928 2006-06-23 Chris Toshok <toshok@ximian.com>
25930 * PropertyManager.cs: It appears (according to the unit tests)
25931 that PropertyManager doesn't use
25932 PropertyDescriptor.AddValueChanged to track propery value changes
25933 in its datasource, but uses the same scheme as Binding, where it
25934 looks for a <Property>Changed event and binds to it.
25936 Also, according to the docs, IsSuspended always returns false for
25937 a property manager with a non-null datasource.
25939 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
25941 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
25942 need to update the actual DialogResult. (Fixes #78613)
25944 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
25946 * Form.cs (ShowDialog): Release any captures before running the
25947 new message pump (fixes #78680)
25949 2006-06-22 Mike Kestner <mkestner@novell.com>
25951 * ListView.cs: Layout column widths properly in details mode even
25952 if HeaderStyle.None is set. Fixes #78691.
25954 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
25956 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
25958 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
25960 * Control.cs (ContainsFocus): Using new driver method to get focused
25961 window, instead of trying to use internal tracking var, which can
25962 recursion issues (Fixes #78685)
25963 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
25964 XplatUIWin32.cs: Added GetFocus method to return focused window
25966 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25968 * ColorDialog.cs: when the mouse button is pressed inside the color
25969 matrix, don't let the cursor move out of it until the button is
25970 released, which is the behavior on windows. Changed 'colours' by
25971 'colors' to use the same word consistently.
25973 2006-06-21 Chris Toshok <toshok@ximian.com>
25975 * DataGrid.cs: add in some basic navigation stuff (navigating to a
25976 child relation and back, using a stack). Also, remove
25977 GetDataSource and the code that calls it - it's not needed. Also,
25978 track CurrencyManager.ListName's removal.
25980 2006-06-21 Chris Toshok <toshok@ximian.com>
25982 * CurrencyManager.cs: push some of the original type checking from
25983 BindingContext.CreateBindingManager to here, and remove some of
25984 the finalType stuff. Need more tests to make sure I've got the
25985 ListName part right, and we might need more in SetDataSource.
25987 * PropertyManager.cs: add a ctor that takes just the datasource,
25988 and no property name. Make SetDataSource work with a null
25989 property_name, and make Current return the data_source if the
25990 property descriptor is null. this makes 'string foo = "hi";
25991 BindingContext[foo].Current' return "hi" as it should.
25993 * RelatedCurrencyManager.cs: make this code more generic - there's
25994 no reason the parent manager has to be CurrencyManager, and
25995 there's no reason to pass the DataRelation. It suffices to use a
25996 BindingManagerBase and PropetyDescriptor.
25998 * RelatedPropertyManager.cs: make a similar change here.
26000 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
26001 flower I knew it could be.
26003 2006-06-20 Chris Toshok <toshok@ximian.com>
26005 * PropertyManager.cs: the PropertyChangedHandler is invoked when
26006 data in the source has changed and we need to update the control,
26007 so s/PullData/PushData.
26009 * CurrencyManager.cs: Refresh is meant to update the control from
26010 data in the datasource. So, s/PullData/PushData.
26012 * BindingContext.cs: add more ugliness (we weren't handling the
26013 case where data_source = DataTable and data_member = column_name).
26015 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
26016 from the perspective of the datasource. PullData pulls from the
26017 control, PushData pushes to the control.
26019 2006-06-20 Chris Toshok <toshok@ximian.com>
26021 * BindingContext.cs: rewrite the CreateBindingManager code to
26022 handle navigation paths more or less properly. This could
26023 definitely stand some more work, in particular to push the
26024 recursion up to the toplevel. But that relies on fixes in other
26025 places (System.Data comes to mind).
26027 Also, move to a flat hashtable (and encode the twolevel nature of
26028 the dictionary into the hash key). This lets us implement the
26029 IEnumerable.GetEnumerator method.
26031 * RelatedCurrencyManager.cs: new class. Update our view based on
26032 our relation and our parent CurrencyManager's position.
26034 * CurrencyManager.cs: split out some logic from the ctor into
26035 SetView, so it can be called from the new RelatedCurrencyManager
26038 * RelatedPropertyManager.cs: new class. Update our datasource
26039 based on the position of our parent CurrencyManager.
26041 * PropertyManager.cs: split out some logic from the ctor into
26042 SetDataSource, so it can be called from the new RelatedDataSource
26043 subclass. Also, make the Current getter return the value
26044 of the PropertyDescriptor, not the data_source.
26046 * Binding.cs: no need to duplicate the string splitting code here.
26048 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
26051 - set_Enabled: OnEnabledChanged is not called if the inherited state
26052 of the control is not altered, even though we might be changing the
26053 internal state of the control (#78458)
26054 - set_Enabled: (Re)Moved the enabling/disabling of the window to
26055 OnEnabledChanged, to allow easy altering of any child window state
26056 - OnEnabledChanged: Added code to enable/disable driver window state
26057 - OnParentEnabledChanged: Instead of firing the event, call
26058 OnEnabledChanged, which will fire the event and also a) set driver
26059 window state and pass the enabled state to any grandchildren (#78458)
26061 2006-06-19 Jackson Harper <jackson@ximian.com>
26063 * InternalWindowManager.cs: We don't set the cursor explicitly
26064 thats done via the response to NCHITTESTs.
26065 - Don't need to adjust for titlebar heights anymore, the
26066 coordinates are coming in the correct coordinates now (see peters
26070 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
26072 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
26073 being translated relative to whole window, instead of client window.
26074 That caused broken offsets on mouseclick (and caused gas for our
26075 InternalWindowManager)
26077 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
26080 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
26081 - Undo(): Added replay of cursor move on DeleteChars action; added
26082 calling Undo() again if a recorded cursor move is invalid (to
26083 ensure that some action is performed on Undo)
26084 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
26086 2006-06-16 Jackson Harper <jackson@ximian.com>
26088 * MdiClient.cs: Instead of just sizing maximized windows when
26089 there is a resize we also have to adjust the Y of minimized
26090 windows, so they stay pinned to the bottom of the mdi container.
26091 - Eliminate separate tracking of the active control, we can just
26092 get this from the controls collection.
26093 - Paint the decorations for the newly activated titlebar so we get
26095 * InternalWindowManager.cs:
26096 * ThemeWin32Classic.cs: Minimized windows get all three buttons
26097 even if they are a tool window.
26099 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
26101 * TextControl.cs (Undo): Handle non-existent cursor locations in the
26102 undo buffer, these can happen when text was deleted and the cursor
26103 was recorded first. Since we will also have a recorded cursor
26104 after the delete this is not an issue. (Fixes #78651)
26106 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
26108 * AccessibleObject.cs: Remove dependence on Control.is_selected;
26109 instead properly track control states internally (allows us to
26110 remove is_selected from Control)
26112 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26114 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
26115 whose width is not a multiple of 8.
26117 2006-06-13 Jackson Harper <jackson@ximian.com>
26119 * MdiClient.cs: Only maximize the next child if the current one
26122 2006-06-13 Chris Toshok <toshok@ximian.com>
26124 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
26125 modified. Also, guard against grid or grid_drawing being null in
26128 * DataGrid.cs: Reformat tons of getters/setters. In the
26129 DataMember setter, just call SetNewDataSource instead of
26130 duplicating some of its functionality. In SetNewDataSource, don't
26131 check ListManager for null, since the property getter creates the
26134 * DataGridTableStyle.cs: don't set TableStyle or call
26135 SetDataGridInternal on the column here, it's done in
26136 GridColumnStylesCollection.Add.
26138 * GridColumnStylesCollection.cs: fix all the explicit interface
26139 implementations to just call our methods. Nuke AddInternal() and
26140 move the body of it to Add(). Also, add a call to
26141 column.SetDataGridInternal to Add().
26143 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
26144 base()+duplicate code. Also, use the Format property instead of
26145 format to generate an Invalidate ala MS. Lastly, create the
26146 textbox here, unconditionally.
26147 (set_Format): call Invalidate.
26148 (get_TextBox): no need to call EnsureTextBox.
26149 (Commit): remove the message box.
26150 (Edit) remove the call to EnsureTextBox.
26151 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
26152 (EnterNullValue): no need to check textbox for null.
26153 (HideEditBox): no need to check textbox for null.
26154 (SetDataGridInColumn): add the textbox to the grid's controls.
26155 (EnsureTextBox): nuke.
26157 2006-06-13 Jackson Harper <jackson@ximian.com>
26159 * MdiWindowManager.cs: Hook up to the maximized menus paint event
26160 and redraw the buttons when needed. Unhook when the window is
26162 * MainMenu.cs: Add an internal Paint event, the mdi window manager
26163 needs this so that it can redraw its buttons when the menu is
26165 * InternalWindowManager.cs:
26166 * Form.cs: The method order has changed for DrawMaximizedButtons,
26167 so that it can be a PaintEventHandler.
26169 2006-06-13 Jackson Harper <jackson@ximian.com>
26171 * MdiClient.cs: When we close a maximized mdi window, the next mdi
26172 window is activated and maximized, even if it wasn't before.
26173 - When a new window is activated repaint the decorations of the
26174 old one, so that it no longer has the Active "look" (the blue
26176 * InternalWindowManager.cs: Open up CreateButtons to base classes
26177 so they can recreate the buttons on state changes.
26178 - If a window is maximized give it all three buttons
26179 * MdiWindowManager.cs: Create the titlebar buttons when the state
26180 is changed, this is needed because a toolwindow will not have all
26181 three buttons until it is maximized.
26183 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
26185 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
26188 2006-06-12 Jackson Harper <jackson@ximian.com>
26190 * KeysConverter.cs: Make sure we handle the Ctrl special case
26191 if its the only key.
26193 2006-06-12 Jackson Harper <jackson@ximian.com>
26195 * Theme.cs: Add a method to get the size of a managed window
26197 * InternalWindowManager.cs: Remove the ButtonSize property, this
26198 should be retrieved from the theme.
26199 * MdiWindowManager.cs: Get the button size from the theme
26200 * ThemeWin32Classic.cs: Make the method to get the managed window
26201 titlebar button size public.
26202 - Handle the different button sizes of maximized toolwindows
26203 (should match any maximized window).
26204 - Get the titlebar height from the theme, not the WM (which gets
26205 it from the theme).
26207 2006-06-12 Jackson Harper <jackson@ximian.com>
26209 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
26210 event down to the mdi window manager.
26211 - Expose some extra stuff to base classes
26212 - Make sure to end the Capture on an NC Mouse up, so that we can
26213 get double clicks properly, and the sizing doens't stick.
26214 - When doing PointToClient contain it in the workable desktop
26215 area, this prevents windows from changing size when the cursor is
26216 pulled outside of the working area while sizing.
26217 * MdiWindowManager.cs: When we get a double click maximize the
26219 - Reset the cursor after handling mode changes.
26221 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
26223 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
26224 current desktop, instead of just assuming a 0, 0 origin. This
26225 is needed for our internal window manager, to know the top
26226 margin of the desktop
26228 2006-06-12 Chris Toshok <toshok@ximian.com>
26230 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
26231 we need this to get rid of the selected background in the bool
26233 (CancelEditing): move the ConcedeFocus call to above the Abort
26234 call. Also, set is_changing to false and invalidate the row
26235 header if we were changing before.
26236 (ProcessKeyPreviewInternal): remove, since noone outside this
26237 class calls it anymore. Roll the code into ProcessKeyPreview.
26238 (EndEdit): remove the internal version.
26239 (InvalidateCurrentRowHeader): make private.
26241 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
26242 Keys.Escape handling (and with it the last call to
26243 DataGrid.EndEdit from outside the class.)
26246 2006-06-12 Chris Toshok <toshok@ximian.com>
26248 * DataGridTextBox.cs (.ctor): isedit defaults to false.
26249 (OnKeyPress): set isedit to true.
26250 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
26251 already handled by the grid.
26253 * DataGrid.cs (set_CurrentCell): more work here. it's still not
26255 (set_DataSource): SetDataSource always returns true, so stop
26256 putting it in an if statement.
26257 (EndEdit): get rid of some {}'s
26258 (ProcessGridKey): return true in case Keys.Escape.
26259 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
26260 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
26261 PositionChanged, stopped connecting to CurrentChanged.
26262 (GetDataSource): simplify this a bunch.
26263 (SetDataSource): change return type from bool to void.
26264 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
26265 to this, and make sure we don't set ListManager.Position inside
26267 (OnListManagerItemChanged): if we're passed an actual index,
26270 * CurrencyManager.cs (set_Position): don't call PullData here.
26272 2006-06-09 Jackson Harper <jackson@ximian.com>
26274 * TreeNode.cs: Recalculate the visible order before doing the
26275 Expand/Collapse Below calls, because those calls generate an
26277 - Reduce calls to the TreeView property, which is mildly expensive
26278 by using a local var.
26279 * Form.cs: Layout the MDI child windows when creating the parent
26281 - Don't use the internal constructor anymore
26282 * MdiClient.cs: use the parent form width/height (if available)
26283 when laying out the child windows, we do this because the
26284 mdiclient isn't docked yet when the initial layout is done.
26285 - Don't need an internal constructor anymore.
26287 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26289 * FileDialog.cs: handle access errors when trying to create a folder
26290 or changing to a directory. No need to initialize out parameters.
26292 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26294 * FileDialog.cs: Append a number when creating a new folder if the
26295 folder already exists (use parenthesis instead of square brackets)
26297 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26300 - Disabled registry support for windows and added better registry
26301 error checking for other systems (need to investigate why it
26302 works perfectly on my system)
26303 - If a folder already exist show an error MessageBox instead of
26304 trying to create an indexed name.
26305 - Fixed a non intentional typo.
26307 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26309 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
26311 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26313 * FileDialog.cs: When creating a new folder don't crash if the
26314 folder already exists.
26316 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26318 * FileDialog.cs: Allmost a complete rewrite.
26319 - added a "virtual" file system that handles the differences
26320 between unix and windows file systems (especially the directory
26321 structure). Moved most of the directory and file handling code
26323 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
26324 UnixFileSystem and FSEntry.
26325 - Recently used folder/directory, size, location and used file names
26326 (file name ComboBox) are now stored in the registry and get read
26327 before the dialog shows up (fixes part 6 of bug #78446).
26328 - Creation of new folders/directories is now possible (context menu
26329 or ToolBar). Added TextEntryDialog for this that fills in the gap
26330 until ListView.LabelEdit works.
26331 - Fixed cursor handling (bug #78527) and focus handling for
26333 - Various "Search in" ComboBox enhancements. The content of the
26334 dropdown listbox now almost matches ms.
26335 - Changed the behaviour when the user switches to SpecialFolder
26336 Recent to show the ListView in View.Details.
26337 - Beside using the ToolBar to change the View property of the
26338 file ListView it is now possible to use the context menu too.
26340 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26342 * ComboBox.cs: Don't create a new ObjectCollection when an item
26343 gets inserted. Just insert the item in the existing object_items
26346 2006-06-08 Jackson Harper <jackson@ximian.com>
26348 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
26349 that the treeview and root node checks are done also, this fixes a
26350 regression i caused in the unit tests.
26352 2006-06-07 Wade Berrier <wberrier@novell.com>
26354 * RichTextBox.cs: More ISO8859-1 -> unicode
26356 2006-06-07 Mike Kestner <mkestner@novell.com>
26358 * ComboBox.cs : use items to hold highlight/selection so that
26359 collection insertions don't require synchronization.
26361 2006-06-07 Jackson Harper <jackson@ximian.com>
26363 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
26364 routine. We now always keep the sized edge at the cursor instead
26365 of computing movement and adjusting rects. There is one buglet
26366 with this method though when the cursor is moved over area that
26367 the window can not expand too (such as the toolbars on the desktop).
26369 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26371 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
26372 here. Fixes crash on startup in AlbumSurfer.
26374 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
26376 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
26379 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26381 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
26382 statement to avoid calling XNextEvent which will block if another thread
26383 took the event that we were expecting. Fixes bug #78605.
26385 2006-06-07 Mike Kestner <mkestner@novell.com>
26387 * ListView.cs : isolated checkbox clicking from the selection logic.
26388 Toggle check state on item doubleclicks. Really fixes #78454 part2.
26390 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
26392 * Form.cs: Check that the value passed to Form.DialogResult
26393 is a valid enum value.
26395 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26397 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
26398 Computer'. Clicking it in the network view goes to 'My Computer'.
26399 Added CIFS filesystem type. Display the mount point of filesystems.
26400 Avoid duplicate mount points (happens for me with CIFS);
26402 2006-06-06 Jackson Harper <jackson@ximian.com>
26404 * InternalWindowManager.cs: Draw the maximized windows buttons
26407 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26409 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
26410 all other dialogs. Fixes bug #78585.
26412 2006-06-06 Mike Kestner <mkestner@novell.com>
26414 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
26415 Only invalidate checkbox on checkstate changes to avoid flicker.
26416 * ListBox.cs : avoid unselect/select when clicking selected item.
26417 avoid reselection flicker for already multiselected items.
26420 2006-06-06 Jackson Harper <jackson@ximian.com>
26422 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
26423 the parent form so that the menu is removed if needed.
26425 2006-06-06 Mike Kestner <mkestner@novell.com>
26427 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
26428 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
26430 2006-06-06 Mike Kestner <mkestner@novell.com>
26432 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
26435 2006-06-06 Jackson Harper <jackson@ximian.com>
26437 * Control.cs: Use the property (instead of the field) to get the
26438 default cursor so it is instantiated correctly.
26439 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
26440 resizes so we need to manually repaint the window decorations here.
26441 - Set the titlebar button locations as soon as they are created,
26442 otherwise they are not set correctly on win32.
26444 2006-06-06 Chris Toshok <toshok@ximian.com>
26446 * CurrencyManager.cs (set_Position): call PullData before
26448 (AddNew): after calling IBindingList.AddNew, update our
26449 listposition, and call OnCurrentChanged/OnPositionChanged (without
26451 (OnCurrentChanged): remove the call to PullData from here.
26452 (OnItemChanged): remove the call to PushData from here.
26453 (OnPositionChanged): change the test from == null to != null to
26454 match the other methods.
26455 (ListChangedHandler): the grossest part of the patch. Implement
26456 this such that it passes the unit tests in CurrencyManagerTest and
26457 the output more or less matches that of MS's implementation.
26459 2006-06-06 Mike Kestner <mkestner@novell.com>
26461 * ListView.cs : only update check state on single click.
26462 * ThemeWin32Classic.cs : fix focus drawing for details view without
26463 fullrowselect. Fixes #78454.
26464 * XplatUIX11.cs : fix for double click emission.
26466 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
26468 * PropertyGridView.cs : Applied Atsushi's patch to fix
26469 font dialog bug (#78197).
26471 2006-06-05 Jackson Harper <jackson@ximian.com>
26473 * TreeNode.cs: Compute the next node for expanding/collapsing
26474 correctly. We now factor in nodes without a NextNode
26475 correctly. (Fixes somes cases in nunit-gui).
26476 * InternalWindowManager.cs: Set the bounds when updating the
26477 virtual position of a tool window.
26479 2006-06-05 Chris Toshok <toshok@ximian.com>
26481 * DataGrid.cs: rename cached_currencymgr to list_manager.
26482 (set_CurrentCell): move SetCurrentCell code here, and clean it up
26484 (CurrentRow, CurrentColumn): single accessors so we can make the
26485 cursor movement code a lot easier to understand.
26486 (CurrentRowIndex): implement this in terms of CurrentRow.
26487 (BeginEdit): clean this up a bit.
26488 (CancelEditing): sort out the is_editing/is_changing/is_adding
26490 (EndEdit): minor changes.
26491 (OnKeyDown): add a comment about a (most likely) unnecessary
26493 (OnMouseDown): cancel editing when we click on a row header. And
26494 use the CurrentRow setter, not CurrentCell.
26495 (ProcessDialogKey): directly call ProcessGridKey.
26496 (UpdateSelectionAfterCursorMove): factor out this common block of
26497 code (it's used everywhere that we move the cursor by updating row
26499 (ProcessGridKey): pretty substantial overhaul. Use the
26500 CurrentRow/CurrentColumn properties to make the code a lot more
26501 readable. Only use the CurrentCell property when we have to
26502 modify both row and column at once. Tab behavior is still broken,
26503 and Delete is untested.
26504 (Select): if we have no selected rows, set selection_start to
26506 (EditCurrentCell): rename EditCell this. It was only ever invoked
26507 with CurrentCell as the arg, so drop the arg and rename it.
26509 * DataGridColumnStyle.cs: clean up the constructors a little, and
26510 drop CommonConstructor().
26512 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
26513 actually get notified when the user hits it.
26514 (ProcessKeyMessage): *substantially* simplify this method.
26515 There's no reason (that I can see) for the textbox to be making
26516 calls into the datagrid at all. Remove all of them but the ones
26517 for Enter handling. those will take some more work.
26519 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
26520 calling HideEditBox.
26521 (HideEditBox): if we have an active textbox, render it invisible
26522 without causing a re-layout of the datagrid.
26524 2006-06-05 Mike Kestner <mkestner@novell.com>
26526 * ListView.cs : fix NRE crasher when focuseditem is cleared by
26527 collection changes by resetting it to Items[0]. Fixes #78587.
26529 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26531 * MessageBox.cs: if the height of the text is larger than the icon_size,
26532 use that. Fixes bug #78575.
26534 2006-06-05 Jackson Harper <jackson@ximian.com>
26536 * TreeView.cs: Fix line drawing when scrolling. To do this each
26537 node is basically responsible for drawing its entire horizontal
26538 area. When drawing a node it draws its parent node lines if
26540 - Adjust the clip area to the viewport rectangle
26541 - Fix Left/Right key handling to match MS. (It expand/collapses
26542 and moves to parents/first child but does not move selection to
26544 - Fix SetTop to work with new bound calculation code
26545 - When scrollbars are no longer needed we need to reset scrolling
26546 vars and recalculate the visible order so the redraw is correct
26547 * TreeNode.cs: We can't expand/collapse nodes with no children.
26549 2006-06-03 John Luke <john.luke@gmail.com>
26551 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
26552 so the colors work without dev packages
26554 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
26557 - Select: Implemented to just use activate. Seems to match MS
26558 behaviour closest. Documented to only do actual control walking
26559 based on it's parameters if in a container control so I moved
26561 - Removed selection check logic from our internal Select() method
26562 * ContainerControl.cs:
26563 - Select: Moved selection logic from Control here, since MS documents
26564 that containers obey the bool arguments. No longer calling base
26566 2006-06-02 Jackson Harper <jackson@ximian.com>
26568 * TreeView.cs: If the selected node isn't changed when we get
26569 focus update the previously selected node so that we see the
26572 2006-06-02 Mike Kestner <mkestner@novell.com>
26574 * ComboBox.cs: restructure grab and general mouse event handling.
26575 Make the composite control raise mouse events like it was a single
26576 control for leaves/enters/motion/up/down events. fix dropdown list
26577 coordinate mangling and refactor it into the scrollbar subclass to
26578 reduce code duplication. Fixes #78282 #78361 and #78457.
26580 2006-06-02 Mike Kestner <mkestner@novell.com>
26582 * ScrollBar.cs: remove Capture setting/clearing, as it happens
26583 automatically in the Control.WndProc.
26585 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26587 * FileDialog.cs: fix crash when running SharpChess, which sets the
26588 FilterIndex to 2 with only one Filter.
26590 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26592 * ToolBar.cs: add SizeSpecified property.
26593 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
26594 try to figure out our real size, otherwise fallback to what the
26597 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
26599 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
26600 * Control.cs (WndProc): MS always calls the DefWndProc to pass
26603 2006-06-01 Mike Kestner <mkestner@novell.com>
26605 * ListView.cs: revamp the focus management in ListView. It still
26606 causes churn of LostFocus/GotFocus emissions on clicks, but it's
26607 better than not handling focus at all. Will revisit when pdb feels
26608 the general focus handling is solid. Fixes #78526.
26610 2006-06-01 Jackson Harper <jackson@ximian.com>
26612 * TreeView.cs: Set the default border style in the constructor.
26613 - Move painting to use OnPaintInternal instead of capturing
26614 WM_PAINT, this is the correct way of doing things
26615 - UpdateBelow shouldn't invalidate the scrollbar area
26616 - Cap the top on update below in case the node was above the top
26617 of the viewport rectangle.
26618 - ExpandBelow and Collapse below need to obey Begin/End Update.
26619 * TreeNode.cs: Make is_expanded internal so the treenode
26620 collection can change it without firing the whole event chain.
26621 * TreeNodeCollection.cs: When clearing all the child nodes make
26622 sure to recalc the visible order.
26623 - Improve algo for remove the top node
26625 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
26627 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
26628 SendMessage directly calling window procedures, which in turn might
26631 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
26633 * Control.cs: Don't handle WM_SETFOCUS if the same window already
26634 has focus (works around X11 sending a FocusIn after our SetFocus)
26635 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
26637 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
26639 * Mime.cs: Fix for the NET_2_0 build.
26640 NameValueCollection needs StringComparer now.
26642 2006-05-31 Chris Toshok <toshok@ximian.com>
26644 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
26645 return (via an out parameter) the starting X of the column.
26646 (UpdateVisibleColumn): track change to FromPixelToColumn.
26647 (HitTest): add a ColumnResize case here.
26648 (DrawResizeLine): new function, probably poorly named.
26650 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
26651 only need to keep one reference.
26652 (set_ListManager): same.
26653 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
26654 Also, add support for HitTestType.ColumnResize.
26655 (OnMouseMove): add column resize behavior here, and change the
26656 cursor to the correct one as we move around the datagrid.
26657 (OnMouseUp): terminate the column resize if we're resizing.
26658 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
26659 for the current cell.
26660 (ConnectListManagerEvents): use cached_currencymgr.
26661 (DisconnectListManagerEvents): fill this in, using
26662 cached_currencymgr.
26663 (SetCurrentCell): remove cached_currencymgr_events handling.
26664 (SetDataMember): only call DisconnectListManagerEvents if
26665 cached_currencymgr is != null.
26666 (SetDataSource): same.
26667 (OnListManagerCurrentChanged): cached_currencymgr_events ->
26668 cached_currencymgr.
26670 2006-05-31 Jackson Harper <jackson@ximian.com>
26672 * BindingManagerBase.cs: Remove somedebug code that creeped into
26674 * TreeNode.cs: We get the indent level dynamically right now, so
26675 don't track it as a member.
26676 * TreeNodeCollection.cs: Make sure all nodes added to the list
26677 have parents, treeviews/topnodes setup properly.
26678 - Don't attempt to track indent level.
26680 2006-05-30 Jackson Harper <jackson@ximian.com>
26682 * BindingContext.cs: Create the currency manager tables here.
26683 This allows us to more easily create null tables (when bad data
26684 members are used), and more easily create related currency
26686 * CurrencyManager.cs: All the table creation stuff is done by the
26687 binding context now.
26688 - Current should throw an exception if listposition is -1.
26689 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
26692 2006-05-30 Mike Kestner <mkestner@novell.com>
26694 * ListView.cs: allow reexpansion of zero-width column headers.
26697 2006-05-28 Chris Toshok <toshok@ximian.com>
26699 * CurrencyManager.cs (get_Current): after the late binding
26700 listposition = -1 fix, we need to guard against it here and return
26701 null, otherwise we raise an exception (which is swallowed
26702 elsewhere, and breaks datagrid databinding.)
26704 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
26706 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
26707 than WM_SYSKEY, don't throw if get something unexpected (#78507)
26709 2006-05-26 Jackson Harper <jackson@ximian.com>
26712 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
26713 values, it's faster and it's all we care about (we don't care if
26714 the names aren't equal).
26715 * KeyboardLayouts.cs: Eliminate some dead code.
26717 * X11Keyboard.cs: Lazy init keyboard detection.
26718 - Cleanup access modifiers a little.
26720 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
26722 * XplatUIX11.cs: Once again, attempting to get layout just right.
26724 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
26726 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
26727 the sizes of each link section, that will result in sizes that
26728 match DrawString's layout (Fixes #78391)
26730 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
26732 * FileDialog.cs: If AddExtension property is true autocomplete the
26733 extensions in SaveFileDialog correctly. Fixes bug #78453.
26734 Set MyNetwork and MyComputer to "C:\" for windows. This should
26735 fix part 8 of bug #78446 for now.
26737 2006-05-26 Chris Toshok <toshok@ximian.com>
26739 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
26740 invalidate the current row header if we need to, but presumably
26741 we'll invalidate the row corrsponding to the bounds or
26743 (GridHScrolled): switch back to this method, as it's part of the
26744 public api. *sigh*.
26745 (GridVScrolled): same.
26746 (OnMouseWheel): hack up something that more or less works. Call
26747 GridHScrolled/GridVScrolled directly, instead of duplicating much
26748 of their code here.
26749 (EnsureCellVisibility): reinstate a bunch of this code, since we
26750 can't just set the scrollbar Value and expect to do all the work
26751 in the ValueChanged handler. Also, Call Update() after scrolling
26752 in one direction so the other XplatX11.ScrollWindow call has the
26753 proper stuff in the proper places.
26754 (EditCell): set is_editing to true before calling .Edit.
26756 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
26757 don't bother comparing first.
26758 (OnKeyPress): call grid.ColumnStartedEditing before calling
26759 base.OnKeyPress. this will set is_changing and invalidate the row
26760 header if necessary.
26761 (ProcessKeyMessage): for WM_CHAR messages, call
26762 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
26765 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
26766 it's done in the DataGrid.
26767 (NextState): call grid.ColumnStartedEditing, which takes care of
26768 invalidating the row header (and setting is_changing).
26770 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
26771 here. it's done in the DataGrid.
26773 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26775 * Control.cs: allow changing the cursor when the mouse position is
26776 out of bounds but Capture is set.
26777 * LinkLabel.cs: handle the case when the mouse button is pressed on the
26778 linklabel but released somewhere else.
26780 2006-05-25 Jackson Harper <jackson@ximian.com>
26782 * TreeView.cs: When we get focus if there is no selected node make
26784 - Remove some uneeded setup code from Draw.
26785 * TreeNodeCollection.cs: If the tree doesn't have a top node when
26786 a new node is inserted make the new node the top.
26788 * Timer.cs: Use Utc time so that no local time zone stuff needs to
26789 be used (should be faster).
26791 2006-05-25 Chris Toshok <toshok@ximian.com>
26793 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
26794 problem with the last commit.
26796 2006-05-25 Chris Toshok <toshok@ximian.com>
26798 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
26799 need the invalidate call here, while scrolling right-to-left via
26800 the left arrow key (i.e. moving the editing cell while scrolling).
26802 * DataGrid.cs (.ctor): remove the initialization of
26803 ctrl_pressed/shift_pressed. We no longer track them using key
26804 up/down handlers, but by using Control.ModifierKeys. Also, switch
26805 to using ValueChanged handlers on the scrollbars instead of
26806 Scrolled event handlers. This simplifies a bunch of the scrolling
26808 (GridHValueChanged): rename from GridHScrolled, and change it to
26809 work with the new event args.
26810 (GridVValueChanged): same.
26811 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
26812 (OnMouseWheel): actually scroll the datagrid. Don't change the
26814 (ProcessGridKey): correct all the keyboard navigation stuff I
26815 could find. Ctrl up/down/left/right/home/end work now.
26816 (EnsureCellVisibility): correct method name spelling. Also,
26817 simplify this a touch by not explicitly calling the
26818 ScrollToRow/ScrollToColumnInPixels methods. We just set the
26820 (OnKeyUpDG): no need for this method now.
26822 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26824 * LinkLabel.cs: display the OverrideCursor when hovering the label.
26827 2006-05-25 Chris Toshok <toshok@ximian.com>
26829 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
26832 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
26834 * Application.cs: Moved setting of is_modal and closing to before
26835 we create the control, to allow the event handlers called as a
26836 result of creation affect closing. Also removed Gonzalo's previous
26837 change to setting DialogResult, the behaviour has been moved to
26840 - ShowDialog(): Removed explicit creation of the form, let RunLoop
26842 - ShowDialog(): If no dialog result is set, we need to return Cancel
26843 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
26844 the close is cancelled
26846 2006-05-25 Jackson Harper <jackson@ximian.com>
26848 * StatusBar.cs: We only need to update the sizes of the other
26849 panels when we have auto size contents. Also we are only updating
26850 the contents of the panel, not the borders, so compensate for the
26851 border width (TODO: get this width from the theme somehow).
26852 * TreeView.cs: Scrollable is true by default
26853 - Use invalidate instead of refresh where needed
26854 - Factor the scrollable value into scrollbar updating
26855 - Update the scrollbars if the Scrollable property is altered
26856 - Update the selected node if its ImageIndex is changed
26857 - Handle null nodes in UpdateNode (mainly so we don't have to
26858 check if selected is null when updating it
26859 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
26860 are factored into the visible count
26861 - Use VisibleCount for clarity in the code
26862 - When the font is changed we need to recurse through all the
26863 nodes and invalidate their sizes
26865 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26867 * Application.cs: set the DialogResult to fixed when the main form is
26868 hidden or destroyed while being modal.
26870 2006-05-25 Miguel de Icaza <miguel@novell.com>
26872 * Theme.cs: Use Tangoified messagebox icons.
26874 (GetSizedResourceImage): Also cope with width = 0 and do not
26875 trigger a warning in that case (0 means "give me your icon from
26876 the resouce, no special size needed).
26878 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
26880 * Application.cs: Leave runloop if the the main modal form is
26881 hidden (fixes #78484)
26883 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
26885 * BindingContext.cs : reject null datasource in Contains() and
26887 * CurrencyManager.cs : check data_member validity when data_source
26888 is dataset. When it is late binding, the initial position is -1.
26890 2006-05-24 Jackson Harper <jackson@ximian.com>
26892 * TreeNodeCollection.cs: Dont't recalculate the visible order on
26893 inserted nodes that aren't visible. This changes the
26894 max_visible_order which confuses scrollbar settings.
26895 - Use the enumerator to get the prev node instead of duplicating
26897 * TreeView.cs: Use new method for setting scrollbar values
26898 - Don't set the bounds every time the scrollbar is updated
26899 - When updating below the root node use an invalidate instead of a
26900 refresh to prevent the child controls (scrollbars) from being
26901 refreshed. (UpdateBelow still needs to be reworked anyways).
26902 - Reenable SetBottom now that visible orders are set correctly,
26903 added some debug code incase we ever get bad values there again.
26904 - Set the scrollbar max to 2 less then the max value, this
26905 compensates for the max value being one above the node count, and
26906 for scrollbars adding one extra "notch".
26907 - When drawing image nodes if there is an imagelist we draw the
26908 first image in the list if the supplied image index is out of the
26909 image list's bounds.
26911 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
26913 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
26914 we receive a size change from the WM (Fixes #78503)
26916 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
26918 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
26919 rectangle (Fixes #78501)
26921 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
26924 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
26926 - Fixed MouseMove to no longer switch pressed state unless the left
26927 mouse button is pressed. Atsushi provided the original patch (#78485)
26929 2006-05-24 Jackson Harper <jackson@ximian.com>
26931 * ScrollBar.cs: New internal methods that allow us to change a
26932 couple values on the scrollbar (the most common case is maximum
26933 and large change) without getting multiple invalidates.
26935 2006-05-24 Chris Toshok <toshok@ximian.com>
26937 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
26938 (Edit): save off the original state in oldState, and set
26939 grid.is_editing to true.
26940 (OnKeyDown): abort editing if escape is pressed. also, call
26941 NextState if space is pressed.
26942 (OnMouseDown): call NextState.
26943 (NextState): factor out shared code from OnKeyDown and OnMouseDown
26944 here. Also, only invalidate the row header once (on the initial
26945 is_changing switch) to save on redraws.
26947 2006-05-24 Chris Toshok <toshok@ximian.com>
26949 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
26950 if the value in the cell is different than it was before. This
26951 keeps us from triggering a layout when we move around a datarid
26952 with a highlighted cell.
26953 (Edit): suspend layout when creating/positining the text box, and
26954 resume passing false so we don't ever actually re-layout.
26955 (ReleaseHostedControl): same.
26956 (EnsureTextBox): reformat slightly, and set WordWrap to false.
26958 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
26959 control-key sequences should go to the datagrid - remove that
26960 lock. Also, modify the conditions under which we move between
26961 cells when moving the cursor within a cell, and remove the "this"
26962 and "base" from field accesses. We weren't even consistent, given
26963 they all were in the base class.
26965 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
26967 * Binding.cs : (.ctor)
26968 An obvious NRE fix for BindingTest.CtorNullTest().
26970 2006-05-23 Chris Toshok <toshok@ximian.com>
26972 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
26973 them between lines. This fixes some quirks editing cells in the
26976 2006-05-23 Jackson Harper <jackson@ximian.com>
26978 * TreeView.cs: Use begin/end update when doing expand/collapse all
26979 so that we don't get flicker on the scrollbar.
26981 2006-05-23 Jackson Harper <jackson@ximian.com>
26983 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
26984 treenode calculations to be independant of the painting code. To
26985 do this nodes track a visible order which is calculated by the
26987 - Call new methods for expanding/collapsing nodes. These methods
26988 use scrollwindow so we don't have to update everything below the
26990 * TreeView.cs: Refactored drawing and scrolling code. We don't
26991 need to update nodes when drawing anymore or calculate scrollbar
26993 - Added new methods for expanding/collapsing nodes. These methods
26994 use ScrollWindow so as to not have to redraw all the nodes below.
26995 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
26996 we add/remove nodes or sort.
26997 - Handle removing the selected and the top node properly.
26999 2006-05-23 Chris Toshok <toshok@ximian.com>
27001 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
27002 maybe this should actually happen in the datagrid code?
27003 (EndEdit): no need to invalidate anything, given that
27004 ReleaseHostedControl causes the datagrid to relayout, which
27005 invalidates everything anyway.
27007 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
27008 in SetCurrentCell).
27009 (set_SelectionBackColor): call InvalidateSelection instead of
27011 (set_SelectionForeColor): same.
27012 (BeginEdit): Flesh this out a bit.
27013 (CancelEditing): only do any of this if we're editing/adding.
27015 (OnMouseDown): there's no need to cancel editing here, it's done
27017 (SetCurrentCell): only invalidate the current row header if it's a
27018 different row than the new one.
27019 (ShiftSelection): fix this to work like MS does.
27020 (ResetSelection): factor out the invalidation of selected_rows to
27021 InvalidateSelection.
27022 (SetDataSource): cancel any editing that's going on.
27024 * DataGridColumnStyle.cs
27025 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
27026 call the non-interface version.
27028 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
27029 header rectangle with the clip rectangle so we don't redraw the
27030 entire header for just a small area. Gets rid of the last flicker
27031 when horizontally scrolling.
27032 (DataGridPaintRow): same.
27034 2006-05-23 Mike Kestner <mkestner@novell.com>
27036 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
27037 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
27038 poorly placed checkbox on the MS control. Fixes Alex's unfiled
27039 Critical bug report.
27041 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
27043 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
27044 and this fixes #78493
27046 2006-05-23 Miguel de Icaza <miguel@novell.com>
27048 * Theme.cs (GetSizedResourceImage): Scale images if the proper
27051 * FileDialog.cs: Do not change the background for the side bar as
27052 it wont work nicely with the theme, and also reduces the artifacts
27053 in rendering the icons (which I want to fix too).
27055 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
27056 resources, not resgen resources.
27058 (PlatformDefaultHandler): Pull images using the new API.
27060 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
27062 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
27063 a reference to the hwnd and will not remove it unless there are
27064 no pending exposures (fixes #78341)
27065 * XplatUI.cs: Improved debug
27067 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
27069 * MenuAPI.cs : don't handle OnClick event when it was not the left
27070 button. Fixed bug #78487.
27072 2006-05-23 Mike Kestner <mkestner@novell.com>
27074 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
27075 prefer submenus to the top menu for item lookup, to avoid popping down
27078 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
27080 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
27081 Graphics.FillRectangle as the visual results are really bad (even
27082 on win). We now draw perfect arrows (and perfect shadows when the
27083 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
27084 Pen.DashPattern to draw the dots of each line.
27086 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
27088 * FileDialog.cs: Update the filename combobox when navigating through
27089 the ListView with the cursor keys. Fixes part 7 of bug #78446.
27091 2006-05-22 Mike Kestner <mkestner@novell.com>
27093 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
27096 2006-05-22 Mike Kestner <mkestner@novell.com>
27098 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
27099 requests. Fix a misspelled parameter and a copy paste exception error
27102 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
27104 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
27105 to get the same width/height (5/13) on X11 as the default font has on
27106 win32. This means that our DefaultFont emSize is smaller than the
27107 the MS SWF equivalent (even thought the width/height stays the same)
27109 2006-05-20 Jackson Harper <jackson@ximian.com>
27112 * MdiWindowManager.cs:
27113 * InternalWindowManager.cs: Make sure to use the border width from
27116 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
27118 * PrintDialog.cs: Implements printer details
27120 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
27122 * FileDialog.cs: Added focus handling for PopupButtonPanel.
27123 Fixes part 1 and 2 of bug #78446
27125 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
27127 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
27128 instead of sticking to the first ever calculated value
27130 2006-05-19 Mike Kestner <mkestner@novell.com>
27132 * ComboBox.cs: fix mouse motion selection to use MousePosition and
27133 PointToClient, since Capture is set. Fixes #78344.
27135 2006-05-19 Mike Kestner <mkestner@novell.com>
27137 * ListView.cs: match MS behavior in Details view where items are not
27138 drawn if Columns.Count == 0.
27139 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
27140 Use a separate pen to draw the check, since changing the width affects
27141 the box as well. Fixes #78454.
27143 2006-05-18 Miguel de Icaza <miguel@novell.com>
27145 * ListView.cs: ArgumentOutOfRangeException, single versions of the
27146 exception should throw the name of the invalid argument.
27148 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
27149 there are no files listed.
27151 2006-05-18 Jackson Harper <jackson@ximian.com>
27153 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
27156 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
27158 * Control.cs: Brought back our old UpdateZOrder method as a private
27159 function and switched our calls from UpdateZOrder to the new one.
27160 This fixes the Paint.Net canvas disappearing bug.
27162 2006-05-18 Jackson Harper <jackson@ximian.com>
27165 * ThemeWin32Classic.cs:
27166 * InternalWindowManager.cs: Move the drawing into the theme,
27167 expose everything the theme should need from the window manager.
27169 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
27171 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
27172 from the call to NativeWindow to avoid walking up the parent chain
27173 further than needed (speeds up setting cursors and avoids setting
27174 the wrong cursor if a parent has another cursor defined)
27175 * Cursor.cs: When loading an icon as cursor, MS uses the center of
27176 the icon as hotspot, not what's contained as hotspot in the icon
27177 file. This fixes the perceived drawing offset seen with Paint.Net
27179 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
27182 - Store the calculated rectangle in Hwnd object and use it when
27183 setting the client size
27184 - Force Toolwindows to always be type Dock, to ensure they're on top
27186 2006-05-18 Mike Kestner <mkestner@novell.com>
27188 * ComboBox.cs: first pass at ComboBox rework. Layout is more
27189 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
27190 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
27191 Substantial refactoring to remove confusing nested classes. Coding
27192 standard and Get+Set->property refactorings. Shift to index based
27193 highlighting in ComboListBox instead of constantly using IndexOf and
27194 Items[]. Add invalidations on resize for DropDownList to fix ugliness
27195 in FileDialog growth. Draw borders manually since Simple mode needs
27196 to look like two independent controls. Make listbox border
27197 conditional to DropDownStyle. Improved OwnerDraw support.
27199 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
27201 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
27202 Don't set the disposed graphics to null, so we can throw the "right"
27203 exception if the graphics is reused later (added a flag to avoid
27204 double disposing). Some behaviours are different under 2.0 and are
27205 filled under bug #78448.
27207 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
27209 * Control.cs: When double-buffering is enabled, we need to reset
27210 our graphics context between paint calls. Otherwise, any
27211 transformations and other alterations on the context will
27212 become cumulative (#77734)
27214 2006-05-18 Mike Kestner <mkestner@novell.com>
27216 * ListView.cs: do focused item selection like MS on clicks.
27217 Rework focus handling for ItemControl so LostFocus invalidates as
27219 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
27220 the ListView ItemControl has focus.
27222 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
27224 * XplatUIX11.cs: If client_window ends up being width or height zero
27225 due to border settings, move it off window inside whole_window (#78433)
27227 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
27229 * Mime.cs: Shrink the mime file cache correctly.
27231 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
27233 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
27235 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27237 * XplatUIX11.cs (AddExpose): More sanity checks
27239 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27242 - AddExpose: Don't add expose ranges outside the size of our
27244 - Cast opacity values to Int32 to avoid crashes with certain
27246 - Added disabled code paths that protect against illegal cross-
27247 thread painting (Developers.exe)
27249 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27251 * ProgressBar.cs: Invalidate the control when it's resized
27252 since block size is based on control size. (#78388)
27254 2006-05-16 Miguel de Icaza <miguel@novell.com>
27256 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
27257 of setting the incoming argument to the "reset" value, we set the
27258 this.datamember to string.empty (before we were invalidating the
27263 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27265 * Form.cs: Only apply transparency settings after the form
27266 is created. (Fixes #77800)
27268 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27270 * ApplicationContext.cs: Grab the HandleDestroyed event so
27271 we know when to fire OnMainFormClosed
27273 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27275 * Application.cs: Introduced sub-class to allow tracking of
27276 threads and centralized triggering of the event mess for
27277 ThreadExit, AppExit, etc.. (#76156)
27279 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
27282 - Do not return a null icon index value for a mime subclass.
27283 Instead try the main mime type class too.
27284 - Seems that some newer distributions don't have a link to some
27285 gnome default icons anymore. So check the default gnome dir too.
27288 2006-05-16 Jackson Harper <jackson@ximian.com>
27290 * MdiClient.cs: Don't paint the parent background image if we have
27291 our own background image.
27293 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27296 - PerformLayout: Do not shrink space filled by DockStyle.Fill
27297 controls, all filled controls are supposed to overlap (#78080)
27298 - UpdateZOrder is supposed to update the control's z-order in the
27299 parent's z-order chain. Fixed to behave like that
27300 - BringToFront: Removed obsolete code
27301 - SendToBack: Simplyfied
27302 - SetChildIndex: Trigger layout calculations when Z-order changes
27303 since layout is done by z-order
27305 2006-05-16 Chris Toshok <toshok@ximian.com>
27307 [ fixes bug #78410 ]
27308 * DataGrid.cs (set_AlternatingBackColor): use
27309 grid_drawing.InvalidateCells instead of Refresh().
27310 (set_BackColor): call grid_drawing.InvalidateCells.
27311 (set_BackgroundColor): use Invalidate instead of Refresh.
27313 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
27314 invalidate the cell area.
27316 2006-05-15 Chris Toshok <toshok@ximian.com>
27318 [ fixes bug #78011 ]
27319 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
27320 on to DataGridPaintRow.
27321 (DataGridPaintRow): take a clip argument, and only draw the cells
27322 which intersect it. same with the not_usedarea.
27324 * Theme.cs (DataGridPaintRow) add @clip parameter.
27326 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
27327 XplatUI.ScrollWindow.
27328 (ScrollToRow): same.
27330 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
27331 with last column which was causing a gray swath to appear with the
27332 XplatUI.ScrollWindow code.
27334 2006-05-15 Chris Toshok <toshok@ximian.com>
27336 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
27337 use XplatUI.ScrollWindow.
27338 (VerticalScrollEvent): use XplatUI.ScrollWindow.
27340 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
27342 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
27344 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
27346 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
27347 file since there are no equivalent X11 cursors
27349 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
27351 * MonthCalendar.cs : DateTimePicker should reflect selected date
27352 on mouse*up*, not mouse*down*. Fixed originally reported part of
27355 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
27357 * TabControl.cs : When argument index is equal or more than tab
27358 count, just ignore. Fixed bug #78395.
27360 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
27362 * Control.cs: Dispose all child controls when control is diposed (#78394)
27364 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
27366 * ColorDialog.cs: Finally it is possible to select the color with
27369 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
27371 * PrintDialog.cs: Fix typo
27373 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
27375 * PrintDialog.cs: PrintDialog is not resizable
27376 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
27377 color. Made some ToolBar drawing methods protected virtual.
27379 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
27381 * PrintDialog.cs: Implementation of the PrintDialog
27383 2006-05-12 Chris Toshok <toshok@ximian.com>
27385 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
27386 thumb, instead use MoveThumb. This has the side effect of making
27387 most of the other thumb moving machinery use MoveThumb as well.
27388 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
27389 need to actually invalidate the rectangle where the new thumb will
27391 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
27392 We force an Update() after, so it's not as fast as it could be,
27393 but at least there's zero flicker and no droppings.
27394 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
27395 (UpdateThumbPos): add another argument (dirty), which says whether
27396 or not to calculate/add dirty regions which we later invalidate.
27397 For cases where we know we're going to use MoveThumb, we pass
27398 false for this. Otherwise, pass true.
27400 2006-05-12 Jackson Harper <jackson@ximian.com>
27402 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
27405 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
27407 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
27408 and GetClipRegion methods and UserClipWontExposeParent property.
27409 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
27410 overriding UserClipWontExposeParent property, setting to false, since
27411 Win32 handles the required expose messages to draw our clipped parent
27413 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
27414 PaintEventStart to set the user clip region if set.
27416 - Now internally tracking the Region for the control since we need to
27417 store it if the handle is not yet created and only set it when it
27418 becomes created. Before setting the region forced handle creation
27419 - Added code to draw the parents underneath a user-clipped region
27420 * Hwnd.cs: Added UserClip property
27422 2006-05-12 Chris Toshok <toshok@ximian.com>
27424 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
27425 (set_Maximum): same.
27426 (set_Minimum): same.
27427 (set_SmallChange): same.
27428 (OnMouseUpSB): remove the call to refresh when releasing the
27429 thumb. We shouldn't need it.
27431 2006-05-12 Miguel de Icaza <miguel@novell.com>
27433 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
27434 AutoSize set to None, we do not need to relayout everything, we
27435 just need to invalidate the current region.
27437 (Draw): Do not draw the entire ClientArea, just redraw the
27438 clip area being passed.
27440 * MdiClient.cs: Make MdiClient constructor with the Form argument
27443 2006-05-12 Jackson Harper <jackson@ximian.com>
27445 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
27446 parents background image, but strangely not their own.
27447 - (DrawStatusBarPanel): Take into account horizontal alignment
27448 when drawing the strings and icons.
27450 2006-05-12 Mike Kestner <mkestner@novell.com>
27452 * ListBox.cs: avoid invalidations for focus when the collection is
27455 2006-05-12 Chris Toshok <toshok@ximian.com>
27457 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
27458 invalidate the entire thumb area. Call InvalidateDirty which
27459 limits the redraw to the thumb itself and surrounding pixels.
27461 * XplatUIX11.cs (ScrollWindow): optimize copying.
27463 2006-05-12 Chris Toshok <toshok@ximian.com>
27465 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
27466 Figure out the positioning/layout in a single pass instead of
27467 multiple recursive invocations. Speeds up the initial display of
27468 the data grid. Also, make many things private that were
27469 originally public but unused outside this class.
27471 2006-05-11 Jackson Harper <jackson@ximian.com>
27473 * MdiClient.cs: Improved layout code.
27475 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
27477 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
27478 not SelectedObject.
27480 2006-05-11 Chris Toshok <toshok@ximian.com>
27482 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
27483 union of that will always be {0,0,width,height}.
27485 2006-05-11 Jackson Harper <jackson@ximian.com>
27487 * Form.cs: Match MS's DefaultSize for forms (they must have
27488 changed the size in sp2).
27490 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
27492 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
27494 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
27496 * TextControl.cs : Fixed bug #78109. This incorrect position
27497 comparison caused crash on automatic line split.
27498 * TextBoxBase.cs : reduce duplicate code.
27500 2006-05-10 Jackson Harper <jackson@ximian.com>
27502 * MdiClient.cs: Active form is only sent to the back when using
27503 the Next form functionality, when a form is clicked the current
27504 active shouldn't be sent to the back.
27505 - Layout the mdi windows when the container is first made visible.
27506 * Form.cs: Give the MdiClient a ref to the containing form when we
27509 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
27511 * LinkLabel.cs : link_font could be uninitialized, so populate one
27512 before actual use. Fixed bug #78340.
27514 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
27516 * XplatUIX11.cs : clipboard format native value is IntPtr.
27519 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
27522 - Instead of showing context menus directly we send WM_CONTEXTMENU,
27523 which is passed up the parent chain by DefWndProc
27524 - We now handle WM_CONTEXTMENU to display any menu, or pass it
27525 to DefWndProc (#77956)
27526 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
27528 2006-05-10 Jackson Harper <jackson@ximian.com>
27530 * MdiClient.cs: We need to remove the controls from the mdi
27531 collection, when we close the window.
27532 * MdiWindowManager.cs: Special handling of closing mdi windows.
27533 * InternalWindowManager.cs: Make the close method virtual so the
27534 mdi window manager can handle it specially.
27536 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
27539 - Recalculate grid when the data source has changed
27540 - Matches styles provided by user from all data sources types
27541 * DataGridTableStyle.cs: For columns that provided by the user set the
27542 with the preferred value is there was unassigned.
27543 * CurrencyManager.cs: throw OnItemChanged event
27545 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
27547 * PictureBox.cs: Don't animate until handle is created. Start animation
27548 when handle is created.
27550 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
27552 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
27554 * XEventQueue.cs: We don't need to provide the extra info
27556 2006-05-10 Jackson Harper <jackson@ximian.com>
27558 * MdiClient.cs: If the mdi clients parent form has a background
27559 image set, we draw that background image for the mdi area's
27562 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
27564 * TextBoxBase.cs: Set IBeam cursor (#78347)
27566 2006-05-10 Mike Kestner <mkestner@novell.com>
27568 * ToolBar.cs: fix some text padding issues with ButtonSize
27569 calculation. Update the default size to match MS documentation.
27570 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
27571 button size. Fixes #78296.
27573 2006-05-10 Mike Kestner <mkestner@novell.com>
27575 * ListBox.cs: use is_visible for scrollbar positioning in case the
27576 control isn't on screen yet. Fix off by one with Right vs Width
27577 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
27579 2006-05-10 Jackson Harper <jackson@ximian.com>
27581 * X11Dnd.cs: Drop to a control with another control on top of it.
27582 * ToolBar.cs: Work on a copy of the buttons list, so that it can
27583 be modified in click handlers. TODO: Look for similar problems in
27586 2006-05-09 Jackson Harper <jackson@ximian.com>
27588 * Form.cs: Window managers need the old window state when setting
27590 * InternalWindowManager.cs: Allow the base mdi window manager to
27591 handle more of the MDI only stuff (like maximize buttons).
27592 * MdiWindowManager.cs: Fix some snafus in changing the window
27593 state. Add all the menu functionality, for both popup and
27595 * MdiClient.cs: When a new form is selected the currently
27596 activated form is sent to the back, this matches MS.
27597 - Implement a new method to activate the next mdi child window.
27599 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
27602 - Added new InternalCapture method to allow controls to prevent
27603 the capture behaviour on the click handlers
27604 - Switched to use InternalCapture
27606 - Using InternalCapture to prevent mouse captures from being released
27607 on mouse button release (Fixes #78100)
27608 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
27609 returns Form borders if a caption is present. (Fixes #78310)
27611 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
27613 * TreeNode.cs: Changed serialization .ctor to not require every field
27614 to be present. (#78265)
27615 * OwnerDrawPropertyBag.cs: Added serialization .ctor
27617 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
27619 * MimeIcon.cs: for is faster than foreach for strings.
27621 2006-05-05 Mike Kestner <mkestner@novell.com>
27623 * CheckedListBox.cs: update check handling code to not use selected.
27624 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
27625 behavior for visual feedback, motion response, shift/ctrl handling,
27626 and properly deal with all 4 selection modes. Updates to bounds
27627 handling logic. Add scroll wheel support. [Fixes #77842]
27629 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
27632 - Moved adding of Implicit controls into .ctor. That way, subsequent
27633 creation of the controls will not cause them to think they are
27634 toplevel windows (fixes #78200 header problem)
27635 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
27636 - Switched visibility setting of header control to use internal field
27637 to avoid triggering handle creation
27638 - Now checking if handle is created before causing a refresh when items
27639 are added (This makes us now match handle creation time with MS)
27640 * Splitter.cs: Removed loading of private splitter cursor, switched to
27641 Cursors version now that that is loading the right ones
27642 * Cursors.cs: Load proper splitter cursors from resources
27643 * Cursor.cs: Added second method of loading resource cursors for the
27644 VS.Net users amongst us
27646 2006-05-05 Mike Kestner <mkestner@novell.com>
27648 * ListView.cs: give header_control a minimum size based on the
27651 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
27653 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
27654 window seems to do that with metacity, so set that type. (#78120)
27656 2006-05-05 Mike Kestner <mkestner@novell.com>
27658 * ListViewItem.cs: fix Details mode checkbox layout bug.
27659 * ThemeWin32Classic.cs: draw a ListView column header for unused space
27660 at the end of the header, if it exists. [Fixes for #78200]
27662 2006-05-04 Jackson Harper <jackson@ximian.com>
27664 * MdiClient.cs: Add a helper property to get the container form.
27665 * MdiWindowManager.cs: We have to make sure to use the menu origin
27666 when drawing the icons and buttons, this fixes maximized window
27667 icons/buttons on win32.
27668 * InternalWindowManager.cs: Reset the restore captions when a
27669 window goes from Maximized to Minimized and vice versa. Move the
27670 DrawMaximizedButtons into the MdiWindowManager source, tool
27671 windows can't be maximized. NOTE: This could use a little
27672 refactoring if time ever permits.
27674 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
27676 * TextBox.cs: Add MWFCategoryAttributes
27677 * TextBoxBase.cs: Add MWFCategoryAttributes
27678 * Form.cs: Add MWFCategoryAttributes
27680 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
27682 * Control.cs: Add MWFCategoryAttributes
27683 * ScrollableControl.cs: Add MWFCategoryAttributes
27685 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
27687 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
27688 Divider is true. Fix a little glitch in PropertyToolBar
27691 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
27694 - Dispose: Call base.Dispose, this causes the disposed event
27695 to be fired (and probably other, more important stuff)
27696 - SetVisibleCore: Set is_visible to true after creating the
27697 window so that the window still gets created invisible (if
27698 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
27699 to generate a WM_ACTIVE message
27700 * Form.cs: Call Dispose when we want to destroy the window, instead of
27701 just destroying the handle (Dispose will do that for us)
27703 - RootWindow also needs a queue, so we can properly process the
27704 property change events from RootWindow (like Activate)
27705 - Generatic synthetic WM_ACTIVE message when the active window is
27708 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
27710 * LinkLabel.cs: Trigger a recalc of our label dimensions when
27713 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
27715 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
27716 for determining width and height (image might not be assigned if
27717 we're drawing an imagelist)
27719 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
27721 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
27722 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
27724 * Theme.cs: No longer returns hardcoded menu height, instead calls
27726 * Form.cs (OnLoad): Scaling happens before triggering Load events
27729 2006-05-01 Mike Kestner <mkestner@novell.com>
27731 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
27733 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
27735 * TextBoxBase.cs: Removed Fixme
27736 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
27738 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
27741 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
27742 the rectangle relative to the parent, considering borders. We
27743 don't really want that.
27744 - ScrollWindow: Fixed warning to be more understandable
27745 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
27746 scrollbars and scroll only the visible area
27747 * RichTextBox.cs: Removed debug output
27749 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27751 * NumericUpDown.cs (Text): Just use base
27752 * UpDownBase.cs: Ensure txtView is created before using it
27754 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27756 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
27757 casting to IntPtr to avoid 64bit overflow errors
27759 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27762 - AllowDrop: Don't force handle creation.
27763 - CreateHandle: Added call to tell driver if we're allowed to drop
27765 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
27767 * FileDialog.cs: Remember the last directory not only for the
27768 current instance but also for new FileDialog instances.
27770 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27772 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
27773 broke sending async messages
27775 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27778 - ScrollWindow: Fixed method. We finally generate expose events again
27779 for scrolled areas. This was causing 'garbage' when scrolling
27780 textbox and other controls that used ScrollWindow
27781 - Switched from using the regular queue for paint events to the MS
27782 model of 'generating' paint events when the queue is empty.
27783 We use the new XQueueEvent.Paint subclass to store which windows
27785 - AddExpose now takes the x/y/width/height of the exposed area
27786 and inserts the window into the paint queue if not already there
27787 - InvalidateWholeWindow: Switched to use new AddExpose method
27788 - UpdateMessageQueue: Added which queue to monitor for paint events
27789 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
27790 the unlikely case nothing above handles it. We reset the expose
27791 pending states to get them off the queue.
27792 - GetMessage: Now pulls a paint event if no other events are in the
27794 - Invalidate: Switched to new AddExpose method
27795 - PeekMessage: Updated to understand pending paint events
27796 - UpdateWindow: Fixed logic bug. We were only updating if the window
27797 didn't need updating. Also switched to sending WM_PAINT directly,
27799 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
27800 and random access Remove(). The random access is needed to handle
27801 UpdateWindow() where a WM_PAINT is sent directly without accessing
27803 * ScrollBar.cs: Added Update() calls to cause immediate updates to
27804 allow for better feedback when scrolling. Scrollbars are small and
27805 the immediate update should make it 'feel' more responsive without
27806 slowing things down. ScrollBar still needs it's invaliate logic
27807 updated to not always invalidate the whole bar on certain changes.
27809 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27812 (BackColor): if the control does not support a transparent background,
27813 return the default backcolor when the parent backcolor is transparent.
27815 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
27817 * Application.cs: Updated to new StartLoop/GetMessage API
27818 * RichTextBox.cs: Provide some output on RTF parsing errors
27819 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
27820 new queue_id argument to GetMessage and PeekMessage to allow faster
27821 handling of per-thread queues in drivers.
27822 * Hwnd.cs: Added Queue tracking and property
27823 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
27824 * XEventQueue.cs: Added thread trackingA
27825 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
27827 - Implemented new per-thread queue
27828 - GetMessage: Fixed return/break behaviour on several cases. We were
27829 returning stale messages in some cases, instead of just processing
27832 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
27834 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
27836 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
27838 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
27839 fixed off-by-one comparisons between Width/Height and Right/Bottom.
27841 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
27843 * PropertyGridView.cs: Fix drop down width.
27845 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
27847 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
27848 a mess in DrawToolBar, so I removed one of them.
27850 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
27852 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
27853 needed (clip). Otherwise we get artifacts.
27855 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
27857 * FixedSizeTextBox.cs: Added constructor to allow specifying which
27859 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
27860 and switched FixedSizeTextBox to only be fixed vertical (#78116)
27861 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
27862 if it matches the scale base font (avoids unneeded scaling)
27864 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
27866 * X11DesktopColors.cs: One gtk_init_check should be enough
27868 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
27870 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
27873 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
27876 - Generate OnTextChanged for Backspace even if we're only deleting
27877 the current selection
27878 - When setting the Text property, only select all text if the
27879 control does not have focus when it is being set. Otherwise
27880 just place the cursor at the beginning of the control
27882 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
27884 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
27885 Added a little helper to draw PropertyGrid ToolBar with a different
27886 border and a different BackColor.
27887 * PropertyGrid.cs: Some background parts didn't get painted with the
27888 correct background color. Added a class that helps us to draw the
27889 correct border for PropertyGridView and a class that helps us to
27890 draw ToolBars with a different backcolor
27891 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
27893 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
27895 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
27896 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
27898 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
27900 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
27901 into the palette entries. Also, since we're working on a copy
27902 we needed to copy the palette back onto the bitmap.
27903 * Cursor.cs: Same fix as XplatUIWin32.cs.
27905 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
27907 * ImageListStreamer.cs: Need to read the var (or we're off)
27909 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
27911 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
27912 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27913 TextBoxBase.cs: Unused var fixes
27914 * AxHost.cs: Small 2.0 fix
27915 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
27916 as it seems that is what at least Metacity expects. This will make
27917 icons show up on 64bit platforms. We still have some 64bit size
27918 issues, though, since the startup app window size still won't match.
27920 2006-04-25 Mike Kestner <mkestner@novell.com>
27922 * *.cs: cleanup newly reported exception var unused warnings.
27924 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
27926 * ThemeWin32Classic.cs: Button image alignment now matches exactly
27929 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
27931 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
27932 image. The image position is always the same, no matter if the
27933 button is pressed or not.
27935 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
27937 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
27938 selection and set the correct filename for SaveFileDialog.
27939 Patch by Emery Conrad.
27941 2006-04-24 Mike Kestner <mkestner@novell.com>
27943 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
27944 check for item.X outside the ClientRect instead of item.Y. Fixes
27947 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27949 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
27950 trust that value blindly and do some sanity check. Fixes bug #77814.
27952 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27954 * ImageListStreamer.cs: save the mask as a 1bpp image.
27956 2006-04-21 Mike Kestner <mkestner@novell.com>
27958 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
27959 pass Checked and Indeterminate to the Theme Engine. Improve
27960 encapsulation with ListBox.
27961 * ListBox.cs: Keep a StringFormat instead of calculating it every item
27962 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
27963 nested types. Move all CheckState functionality to CheckedListBox.
27964 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
27965 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
27966 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
27967 single base list. Fix scrollbar sizing and placement to mirror MS.
27968 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
27970 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
27971 for CheckedListBox by using new DrawItemState info. Center the
27972 checkboxes on the items. Use new StringFormat property.
27974 2006-04-18 Jackson Harper <jackson@ximian.com>
27976 * Form.cs: MdiChildren don't do default locations the same way as
27977 regular forms. This prevents a crash when trying to position the
27980 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
27982 * PropertyGridTextBox.cs: Formatting, copyright
27983 * PropertiesTab.cs: Formatting
27984 * PropertyGrid.cs: Formatting
27985 * PropertyGridView.cs: Formatting, fix drop down, enabled double
27986 click toggling of values
27988 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
27990 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
27991 * Control.cs (.ctor): verify_thread_handle is static, don't reset
27992 every time a control is created
27993 * Application.cs: Removed obsolete EnableRTLMirroring method
27995 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
27997 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
27998 SelectedIndex to -1. Fixes bug #78121.
28000 2006-04-17 Jackson Harper <jackson@ximian.com>
28002 * Binding.cs: Handle null values for Current and BindingContext.
28003 This occurs when binding is a little delayed.
28004 * CurrencyManager.cs: return null for Current when there are no
28006 - Hookup to the listchanged event on the DataView and update
28007 bindings when the list is changed. This fixes late binding of
28010 2006-04-17 Jackson Harper <jackson@ximian.com>
28013 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
28016 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
28018 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
28020 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
28021 with the correct ButtonState
28023 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
28025 * XplatUIX11.cs: Improved distinguishing between window types to
28026 tell the WM a type closer to what the app wants (Fixes #78107)
28028 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
28030 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
28033 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
28035 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
28036 drawing code to reflect the size grip changes
28038 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28040 * ImageListStreamer.cs: fix handling of the mask that follows the main
28041 bitmap when deserializing and serialize it properly. The generated mask
28042 should better be a 1bpp image, but I'll do that later.
28044 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
28046 * FileDialog.cs: Show something in the DirComboBox on *nix if the
28047 path doesn't fit into some of our Current.Places
28049 2006-04-13 Jackson Harper <jackson@ximian.com>
28051 * ComboBox.cs: Use borders instead of drawing our own decorations,
28052 try to obey correct rules for heights.
28055 * ThemeClearLooks.cs:
28056 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
28057 this is now handled by borders.
28058 - Remove unused DrawListBoxDecorationSize method.
28060 2006-04-13 Mike Kestner <mkestner@novell.com>
28062 * MenuAPI.cs: null guarding for the disbled click check fixes crash
28065 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
28067 * ThemeWin32Classic.cs:
28068 - Fixed CPDrawStringDisabled
28069 - Corrected drawing of disabled menu items
28070 - Fixed drawing of disabled radio buttons (bug #78095)
28071 - Draw check in a disabled CheckBox with color ControlDark
28073 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28075 * Form.cs: Use the provided width when calculating the menu size;
28076 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
28077 and ClientSize.Width won't be updated yet
28078 * Application.cs: Use Visible instead of Show() to make form visible,
28079 this way we create the handle later and menusize is considered
28081 2006-04-12 Mike Kestner <mkestner@novell.com>
28083 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
28086 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28088 * TextBox.cs: Implemented context menu
28090 2006-04-12 Mike Kestner <mkestner@novell.com>
28092 * ListView.cs: implement box selection. fixes #77838.
28093 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
28095 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28097 * XplatUIX11.cs: Added setting of window type when transient window
28098 is created (metacity would move it otherwise)
28099 * X11Structs.cs: Added WINDOW_TYPE atoms
28100 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
28101 background (the control is Opaque but still wants transparent
28104 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28106 * Control.cs: Added OnPaintBackgroundInternal to allow controls
28107 that set Opaque but don't mean it (like all ButtonBase-derived
28108 controls) to still draw their background
28109 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
28112 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28114 * Control.cs (PaintControlBackground): Set the graphics object
28115 on our PaintEvent to null to prevent it from being disposed
28116 when the PaintEvent gets disposed
28118 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
28120 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
28121 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
28123 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28126 - Added transparency check to BackColor property. Transparent
28127 backgrounds are only allowed if the control styles permit it
28128 - Added recursive painting of parent control background and
28129 foreground if a control with a transparent backcolor is drawn
28130 (Thanks to Tim Ringenback for providing his 'hack' as a base
28131 for this patch) Fixes #77985 and #78026.
28132 - Added Opaque style check before calling OnPaintBackground, no
28133 need to draw the background if the control is opaque
28134 - Removed ControlAccessibleObject owner variable (inherited from
28135 base, no need to define again)
28136 - Added some documentation links explaining the drawing events
28139 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28141 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
28142 that the affected control is the located at the left border of our
28143 parent (Fixes #77936)
28145 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28147 * TextBoxBase.cs: When rendering disabled or readonly controls,
28148 draw the background with 'Control' instead of 'Window' color as
28149 long as the user hasn't specifically set a color
28151 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28153 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
28154 since that won't be updated if the user types text (only if it's
28155 programatically set)
28157 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28159 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
28160 layout changes do to app-triggered resizes will have the proper
28161 display rectangle for layout
28163 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
28165 * ThemeWin32Classic.cs:
28166 - Make use of the SystemBrushes and SystemPens wherever possible
28167 - Corrected some highlight colors
28168 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
28170 * Theme.cs: Added Empty field to CPColor struct
28172 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28174 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
28175 is displayed when calculating the display rectangle. Thanks to Mike
28176 for teaching me the err of my ways.
28178 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
28180 * ScrollableControl.cs:
28181 - Rewrote DisplayRectangle code, now returning the proper x/y coords
28182 (instead of 0,0) and we now return the real width/height instead of
28183 just the clientrectangle, adjusted for padding. The rectangle is
28184 now cached and created by the new CalculateDisplayRectangle method.
28185 - Created new CalculateDisplayRectange method, which basically does
28186 what get_DisplayRectangle() did originally, but now using the
28187 right edge instead of DisplayRectangle to determine the size of
28189 - get_Canvas(): Fixed it to properly calculate canvas for
28190 right/bottom controls which seem to be placed to the right/bottom
28191 of any controls that have a fixed location
28192 - Removed TODO that's taken care of
28193 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
28194 and SetDisplayRectLocation according to new MSDN2 docs
28195 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
28196 event when that is called, this is added for compatibility
28197 - ScrollControlIntoView(): Implemented.
28198 - Switched scrollbars to be implicit, they shouldn't be selectable
28199 * ContainerControl: Now that ScrollControlIntoView is implemented, we
28200 call it when the active control is set/changed
28201 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
28202 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
28203 implicit_control variable (used for native Win32 message generation)
28204 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
28205 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
28206 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
28207 * XplatUIStructs.cs: Added ScrollBarCommands enum
28209 2006-04-10 Jackson Harper <jackson@ximian.com>
28212 * CheckedListBox.cs:
28219 * PrintPreviewControl.cs:
28225 * UpDownBase.cs: Fixup base event overrides.
28227 2006-04-06 Mike Kestner <mkestner@novell.com>
28229 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
28230 all user-initiated value changes to min <= value <= max-thumbsz+1.
28231 (set_Value): check for vert/horiz when calculating new thumb position.
28232 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
28234 (OnMouseMoveSB): refactor the thumb dragging code and refine
28235 invalidation logic to reduce flicker.
28236 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
28237 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
28238 (UpdateThumbPosition): small code readability cleanup
28240 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
28242 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
28245 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
28247 * ThemeNice.cs: Use a better graphics effect when a button is pressed
28249 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
28251 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
28252 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
28253 This dramatically reduces the number of Pen.Dispose calls.
28254 Where possible call ResPool methods only once instead of calling it
28255 over and over again (for example for the same color).
28257 2006-04-06 Mike Kestner <mkestner@novell.com>
28259 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
28260 Also remove an unused private field on the collection. Fixes #77972.
28262 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
28264 * ThemeNice.cs: Added ToolBar drawing code
28266 2006-04-06 Mike Kestner <mkestner@novell.com>
28268 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
28269 I'm assuming that means we need to look up the toplevel for the
28270 provided control. Fixes the crash trace in #77911 but exposes another
28271 crash in some strange reflection usage in NDocGui.
28273 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
28275 * ThemeNice.cs: Gave it a little silver touch and added Images
28277 * FontDialog.cs: FontDialog is not resizable
28278 * FileDialg.cs: Added SizeGripStyle.Show
28280 2006-04-05 Jackson Harper <jackson@ximian.com>
28282 * KeyboardLayouts.cs: Remove warning.
28284 2006-04-05 Jackson Harper <jackson@ximian.com>
28286 * Control.cs: Enable OnPaintInternal so we can use it for drawing
28287 all of our controls instead of Paint +=.
28302 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
28303 use OnPaintInternal. Remove Width/Height and Visible checks in
28304 paint handler, this is done at a higher level now.
28305 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
28306 * PaintEventArgs.cs: Add a handled flag so controls that don't
28307 want anymore painting after OnPaintInternal can make sure OnPaint
28310 2006-04-05 Mike Kestner <mkestner@novell.com>
28312 * Form.cs: fix the menu WndProc hacks to respect the native enabled
28313 state of the form, so that we don't process events when Modal dialogs
28314 are up. Fixes #77922.
28316 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
28318 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
28321 2006-04-05 Mike Kestner <mkestner@novell.com>
28323 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
28325 2006-04-05 Mike Kestner <mkestner@novell.com>
28327 * ListView.cs (HeaderMouseMove): null guarding for the over column
28328 when setting up the drag_to_index. Fixes #78015.
28330 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
28332 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
28333 in the taskbar. Transient windows seem to accomplish that.
28335 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
28338 - Re-enabled CreateParams.X/Y code for FormStartPosition
28339 - Added code for manual placement when creating the Control
28340 - Incomplete patch to treat MDI forms differently when
28341 setting the ClientSizeCore. (Still need to figure out handling
28344 - When we're explicitly setting the X/Y position of a non-Child
28345 window, let the WM know. Metacity really wants this.
28347 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
28349 * ThemeNice.cs: Added CPDrawButton
28351 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
28353 * ThemeNice.cs: Changed the color for focused buttons and activated
28354 the arrows for small scroll buttons.
28356 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
28358 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
28359 anymore. Changed some method modifiers to protected (virtual)
28360 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
28362 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
28363 Updated drawing of menus, buttons and progressbars; added
28366 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28368 * ImageListStreamer.cs: implemented serialization/deserialization
28371 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
28373 * ThemeWin32Classic.cs:
28374 - Removed all the DrawFrameControl stuff; CPDrawButton,
28375 CPDrawCheckBox and CPDrawRadioButton are now handled directly
28377 - Updated and corrected the drawing code of CPDrawButton,
28378 CPDrawCheckBox and CPDrawRadioButton to better match ms
28379 - Updated theme checkbox and radiobutton code to use the CP*
28382 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
28384 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
28387 2006-03-31 Jackson Harper <jackson@ximian.com>
28389 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
28391 * UpDownBase.cs: Don't CreateGraphics manually, use a
28392 Refresh. Ideally we would invalidate the correct areas here.
28394 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
28397 - We now track the mapping state of windows. If a window (or
28398 one of it's parents) is not mapped we no longer permit
28399 WM_PAINT messages to be generated since we'd otherwise get
28400 lots of BadMatch X errors. Jackson did all the work figuring
28402 - Destroying the caret if the window it's contained in is
28403 destroyed. Can't use regular DestroyCaret method since it
28404 might fall into a drawing function (trying to remove the
28405 caret) and with that generate new BadMatch errors. Again,
28406 Jackson tracked this down.
28407 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
28408 make sure we send the messages to all windows. (The old code
28409 would send the WM_DESTROY to the window, and then all child
28410 windows would be 'gone' because the WM_DESTROY handle lookup
28411 would no longer find the destroyed window)
28412 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
28413 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
28415 2006-03-31 Jackson Harper <jackson@ximian.com>
28417 * ScrollableControl.cs: Dont recalc if we are not visible.
28419 2006-03-31 Mike Kestner <mkestner@novell.com>
28421 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
28422 the visibility branch.
28424 2006-03-31 Jackson Harper <jackson@ximian.com>
28426 * ScrollBar.cs: Cap values when incrementing/decrementing.
28428 2006-03-31 Mike Kestner <mkestner@novell.com>
28430 * MenuAPI.cs: setup menu.tracker for popup/context menus.
28431 * ToolTip.cs: guard against timer expirations with no active control.
28432 Not sure why it happened.
28434 2006-03-31 Mike Kestner <mkestner@novell.com>
28436 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
28438 * ToolTip.cs: Position the tooltip based on where the cursor is at
28439 popup time, not at MouseEnter time. Add a Down state so that we don't
28440 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
28441 positioning offset. Lookup DisplaySize at positioning time, since it
28442 can theoretically change during invocation.
28443 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
28444 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
28446 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
28448 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
28449 Fixes behaviour when the Text property of the box is String.Empty
28451 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
28453 * XplatUIX11.cs: Only send mouseleave for our client windows, not
28454 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
28457 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
28459 * FileDialog.cs: Visual enhancement for the popup buttons in
28462 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
28464 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
28467 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
28469 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
28470 highlighted menu items to match ms
28472 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
28474 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
28476 2006-03-30 Mike Kestner <mkestner@novell.com>
28478 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
28479 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
28480 go active to account for HotLight to Selected transition.
28481 * MenuItem.cs: add internal Selected prop. Fill out the Status
28482 property by calculating it from item info. Add HotLight,
28483 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
28485 2006-03-30 Mike Kestner <mkestner@novell.com>
28487 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
28489 2006-03-29 Jackson Harper <jackson@ximian.com>
28491 * Form.cs: Implement TODO.
28493 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
28495 * PrintPreviewDialog.cs: Implemented missing methods and events; still
28496 missing proper dialog setup in the constructor
28498 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
28500 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
28502 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
28503 - Fixed ResetBindings and removed TODO
28504 - Added check for cross-thread calls to get_Handle()
28505 - Added Marshaller attribute for set_Font to satisfy class status
28506 * FontDialog.cs: Removed TODOs that seemed implemented
28507 * UpDownBase.cs: Removed unneeded TODO and Fixme
28508 * MessageBox.cs: Implemented support for Default button and removed TODO
28509 * FileDialog.cs: Removed obsolete TODO
28510 * DomainUpDown.cs: Removed obsolete TODO
28511 * ButtonBase.cs: Removed obsolete TODO
28512 * XplatUIWin32.cs: Removed obsolete TODO
28514 - Removed obsolete TODO
28515 - Calling CheckAcceptButton when the acceptbutton is changed to allow
28516 internal status updates
28517 - Making sure the active control is selected when the control is created
28518 * CurrencyManager.cs: Removed obsolete TODO
28520 2006-03-29 Mike Kestner <mkestner@novell.com>
28522 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
28523 of PrintPreviewDialog and RichTextBox.
28525 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
28527 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
28528 DarkDark, Light and LightLight colors for a specific color
28529 * ThemeWin32Classic.cs:
28530 - Use Button drawing code to draw RadioButtons and CheckBoxes with
28531 Appearance = Button
28532 - Make use of the new ResPool helper CPColor
28533 - Draw ProgressBar and StatusBar with correct 3D borders
28535 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
28537 * ColorDialog.cs: Return selected color. Fixes bug #77940.
28539 2006-03-28 Mike Kestner <mkestner@novell.com>
28541 * ListView.cs: fix Icon layout to plan for scrollbar widths when
28542 calculating col/row counts.
28544 2006-03-28 Mike Kestner <mkestner@novell.com>
28550 switch to explicit interface method implementation for some methods
28551 corcompare identifies as inconsistent with MS.
28553 2006-03-28 Mike Kestner <mkestner@novell.com>
28557 add a few missing methods from the class status output.
28559 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
28561 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
28564 2006-03-28 Mike Kestner <mkestner@novell.com>
28566 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
28568 2006-03-27 Mike Kestner <mkestner@novell.com>
28570 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
28571 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
28573 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
28575 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
28577 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
28579 * ThemeWin32Classic.cs:
28580 - GroupBox: Inserted a little gap between the text and the lines
28582 - Made the code in CPDrawBorder3D more readable
28583 - Corrected the drawing location of the up and down arrows in
28586 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
28588 * ControlPaint.cs: Corrected line widths in DrawBorder for
28589 ButtonBorderStyle Inset and Outset
28591 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
28593 * ThemeWin32Classic.cs:
28594 - Rewrote the totally broken CPDrawBorder3D method. That was
28595 one of the main problems for the terrific ThemeWin32Classic
28597 - Updated and corrected Button drawing
28598 - Correct the dimensions of the SizeGrip to match ms ones
28599 - Removed a small drawing glitch in DrawComboBoxEditDecorations
28600 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
28601 Border3DStyle.Sunken to match ms.
28603 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
28605 * ThemeWin32Classic.cs: First small part of the "de-uglify
28606 ThemeWin32Classic" effort, SizeGrip
28608 2006-03-24 Jackson Harper <jackson@ximian.com>
28610 * XplatUIX11.cs: Give a max idle time of one second, this matches
28611 MS and forces an Idle event every second when there are no other
28612 events in the queue.
28614 2006-03-24 Mike Kestner <mkestner@novell.com>
28616 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
28617 * ListView.Item.cs: fix layout issues with null image lists and images
28618 smaller than checkbox size.
28619 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
28620 mode like MS does. It's weird, but consistent. ;-)
28623 2006-03-24 Mike Kestner <mkestner@novell.com>
28625 * ListView.cs: Scroll wheel support for the item control. Fixes
28628 2006-03-23 Jackson Harper <jackson@ximian.com>
28630 * ScrollableControl.cs: Special case negative sized areas, not
28632 * MonthCalendar.cs: Save the rect of the clicked date so we can
28633 use it for invalidation.
28634 - Try to cut down on the number of invalidates
28635 - Invalidate the rect the mouse is over and was over when moving
28636 the mouse, so we get the focus box following the cursor.
28638 2006-03-23 Mike Kestner <mkestner@novell.com>
28640 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
28641 focus rectangle drawing. Fixes #77835.
28643 2006-03-23 Mike Kestner <mkestner@novell.com>
28645 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
28646 the if and else if and reverting back to the original == check on the
28649 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
28651 * FontDialog.cs: Update the example panel if the selected index of
28652 the fontListBox changes.
28654 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
28656 * FileDialog.cs: Make FileDialog remember which directory it was in
28657 last in the same execution.
28659 2006-03-22 Mike Kestner <mkestner@novell.com>
28661 * FileDialog.cs: make the DropDownMenu on the toolbar display
28662 RadioChecks since they are mutually exclusive and that's what MS does.
28664 2006-03-22 Mike Kestner <mkestner@novell.com>
28666 * Theme.cs: add Color param to CPDrawMenuGlyph.
28667 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
28668 checks and radio marks and arrows are visible on highlighted items.
28669 * ControlPaint.cs: update to use new Theme signature.
28671 2006-03-22 Mike Kestner <mkestner@novell.com>
28673 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
28674 is active. Fixes #77870.
28676 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
28678 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
28679 to be focused/selected after startup
28681 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
28684 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
28685 CustomColors and ShowHelp properties
28686 - Some internal rewrites to get better results when using the
28689 2006-03-22 Mike Kestner <mkestner@novell.com>
28691 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
28692 HoverSelection. Fixes #77836.
28694 2006-03-22 Mike Kestner <mkestner@novell.com>
28696 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
28697 ToggleButtons. (De)Sensitize the Back button around a stack count of
28698 1, not 0. Update ButtonSize based on a pixel count of the win32
28699 control. Adjust the toolbar size/location for new button size.
28701 2006-03-22 Jackson Harper <jackson@ximian.com>
28703 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
28705 * ScrollBar.cs: When doing increments and decrements we need to
28706 set the Value property so that ValueChanged gets raised. A
28707 possible optimization here would be to make an internal SetValue
28708 that doesn't invalidate immediately.
28709 * ToolTip.cs: Tooltips get added to their container (when
28710 supplied) so they get disposed when the container is disposed.
28711 - Don't create tooltips for String.Empty. This prevents all these
28712 little 2-3 pixel windows from showing up when running nunit-gui
28713 and driving me mad.
28714 * Form.cs: Don't set topmost when setting the owner if the handles
28715 haven't been created yet. The topmost set will happen when the
28716 handles are created.
28718 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
28721 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
28722 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
28723 visible (to allow them to recalculate their sizes)
28725 2006-03-21 Mike Kestner <mkestner@novell.com>
28727 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
28728 methods. Removed a ton of redundant code. Still not really happy with
28729 the border rendering, but I think that's mainly because of the
28730 ControlDarkDark being black instead of a dark grey. Depending on how
28731 close we want to be, we might want to revisit those color choices.
28732 Among the new features added during the refactor were DropDownArrow
28733 pressed rendering, Disabled image rendering. Proper flat appearance
28734 boundary rendering. Removed the Divider and Wrapping dividers since I
28735 can't figure out any combination of themes and conditions to make the
28736 MS control draw a horizontal line on a toolbar despite what the
28737 Divider property docs indicate.
28738 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
28739 conditions and incorrect layout. Updated to coding standard.
28740 * ToolBarButton.cs: refactored layout and positioning code from
28741 ToolBar to here. Invalidate wherever possible instead of forcing
28742 redraws of the whole toolbar.
28743 (Known remaining issues: explicit ButtonSize smaller than provided
28746 2006-03-21 Mike Kestner <mkestner@novell.com>
28748 * ContextMenu.cs (Show): use the position parameter instead of just
28749 showing at the MousePosition.
28751 2006-03-21 Jackson Harper <jackson@ximian.com>
28753 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
28754 control handle this.
28755 * TreeNodeCollection.cs: If we are clearing the root node we need
28756 to reset top_node so calcs can still happen.
28757 * ThemeWin32Classic.cs: This is a Flags so we need to check
28760 2006-03-21 Jackson Harper <jackson@ximian.com>
28762 * DataGrid.cs: Create columns when the binding context has been
28764 * X11Structs.cs: Keysyms are uints.
28765 - Add size to fix build.
28767 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
28769 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28771 - Added ResetMouseHover method to allow controls to retrigger
28772 hovering if they need it more than once
28773 - Implemented MouseHoverTime and MouseHoverSize properties
28774 * Timer.cs: Start() must reset the interval
28775 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
28778 2006-03-21 Jackson Harper <jackson@ximian.com>
28780 * X11Keyboard.cs: improved layout detection. Move the nonchar
28781 tables into this file.
28782 * KeyboardLayouts.cs: Move the tables into resource files.
28784 2006-03-21 Mike Kestner <mkestner@novell.com>
28786 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
28788 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
28790 * Mime.cs: Various speed optimizations. Looking up mime types
28791 is now 2 times faster than before
28793 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
28795 * CreateParams.cs: Added internal menu field
28797 - Switched call order for UpdateBounds; now we always call
28798 the one that also takes ClientSize, and we're calculating the
28799 client size via driver method in the others. The previous
28800 method of tracking client size by difference wasn't working
28801 for forms where even the starting client size wouldn't match
28802 the overall form size (due to borders) (Part of fix for #77729)
28803 - CreateParams(): Do not use parent.Handle unless the handle is
28804 already created. Causes havoc with Nexxia and throws off our
28805 creation of controls
28807 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
28808 - Switched handling of ConfigureNotify over to new PerformNCCalc
28809 method (consolidates code)
28810 - Changed RequestNCRecalc to use new PerformNCCalc method
28811 - Added calls to RequestNCRecalc when menus and borders are changed
28812 to allow app to set NC size. (Part of fix for #77729) This matches
28813 when MS send a WM_NCRECALC on Win32 windows.
28814 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
28815 (Part of fix for #77729). This matches what MS does, they also
28816 send that message when the form is made visible.
28817 - XException.GetMessage: Improved usability of X errors by including
28818 a translation of the window into Hwnd and Control class
28819 - Improved debug info for window creation, reparenting and destruction
28820 - Created helper method WindowIsMapped() [Currently not used]
28821 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
28823 - CreateParams: Now setting our menu on the new internal menu field
28824 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
28825 avoid calculating the same property twice
28827 - Improved usability of ToString() for debugging purposes
28828 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
28829 determine the height of the menu, instead of just the font. This
28830 required to also create a graphics context and to keep a bmp
28831 around (for performance reasons)
28833 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
28835 * MenuAPI.cs: Added OnMouseUp method
28837 - Now remembering the requested client size, avoids size errors
28838 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
28839 instead of base if the menu is active. This is required due to
28840 control now capturing and releasing on down/up and it would
28841 prematurely release our menu capture
28843 2006-03-17 Jackson Harper <jackson@ximian.com>
28845 * KeyboardLayouts.cs: Add the czech layouts.
28847 2006-03-16 Jackson Harper <jackson@ximian.com>
28849 * Control.cs: Use the viewport space when sizing not the controls
28850 client size, so things like ScrollableControl that effect the
28851 viewport size (when scrollbars are added) are computed correctly.
28852 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
28854 - Handle creating BindingManagers for null data sources.
28855 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
28856 source, otherwise when rows are added they are added to the 'fake'
28857 datasource and we will crash when trying to set the position in
28859 - Use Implicit scrollbars on the datagrid so they arent
28862 2006-03-16 Jackson Harper <jackson@ximian.com>
28865 * InternalWindowManager.cs:
28866 * MdiWindowManager.cs:
28867 * X11Keyboard.cs: I really want Mike to love me again (fix
28868 compiler warnings).
28870 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
28873 - OnMouseDown: Switch to editing mode when clicking on the cell
28874 even if we're clicking on the cell that's currently
28876 - ProcessGridKey: Left/Right now wrap like MS.Net does
28877 - ProcessGridKey: Tab now knows to add a new row when tab is
28878 pressed in the cell of the last column of the
28880 - ProcessGridKey: Enter now adds another row if pressed in the last
28881 row and selectes the new row, same column cell
28882 - ProcessGridKey: Home/End navigate columns, not rows, like
28883 originally implemented
28884 - Broke ProcessKeyPreview code out into an extra Internal method
28885 so it can be called from the edit code
28886 * DataGridTextBox.cs (ProcessKeyMessage):
28887 - Switched to accept Tab keypresses
28888 - Added F2 handling to allow jumping to the end of the edited cell
28889 - Added logic to allow moving caret left/right inside edited cell
28890 and making the edited cell jump when the caret hits cell borders
28891 - Tab and Enter are now passed to the datagrid after being handled
28893 - Removed capture code now that Control handles it
28894 - set_SelectionStart now ensures caret is visible
28896 2006-03-16 Jackson Harper <jackson@ximian.com>
28898 * TrackBar.cs: Debackwards the increment/decrement for handling
28899 mouse clicks on the bar with vertical trackbars.
28900 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
28901 bottom to match MS.
28903 2006-03-16 Mike Kestner <mkestner@novell.com>
28905 * ListView.cs: make shift/ctrl keyboard and mouse selection
28906 consistent with the MS control. Fix a bug in
28907 SelectedListViewItemCollection.Clear that was pissing me off for the
28908 better part of a day because the collection was being altered
28909 underneath us as we walked the list.
28911 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
28913 * Control.cs: Not sure how we could miss this so long, but it seems
28914 that MS.Net has Capture set all the way from before calling
28915 OnMouseDown through sending the mouse events until after
28916 OnMouseUp. This will fix DataGrid's selection being set to end
28917 at the location of the MouseUp.
28919 2006-03-15 Jackson Harper <jackson@ximian.com>
28921 * BindingContext.cs: Check the binding after its added so that it
28922 can initialize the binding managers and hookup to events.
28923 * Binding.cs: Data members seem to sometimes include rows/cols in
28924 the format Row.Column we now take this into account.
28925 - Hookup to the position changed event so we can update the
28926 control when the position has changed in the data set.
28927 * CurrencyManager.cs: Take into account the row/col naming
28928 convention when creating dataset tables.
28929 * BindingContext.cs: Using a newer better way of storing
28930 datasource/datamember pairs. Hopefully this better matches MS for
28931 looking up binding managers.
28934 2006-03-15 Jackson Harper <jackson@ximian.com>
28936 * BindingContext.cs: The currency manager needs the data member
28937 name, if the member is a data set we use the name to find the
28939 * CurrencyManager.cs: When creating the list prefer an IList over
28941 - Attempt to create a DataTable from a DataSet (TODO: might need
28942 some better error checking here, although MS doesn't seem to have much)
28943 - If we have a DataTable create a view and use it as our list.
28945 2006-03-15 Mike Kestner <mkestner@novell.com>
28947 * ListView.cs: keep a matrix of the icon mode layout to facilitate
28948 keyboard navigation. Support Up/Down/Left/Right selection correctly
28949 for all 4 View modes.
28950 * ListViewItem.cs: add internal row/col fields for icon layouts.
28952 2006-03-15 Jackson Harper <jackson@ximian.com>
28954 * TabControl.cs: Redraw the tabs when we resize so their newly
28955 calculated sizes are drawn on screen.
28956 * X11Keyboard.cs: Begginnings of XIM support. We also now support
28957 composite characters.
28958 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
28959 - filter events so that composite characters can be created
28961 * X11Structs.cs: Add XIMProperties enum.
28963 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
28965 * Control.cs (BringToFront, SendToBack): Don't use window or handle
28966 unless it's created
28968 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
28970 * Control.cs (PerformLayout): We don't need to consider visiblity
28971 for anchoring, only for docking. This fixes 'whacky' alignment
28972 in listbox and other controls that use implicit scrollbars after
28973 the previous PerformLayout patch
28974 * ListBox.cs: Switched to use implicit scrollbars
28976 2006-03-14 Mike Kestner <mkestner@novell.com>
28980 - chain up the "new event" overrides to base and use
28981 OnEvent to raise them. Part of fix for bug #76509.
28983 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
28985 * FileDialog.cs: Do not select an item in the parent directory
28988 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
28990 * Control.cs (PerformLayout): It would seem that we considered
28991 invisible windows for our layout. Not quite the right thing
28992 to do. Now we don't any longer, thereby fixing bug #76889.
28994 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
28996 * Control.cs (CanFocus): I goofed. A control can have focus
28997 even though it's not selectable. Made it match MS docs.
28999 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
29001 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
29002 center by default (fixes #76895)
29003 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
29004 all uses of Border3DSides.All with the explicit ORd together
29005 Left|Right|Top|Bottom because I assume that nobody was aware
29006 that All also implies a center fill. Most places I checked had
29007 a fill right above.
29008 * ProgressBarStyle.cs: Added
29010 2006-03-13 Mike Kestner <mkestner@novell.com>
29012 * ListView.cs: fix breakage in drag shadow header positioning
29013 from Peter's csc compilation fix.
29015 2006-03-13 Mike Kestner <mkestner@novell.com>
29017 * ListView.cs: fix NRE produced by backspacing twice in a focused
29020 2006-03-13 Mike Kestner <mkestner@novell.com>
29022 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
29024 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
29026 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
29028 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
29029 the allowed size before making programmatic size changes
29031 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
29033 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
29034 set, metacity is broken and will still use the emty sizes in
29035 the struct. (Fix for #77089)
29037 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
29039 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
29040 WindowExStyles and marked both enums as Flags
29041 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
29042 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
29043 to match WindowStyles split
29045 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
29046 - Updated to match WindowStyles split
29048 - Fixed FosterParent creation, was using ExStyle on the Style field
29049 (This should help with Popup focus issues)
29050 - Updated to match WindowStyles split
29052 2006-03-13 Jackson Harper <jackson@ximian.com>
29054 * MdiWindowManager.cs: Use the system menu height. Fixes some
29055 strange sizing issues.
29057 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
29059 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
29061 - Scroll to caret after inserting text (#77672)
29062 - Make scroll range one pixel higher, fixes off-by-one error (and
29063 makes underlines visible on the last line)
29065 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
29067 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
29068 the keyboard state from being stuck with keys in 'pressed' state when
29069 focus is switched away via keyboard
29070 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
29071 reset the keyboard if no X11 KeyUp events are expected to come
29072 * X11Structs.cs: Switched type of Visible to bool to match driver
29074 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
29077 - Switched caret to be just 1 pixel wide, matches MS and looks less
29079 - Moved caret display 1 pixel down from the top of the control
29081 - InsertCharAtCharet: Update the selection start if moving the caret
29082 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
29083 - No longer always creating the caret when the caret methods are
29084 called. Only the actual ShowCaret/HideCaret will do that now
29085 - Only setting caret visible if the owner control has focus
29086 - UpdateView: Added invalidation-shortcut logic for center and right
29087 aligned text. Previously we'd update all according to the left
29088 logic which caused drawing errors. Also fixed height of invalidated
29089 areas, now properly invalidating the whole area (was off-by-one)
29090 - owner_HandleCreated: Always generate the document when the
29091 handle is created; this ensures that
29093 - Fixed situation where caret would disappear under the right
29094 window border, also improved scrolling behaviour on left-
29096 - Fixed right-aligned textboxes to have a border to the
29097 right instead of the caret being under the right border
29099 - Switched from 'nested' to simple visible/not visible tracking
29100 for caret (part of fix for #77671)
29101 - No longer passing through translated FocusIn/FocusOut messages
29102 since we were notifying too often and the wrong windows. Instead
29103 we just notify our focussed window of receiving or loosing focus
29104 * XplatUIWin32.cs: Switched from 'nested' show/hide
29105 counting for caret to simple visible yes/no behaviour (part of
29108 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
29110 * Mime.cs: Remove debug code...
29112 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
29114 * MimeGenerated.cs: Removed
29115 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
29116 and subclasses) from /usr/(local/)share/mime and
29117 $HOME/.local/share/mime.
29119 2006-03-10 Jackson Harper <jackson@ximian.com>
29121 * MdiWindowManager.cs: Recalc the NC area when a window is
29122 maximized/restored so that the menu area is drawn on forms that
29125 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29127 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
29128 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
29129 us to force a WM_NCCALCRESIZE message being sent. This is needed
29130 for MDI maximizing.
29132 2006-03-10 Jackson Harper <jackson@ximian.com>
29134 * Form.cs: We need to use the ActiveMenu when calculating menu
29136 - Fix nullref when the window manager hasn't been created yet.
29137 * Control.cs: Fix nullref when we try to bring a control to the
29138 front that has no parent.
29139 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
29141 - Add a dummy item to the maximized menu so it always has the
29142 correct height. Otherwise when there are no menus we don't get our
29146 2006-03-10 Jackson Harper <jackson@ximian.com>
29148 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
29150 * Form.cs: Make the window_state internal so the window managers
29152 - When an MDI child is maximized let its window manager create the
29153 main menu (so it can add its icon).
29154 - Notify the window managers of state changes
29155 - Let the window manager paint its buttons and handle button
29156 clicks on the menu when it is maximized.
29157 * InternalWindowManager.cs: Move the prev_bounds into the mdi
29158 window manager, since tool windows don't use it, only mdi windows.
29159 - Tell the main form that we don't want it to handle NCPAINT
29160 itself to avoid extra painting.
29161 - Handle clicks on a maximized windows menu.
29162 - Handle window state changes
29163 - Handle minimize/maximize clicks correctly by setting the window state.
29164 * MdiWindowManager.cs: Add an icon menu that (the menu you get
29165 when clicking on the forms icon).
29166 - New method to create a forms maximized menu. This is its normal
29168 - Handle window state changes.
29169 - Handle sizing of maximized windows. Maximized windows are just
29170 drawn bigger then the parent visible area. All controls are still
29171 there, they are just outside the visible area (this matches windows).
29172 * MdiClient.cs: No scrollbars when a child window is maximized.
29173 - Let the children windows figure out how big they should be when
29174 sizing maximized windows.
29175 - Implement a version of ArrangeIconicWindows somewhat similar to
29176 Windows version. There are some little differences, but I don't
29177 think any app will rely on the layout of minimized mdi windows.
29179 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29181 * Padding.cs: Several fixes to allow compiling with csc 2.0
29183 2006-03-09 Jackson Harper <jackson@ximian.com>
29186 * MenuItem.cs: Cheap hack so we can add items to the list without
29187 the events being raised. This allows adding mdi items during
29188 drawing. TODO: Should probably find a better time to add the items.
29190 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29192 * ThemeWin32Classic.cs:
29193 - CheckBox_DrawText: Added logic to not wrap if not enough space
29194 is available (Fix for bug #77727)
29195 - RadioButton_DrawText: Added logic not to wrap if not enough
29196 space is available (Fix for bug #77727). Also removed some
29197 duplicate code, DrawString always drawing the regular text
29198 before hitting the if statement.
29200 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29202 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
29204 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29206 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
29207 * ContainerControl.cs: Partial implementation of some 2.0 scaling
29208 methods. Moved the new 2.0 properties into alphabetical order with
29209 other properties and added MonoTODO tags
29211 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29213 * AutoScaleMode.cs: Added. Fix build.
29215 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29217 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29218 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
29219 and was requiring premature handle creation for calls from above
29220 * Form.cs, Control.cs: Removed handle arguments from calls to
29221 CalculateClientRect()
29223 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29225 * ListView.cs (HeaderMouseMove): Fix csc compilation.
29226 drag_column.column_rect is MarshalByRef and can't be used that way
29228 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29230 * AxHost.cs: Added deserialization constructor for
29231 AxHost+State (fixes 77743)
29233 2006-03-09 Mike Kestner <mkestner@novell.com>
29236 - Added column drag reordering for details view.
29237 - fixed behavior when mouse is dragged off column and
29238 AllowColumnReorder is false.
29239 * ColumnHeader.cs: clone the format too in Clone.
29240 * Theme.cs: add DrawListViewHeaderDragDetails method.
29241 * ThemeWin32Classic.cs:
29242 - impl new method for drawing drag column shadows and targets.
29243 - support column offset for details mode in DrawListViewItem.
29245 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29247 * TextControl.cs: Reset the char_count when the document is cleared
29248 (Fixes bug reported on mono-winforms mailing list)
29250 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29252 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
29253 of calling base we simply process the key ourselves, since both
29254 DefWindowProc and the handled method would set m.Result.
29257 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29259 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
29260 method also moves the window; instead implemented a copy of
29261 Control.ScaleCore (Part of fix for #77456)
29263 - Created new CreateGraphicsInternal method to allow providing
29264 a graphics context when no handle is created without triggering
29265 handle creation. (Part of fix for #77456)
29266 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
29268 - Switched Constructor to require TextBoxBase instead of Control (to
29269 allow uncast access to CreateGraphicsInternal)
29270 - Safeguarded use of owner.Handle property. No longer accessing it
29271 unless the handle is already created.
29272 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
29273 - Now triggering a recalc when owning control becomes visible
29274 * TextBox.cs, RichTextBox.cs: Switched to use new internal
29275 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
29276 premature handle creation (Part of fix for #77456)
29278 - We now only destroy our double-buffering buffers when the
29279 control is resized or disposed, but not when visibility
29280 changes. (The code even re-created them twice every time)
29281 - Now requiring a redraw of the buffer on visibility changes
29282 (fixes bug 77654 part 2)
29283 - Not passing OnParentVisibleChanged up unless the control
29285 - CanFocus: Fixed to match MS documentation
29286 - Focus: Fixed to return actual focus state and to check if
29287 setting focus is legal before setting it
29289 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
29291 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
29292 when to draw focus rectangle by looking at parent focus and
29293 selected state instead. This fixes TabPages on Linux sometimes
29294 having none or multiple focus rectangles.
29295 * XplatUIX11.cs (SetFocus):
29296 - Don't set the focus if the same window already has focus
29297 - Use SendMessage instead of PostMessage (like it's Win32
29298 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
29299 to match MS behaviour
29300 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
29301 are not selectable.
29303 2006-03-07 Jackson Harper <jackson@ximian.com>
29305 * PictureBox.cs: Revert line I accidently committed last week.
29307 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
29310 - Added new IsRecreating and ParentIsRecreating properties to
29311 allow testing if RecreateHandle has been called on ourselves
29312 or one of our parents
29313 - WndProc(WM_DESTROY): If our control handle is being recreated
29314 we immediately need to create the handle when receiving the
29315 destroy, that way our child windows find a valid parent handle
29316 when they themselves are being recreated upon WM_DESTROY receipt
29317 (fix for bug #77654 part 1)
29319 - DestroyWindow: WM_DESTROY must be sent to our own window before
29320 notifying any child windows. MS documents that child windows
29321 are still valid when WM_DESTROY is received. (Control now relies on
29323 - Added some fine-grain debug options
29325 2006-03-06 Jackson Harper <jackson@ximian.com>
29327 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
29328 box and base calculations off this.
29329 * MdiChildContext.cs:
29330 * MdiWindowManager.cs: Don't need to ensure scrollbars here
29333 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
29335 * Splitter.cs: In situations where the affected control is added
29336 to the parent's control list after the splitter, we would not
29337 populate affected. Now we try populating it on mousedown, if
29338 it's not already set, and force it to be re-set whenever our
29341 2006-03-03 Matt Hargett <matt@use.net>
29343 * Control.cs: implement Control.Padding
29344 * Padding.cs: -Padding.All returns -1 when constructing with the
29345 implicit default ctor
29346 -Padding.ToString() matches MS.NET
29347 * ContainerControl.cs: implement
29348 ContainerControl.AutoScaleDimensions
29349 * ListControl.cs: implement ListControl.FormattingEnabled
29350 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
29352 * TabPage.cs: Implement UseVisualStyleBackColor.
29353 * PictureBox.cs: Implement PictureBox.InitialImage.
29355 2006-03-03 Mike Kestner <mkestner@novell.com>
29357 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
29358 event declarations to proxy to base event.
29359 * ListViewItem.cs: update to use ItemControl.
29360 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
29361 * ThemeWin32Classic.cs: update to new ListView theme API and fix
29362 column header label rendering for 0 width columns.
29364 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
29366 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
29367 that causes the control to be created. Fixes #77476.
29369 2006-03-02 Jackson Harper <jackson@ximian.com>
29371 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
29374 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
29376 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
29377 passed in for the EventArgs (fixes #77690)
29379 2006-03-01 Jackson Harper <jackson@ximian.com>
29381 * ScrollBar.cs: Refresh afterbeing resized.
29383 2006-02-28 Mike Kestner <mkestner@novell.com>
29385 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
29386 Clean up a tracker compile warning.
29387 * MenuItem.cs: add internal PerformPopup method.
29390 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
29392 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
29393 implicit expose) when the text is set to null
29395 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
29397 * RichTextBox.cs (FlushText): When newline is true, we always
29398 need to split the line, even if no text is on it and we may
29399 never eat newlines. (Fixes #77669)
29401 2006-02-28 Mike Kestner <mkestner@novell.com>
29403 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
29404 and set Selected instead.
29405 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
29408 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
29410 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
29412 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
29415 - Got rid of the panel. All controls are now directly added to
29417 - It is now possible to set a font with the Font property
29418 - MinSize and MaxSize property do now what they should
29419 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
29420 - Searching and selecting a font with the font textbox works now,
29421 the same applies to the style and size textbox
29422 - Draw the correct 3D border in the example panel
29423 - Fixed a little mem leak (unused fonts didn't get disposed)
29424 - Many other internal updates/rewrites...
29427 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
29430 - InsertRTFFromStream: Added 'number of characters inserted' argument
29431 - set_SelectedRTF: Now using the number of characters to calculate
29432 the new location for the selection and cursor (x/y cannot be used
29433 due to potentially already wrapped text)
29435 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
29437 * TextControl.cs: Added property and implemented means to allow
29438 disabling recalculation of a document (can be used to speed up
29439 multiple inserts and is needed to make RTF inserts predictable, see
29441 * RichTextBox.cs: Using the new NoRecalc property of Document to
29442 keep x/y insert locations predictable. Also makes it faster inserting
29443 large chunks of RTF
29445 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
29447 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
29448 it's easier for a child control to handle the other messages without
29449 having to duplicate the special functionality
29451 - WndProc: Removed calling base handler for WM_KEYDOWN and added
29452 code to handle processing the key ourselves, in order to get
29453 access to the result of KeyEventArgs.Handled. We now only call
29454 ProcessKey if they key hasn't been handled already. Fixes #77526.
29455 - set_Text: If null or empty string is given, just clear the
29456 document. Fixes part of #77526
29458 2006-02-27 Jackson Harper <jackson@ximian.com>
29460 * SizeGrip.cs: Paint the background color before painting the grip
29461 so things look right.
29462 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
29464 2006-02-27 Mike Kestner <mkestner@novell.com>
29467 - Restructure layout and invalidation model to remove a ton of
29468 flicker from the control and speed up performance in general.
29469 - Add manual column resize, flickers like crazy, but I already have
29470 some ideas on how I'll fix that. (#76822)
29471 - Merge the three Icon-based views into a single layout method.
29472 - Move item selection interaction logic from the item since
29473 interaction with the collections is more appropriate to the view.
29474 - Deselection on non-item clicks.
29476 - Encapsulate most of the layout. Add some internal props to trigger
29477 layout. Move to a model where Items invalidate themselves instead
29478 of just invalidating the whole control every time something changes.
29479 - Invalidate on Text/Caption changes.
29480 - switch to an offset based layout model to avoid having to absolute
29481 position every element on item moves.
29482 - correct checkbox layout to conform to MS layout.
29483 * ThemeWin32Classic.cs:
29484 - refactor some column header drawing code.
29485 - fix string justification for column headers (#76821)
29486 - make SmallIcon labels top justified for compat with MS impl.
29487 * ThemeClearlooks.cs:
29488 - adjust to new ListViewItem internal checkbox bounds api.
29490 2006-02-27 Jackson Harper <jackson@ximian.com>
29492 * Control.cs: Change where implicit controls fall in the zorder.
29493 They are now on top of all children.
29494 - Synced AddImplicit code with Add
29495 - Removed unused enumerator.
29496 * SizeGrip.cs: Remove the TODO as its been TODONE.
29498 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
29500 * TextControl.cs(Insert): Combine the last lines unless the insertion
29501 string ends with \n\n, otherwise we leave one line too many (Fixes
29502 something I noticed with the testapp for #77526; the bug itself was
29503 already fixed in the previous checkin)
29505 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
29508 - SelectionColor and SelectionFont methods no longer set absolute
29509 styles. Instead, the keep font or color respectively (This
29510 resolves a long-standing FIXME in the code)
29511 - When flushing RTF text, the insert code now considers text trailing
29512 behind the insertion point (Fixes the bug where when replacing
29513 the selected text via SelectedRTF the remainder of the line behind
29514 the selection would stay on the first insertion line)
29516 - AppendText now updates the selection points after inserting text
29517 - AppendText now ensures that the last tag (sometimes 0-length) of
29518 the document is used for the style information (Fixes part of
29521 - Created new FontDefiniton class to allow describing partial style
29523 - StreamLine() now takes a lines argument, to allow it to decide
29524 whether an encountered zero-length tag is the last in the document
29525 (which must be kept to not loose the font/color contained in it,
29527 - Created Combine() and Split() methods for Marker structs, to
29528 support marker updates due to reformatted documents (soft line
29530 - Implemented Document.CaretTag setter
29531 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
29532 of the last line (Not the cause, but also exposed by bug #77220)
29533 - Added LineTag argument to InsertString method, to allow callers
29534 to force a certain tag to be used (required to force use of the
29535 trailing zero-length tag of a document)
29536 - Now updating markers in Combine(), to avoid stale tag markers
29537 - Added some method descriptions to aid maintenance
29538 - Implemented new FormatText concept, allowing additive/subtractive
29539 formatting by only specifying the components that are to be
29540 changed. This was needed for resolving the RTB.SelectedColor/
29541 RTB.SelectedFont fixmes
29542 - Added Break() support method to allow breaking up linetags (used
29543 for partial formatting)
29544 - Added GenerateTextFormat() method. It is used for partial
29545 formatting and allows to generate a full font/color from given
29546 attributes and an existing tag.
29548 2006-02-26 Jackson Harper <jackson@ximian.com>
29550 * XplatUIX11.cs: Use the correct caption height.
29551 - Translate hittest coordinates to screen coords to match MS.
29552 * XplatUIWin32.cs: When we create MDI windows we need to reset
29553 some of the style flags, so we get a nice blank window, and can
29554 draw all the decorations ourselves.
29555 - Set a clipping rectangle on the non client paint event, the
29556 window manager drawing code needs one.
29557 * Form.cs: The window manager needs to know when the window state
29559 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
29560 don't need to factor in border and title sizes in these
29561 methods. TODO: Remove the args and fix the call points.
29562 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
29564 - Let the driver set the cursors.
29565 - Improve active window handling
29566 - Correct sizes for title bars and buttons.
29567 - Match MS drawing better
29568 * MdiWindowManager.cs: We don't need to handle border style
29569 updates specially anymore.
29570 - Check for scrollbars when windows are done moving
29571 - Handle Active properly.
29572 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
29573 correctly. I am spewing the exception though, so we don't hide the
29576 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
29578 * DataGridViewRowPostPaintEventArgs.cs,
29579 DataGridViewCellPaintingEventArgs.cs,
29580 DataGridViewRowCollection.cs,
29581 DataGridViewRowPrePaintEventArgs.cs,
29582 DataGridViewCell.cs: Clear a few warnings and implement a few
29583 exceptions that should be thrown.
29585 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
29587 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
29588 'inheriting' our parent's (non-default) cursor. (Part of
29589 the fix for #77479)
29591 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
29593 * XplatUIX11.cs: Fixed cast to make csc happy
29595 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
29597 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
29598 it's for the client area (part of fix for #77479 and needed
29599 for MDI window cursor handling)
29601 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
29602 the appropriate default cursors and also passing the message
29603 up the parent chain
29604 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
29605 for non-client areas
29607 2006-02-15 Jackson Harper <jackson@ximian.com>
29609 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
29610 is a real MDI window
29612 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
29614 * X11DesktopColors.cs: Instead of checking the desktop session
29615 string for "KDE" check if it starts with "KDE"
29617 2006-02-10 Jackson Harper <jackson@ximian.com>
29619 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
29622 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
29624 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
29627 - Got rid of the panel. All controls are now directly added to
29629 - Changed to mono coding style
29631 2006-02-10 Jackson Harper <jackson@ximian.com>
29633 * InternalWindowManager.cs: We don't need the set visibility to
29634 false hack anymore now that peter has written beautiful shutdown
29637 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
29639 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
29640 where already explicitly destroyed
29642 2006-02-10 Jackson Harper <jackson@ximian.com>
29644 * MdiClient.cs: Handle the case where windows are too high or to
29645 the left and we need scrollbars.
29647 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
29649 * MimeIcon.cs: Added some icons
29652 - Got rid of the panel. All controls are now directly added to
29654 - Changed to mono coding style
29655 - On Linux "My Computer" and "My Network" will now show some
29656 more usefull information. A new class, MasterMount, gathers
29657 this information from /proc/mount. Updated MWFFileView to make
29658 use of this information
29659 - Fixed a bug that caused FileDialog to crash when
29660 ".recently_used" file had a zero size
29661 - FilterIndex does now what it should
29663 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
29666 2006-02-09 Jackson Harper <jackson@ximian.com>
29668 * ComboBox.cs: Don't touch if null.
29670 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
29672 * Cursor.cs: 64bit safeness fix
29673 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
29675 2006-02-09 Jackson Harper <jackson@ximian.com>
29677 * Form.cs: If a form is made into an MDI form update the styles so
29678 all the props can get set correctly.
29679 - Kill the mdi_container when we dont need it anymore.
29680 * InternalWindowManager.cs: Add missing NOT
29682 2006-02-08 Jackson Harper <jackson@ximian.com>
29684 * InternalWindowManager.cs: Respek clipping when drawing MDi
29687 2006-02-08 Jackson Harper <jackson@ximian.com>
29689 * Hwnd.cs: Add bits to track non client expose events.
29690 * XplatUIX11.cs: Track non client expose events on the hwnd. This
29691 gives us a proper invalid rect and will allow for some nice
29692 optimizations with NC client drawing
29693 - MDI windows are children windows, so move their style handling
29694 into the child window block.
29695 * InternalWindowManager.cs: Remove a state reset that was
29696 getting invoked at the wrong time. Fixes managed windows getting
29697 into a 'stuck' captured state.
29699 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
29701 * TextControl.cs (Document.ctor): Now initializing
29702 selection_anchor. Fixes #77493
29704 2006-02-07 Jackson Harper <jackson@ximian.com>
29706 * TrackBar.cs: The increment/decrements were backwards.
29708 2006-02-07 Mike Kestner <mkestner@novell.com>
29710 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
29711 to the instance itself.
29713 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
29715 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
29716 on ulongs and pointers, the size differs between 32bit and 64bit
29719 2006-02-07 Mike Kestner <mkestner@novell.com>
29721 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
29722 for 64 bit platforms to work around a metacity bug.
29724 2006-02-07 Jackson Harper <jackson@ximian.com>
29726 * TrackBar.cs: Process the input keys we need, and hookup to
29727 KeyDown instead of using WndProc, so we get key messages.
29729 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
29731 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
29733 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
29734 we need to translate the XdndVersion atoms array before sending it
29736 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
29739 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
29740 number of bits for the property, not the number of bytes. The
29741 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
29742 but would not crash since it specified 8 bits instead of 4 bits)
29743 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
29744 defined as XID -> long in the C headers)
29745 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
29746 references since those are now IntPtr to begin with
29747 - Switched all Atom.XXX 'int' casts to IntPtr casts
29748 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
29749 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
29750 - Added XChangeActivePointerGrab DllImport (for X11DnD)
29752 - Changed 'int' type for Atoms in XEvent structures to IntPtr
29753 - Changed atom in HoverStruct to be IntPtr
29755 - Removed local DllImports, switched code to use those from XplatUIX11
29756 - Removed/fixed casts related to the switch of Atom to be a IntPtr
29758 2006-02-06 Mike Kestner <mkestner@novell.com>
29760 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
29761 method signatures in the import region. There may still be some
29762 lingering struct marshaling issues, as I didn't drill down into those.
29765 2006-02-06 Jackson Harper <jackson@ximian.com>
29767 * ComboBox.cs: Dont manually set the top_item, this is computed
29768 when the scrollbar position is set.
29770 2006-02-06 Mike Kestner <mkestner@novell.com>
29772 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
29773 startup crashes on amd64. There's other fixes needed. All pinvoke
29774 usage of Atom needs to be mapped to IntPtr for example. And there are
29775 likely other int/long issues to be addressed.
29777 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
29779 * FileDialog.cs: One more...
29781 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
29783 * FileDialog.cs: Next try
29785 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
29787 * FileDialog.cs: First part of fix for #77464
29789 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
29791 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
29792 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
29793 AcceptButton border drawing.
29795 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
29797 * Form.cs: Moved positioning of form after auto scaling is applied,
29798 otherwise it would possibly use wrong form size.
29800 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
29802 * Control.cs (RecreateHandle): No need to re-create any child
29803 controls, the child windows will get destroyed automatically by
29804 the windowing system or driver, and re-created when the handle
29805 is being accessed the first time. Fixes #77456
29806 * Form.cs: No longer setting the form to closing if the handle is
29807 being recreated. This seems like the right thing to do, don't
29808 have a bug or testcase for this, though.
29810 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
29812 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
29813 controls to avoid unwanted side effects
29815 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
29818 - ScaleCore needs to scale the bounds, not the ClientSize of the
29819 control. Fixes #77416.
29820 - DefaultSize is 0,0 for control
29822 - DefaultSize is 100, 20
29823 - SetBoundsCore: Now enforcing the height, no matter if the provided
29824 height is more or less than the preferred one, as long as AutoSize
29826 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
29828 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
29831 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
29832 call unless both performLayout is true *and* we have a pending
29834 - ResumeLayout: MS does not completely nest Suspend and Resume,
29835 they bottom out at 0, fixed our code to match that.
29836 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
29837 SetBoundsCore, we were updating even when we shouldn't. This fixes
29838 swf-anchors mis-anchoring when resizing the app fast and lots.
29839 - UpdateDistances: Now only setting the left and top distance if
29840 we have a parent and are not suspended, this is based on
29841 a suggestion by Don Edvaldson in bug #77355.
29842 - OnVisibleChanged: Fixed logic when to create the control. We may
29843 not create the control if we have no parent or if it's not visible;
29844 switched to using Visible property instead of is_visible field
29845 since the property also considers parent states. This fixes a bug
29846 when starting Paint.Net
29848 2006-02-02 Jackson Harper <jackson@ximian.com>
29850 * Form.cs: If the forms handle hasn't been created yet don't call
29851 into xplatui to make it top most, just set the topmost flag on the
29852 form in CreateParams
29853 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
29855 2006-02-01 Jackson Harper <jackson@ximian.com>
29857 * ScrollableControl.cs: Refactored the Recalculate method a
29858 little, this wasn't handling all the variants of bottom and right
29859 bars needed to be added and added/removed based on their
29860 counterparts being added/removed (which changes the drawable
29861 size). Also we special case client widths and heights of 0 and
29862 don't add the scrollbar for those.
29864 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
29867 - Added method to get AbsoluteGeometry(); currently unused, but might
29868 be used in the future, if we try again to figure out toplevel
29869 coordinates with some more crappy window managers
29870 - Added FrameExtents() method to retrieve the WM set decoration size
29871 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
29872 to deal with at least KDE, FVWM and metacity (Fixes #77092)
29874 - Added whacky_wm tracking var for metacity
29875 - Added logic to have default menu height if the actual menu height
29876 has not yet been calculated (part of fix for #77426)
29877 * Form.cs: Keep track whether client size has been set and re-set
29878 it if a menu is added/removed afterwards (Fixes #77426)
29880 2006-01-31 Jackson Harper <jackson@ximian.com>
29882 * Control.cs: When a new Site is set on the component attempt to
29883 pull the AmbientProperties from it.
29885 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
29887 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
29888 in the background of the owning form. Fixes #77332
29890 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
29892 * MimeIcon.cs: Fix for #77409
29894 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
29896 * XplatUIX11GTK.cs: Initial import
29898 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
29900 * FixedSizeTextBox: fixes class signature
29902 2006-01-30 Jackson Harper <jackson@ximian.com>
29904 * FixedSizeTextBox.cs: New internal class that represents a
29905 textBox that will not be scaled.
29908 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29911 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
29913 * XplatUIX11.cs: Retrieve default screen number instead of
29914 assuming 0. Attempted fix for #77318
29916 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
29919 - GetWindowPos: When a window is parented by FosterParent, use
29920 the desktop instead of FosterParent as the base to get coordinates
29921 - CreateWindow: Don't make FosterParent the parent window for Popups
29922 if we don't want a taskbar entry, Popups automatically don't get one
29923 * Hwnd.cs: Need to call remove to actually remove the key from the
29926 2006-01-30 Mike Kestner <mkestner@novell.com>
29928 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
29930 2006-01-30 Jackson Harper <jackson@ximian.com>
29933 * TreeNode.cs: Raise events no matter how the treenode is
29934 checked. Patch by Don Edvalson.
29936 2006-01-30 Jackson Harper <jackson@ximian.com>
29938 * TreeNode.cs: Signature fix.
29940 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
29942 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
29944 2006-01-20 Mike Kestner <mkestner@novell.com>
29946 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
29947 event forwarding when menus are active.
29948 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
29949 Most of the patch is pdb's with a little rework.
29951 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
29953 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
29954 Removed GetMenuDC and ReleaseMenuDC methods; replaced
29955 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
29956 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
29957 * InternalWindowManager.cs: Added use of PaintEventStart/End to
29958 handling of WM_NCPAINT message, now passing the PaintEventArgs to
29959 the PaintWindowDecorations method
29960 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
29961 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
29962 * MenuAPI.cs: Made tracker window invisible
29964 - Removed GetMenuDC and ReleaseMenuDC methods
29965 - Implemented the client=false path for PaintEventStart and
29968 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
29970 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
29971 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
29974 - MaximizeBox, MinimizeBox: Recreate the handle when setting
29976 - CreateParams: Reworked the styles to match MS look'n'feel,
29977 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
29978 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
29980 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
29982 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
29983 window is not mapped, since otherwise every form that's being
29984 created is considered minimized, which is wrong.
29985 * Form.cs: Catching the exception and returning our internal value
29988 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
29990 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
29991 SetWindowMinMax() to have means to tell the driver about the minimum,
29992 maximum and maximized state window sizes. (Part of the fix for #76485)
29994 - Implemented tracking of minimum and maximum window size, now calling
29995 new SetWindowMinMax() driver method to tell the driver (Part of the
29997 - Finished handling of WM_GETMINMAXINFO method, now setting all values
29998 (Completes fix for #76485)
29999 - Calling new SetWindowMinMax driver method when the handle for a
30000 form is created, to make sure the driver knows about it even if
30001 the values have been set before the window was created
30002 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
30003 to avoid messing up our anchoring calculations (partial fix
30005 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
30007 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
30008 - Improved GetWindowState() to detect 'Minimized' state on Metacity
30009 (and presumably other freedesktop.org compliant WMs). Left the
30010 assumption unmapped=minimized, needed for SetVisible to work.
30011 - Now setting the window state when creating windows
30012 - Fixed SetVisible to consider/set the window state when mapping
30013 a Form. We cannot set the state before it's mapped, and we cannot
30014 use Form.WindowState once it's mapped (since it would ask the
30015 driver and get 'normal'. Therefore, we grab the state before
30016 mapping, map, and then set state.
30017 - Implmemented SetWindowMinMax method; Metacity does not seem to
30018 honor the ZoomHints, though.
30020 - Removed MINMAXINFO (moved to XplatUIStructs)
30021 - Added SetWindowMinMax stub (on Win32 the only way to set that
30022 information is in response to the WM_GETMINMAXINFO message, which
30023 is handled in Form.cs)
30024 - Added logic to SetVisible to set the proper window state when a
30025 form is made visible (fixes #75720)
30027 2006-01-26 Jackson Harper <jackson@ximian.com>
30029 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
30030 same way we handle them with Invoke.
30032 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
30035 - Added tracking of window state so CreateParams can return
30036 the appropriate style
30037 - Moved setting of WS_CAPTION style in CreateParams to allow
30038 styles without caption
30039 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
30040 control if the TextBox property is accessed. Fixes #77345
30042 - get_Created: now uses is_disposed and is_created to determine
30043 return value (suggested by Jackson)
30044 - CreateHandle: No longer exits if the handle is being recreated
30045 - RecreateHandle: If the handle is not yet created call the
30046 appropriate method to create either control or handle. If the
30047 control is already created CreateHandle will simply exit instead
30048 of just creating the handle
30049 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
30050 now SendMessage WM_DESTROY directly to the control when DestroyWindow
30053 - When DestroyWindow is called, instead of waiting for the
30054 DestroyNotification from X11, we directly post it to the WndProc
30055 and immediately dispose the hwnd object.
30056 Same applies to DestroyChildWindows, and this obsoletes the
30057 expose_pending tracking. Contrary to Win32 behaviour we destroy our
30058 child windows before our own, to avoid X11 errors.
30059 - Removed the direct sending of WM_PAINT on UpdateWindow
30061 - Reworked DoEvents and GetMessage to allow access to internal queue
30062 even when trying non-blocking access to the queue. Fixes #77335.
30063 Based on a patch suggestion by Don Edvalson. The new private
30064 GetMessage can now also be used as a backend for a PeekMessage
30066 * XplatUI.cs: Improved debug output for CreateWindow
30068 2006-01-25 Jackson Harper <jackson@ximian.com>
30070 * Help.cs: Allow param to be null. Patch by Don Edvalson.
30072 2006-01-24 Jackson Harper <jackson@ximian.com>
30074 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
30075 when we have a MaxDropItems lower then the selected index.
30077 2006-01-24 Jackson Harper <jackson@ximian.com>
30079 * Control.cs: Don't allow selection of non visible controls, allow
30080 selection of controls without parents.
30082 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
30084 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
30085 * DataGridDrawingLogic.cs: Add editing row only when is necessary
30087 2006-01-23 Jackson Harper <jackson@ximian.com>
30089 * UpDownBase.cs: Make the textbox handle all the selection and
30090 tabbing. This fixes tabing to updown controls.
30092 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
30094 * TextBoxBase.cs: fixes exception thown the object was null
30096 2006-01-23 Jackson Harper <jackson@ximian.com>
30098 * ButtonBase.cs: Just use the base CreateParams. They set
30099 visibility and enabled correctly.
30102 * MonthCalendar.cs: Lets let the base set as much of the
30103 createparams as possible so we don't have duplicate code all over
30106 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
30108 * ThemeGtk.cs: Added TrackBar and some experimental code to
30109 get double buffering back
30111 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
30113 * DataGrid.cs: Allows row number set internally higher than the last
30114 when creating a new row. Restores the editing functionality.
30116 2006-01-20 Mike Kestner <mkestner@novell.com>
30118 * MimeIcon.cs: delay Image creation until the icons are accessed
30119 instead of creating 190 scaled images on GnomeHandler startup.
30121 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
30123 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
30124 first call base before processing the event. Fixes #77279
30126 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
30128 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
30129 that the stride for the GDI bitmap would match the stride of
30132 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
30134 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
30136 2006-01-19 Jackson Harper <jackson@ximian.com>
30138 * ComboBox.cs: Hookup the text controls keydown event so we get
30139 those when the text control has the focus.
30141 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
30143 * Label.cs: Now using the base events instead of defining new ones;
30144 this allows us to just call the base properties without having to
30145 duplicate all base property logic
30147 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
30149 * Label.cs: A label by default is not a tabstop (Fixes one of our
30150 failing nunit tests)
30152 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
30154 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
30155 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
30157 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
30159 * Cursor.cs: Reimplemented creating cursor bitmaps without using
30160 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
30163 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
30164 constructor creates images that can't be saved. Part of the fix
30166 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
30167 - SetWindowState: Switched ShowWindow flags (part of an upcoming
30168 bug fix for handling window state in forms properly)
30170 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
30172 * ThemeGtk.cs: Simplify ScrollBar drawing
30174 2006-01-18 Jackson Harper <jackson@ximian.com>
30176 * Splitter.cs: Set the default dock style for the splitter control
30177 in the constructor.
30179 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
30181 * ThemeGtk.cs: Corrected StateType and ShadowType for
30184 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
30186 * Control.cs: Make use of Theme.DoubleBufferingSupported
30188 - Added drawing for flat style buttons
30189 - Added ScrollBar drawing
30191 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
30193 * ThemeClearlooks.cs: Removed some unneeded code.
30194 * ThemeGtk.cs: First part of ThemeGtk enhancements.
30196 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
30198 * LinkLabel.cs: We need to update the hover drawing when
30199 leaving the control as well.
30201 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
30203 * DataGrid.cs: Clicking on non empty areas in the columns
30204 area was giving an exception
30206 2006-01-17 Jackson Harper <jackson@ximian.com>
30208 * ThemeWin32Classic.cs:
30209 * ListView.cs: Do not draw/clip the headers when the header style
30212 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
30214 * DataGrid.cs: Fixes 77260
30216 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
30218 * DataGrid.cs: Clicking on a column on a empty grid was giving
30221 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
30223 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
30224 or any keypress will crash the grid.
30226 2006-01-17 Mike Kestner <mkestner@novell.com>
30228 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
30229 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
30230 invisible/previously-visible items.
30233 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
30235 * ThemeClearlooks.cs:
30236 - Added CL_Draw_Button method; now other theme controls that are
30237 not derived from button or do not have a button can draw buttons
30239 - Updated ComboBox drawing
30240 - Beautified RadioButton drawing
30241 - Corrected drawing of bottom and left tabs
30242 - Beautified DateTimePicker and MonthCalendar
30243 - Added CPDrawButton and CPDrawRadioButton
30245 2006-01-16 Jackson Harper <jackson@ximian.com>
30247 * ComboBox.cs: Set the initial value of the scrollbar to the
30248 current index. Reduce the numbers of refreshs and IndexOfs called.
30250 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
30252 * FileDialog.cs: When the file listview is focused hitting the
30253 backspace key moves the fileview to the parent directory
30255 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
30258 - Added RecreateHandle call when changing taskbar visibility to
30259 trigger reparenting in Win32 driver (Fixes #75719)
30260 - If a window has minimize or maximize buttons, it cannot have
30263 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
30264 the toplevel form with FosterParent (A toolwindow not on the
30265 taskbar) (Fixes #75719)
30266 - Made FosterParent a toolwindow
30268 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
30270 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
30272 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
30274 * ToolTip.cs: If SetToolTip is called from a control and the mouse
30275 is currently over that control, make sure that tooltip_window.Text
30278 2006-01-13 Mike Kestner <mkestner@novell.com>
30280 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
30282 2006-01-13 Jackson Harper <jackson@ximian.com>
30284 * TreeView.cs: On MS GetNodeAt never actually factors in the X
30285 value passed. Also redraw the selected node when we recieve
30286 focus, so tabbing between trees works correctly.
30288 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
30290 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
30291 ~/.gconf/%gconf-tree.xml, so use
30292 .gconf/desktop/gnome/interface/%gconf.xml
30294 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
30296 * TextControl.cs: Draw text in gray if control is disabled
30298 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
30300 * TreeView.cs: Draw the focus rectangle outside the highlight, to
30301 make sure it's always visible. Fixes #76680.
30303 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
30305 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
30307 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
30309 * PageSetupDialog.cs: Added.
30310 * PrintDialog.cs: Attributes.
30311 * PrintPreviewControl.cs: Updates.
30312 * PrintPreviewDialog.cs: Updates.
30314 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30316 * Control.cs: Undid my selection check fix, since it's not needed
30318 - Now considering the presence of hscroll/vscroll when sizing
30319 vscroll/hscroll respectively. Fixed bug #77077
30320 - Added Left/Up/Down/Right to IsInputKey list to prevent
30321 ContainerControl from stealing them. This fixes what I broke
30322 with my last checkin.
30324 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30326 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
30327 I finally understand how the property can be set without a setter :-)
30329 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30332 - Switched RunLoop to use static Message.Create to create a
30334 - Added PreProcessMessage call in runloop for keyboard events; this
30335 is part of the fix for #77219, I overlooked this originally in the
30336 MSDN doc for PreProcessMessage
30338 - Removed call to PreProcessMessage from handling of keyboard
30339 messages; it's supposed to be done in the message pump
30340 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
30341 per MSDN documentation.
30342 - IsInputChar: All chars are input chars by default; removed the
30343 parent calling chain, MS does not document that
30344 - PreProcessMessage: If IsInputChar is true, we want to return false
30345 to allow dispatching of the message
30346 - When selecting the next control, now also check that we're not
30347 selecting ourselves again and therefore return a false positive.
30349 - Tried to match return values for IsInputKey and ProcessDialogKey
30350 to what MS returns; moved processing of our special keys outside
30351 ProcessDialogKey since MS does not seem to return true on those.
30352 - Moved code that previously was in ProcessDialogKey into new private
30353 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
30354 - Reworked handling of WM_CHAR to not have to duplicate code from
30355 Control.cs anymore, instead we simply call down to base.
30357 2006-01-12 Jackson Harper <jackson@ximian.com>
30359 * ComboBox.cs: We always need to refresh the text area when
30360 EndUpdate is called. Fixes the combobox in the file dialog.
30361 * Control.cs: Don't create the creator_thread until the controls
30362 handle is created. Also in InvokeRequired we check if the
30363 creator_thread is null. This gives the effect of InvokeRequired
30364 returning true if the controls handle is not created yet, and
30367 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30370 - Added StartLoop() driver method. This is used to allow drivers to
30371 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
30372 loop for a particular thread
30373 - Added EndLoop() driver method. This is called once the message
30374 pump for the thread is shut down
30375 - Added SupportsTransparency method to allow the driver to indicate
30376 opacity support for windows
30378 - Removed TODO attribute, completed AllowTransparency property
30379 - Added documented logic to Opacity
30380 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
30381 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
30382 versions of CompatibleTextRendering
30383 * X11Structs.cs: Added opacity atom to our atom enumeration
30384 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
30385 of a form might be set before it's reparented by the WM, and we need
30386 the opacity value without calling up to Form)
30387 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
30388 SupportsTransparency() driver methods
30389 * Application.cs: Now calling StartLoop and EndLoop driver methods
30391 - Added opacity atom registration
30392 - Added StartLoop()/EndLoop() methods. They're empty right now but
30393 will need to get implemented when we switch to a per-thread queue
30394 - Implemented SupportsTransparency() method
30395 - Implemented SetWindowTransparency() method
30396 - Added support for setting the opacity value when a window is
30397 reparented (since the opacity needs to be set on the WM frame)
30398 * XplatUIOSX.cs, XplatUIWin32.cs:
30399 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
30401 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
30403 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
30405 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
30407 * FileDialog.cs: Added ToolTip for MWFFileView
30408 * MimeIcon.cs: Rewrote GnomeHandler.
30409 - Get currently used gnome icon theme from
30410 ($HOME)/.gconf/%gconf-tree.xml
30411 - Make use of inherited icon themes
30412 - Support SVG icon themes like Tango via librsvg
30414 2006-01-12 Miguel de Icaza <miguel@novell.com>
30416 Revert's Jackson's revert which broke 2.0 builds. Fix both
30419 * Application.cs: Move the use_compatible_text_rendering outside
30420 the NET_2_0 define. If we ever need to use the
30421 use_compatible_text_rendering on the individual controls they will
30422 access the variable from the common shared code paths.
30424 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30427 - Added more granular debug options
30428 - Added method to print both window text and id
30429 - Switched debug output to use new Window() debug method
30430 - Added IsEnabled() driver method
30431 - Added EnableWindow() driver method
30433 - Removed end_modal; no longer needed, new loop handles termination
30434 via 'closing' variable
30435 - If form is modal, setting DialogResult will now initiate loop
30436 termination via 'closing' variable
30437 - Added support for is_enabled/WS_DISABLED to CreateParams
30438 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
30440 - Removed code that's now in RunLoop from ShowDialog()
30441 - Added various documented sanity checks to ShowDialog()
30442 - Added handling of WM_DESTROY message; we set 'closing' on getting
30443 the message to indicate the message pump to terminate
30444 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
30445 send by the Application.ExitThread method. (We send the message
30446 to destroy the window after all other events have been
30447 processed through the queue, instead of destroying the handle
30449 - Moved code from Close() method to WM_CLOSE handler; added logic
30450 to only send close-related events if the form is not displayed
30452 * Splitter.cs (..ctor): Fixed typo in resource name
30454 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
30456 - set_Cursor: Now only setting calling into XplatUI if the handle for
30457 the control is already created; this avoids implict handle creation
30458 or crashes if it's not created
30459 - set_Enabled: Now setting the enabled state via the new driver method
30460 instead of just tracking it
30461 - CreateParams: Added logic to set WS_DISABLED based on enabled state
30462 - CreateControl: Reordered event firing and method calls to more
30463 closely fire events in the order MS does. Now setting the
30464 enabled state in the driver when creating the control.
30465 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
30467 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
30468 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
30469 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
30471 - Added tracking of window enabled state (get_Enabled/set_Enabled)
30472 - Added EnabledHwnd property to easily allow a driver to find the
30473 handle of the first enabled window in the parent chain (this is
30474 used by drivers to pass up input events of disabled windows)
30475 * XplatUIDriver.cs: Added IsEnabled() method
30477 - Removed crude and obsolete exiting tracking variable
30478 - Removed internal ModalRun(); replaced by RunLoop()
30479 - Implemented private CloseForms() method to allow closing all
30480 windows owned by a particular (or all) threads
30481 - Exit() now properly closes all windows without forcing the message
30483 - Removed obsolete InternalExit() method
30484 - Changed Run() methods to use new RunLoop() message pump
30485 - Implemented new RunLoop() method for both modal and non-modal forms
30487 - get_CreateParams: Added setting of WS_DISABLED
30488 - Simplified ShowDialog(); now all the work is done in RunLoop(),
30489 invoked via Form.ShowDialog()
30490 * NativeWindow.cs: We don't remove the window from the collection when
30491 the handle is destroyed; there might still be messages for it in the
30492 queue (mainly the resulting WM_DESTROY); instead it will be removed
30493 when Control calls InvalidateHandle in the WM_DESTROY handler
30495 - CreateWindow: Added logic to handle the WS_DISABLED window style
30496 - EnableWindow: Implemented based on Hwnd.Enabled
30497 - GetMessage: Reset PostQuitState so the method can be called again
30498 - Implemented support for disabled windows (passing messages to the
30499 first enabled parent) in handling all input messages
30500 - Added optimizations for handling Expose events
30501 - Implemeted new driver method IsEnabled()
30502 - Now always resetting paint pending tracking vars when we start paint
30503 - Re-implemented UpdateWindow via just sending a WM_PAINT message
30504 * XplatUIOSX.cs: Added IsEnabled method stub
30505 * XplatUIWin32.cs: Implemented new IsEnabled() method
30507 2006-01-11 Jackson Harper <jackson@ximian.com>
30509 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
30510 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
30511 variables a little.
30512 * ColorDialog.cs: Clear out the old form before adding the new
30515 2006-01-11 Jackson Harper <jackson@ximian.com>
30517 * X11Dnd.cs: Make sure to add all the text formats when adding
30518 strings to the data object.
30519 * TreeNodeCollection.cs: When adding to a sorted tree we need to
30520 do some redrawing too. Also change the UpdateNode to an
30521 UpdateBelow so the newly added node gets painted.
30523 2006-01-11 Miguel de Icaza <miguel@novell.com>
30525 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
30526 LinkLabel.cs, PropertyGrid.cs: Implement the
30527 UseCompatibleTextRendering property for 2.x
30529 * Application.cs (SetCompatibleTextRenderingDefault): Add.
30531 2006-01-11 Jackson Harper <jackson@ximian.com>
30533 * TreeView.cs: Use the property for setting the selected node so
30534 the correct events get raised.
30535 * TreeNode.cs: Update the tree when the fore/back colours of a
30538 2006-01-10 Jackson Harper <jackson@ximian.com>
30540 * TreeView.cs: Allow setting SelectedNode to null.
30542 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30544 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
30546 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30548 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
30550 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30552 * PrintDialog.cs: Added attributes and set default property values.
30554 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30556 * PrintControllerWithStatusDialog.cs:
30557 Added PrintControllerWithStatusDialog.
30559 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30561 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
30562 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
30564 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30566 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
30568 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
30570 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
30571 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
30573 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
30575 * MimeIcon.cs: Added internal class SVGUtil.
30577 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
30579 * FileDialog.cs: Don't crash if there are two files with the
30580 same name but different locations.
30582 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
30584 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
30585 dates across multiple month grids. Used to not highlight entire
30586 month, but does now.
30588 2006-01-06 Jackson Harper <jackson@ximian.com>
30590 * MonthCalendar.cs: Removed DoEvents call to prevent a running
30591 message loop. Change timer intervals to numbers that seem more
30594 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
30596 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
30597 object for location info since screen object is now implemented.
30599 2006-01-05 Jackson Harper <jackson@ximian.com>
30601 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
30602 * AsyncMethodResult.cs: We no longer use a WeakReference for the
30603 AsyncMethodResult, this is because we ALWAYS want the
30604 ManualResetEvent to get set.
30605 * Control.cs: When disposing use an async invoke to call shutdown
30606 code, so that thigns don't block on the finalizer thread. Also
30607 check if we even have a message loop before trying to send
30608 messages, if we don't then don't bother sending messages.
30609 - No more weak references for async methods
30610 * XplatUIDriver.cs: No more weak references for async methods.
30612 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
30614 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
30615 returns two FontFamily with the same name
30617 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
30619 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
30620 drawing disabled text. Instead using the ColorGrayText color
30622 2006-01-04 Jackson Harper <jackson@ximian.com>
30624 * TreeNode.cs: redraw the node when its image index is changed.
30626 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
30628 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
30629 time I checked there are no others like it.
30631 2006-01-04 Jackson Harper <jackson@ximian.com>
30633 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
30634 this gives the behavoir I was looking for.
30635 * Control.cs: Special case Invoking EventHandlers, this matches MS
30636 and fixes part of bug #76326.
30638 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
30640 * ThemeClearlooks.cs, FileDialog.cs:
30641 - Reflect the latest Theme class changes
30642 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
30645 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
30647 * Theme.cs: Cache UI resource images and resize them if needed
30649 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
30651 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
30652 is called. This fixes the crash in Nexxia when setting the font
30653 attributes in the chat. [However, RTF needs a look-over to make sure
30654 that all SelectionXXX methods handle the special case that selection
30655 is empty and therefore the change must be applied to all text starting
30656 at the cursor/selection start]
30658 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
30660 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30661 XplatUIOSX.cs: Added SendMessage and PostMessage methods
30662 * X11Keyboard.cs: Switched to new way of calling PostMessage
30664 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
30666 * Theme.cs: Added theme interface for images to allow the theme to
30667 control what images are used for things like FileDialog, MessageBox
30669 * MessageBox.cs: Now uses the new Theme icon/image interfaces
30671 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
30674 - Removed some dead code
30675 - Opening a recently used file does work now
30676 - Small UI enhancements
30679 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
30681 * FileDialog.cs: Forgot too add __MonoCS__
30683 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
30685 * FileDialog.cs: We are able to read recently used files now let's
30686 go on and write them.
30688 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
30690 * FileDialog.cs: Breathe some life into "last open"/"recently used"
30692 * MimeIcon.cs: Do a check for the top level media type also
30694 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
30696 * ThemeClearlooks.cs:
30697 - Added CPDrawStringDisabled
30698 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
30699 some chars if the text doesn't fit into text_rect
30700 - DrawListViewItem: If View = View.LargeIcon center the image;
30701 rewrote the drawing of ListViewItem.Text if View =
30704 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
30706 * MimeIcon.cs: Use default KDE icon theme if there is no
30707 "48x48" directory for the current icon theme, fixes #77114
30708 * Mime.cs: Disable not working and actually not used code.
30709 * ThemeWin32Classic.cs:
30710 - Replace "new SolidBrush" in GetControlBackBrush and
30711 GetControlForeBrush with ResPool.GetSolidBrush
30712 - Changed DrawListViewItem from private to protected virtual
30714 - Added form.MaximizeBox = true
30715 - Don't throw an exception if there is a broken symbolic link
30717 2005-12-23 Jackson Harper <jackson@ximian.com>
30719 * TabControl.cs: Give the panels focus, keyboard navigation is
30720 fixed so this works correctly now.
30721 - We need these key events also.
30722 * ToolBar.cs: Remove some of the poor mans double buffering.
30724 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
30726 * ComboBox.cs: The internal TextBox now returns the focus.
30728 2005-12-23 Jackson Harper <jackson@ximian.com>
30730 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
30732 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
30734 * Control.cs: Removed debug code
30735 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
30738 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
30740 * Control.cs: When creating the control, update the Z-order after
30741 all it's children are created, too. (Fixes nexxia not showing
30744 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
30746 * Control.cs: Do not update the anchoring distances if layout is
30747 suspended, instead do it once layout is resumed
30749 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
30752 - After many hours of debugging, for both Jackson and
30753 myself, it turns out that it helps to set the parent of a control
30754 if you want to actually see it onscreen. In the spirit of that
30755 discovery, we're now setting the parent of the control and
30756 it's children when the control's handle is created. This fix
30757 will make Lutz Roeder's Reflector run happily.
30758 - now just creating the handle instead of the whole control when
30759 getting a graphics context for the control.
30761 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
30763 * ScrollableControl.cs: When calculating the canvas, don't consider
30764 the scrollbar widths. Instead, predict if horizontal scrollbar
30765 will affect canvas when deciding on vertical display and vice versa.
30767 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
30769 * RichTextBox.cs: Set default RTF font for documents that don't
30770 have a font table (Fixes #77076)
30772 2005-12-22 Jackson Harper <jackson@ximian.com>
30774 * TextBoxBase.cs: It's difficult to do, but you can have an empty
30775 clipboard. This prevents a NullRef in that case.
30776 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
30777 clipboard. PRIMARY is for the currently selected text only. (We
30778 should implement PRIMARY at some point.
30780 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30782 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
30783 a Unicode function with a structure that was defined in Ansi way.
30786 2005-12-21 Jackson Harper <jackson@ximian.com>
30788 * StatusBar.cs: Statusbar handles its fore/back colours on it's
30789 on. Because thats how it rolls. (and this avoids it using ambient
30791 * ThemeWin32Classic.cs: Use the proper back color for filling.
30792 * Menu.cs: Use the system menu bar color for drawing menu
30793 bars. Using the window back color will bring ambient colours into
30796 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
30798 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
30799 Bitmaps were created and not disposed.
30801 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30803 * Control.cs (CreateControl): Don't do anything if the control is
30804 already created, otherwise we'd fire the OnCreated event more than
30807 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30809 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
30810 will always match. Instead return -1. Fixes #76464.
30812 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30814 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
30815 neither the beginning nor the end of the line (Fixes bug #76479)
30817 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30820 - ControlNativeWindow.ControlFromHandle(): Now handling situation
30821 where handle is invalid
30822 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
30823 instead of slower linear search
30824 * NativeWindow.cs: Don't remove the window from the hashtable until
30825 after the driver has destroyed it (since the driver might use
30826 Control.FromHandle to lookup the control object
30827 * Hwnd.cs: Added DestroyPending property to track if a window is
30828 already destroyed as far as the driver is concerned and only hasn't
30829 yet notified the control
30831 - Activate(): Check if the window is still valid before using the
30833 - Implemented DestroyChildWindow() method to mark child windows as
30834 destroyed when a window is destroyed. This prevents situations
30835 where we might call an X method based on queued events for a
30836 window that already has been destroyed but we haven't yet pulled
30837 the destroy method from the queue.
30838 - Added a call to the new DestroyChildWindow() method to the drivers
30839 DestroyWindow code. Also now marking the destroyed window itself
30842 2005-12-20 Jackson Harper <jackson@ximian.com>
30845 * StatusBarPanel.cs: Don't calculate panel sizes on draw
30846 anymore. Just do them when needed, also track the rects of panels
30847 so that we can optimize refreshing more in the future.
30849 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
30851 * ColorDialog.cs: Fixed focus drawing in small color controls
30853 2005-12-19 Jackson Harper <jackson@ximian.com>
30855 * InternalWindowManager.cs:
30856 * MdiWindowManager.cs: Cleanup some coordinate system changes so
30857 moving windows works properly.
30859 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
30862 - Removed call to InitLayout() from SetBoundsCore(); doc says
30863 it's only called when a control is added to a container
30864 - Split InitLayout logic, moved to separate UpdateDistances() method
30865 since we need to perform those calculations more often than just
30866 when adding the control to a container. (Needed to fix #77022)
30867 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
30868 - Reduced the OnBindingContextChanged events count, don't send them
30869 unless the control is created, we still aren't totally matching
30870 MS, but I can't quite figure out some of their rules
30872 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
30874 * ThemeClearlooks.cs: Corrected distance between ProgressBar
30877 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
30879 * ThemeClearlooks.cs:
30880 - Updated ProgressBar drawing
30881 - Corrected drawing of ScrollBars and scroll buttons
30882 - Some temporary fixes for minor pixel artefacts
30884 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
30887 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
30888 cause events to be sent in the same order as MS does.
30889 - Added ChangeParent() method to trigger various OnXXXChanged events
30890 that need to be fired when a parent changes (This is a reworking
30891 of the patch from r54254, with the X11 errors fixed)
30892 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
30893 since on MS we get OnLayoutChanged events when calling Clear()
30894 - Changed Enabled property to consider parent state as well, if a
30895 parent is not enabled, the control will not be either
30896 - Changed Parent property to simply call Controls.Add() since that
30897 now does all the work required, this way we avoid code duplication
30898 - Threw in a few OnBindingsContextChanged calls to try and match
30899 when MS sends them. We seem to send a few too many, though.
30900 - Added call to CreateControl when adding the control to a parent.
30901 We were never calling CreateControl. Still needs some work, in
30902 some places we treat HandleCreated and ControlCreated as equal,
30904 - Removed obsolete commented out code from UpdateZOrder()
30906 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
30908 * ThemeClearlooks.cs: Updated TrackBar drawing.
30910 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
30912 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30914 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
30916 * FileDialog.cs: Add the Help button and the open readonly
30917 checkbox only if needed
30919 2005-12-16 Jackson Harper <jackson@ximian.com>
30921 * Control.cs: Make sure we have an active menu before trying to
30922 process commands on it. Prevents menu-less forms from crashing
30923 when Alt is pressed.
30924 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
30926 * RichTextBox.cs: Expand statement to help out gmcs and fix the
30929 2005-12-16 Jackson Harper <jackson@ximian.com>
30931 * InternalWindowManager.cs: Don't translate tool windows screen
30932 coordinates. This fixes windows 'bouncing' around when being moved.
30934 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
30937 - MaxLength now treats 2^31-1 equal to unlimited length (this is
30938 not quite MS compatible, MS uses that number only for single line
30939 and 2^32-1 for multi-line, but I figure it won't hurt keeping
30941 - Now enforcing the MaxLength limit when entering characters
30942 - Added argument to internal Paste() method to track if it's called
30943 from programatically or via keyboard, since keyboard driven pastes
30944 need to enforce max-length
30945 - Added logic to Paste to only paste as many chars as MaxLength
30947 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
30949 - Added Length property to return number of characters in document
30950 - Added private CharCount property which only tracks actual chars
30951 in the document (no linefeeds) and fires event when CharCount
30953 - Added tracking of character count to all methods that alter it
30954 - Added LengthChanged event to allow applications to subscribe
30955 to any changes to the document
30957 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
30960 - Removed local password_char field (moved to TextBoxBase)
30961 - Now setting the document's password var when password is
30964 - Added password_char field (needed here so MultiLine can
30966 - Added logic to MultiLine property setter to set the document's
30967 variable when password display is allowed
30968 - Removed debug code and made some debug code conditional
30970 - Added RecalculatePasswordLine() method to handle special password
30972 - Added PasswordChar property, also added related tracking vars
30973 - Draw() method now uses local text var for grabbing text to draw,
30974 this var is set to line.text unless we're doing password display,
30975 then it is set to the pre-generated all-password-chars line
30976 - Added calling RecalculatePasswordLine() method for password lines
30978 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
30981 - Added Reparented property to allow tracking of Window Manager
30982 reparenting actions (which affect X/Y calculations of toplevel
30984 - Made ToString() print window handles in hex
30986 - AddConfigureNotify(): Now uses reparented state off Hwnd to
30987 determine if X/Y needs offsetting
30988 - AddConfigureNotify(): Fixed offset calculations
30989 - Now adds ReparentNotify messages into the queue
30990 - Now processes ReparentNotify messages and causes a
30991 WM_WINDOWPOSCHANGED message to be sent upstream if a window
30992 is reparented (as most likely it's X/Y coordinates are changed
30995 2005-12-14 Jackson Harper <jackson@ximian.com>
30997 * XplatUIX11.cs: Tool windows still need to respek focus.
30999 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
31001 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
31002 have a working release
31004 2005-12-13 Jackson Harper <jackson@ximian.com>
31006 * Form.cs: Update styles after setting the border style regardless
31007 of whether or not the window is using a window manager.
31009 2005-12-13 Jackson Harper <jackson@ximian.com>
31011 * Form.cs: We now hook into an internal window manager instead of just an
31012 MDI subsystem, this is so we can have properly behaving tool windows.
31013 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
31014 * InternalWindowManager.cs: New internal class that acts as a
31015 window manager for tool windows and as a base for mdi windows.
31016 * MdiWindowManager.cs: New class that acts as a window manager for
31019 2005-12-12 Jackson Harper <jackson@ximian.com>
31021 * Control.cs: Updates so we match behavoir for for implicit
31022 controls. Fixes explosions in MDI.
31024 2005-12-12 Jackson Harper <jackson@ximian.com>
31026 * Control.cs: Implement Invalidate (Region).
31028 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
31031 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
31032 the same events as MS does. MS fires events for each property
31033 except, for unknown reasons, Cursor, when the control is reparented.
31034 I can't seem to totally match add/remove since MS also fires some
31035 VisibleChanged events, which makes no sense. Consolidated the
31036 parenting code into a separate method so it can be called from
31037 both Add and Remove. set_Parent no longer needs any special logic
31038 as it calls the parent's add method which implicitly fires
31040 - Removed some obsolete code and debug output
31041 - Enabled state is inherited from parents, if this is enabled
31043 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
31045 * Form.cs: Removed commented out code
31047 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
31050 - Added internal version of Invoke, with additional argument
31051 indicating if we're calling it from a Dispose() handler. That
31052 way we can avoid BeginInvoke throwing an exception if we're
31053 calling for an already destroyed window.
31054 - Added a dispose argument to BeginInvokeInternal, and made the
31055 check if a valid window handle chain exists conditional on
31056 it not being a dispose call
31057 - Removed code in DestroyHandle to destroy our children. Since we
31058 now handle the WM_DESTROY message we will catch all our children
31060 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
31062 - Added a field to track the application context of the form.
31063 - No need to set closing variable as response to WM_CLOSE, instead
31064 we destroy the window. We also call PostQuitMessage if the form
31065 has an application context (which makes it the main app form,
31066 which, when closed terminates the app)
31068 - Dropped Exit() method, it's naming was confusing
31069 - Added PostQuitMessage() which causes GetMessage to return false
31070 once the message queue is empty
31071 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
31073 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
31074 no longer a valid XplatUI method, but left it in since it's used
31075 internally. Added empty PostQuitMessage() method.
31076 * MenuAPI.cs: Replaced call to Exit() with call to
31077 PostQuitMessage, even though this is probably no longer needed.
31078 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
31079 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
31081 - Replaced call to XplatUI.Exit() with PostQuitMessage()
31082 - Removed old debug code that would call XplatUI for exception
31083 display, enabled standard exception handling (Still not enabled
31084 though, until NativeWindow's ExternalExceptionHandler define
31087 - Added internal method to allow control to update NativeWindow
31088 after a window has been destroyed
31089 - Added handling of already destroyed windows when calling i
31091 - Added removal of handle from list on ReleaseHandle
31093 - Dropped GetMessageResult var and related code
31094 - Added PostQuitState to field to track if PostQuitMessage has been
31096 - Dropped Exit() method
31097 - Added PostQuitMessage() method
31098 - GetMessage now will return false if PostQuitState is set and no
31099 more messages are in the queue.
31100 - Expose handler will no longer generate WM_PAINT messages if we are
31101 in PostQuitState since it's very likely any windows have already
31102 been destroyed, and since Hwnd won't get updated until we have
31103 processed the DestroyNotify we'd be causing X errors.
31105 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31107 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
31108 Thanks to Mike for pointing out the err of my ways.
31110 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31112 * Control.cs(PreProcessMessage): Moved menu handling back, but
31113 after all other key handling, to match MS (who handles Menu in
31115 * Menu.cs (WndProc): Removed my brainfart
31117 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31119 * Control.cs(PreProcessMessage): Removed special menu handling
31120 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
31122 2005-12-07 Mike Kestner <mkestner@novell.com>
31124 * Control.cs : special case SYSKEYUP so that we can adjust keynav
31125 state according in tracker.
31126 * Menu.cs : promote tracker field to base class and provide a tracker
31127 lookup capability. Add/Remove shortcuts dynamically if the top menu
31128 has a tracker. Unparent items that are removed from the collection.
31129 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
31130 * Theme*.cs: add always_show_hotkeys field to support configurability
31131 of mnemonic display. win32 doesn't show mnemonics until Alt is
31134 2005-12-07 Jackson Harper <jackson@ximian.com>
31136 * MdiChildContext.cs: Use Control.ResetCursor.
31137 * Control.cs: ResetCursor needs to set the property so that the
31138 correct XplatUI call gets made.
31140 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31142 * Control.cs: More fixes to make our key events match MS. We
31143 were not setting the modifier state on KeyData, and we were
31144 not generating any events when Alt was pressed with a key
31145 since handling of WM_SYSxxx was missing for the OnKey methods.
31147 2005-12-07 Jackson Harper <jackson@ximian.com>
31149 * MdiChildContext.cs: reenable the sizing code.
31150 - When the mouse leaves a window reset its cursor.
31152 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
31154 * ThemeClearlooks.cs: Reflect latest Hwnd changes
31156 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31158 * Hwnd.cs: Now using the theme 3d bordersize to calculate
31159 widths of Fixed3D borders
31161 2005-12-07 Jackson Harper <jackson@ximian.com>
31163 * MdiClient.cs: Fix warnings. Earn Mike's love.
31165 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
31167 * ThemeClearlooks.cs:
31168 - Adjusted mouse over button color
31169 - Added first parts of CheckBox drawing
31170 - Added correct color for selected text background
31171 - Fixed ComboBox drawing
31172 - Added CPDrawBorder3D and CPDrawBorder
31174 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
31176 * XplatUIX11.cs: Added call to XBell for AudibleAlert
31178 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
31180 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
31181 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
31182 alert users via sound. We could add an enum arg with different
31183 types of alerts in the future
31185 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
31187 * Control.cs: Fix behaviour problems pointed out by Mike
31189 2005-12-05 Mike Kestner <mkestner@novell.com>
31191 * StatusBarPanel.cs: add Invalidate method and hook it into all the
31192 prop setters. Calls parent.Refresh for now, but could be maybe be
31193 optimized with an internal method on StatusBar at some point.
31196 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
31198 * RichTextBox.cs: Implemented get_SelectionColor
31200 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
31202 * ThemeClearlooks.cs:
31203 - Removed dead code
31204 - Draw black button border only if button is Form.AcceptButton
31205 - Draw correct button color for pressed RadioButton if the mouse
31206 has entered the button
31207 - Updated ProgressBar drawing!
31208 - Updated CPDrawSizeGrip drawing
31209 - Updated StatusBarPanel drawing
31211 2005-12-05 Mike Kestner <mkestner@novell.com>
31213 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
31214 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
31216 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
31218 * ThemeClearlooks.cs: Initial check-in, activate with
31219 export MONO_THEME=clearlooks
31220 * ThemeEngine.cs: Added ThemeClearlooks
31222 2005-12-03 Mike Kestner <mkestner@novell.com>
31224 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
31227 2005-12-02 Jackson Harper <jackson@ximian.com>
31229 * Form.cs: If the child form has no menu the default main menu is
31230 used as the active menu.
31232 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
31234 * ListBox.cs: Check if any items exist before trying to resolve
31235 coordinates into items
31237 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
31239 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
31240 as the second color for the background hatch
31242 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
31244 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
31245 * RichTextBox.cs: FormatText position arguments are 1-based, now making
31246 sure that what we pass to FormatText is always 1-based. Fixes #76885
31248 2005-11-29 Miguel de Icaza <miguel@novell.com>
31250 * NumericUpDown.cs (EndInit): When we are done initializing,
31251 reflect any updates on the UI.
31253 2005-12-02 Jackson Harper <jackson@ximian.com>
31255 * ImplicitHScrollBar.cs:
31256 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
31257 their container controls.
31258 * TreeView.cs: Use the new implicit scrollbars.
31260 2005-12-02 Jackson Harper <jackson@ximian.com>
31262 * TreeView.cs: Make top_node internal so the TreeNodeCollections
31264 * TreeNodeCollection.cs: If we remove the topnode we need to
31265 update topnode to the next node in line.
31266 - When clearing nodes go through the same process as removing
31267 them, so they get depareneted and checked if they are top node.
31269 2005-12-01 Jackson Harper <jackson@ximian.com>
31271 * TreeView.cs: When imagelists are used the image area is
31272 selectable as well as the text.
31273 - If there are no selected nodes select the first one.
31274 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
31275 so don't do it more then we need to.
31277 2005-12-01 Jackson Harper <jackson@ximian.com>
31279 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
31280 that arrows can be scaled.
31282 2005-12-01 Jackson Harper <jackson@ximian.com>
31284 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
31285 fail. Patch by Dieter Bremes
31287 2005-11-30 Jackson Harper <jackson@ximian.com>
31289 * Form.cs: Property is 2.0 only
31290 * PrintDialog.cs: Signature fix.
31292 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
31295 - No longer artificially moves text 2 pixels down (now that we have
31296 borders this is no longer needed)
31297 - Added calcs for left, hanging and right indent
31299 2005-11-23 Mike Kestner <mkestner@novell.com>
31301 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
31303 2005-11-30 Jackson Harper <jackson@ximian.com>
31305 * MdiChildContext.cs: Set the cloned menus forms, as these don't
31306 get cloned as part of CloneMenu ().
31307 * Menu.cs: Make sure the parent of the items get set correctly
31308 when they are added. And the owners are notified of the changes.
31309 * Form.cs: Create an ActiveMenu property, so that when MDI is used
31310 we can change the menu being displayed/handled by the form without
31311 changing the menu assosciated with the form.
31312 - Don't let Mdi children draw/handle menus.
31314 2005-11-30 Jackson Harper <jackson@ximian.com>
31316 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
31317 a MenuChanged event. Just to make the API a little more
31320 * MenuItem.cs: Use the new OnMenuChanged
31321 * MdiChildContext.cs: Handle menu merging.
31322 * Form.cs: Implement MergedMenu.
31324 2005-11-30 Jackson Harper <jackson@ximian.com>
31326 * Menu.cs: We were misusing Add. Add goes behind the specified
31327 index according to the docs, and does not replace the specified
31328 index. So I added an Insert method.
31330 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
31332 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
31333 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
31335 * RichTextBox.cs: Added calls to base for DnD events
31337 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
31340 - Fixed drag-selection related crash; style fixes
31341 - Implemented undo class
31342 o Implemented method to capture document state for specified
31343 range in document tree
31344 o Implemented method to restore captured document state
31345 o Implemented cursor tracking
31346 o Implemented basic undo stack
31347 - Added undo cursor tracking to methods altering cursor location
31348 - Added undo tracking to selection deletion (still missing
31349 other text-altering hookups)
31351 - Added SelectionLength property
31352 - Implemented CanPaste()
31353 - Implemented Paste()
31354 - Added missing protected methods
31355 - Fixed RTF->Document conversion; now uses font index 0 and color
31356 index 0 as the default font for the parsed text
31357 - Fixed RTF<->Document font size translation
31358 - Fixed RTF generation, now properly handles cross-tag boundaries
31359 for single line selection
31360 - No longer always appends blank line to generated RTF
31362 - Added missing attributes
31363 - Hooked up undo-related methods
31365 - Implemented Copy()
31366 - Implemented Paste()
31367 - Implemented Cut()
31368 - Fixed caret mis-behaviour on backspace across line-boundaries
31370 2005-11-29 Jackson Harper <jackson@ximian.com>
31372 * MdiClient.cs: Add a method for activating mdi children. Very
31373 basic right now. I imagine someday it might need more girth.
31374 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
31375 children windows names are added to the menu item.
31376 * ThemeWin32Classic.cs: Draw the arrow if the item is an
31377 mdilist. This happens regardless of whether or not there are any
31378 mdi windows to see in the list, and according to my tests happens
31379 before the items are even added. Also happens if there isn't even
31380 an mdi client to get windows from.
31382 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
31384 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
31385 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
31387 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
31389 * DataGridTableStyle.cs:
31390 - Create always the styles for the missing columns even if they are
31391 provided by the user (not default table style)
31394 - Fixes SetDataBinding (always re-attach source)
31395 - Fixes SetNewDataSource (only clear styles if they are not for
31397 - Expands OnTableStylesCollectionChanged to handle style refresh
31398 and remove properly
31400 2005-11-29 Jackson Harper <jackson@ximian.com>
31402 * FileDialog.cs: Implement missing bits, remove some dead
31404 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
31405 creation of the panel so that the options set on the dialog are
31406 seen when the panel is created.
31407 * TreeView.cs: raise a click when items are clicked.
31409 2005-11-29 Jackson Harper <jackson@ximian.com>
31411 * MdiClient.cs: Pass some signature methods through to base.
31413 2005-11-28 Jackson Harper <jackson@ximian.com>
31415 * ListView.cs: Raise the click event when items are clicked.
31417 2005-11-28 Jackson Harper <jackson@ximian.com>
31419 * MdiClient.cs: Make this algorithm even more beautiful. And fix
31422 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
31424 * ThemeNice.cs: - Removed 1 pixel bitmaps
31425 - Use SmoothingMode.AntiAlias where it makes sense
31426 (ScrollButton arrow for example)
31427 - Enhanced Button focus drawing
31428 - Fixed ComboBox drawing (no artefacts anymore, focus
31429 rectangle is back again, reduced size of ComboButton, etc.)
31430 - Fixed RadioButton focus drawing for Appearence.Button
31431 - Slight ScrollButton redesign
31432 - Some LinearGradientBrush size fixes
31433 - GroupBoxes have now rounded edges
31434 - Fixed StatusBar drawing
31436 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
31438 * ThemeNice.cs: - Remove dead code
31439 - use correct background colors for menus, etc.
31440 - Fake pixel drawing with 1 pixel bitmaps
31442 2005-11-24 Jackson Harper <jackson@ximian.com>
31444 * MdiClient.cs: Size the scrollbars when resizing the window.
31445 - Resize the maximized windows when the client is resized
31446 * Form.cs: Make the child context available
31448 2005-11-23 Jackson Harper <jackson@ximian.com>
31450 * MdiChildContext.cs: Don't size windows if they are maximized.
31452 2005-11-23 Mike Kestner <mkestner@novell.com>
31454 * ContextMenu.cs: use MenuTracker.
31455 * Control.cs: remove menu handle usage.
31456 * Form.cs: remove menu handle usage.
31457 * Hwnd.cs: remove menu handle usage.
31458 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
31459 motion and clicks to the new Tracker handlers.
31460 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
31462 * MenuAPI.cs: refactored to combine popup and menubar event handling.
31463 Killed the MENU and MENUITEM data types and associated collections
31464 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
31465 MenuTracker class that exposes the leftovers from the old MenuAPI
31466 static methods. Restructured Capture handling so that only one grab is
31467 done for the entire menu hierarchy instead of handing off grabs to
31468 submenus. Tracker now has an invisible control to Capture when active.
31469 * MenuItem.cs: add sizing accessors, kill Create
31471 * Theme.cs: remove menu handle and MENU(ITEM) usage.
31472 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
31473 MENU(ITEM). remove menu handle usage, use Menu directly.
31474 * XplatUIDriver.cs: remove menu handle usage.
31475 * XplatUIOSX.cs: remove menu handle usage.
31476 * XplatUIWin32.cs: remove menu handle usage.
31477 * XplatUIX11.cs: remove menu handle usage.
31479 2005-11-22 Jackson Harper <jackson@ximian.com>
31481 * Hwnd.cs: Don't compute the menu size for
31482 DefaultClientRectangle.
31483 - Reenable menu sizes being computed for GetClienRectangle.
31484 * Form.cs: Remove comment of trechery
31486 2005-11-22 Jackson Harper <jackson@ximian.com>
31488 * Hwnd.cs: The adjustments for the menu bar are made when it is
31489 attached to the form.
31491 2005-11-19 Jackson Harper <jackson@ximian.com>
31493 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
31494 (just like on windows).
31496 2005-11-19 Jackson Harper <jackson@ximian.com>
31498 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
31499 use real buttons anymore because they are in non client area. The
31500 one TODO here is that I need to somehow invalidate a section of
31501 the non client area.
31503 2005-11-18 Jackson Harper <jackson@ximian.com>
31505 * Control.cs: Put the enum check back in now that MDI doesnt have
31506 to use this to set border styles.
31507 * Form.cs: Only set mdi child windows borders if the handle has
31509 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
31510 this directly on to the driver.
31511 - Get the move start position before adjusting for the titlebar
31512 height, this fixes the windows "skipping" when they are first
31515 2005-11-18 Jackson Harper <jackson@ximian.com>
31517 * XplatUIX11.cs: Just compute the mdi borders separately as they
31518 don't totally match up with normal form borders.
31520 2005-11-18 Jackson Harper <jackson@ximian.com>
31522 * Control.cs: Set WS_ styles for borders, so that the driver does
31523 not have to retrieve the control instance to figure out what kind
31524 of borders it should have.
31525 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
31526 driver can know its an mdi child easily.
31527 * XplatUIX11.cs: Get the border styles and whether the window is
31528 MDI from the Styles and ExStyles params instead of having to get a
31529 control. This prevents a chicken and egg problem.
31531 2005-11-18 Jackson Harper <jackson@ximian.com>
31533 * MdiClient.cs: Fix typo so scrollbars show up correctly.
31535 2005-11-18 Jackson Harper <jackson@ximian.com>
31537 * MdiClient.cs: Calculate when to add and remove scrollbars
31539 * MdiChildContext.cs: Adjust the y position to take the titlebar
31541 - No height for FormBorderStyle.None
31543 2005-11-18 Jackson Harper <jackson@ximian.com>
31545 * Control.cs: Allow non enum values to be used for
31546 InternalBorderStyle. MDI does this to set a special border style.
31547 - New utility methods for converting points to/from client coords
31548 - Add the newly created control to the Controls collection before
31549 updating its style. This way UpdateStyle can walk the control
31550 heirarchy to find the control if needed.
31551 so I don't need to create a new Point object all the time.
31552 * Form.cs: Let MDI windows handle their border styles.
31553 - Set styles on MDI windows so the correct title style is derived.
31554 * MdiChildContext.cs: Move all the painting and window handling
31555 into the non client area.
31556 - Use correct sizing and put correct buttons on frames based on
31557 the FormBorderStyle.
31558 - Notify the mdi client about scrolling
31559 - Need to handle the buttons ourselves now, because they are all
31560 in non client areas and we can't add controls there.
31561 * MdiClient.cs: Halfway to scrolling, this implementation is
31562 somewhat broken though, we need to check to make sure other
31563 windows aren't causing scrolling before removing the bars. Also
31564 the bars need to be drawn on top, maybe I can switch implicit
31565 controls to be on top.
31566 * Hwnd.cs: caption_height and tool_caption_height are now
31567 properties of an hwnd, this way they can be set by the driver
31568 based on the type of window they are. In X11 the window manager
31569 handles the decorations so caption_height is zero unless its an
31571 - Add 3 pixel borders for MDI windows (0xFFFF).
31572 - Get rid of some code duplication, have DefaultClientRectanle
31573 just call GetClientRectangle.
31574 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
31576 - Set border styles differently for mdi windows.
31577 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
31580 2005-11-15 Mike Kestner <mkestner@novell.com>
31582 * Menu.cs: when adding an item to the collection, if item is already
31583 parented, remove it from the parent.
31585 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
31587 * X11DesktopColors.cs: Added KDE support
31589 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
31592 - Clipboard methods now can translate Rtf format
31593 - No longer removes clipboard contents whenever a new format is added
31594 to allow placing multiple formats on the clipboard
31595 * Clipboard.cs: Clipboard now supports getting a IDataObject and
31596 will place all formats contained in it onto the clipboard. Also
31597 now cleans the clipboard before placing a new object onto it
31599 - Implemented set_Rtf
31600 - Implemented set_SelectedRtf
31601 - Created InsertRTFFromStream() method to allow single code base
31602 for all properties and methods that insert RTF into document
31603 - Removed debug output
31605 - Fixed Delete(int) to fix up line numbers
31606 - Fixed ReplaceSelection to combine start and end line
31607 - Fixed serious DeleteChars bug that would leave the document tree
31609 - Improved DumpTree with several logic checks to detect broken
31611 - Removed debug lines
31612 - Fixed Caret.WordForward/WordBack moving code, now always also
31613 updates caret.tag (fixes crash when word-selecting across tag
31614 boundaries via keyboard)
31615 - Added Insert() method for inserting multiline text into documents
31616 - Fixed DeleteChars() calculation errors that would cause a broken
31617 tag chain with multiple tag lines
31618 - DeleteChars() no longer crashes on multi-tag lines if not all tags
31619 - Split() no longer moves caret if split is at caret location
31620 - ReplaceSelection() now updates the cursor and re-displays it
31621 - ReplaceSelection() now uses new Insert() method to avoid code
31623 - FormatText() can now handle formatting partial lines
31625 - Append now uses new TextControl.Insert() method (this avoids
31627 - Implemented Ctrl-X (Cut) (
31628 - Implemented Ctrl-C (Copy)
31629 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
31630 regeneration when pasting text; roundtripping Copy&Paste within
31631 edit control still fails due to some calculation bugs in GenerateRTF)
31632 - The Delete key will now remove the current selection if it is visible
31633 * TextBox.cs: Removed debug lines
31634 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
31635 driver to be initialized and can't therefore be done via a static ctor)
31637 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
31639 * TextControl.cs: Added backend code for finding char arrays and strings
31641 - Added mouse wheel scroll support
31642 - Added support for VScroll and HScroll events
31644 - Implemented all seven Find() variants
31645 - Implemented GetCharFromPosition()
31646 - Implemented GetCharIndexFromPosition()
31647 - Implemented GetLineFromIndex()
31648 - Implemented GetPositionFromCharIndex();
31649 - Implemented SaveFile for PlainText and UnicodeText
31650 - Fixed set_Font, now setting a new font applies that font to
31652 - Implemented generic Document to RTF converter
31653 - Implemented SaveFile for RichText format (still missing unicode
31654 conversion for non-ansi chars)
31655 - Implemented get_Rtf
31656 - Implemented get_SelectedRtf
31658 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
31660 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
31661 to allow any captures to be released before triggering OnClick. This
31662 way a click handler may capture the mouse without interference.
31663 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
31664 This way we send them even though X may not allow a grab (if the window
31665 isn't visible, for example)
31667 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
31669 * DataGridViewRowEventArgs.cs: DataGridView implementation
31670 * DataGridViewElement.cs: DataGridView implementation
31671 * DataGridViewComboBoxCell.cs: DataGridView implementation
31672 * DataGridViewDataErrorContexts.cs: DataGridView implementation
31673 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
31674 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
31675 * ImageLayout.cs: DataGridView implementation
31676 * DataGridViewComboBoxColumn.cs: DataGridView implementation
31677 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
31678 * DataGridViewSelectionMode.cs: DataGridView implementation
31679 * IDataGridViewEditingControl.cs: DataGridView implementation
31680 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
31681 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
31682 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
31683 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
31684 * DataGridViewColumnSortMode.cs: DataGridView implementation
31685 * DataGridView.cs: DataGridView implementation
31686 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
31687 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
31688 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
31689 * Padding.cs: DataGridView implementation
31690 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
31691 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
31692 * DataGridViewRowEventHandler.cs: DataGridView implementation
31693 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
31694 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
31695 * DataGridViewButtonCell.cs: DataGridView implementation
31696 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
31697 * DataGridViewEditMode.cs: DataGridView implementation
31698 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
31699 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
31700 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
31701 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
31702 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
31703 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
31704 * DataGridViewCellEventHandler.cs: DataGridView implementation
31705 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
31706 * DataGridViewCellStyleConverter.cs: DataGridView implementation
31707 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
31708 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
31709 * DataGridViewColumnEventArgs.cs: DataGridView implementation
31710 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
31711 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
31712 * QuestionEventArgs.cs: DataGridView implementation
31713 * IDataGridViewEditingCell.cs: DataGridView implementation
31714 * DataGridViewTriState.cs: DataGridView implementation
31715 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
31716 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
31717 * DataGridViewColumnCollection.cs: DataGridView implementation
31718 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
31719 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
31720 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
31721 * DataGridViewColumn.cs: DataGridView implementation
31722 * DataGridViewCellBorderStyle.cs: DataGridView implementation
31723 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
31724 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
31725 * DataGridViewRow.cs: DataGridView implementation
31726 * DataGridViewImageCellLayout.cs: DataGridView implementation
31727 * DataGridViewImageCell.cs: DataGridView implementation
31728 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
31729 * DataGridViewCheckBoxCell.cs: DataGridView implementation
31730 * DataGridViewHeaderCell.cs: DataGridView implementation
31731 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
31732 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
31733 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
31734 * DataGridViewTextBoxColumn.cs: DataGridView implementation
31735 * QuestionEventHandler.cs: DataGridView implementation
31736 * DataGridViewCellStyleScopes.cs: DataGridView implementation
31737 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
31738 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
31739 * DataGridViewCell.cs: DataGridView implementation
31740 * DataGridViewCellEventArgs.cs: DataGridView implementation
31741 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
31742 * DataGridViewCellStyle.cs: DataGridView implementation
31743 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
31744 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
31745 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
31746 * TextFormatFlags.cs: DataGridView implementation
31747 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
31748 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
31749 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
31750 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
31751 * DataGridViewButtonColumn.cs: DataGridView implementation
31752 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
31753 * HandledMouseEventArgs.cs: DataGridView implementation
31754 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
31755 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
31756 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
31757 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
31758 * DataGridViewRowCollection.cs: DataGridView implementation
31759 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
31760 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
31761 * DataGridViewHitTestType.cs: DataGridView implementation
31762 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
31763 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
31764 * DataGridViewColumnEventHandler.cs: DataGridView implementation
31765 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
31766 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
31767 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
31768 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
31769 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
31770 * DataGridViewContentAlignment.cs: DataGridView implementation
31771 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
31772 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
31773 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
31774 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
31775 * DataGridViewPaintParts.cs: DataGridView implementation
31776 * DataGridViewCellCollection.cs: DataGridView implementation
31777 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
31778 * DataGridViewImageColumn.cs: DataGridView implementation
31779 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
31780 * DataGridViewElementStates.cs: DataGridView implementation
31781 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
31782 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
31783 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
31784 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
31785 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
31786 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
31787 * DataGridViewRowHeaderCell.cs: DataGridView implementation
31788 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
31789 * DataGridViewTextBoxCell.cs: DataGridView implementation
31790 * DataGridViewBand.cs: DataGridView implementation
31791 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
31792 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
31793 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
31794 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
31795 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
31796 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
31797 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
31798 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
31799 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
31800 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
31801 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
31803 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
31805 * ThemeWin32Classic.cs:
31806 - Draw the outside focus rectangle around buttons
31807 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
31808 doesn't use end caps for every dash of a line anymore. This
31809 workaround ignores the forecolor.
31811 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
31813 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
31816 2005-11-07 Jackson Harper <jackson@ximian.com>
31818 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
31820 2005-11-07 Jackson Harper <jackson@ximian.com>
31822 * ScrollableControl.cs: Calculate the maximum and change vars
31823 (more) correctly so that scrollbars appear as a sensible size.
31825 2005-11-04 Jackson Harper <jackson@ximian.com>
31827 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
31829 * TreeView.cs: When the tree is sorted null out the top_node so
31830 that it is recalculated.
31831 - Use dotted lines instead of dashed lines to match MS better.
31833 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
31836 - Implements key search for items. Useful when browsing files with FileDialog
31837 - When changing view mode or when clear the items reset scrollbar positions
31839 2005-11-04 Jackson Harper <jackson@ximian.com>
31841 * CurrencyManager.cs: Implement the MetaDataChanged event, the
31842 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
31843 as to what the method may do as there is no real way of creating a
31844 derived CurrencyManager and calling the method.
31846 2005-11-03 Jackson Harper <jackson@ximian.com>
31848 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
31849 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
31850 method which seems to just be used internally to refresh the tabs.
31852 2005-11-03 Jackson Harper <jackson@ximian.com>
31854 * TabControl.cs: Implement the remove method. Fix some broken
31857 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
31859 * DateTimePicker.cs:
31860 - Added missing DateTimePickerAccessibleObject class
31861 - Added missing events
31862 - Added OnFontChanged method
31863 * Form.cs: Added missing attributes
31864 * TreeView.cs: Added missing attributes
31866 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
31868 * GridItemCollection.cs: Fix signatures
31870 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
31872 * XplatUI.cs: Updated build rev/date
31873 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
31874 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
31875 * Application.cs: Trigger context-specific ExitThread events
31877 2005-11-03 Jackson Harper <jackson@ximian.com>
31881 * GridTableStylesCollection.cs:
31886 * MonthCalendar.cs: Signature fixes
31888 2005-11-03 Jackson Harper <jackson@ximian.com>
31890 * TreeNodeCollection.cs: Remove should not be virtual.
31891 * TreeView.cs: Implement the last of the missing methods.
31893 2005-11-03 Jackson Harper <jackson@ximian.com>
31895 * TreeNodeConverter.cs: Implement to get off my class-status back.
31897 2005-11-03 Jackson Harper <jackson@ximian.com>
31899 * TreeView.cs: Hookup the bits for drag and drop.
31900 * TreeNode.cs: Don't cache the tree_view or index anymore, now
31901 that nodes can be moved from tree to tree easily this just causes
31902 all sorts of problems.
31903 * TreeNodeCollection: Don't need to give treenodes an index and
31904 treeview anymore when they are added, these are computed on the
31905 fly. Also make sure to remove a node before its added.
31907 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
31910 - Added CaretSelection enum
31911 - Added comparison methods to Marker struct, makes selection code
31913 - Added SelectionStart and SelectionEnd as 'moveable' location for
31914 the CaretDirection enum and handler
31915 - Added selection_prev variable to track optimized invalidation for
31916 word and line selection
31917 - Added SelectionVisible property (returns true if there is a valid
31919 - Switched CaretHasFocus to only display the caret if there is no
31921 - Avoiding StringBuilder.ToString to retrieve a single char, instead
31922 using the direct character index; should be much faster
31923 - Added various conditional debug statements
31924 - Fixed invalidation calculation for selection ranges
31925 - Added ExpandSelection() method to support word and line selection
31926 - Switched SetSelectionToCaret to use new Marker compare overloads
31927 - Added central IsWordSeparator() method to determine word
31928 separators/whitespace and FindWordSeparator() to streamline common
31929 usage of IsWordSeparator()
31931 - Removed unneeded grabbed variable, it was just mirroring
31933 - No longer firing OnTextChanged event when Text setter is called,
31934 since the base will fire the event for us
31935 - Added handling of Ctrl-Up/Down selection
31936 - Added handling of Shift-Cursorkey selection
31937 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
31939 - Added handling of Shift and Ctrl-Shift-Home/End selection
31940 - Removed some debug output
31941 - Added handling for single/double/tripple-click to place caret/
31942 select word/select line respectively (Fixes bug #76031)
31943 - Added support for drag expansion of word/line selection
31944 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
31947 2005-11-02 Jackson Harper <jackson@ximian.com>
31949 * X11Dnd.cs: If the drag is going to and from a MWF window just
31950 copy the data instead of sending it out through the X Selection
31953 2005-11-02 Jackson Harper <jackson@ximian.com>
31956 * XplatUIX11.cs: When in a drag we don't want motion notify
31957 messages to get passed on to the other controls. This prevents
31958 mouse move messages from showing up in the drag source.
31960 2005-11-02 Jackson Harper <jackson@ximian.com>
31962 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
31963 the correct button is release to end a drag.
31964 * XplatUIX11.cs: Make the button state internal so the drag system
31965 can access it. Dragging needs to know about all button releases,
31966 not just left button.
31968 2005-11-02 Miguel de Icaza <miguel@novell.com>
31970 * Form.cs (Icon): If the icon is null, reset the icon to the
31973 * Cursor.cs: When writing the AND-mask bitmap do not include the
31974 number of colors, but hardcode those to two (black and white),
31975 fixes the loading of color cursors (Paint Dot Net).
31977 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
31978 turn off autoscaling.
31980 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
31982 2005-11-02 Jackson Harper <jackson@ximian.com>
31984 * X11Dnd.cs: Make sure to send a status message if the pointer
31985 enters a control that can not accept a drop, otherwise the cursor
31986 isn't updated correctly. Also tried to compress the lines of code
31989 2005-11-02 Jackson Harper <jackson@ximian.com>
31991 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
31992 set actions correctly. This isn't perfect as XDND and win32 have
31993 some differences on how you allow actions. I'll clear this up by
31994 adding a path for drag from MWF to MWF windows.
31995 * XplatUIX11.cs: Hook into the dnd system.
31997 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
31999 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
32000 previously shown but they are no longer need it. Very obvious when
32001 browsing files with FileDialog.
32003 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
32005 * Control.cs: We always need to call OnPaintBackground. We pretty much
32006 ignore AllPaintingInWmPaint and always do the painting there, whether
32007 it's set or not, since we always ignore the WM_ERASEBKGND message
32008 (which we don't generate on X11). This fixes #76616.
32009 * Panel.cs: Removed unneeded background painting. This happens properly
32010 in Control.cs already
32012 2005-10-31 Mike Kestner <mkestner@novell.com>
32014 * Menu.cs: Add items to collection before setting their index.
32015 * MenuItem.cs : add range checking with ArgumentException like MS.
32018 2005-10-31 Jackson Harper <jackson@ximian.com>
32020 * ListBox.cs: Invalidate if the area is visible at all not just
32021 contained in the visible rect. Fixes unselection of semi visible
32024 2005-10-31 Jackson Harper <jackson@ximian.com>
32026 * Control.cs: Consistently name the dnd methods. Make them
32027 internal so we can override them to match some MS behavoir
32029 * Win32DnD.cs: Use the new consistent names.
32031 2005-10-31 Jackson Harper <jackson@ximian.com>
32033 * TreeView.cs: Don't draw the selected node when we lose focus.
32035 2005-10-31 Jackson Harper <jackson@ximian.com>
32037 * X11Dnd.cs: We still need to reset the state even though a full
32038 reset isn't being done, otherwise status's still get sent all over
32041 2005-10-31 Jackson Harper <jackson@ximian.com>
32043 * Control.cs: Make the dnd_aware flag internal so the dnd
32044 subsystem can check it. Catch exceptions thrown in dnd handlers to
32046 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
32047 * X11Dnd.cs: Handle null data in the converters. Set the XDND
32048 version when sending a XdndEnter. Use the control/hwnd dnd_aware
32049 flags to reduce the number of dnd enters/status's sent.
32051 2005-10-31 Jackson Harper <jackson@ximian.com>
32053 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
32055 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
32057 * PictureBox.cs: Fixes 76512
32059 2005-10-28 Jackson Harper <jackson@ximian.com>
32061 * X11Dnd.cs: Early implementation to support winforms being a drag
32062 source for data on X11. Also restructured the converters so they
32063 can go both ways now.
32064 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
32066 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
32068 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
32071 2005-10-27 Jackson Harper <jackson@ximian.com>
32073 * TreeNode.cs: Implement serialization so my DnD examples will work.
32075 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
32077 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
32078 TreeView.cs: Don't dispose objects that are not owned.
32080 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
32082 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
32083 should retrieve the current cursor and report that, but XplatUI
32084 doesn't (yet) have an interface for that (and I'm not sure I even
32086 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
32087 until any message loop processing is done (and the WM_SETCURSOR
32088 replaces the cursor to the proper one)
32090 - Fixed override behaviour, we can't set the cursor globally on X11,
32091 just for our windows.
32092 - Invalidating the System.Drawing X11 display handle when we are
32094 * Control.cs: Fix to make csc happy
32096 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
32099 - get_Text: Add last line (without trailing newline) to returned
32100 value (Fixes 76212)
32101 - get_TextLength: Count last line in returned length
32102 - ToString: Call Text property instead of duplicating code
32104 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
32106 * ImageList.cs: Dispose ImageAttributes objects.
32108 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
32110 * ImageList.cs: Use attribute constructors with less arguments where
32113 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
32115 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
32116 Use typeof instead of strings when assembly is referenced. Added
32117 some more comments.
32119 2005-10-21 Jackson Harper <jackson@ximian.com>
32121 * ListView.cs: Raise a double click event. Also tried to somewhat
32122 fix when the selectedindexchanged event is raised. Its still
32125 2005-10-21 Jackson Harper <jackson@ximian.com>
32127 * TreeView.cs: New method to invalidate the plus minus area of a
32128 node without invalidating the whole node (maybe this can be used
32129 in some more places).
32130 * TreeNodeCollection.cs: When adding to an empty node we need to
32131 invalidate its plus minus area so the little block shows up.
32133 2005-10-21 Jackson Harper <jackson@ximian.com>
32135 * TreeView.cs: Make sure that when we invalidate a node the bounds
32136 are big enough to cover the selected box and the focus
32137 rectangle. Use a different colour for the lines connecting nodes
32138 so they show up with all themes.
32140 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
32142 * NativeWindow.cs: Don't call anything that could call into the driver,
32143 we might be on a different thread.
32145 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
32147 * Control.cs(Dispose): Since Dispose might run on a different thread,
32148 make sure that we call methods that could call into the driver via
32149 invoke, to avoid thread issues
32151 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
32153 * XplatUI.cs: Removed finalizer
32154 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
32155 not allowing to be called on the finalizer thread.
32157 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
32160 - Reverted r51889 and r51891.
32161 - Added ImageListItem class that stores unmodified image items and image
32162 properties required to create list images until handle is created.
32163 - Added AddItem and moved image creation logic to AddItemInternal.
32164 - Added CreateHandle method that creates images based on unmodified items.
32165 - Added DestroyHandle that changes state to store unmodified items.
32166 - Add and AddStrip methods no more create handle.
32167 - ReduceColorDepth has no return value.
32168 - Dispose destroys handle.
32169 - Modified other methods to reflect the above changes.
32170 - Implemented key support.
32171 - Added profile 2.0 members and attributes.
32172 - Added private Reset and ShouldSerialize methods that provide the same
32173 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
32174 them as they are private.
32175 - Added some more comments about implementation details.
32177 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
32179 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
32181 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
32183 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
32185 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
32187 * DataGridDrawingLogic.cs: Fixes column hit calcultation
32188 * DataGridColumnStyle.cs: Remove debug message
32190 2005-10-20 Jackson Harper <jackson@ximian.com>
32192 * TreeView.cs: We can always get input keys regardless of whether
32193 or not editing is enabled. They are used for navigation.
32195 2005-10-20 Jackson Harper <jackson@ximian.com>
32197 * TreeNode.cs: Use the viewport rect for determining if a node
32198 needs to be moved for visibility. Don't use Begin/End edit. This
32199 calls a full refresh when its done.
32200 * TreeView.cs: New SetBottom works correctly. Make the viewport
32201 rect property internal so the treenodes can see it. When clicking
32202 on a node we need to ensure that its visible because it might just
32203 be partly visible when clicked.
32205 2005-10-20 Jackson Harper <jackson@ximian.com>
32207 * TreeNodeCollection.cs: Remove debug code.
32209 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
32211 * Datagrid.cs: Implements column sorting in Datagrid
32212 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
32214 2005-10-20 Jackson Harper <jackson@ximian.com>
32216 * TreeNodeCollection.cs: Remove items properly. Update the correct
32217 area after removing them.
32219 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
32221 * Datagrid.cs: Should not call base.OnPaintBackground
32223 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
32225 * XplatUIX11.cs (GetMessage):
32226 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
32227 window instead of client window
32228 - Now properly calculates NC_xBUTTONUP message coordinates
32229 - ScreenToMenu now properly calculates it's coordinates of whole
32230 window, since menus are in the whole window, not in the client
32232 - Added WholeToScreen coordinate translation method
32234 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
32236 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
32237 want to return a message, loop back to the beginning of the function
32238 and grab the next real message to process instead.
32240 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
32242 * Splitter.cs: Properly set limits if no filler control is used
32244 2005-10-19 Jackson Harper <jackson@ximian.com>
32246 * ColorDialog.cs: Don't show the help button if it is not enabled
32247 instead of disabling it (this is what MS does). Don't create the
32248 panel until the dialog is run, otherwise the vars (such as
32249 ShowHelp) are not set yet.
32251 2005-10-19 Jackson Harper <jackson@ximian.com>
32253 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
32254 are reduced when adding nodes.
32256 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
32259 2005-10-19 Jackson Harper <jackson@ximian.com>
32261 * FolderBrowserDialog.cs: End editing our treeview so the window
32262 actually gets refreshed.
32264 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
32266 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
32267 Obsoleted handling of WM_ERASEBKGND, now always draws our background
32270 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
32272 * MenuAPI.cs: Returns after Hidding window
32273 * XplatUIX11.cs: Added TODO found while debugging menu issues
32275 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
32277 * XplatUIX11.cs: Do not re-map the whole window when it's size
32278 becomes non-zero unless it's supposed to be actually visible
32280 2005-10-18 Jackson Harper <jackson@ximian.com>
32282 * TreeView.cs: We don't need to keep a count anymore.
32283 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
32284 use the Grow method.
32286 2005-10-18 Jackson Harper <jackson@ximian.com>
32288 * TreeNodeCollection.cs: Insert is not supported on arrays, so
32289 implement it manually here.
32291 2005-10-18 Jackson Harper <jackson@ximian.com>
32293 * ImageList.cs: Dont kill the list when the colour depth is
32294 changed, just change the colour depth of all the images.
32295 - Same goes for setting the image size. Just resize them all
32296 instead of killing the list softly.
32298 2005-10-18 Jackson Harper <jackson@ximian.com>
32300 * Control.cs: Don't invalidate empty rectangles.
32302 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
32305 - Adds checked item to the Checked/Item lists (where empty before)
32306 - Do not add items to the Selected lists if they are already present
32308 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
32309 - When deleting items make sure that we delete them for the Selected
32310 and Checked list also.
32312 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
32314 * Label.cs: Dispose objects no longer used
32315 * ThemeWin32Classic.cs: Dispose objects no longer used
32317 2005-10-18 Jackson Harper <jackson@ximian.com>
32319 * TabControl.cs: Don't refresh the whole control when the tabs are
32320 scrolled, we just need to refresh the tab area.
32322 2005-10-17 Jackson Harper <jackson@ximian.com>
32324 * XplatUIX11.cs: Compress code a little bit. Only calculate the
32325 after handle when we need it.
32327 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
32329 * Control.cs: When the parent size changes, recalculate anchor
32330 positions. Partial fix for #76462
32332 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
32334 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
32335 drawn. Fixes #76462
32337 2005-10-17 Jackson Harper <jackson@ximian.com>
32339 * MonthCalendar.cs: Don't create the numeric up down until our
32340 handle is created. Otherwise our handle is created in the
32341 constructor and we don't know if we are a WS_CHILD or WS_POPUP
32344 2005-10-17 Jackson Harper <jackson@ximian.com>
32346 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
32349 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32350 * TreeNode.cs : small logical fix (was using local var instead of field)
32352 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
32354 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
32356 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
32358 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
32360 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
32363 - Re-implemented anchoring code. My first version was really broken.
32364 This fixes bug #76033. Unlike the previous implementation we will
32365 no longer have round errors since all numbers are calculated from
32366 scratch every time. Removed various anchor-related obsolete vars.
32367 - InitLayout no longer causes layout event firing and layout to be
32370 2005-10-16 Jackson Harper <jackson@ximian.com>
32372 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
32375 2005-10-16 Jackson Harper <jackson@ximian.com>
32377 * TabControl.cs: Remove debug code.
32379 2005-10-16 Jackson Harper <jackson@ximian.com>
32381 * XEventQueue.cs: Increase the default queue size (very simple
32382 apps needed to grow the queue).
32383 * Hwnd.cs: No finalizer so we don't need to suppress
32384 finalization. Compute the invalid area manually so a new rectangle
32385 does not newto be created.
32386 * ScrollableControl.cs: Don't set any params (otherwise visibility
32387 isn't set correctly).
32388 * MdiChildContext.cs: New constructor takes the mdi parent so it
32389 doesn't have to be computed and avoids a crash on windows. Draw
32390 the window icon properly, and allow the text to be seen.
32391 * Form.cs: Use new MdiChildContext constructor. Make sure the
32392 child context isn't null in wndproc.
32393 * TabControl.cs: Don't set focus, this is muddling keyboard
32394 behavoir. Expand the tab rows when a window size increase will
32395 allow extra tabs to be seen. Don't allow tabs smaller than the
32396 width of a window to be scrolled out of view.
32398 * TreeView.cs: Use measure string to calculate a nodes width, the
32399 width is cached and only updated when the text or the font is
32400 changed. Don't check for expand/collapse clicks on the first level
32401 nodes if root lines are disabled.
32403 2005-10-16 Ritvik Mayank <mritvik@novell.com>
32405 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
32407 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
32409 * DataGridBoolColumn.cs: fixes warning
32411 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
32413 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
32414 to match more to match more precisely the MS Net behavior
32416 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
32418 * Hwnd.cs: Added field to track if window is mapped
32420 - Unmap windows if they become 0-size, re-map when
32421 they are >0 again; fixes #76035
32422 - Re-set our error handler after initializing X11Desktop
32423 to override any error handlers Gtk or whatever was called
32426 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
32428 * CheckedListBox.cs: Removed unused vars
32429 * ListView.cs: Fixed signatures
32430 * RichTextBox.cs: Removed unused vars
32431 * TextBoxBase.cs: Removed unused vars
32432 * XplatUIWin32.cs: Removed unused vars
32433 * XplatUIX11.cs: Removed unused vars
32434 * XplatUI.cs: Updated version and date to latest published
32436 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
32438 * Cursor.cs: Added private .ctor to work around a bug in
32439 resourceset (Thanks to Geoff Norton for the help on this)
32440 * SplitterEventArgs.cs: Made fields accessible so we don't
32441 waste boatloads of objects and can reuse the same one
32443 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
32444 any captions and borders when generating screen coordinates
32445 * Splitter.cs: Reimplemented control, now fully complete, uses
32446 rubberband drawing, supports and obeys all properties, has
32449 2005-10-13 Miguel de Icaza <miguel@novell.com>
32451 * Form.cs (Form): Setup default values for autoscale and
32452 autoscale_base_size; Make these instance variables, not static
32455 (OnLoad): on the first load, adjust the size of the form.
32457 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
32459 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
32460 width argument to DrawReversibleRectangle()
32461 * XplatUIWin32.cs, XplatUIX11.cs:
32462 - Implemented width for DrawReversibleRectangle()
32463 - Added logic to DrawReversibleRectangle that recognizes a zero
32464 width or height and only draws a line in that situation
32466 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
32468 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
32469 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
32470 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
32471 method (it uses our FosterParent window to get a graphics context)
32473 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
32475 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
32476 and SetWindowBackground methods
32478 - Setting proper ControlStyles
32479 - We no longer call XplatUI.SetWindowBackground and XplatUI.
32480 EraseWindowBackground, instead we draw the window background
32481 ourselves in PaintControlBackground. This behaviour is
32482 required to match MS, where, when OnPaintBackground is not
32483 called, the background is not drawn.
32484 - Removed unneeded Refresh() in set_Text
32485 * Hwnd.cs: Dropped the ErasePending support. No longer needed
32487 - Created DeriveStyles method to translate from CreateParams to
32488 FormBorderStyle and TitleStyle, also handles BorderStyle (which
32489 matches FormBorderStyle enum values)
32490 - Consolidated SetHwndStyles and CalculateWindowRect border/title
32491 style calculations into single DeriveStyles method
32492 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
32493 from redrawing the whole window on any resize or expose.
32494 - Fixed CreateWindow usage of SetWindowValuemask. Before not
32495 all styles were applied to our whole/client window appropriately
32496 - Removed EraseWindowBackground() and SetWindowBackground() methods
32497 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
32498 no longer clear/redraw the background through X
32499 - Removed handling of erase_pending bit, we have no use for it (or
32502 - Removed generation and handling of WM_ERASEBKGND message
32503 - Removed EraseWindowBackground() and SetWindowBackground() methods
32504 - Removed handling of hwnd.ErasePending flag
32506 - Removed EraseWindowBackground() and SetWindowBackground() methods
32507 - We no longer call EraseWindowBackground on PaintEventStart, we
32508 ignore the fErase flag, erasing is handled in Control in the
32510 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
32511 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
32512 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
32513 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
32514 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
32515 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
32516 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
32518 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
32520 * PropertyGrids.cs: Get sub properties
32521 * PropertyGridView.cs: Fix drawing code
32523 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
32525 * ListBox.cs: Fixes 76383
32527 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
32529 * DataGridTextBoxColumn.cs: Sets location and size before attachment
32530 * ThemeWin32Classic.cs: Fixes border drawing and calculations
32531 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
32534 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
32536 * ComboBox.cs: Fixes border drawing
32538 2005-10-10 Miguel de Icaza <miguel@novell.com>
32540 * MimeIcon.cs: Ignore errors if the file can not be read.
32542 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
32544 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
32545 - Fixed border calculations
32546 - Fixed horizontal scrolling in single column listboxes
32547 - Fixed drawing issues
32549 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
32551 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
32552 FormBorderStyle enum
32553 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
32554 code to determine FormBorderStyles from CreateParams
32556 - Fixed bug where we'd set the wrong window styles if we were
32557 not creating an MDI window
32558 - Added call to XplatUI.SetBorderStyle when form borders are set
32559 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
32561 - Removed obsolete edge style
32562 - Switched from BorderStyle to FormBorderStyle
32564 2005-10-10 Jackson Harper <jackson@ximian.com>
32566 * Form.cs: Use the property to get the window handle instead of
32567 accessing it directly. Prevents a null reference exception.
32569 2005-10-10 Jackson Harper <jackson@ximian.com>
32571 * TreeView.cs: Don't adjust the rect given to DrawString now that
32572 our libgdiplus draws correctly.
32574 2005-10-08 Jackson Harper <jackson@ximian.com>
32576 * TreeView.cs: Don't try to find the clicked on node if there are
32577 no nodes in the tree.
32579 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
32585 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
32587 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
32588 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
32590 Use ResPool for brushes and dispose System.Drawing objects that
32591 are not used anymore.
32593 2005-10-07 Jackson Harper <jackson@ximian.com>
32595 * MdiChildContext.cs: Use the new borders instead of drawing them
32598 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
32600 * Calling UpdateBounds after changing the window's BorderStyle
32601 since the style can change the ClientSize
32603 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32605 * Control.cs: Made PaintControlBackground virtual
32606 * Panel.cs: Overriding PaintControlBackground instead of using paint
32607 event; paint event method was interfering with 'real' users of the
32610 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
32612 * ThemeWin32Classic.cs: remove border drawing since it is handled
32613 by the base control class now and was causing double border drawing.
32615 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32617 * Panel.cs: Redraw our background on paint. Not a pretty solution,
32618 but it does seem to match MS behaviour. This fixes bug #75324
32620 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32622 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
32623 somewhat hackish looking
32625 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32628 - We now accept Enter even if AcceptEnter is false, if the containing
32629 form does not have an AcceptButton configured (fixes bug #76355)
32630 - Calculations are now fixed to no longer use Width/Height, but
32631 ClientSize.Width/Height, since we now support borders (this was
32632 a result of fixing borders and therefore bug #76166)
32633 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
32634 true (fixes bug #76354)
32636 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32639 - Defaulting BorderStyle and setting it in XplatUI when our window
32641 - Added enum check to InternalBorderStyle setter
32643 - Added drawing of window borders
32644 - Now properly calculates WM decorations offset for toplevel
32645 windows (fixes bug #74763)
32647 - Implemented BorderStyles for windows (we're letting win32 draw
32649 - Fixed the signature for SetWindowLong
32650 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
32651 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
32653 * UpDownBase.cs: Remove drawing of borders, this is handled by
32654 the driver, outside the client area
32655 * ListView.cs: Removed bogus border calculations. The control should
32656 be oblivious to borders, since those are not part of the client
32658 * X11DesktopColors.cs: Commented out (currently) unneeded variables
32659 * ThemeWin32Classic.cs: Removed border calculations from ListView
32662 2005-10-06 Jackson Harper <jackson@ximian.com>
32664 * MdiChildContext.cs: Clear out the old virtual position remove
32665 all the unneeded calls to CreateGraphics.
32667 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32669 * TextControl.cs: Use proper color for highlighted text; fixes #76350
32671 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32674 - Added loading and setting of our new default icon
32675 - Only set icon if window is already created
32677 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32680 - Do not explicitly set the foreground and background colors, to
32681 allow inheriting from parents (fixes #76302)
32682 - Use Control's InternalBorderStyle property to deal with borders
32684 2005-10-06 Jackson Harper <jackson@ximian.com>
32686 * MdiChildContext.cs: Use the new xplatui function to draw a
32689 2005-10-06 Jackson Harper <jackson@ximian.com>
32691 * Form.cs: Add the parent before creating the child context cause
32692 we need the parent when setting up the child.
32694 2005-10-06 Jackson Harper <jackson@ximian.com>
32696 * FolderBrowserDialog.cs: redo the tree population code so a
32697 second thread isn't used. Should be a lot faster and more stable
32700 2005-10-05 Jackson Harper <jackson@ximian.com>
32702 * TreeView.cs: There are no expand/collapse boxes if the node has
32705 2005-10-05 Jackson Harper <jackson@ximian.com>
32707 * X11DesktopColors.cs: Get menu colours for the gtk theme.
32709 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
32711 * FileDialog.cs: Fix InitialDirectory
32713 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
32716 - Fixes changing between styles
32717 - Fixes simple mode
32718 - Fixes last item crashing when navigating with keyboard
32720 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
32722 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
32724 2005-10-05 Jackson Harper <jackson@ximian.com>
32726 * TreeView.cs: If updating the root node do a full refresh.
32727 * TreeNode.cs: The root node should be expanded by default. Also
32728 added a utility prop to tell if we are the root node.
32729 * TreeNodeCollection.cs: Only refresh if the node we are being
32730 added to is expanded. Also added a comment on a potential
32733 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
32735 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
32736 in dispose method. Fixes #76330
32738 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
32740 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
32742 - Implements vertical and horizontal scrolling using XplatUI
32743 - Fixes keyboard navagation
32744 - Fixes EnsureVisible
32746 - Handles and draws focus properly
32749 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
32751 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
32752 Create handle. NET_2_0: Destroy handle when value is null.
32754 2005-10-03 Jackson Harper <jackson@ximian.com>
32756 * ScrollBar.cs: My last scrollbar patch was broken. This is a
32757 revert and a new patch to prevent the thumb from refreshing so
32760 2005-10-02 Jackson Harper <jackson@ximian.com>
32762 * ScrollBar.cs: Don't update position if it hasn't actually
32763 changed. This occurs when you hold down the increment/decrement
32764 buttons and the thumb gets to the max/min.
32766 2005-10-01 Jackson Harper <jackson@ximian.com>
32769 * MdiChildContext.cs:
32770 * MdiClient.cs: Implement ActiveMdiChild in Form.
32772 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
32774 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
32776 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
32778 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
32781 2005-09-30 Jackson Harper <jackson@ximian.com>
32783 * ListBox.cs: Don't do a full refresh unless some data has
32786 2005-09-30 Jackson Harper <jackson@ximian.com>
32788 * TreeView.cs: Make sure that the checkboxes size is factored in
32789 even when not visible.
32791 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
32793 * FileDialog.cs: Fix Jordi's build break
32795 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
32798 - Use standard the Windows colours for the combobox as espected
32799 - Dispose objects that use resouces when no longer need them
32801 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
32803 * X11DesktopColors.cs: Initial incomplete implementation
32804 * XplatUIX11.cs: Added call to initialize X11DesktopColors
32806 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
32809 - Switched Theme color names to match the names defined in
32810 System.Drawing.KnownColors. Life's hard enough, no need to make
32812 - Added setters to all theme color properties so themes can set
32813 their color schemes. The setters also propagate the color changes
32814 to System.Drawing.KnownColors via reflection
32815 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
32816 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
32817 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
32818 use the new, more logical theme color names
32819 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
32821 * ThemeWin32Classic.cs:
32822 - Removed code to set the old classic Windows colors. Instead it
32823 now relies on the colors returned by System.Drawing.KnownColors
32824 which will be either modern static colors (Unix) or colors
32825 read from the user's configuration (Win32)
32826 - Updated to use the new, more logical theme color names
32827 - Switched DataGrid drawing code to use only Theme colors instead of
32828 a mix of System.Drawing.KnownColors and Theme colors
32829 - DrawFrameControl(): Removed code that fills the button area, the
32830 fill would overwrite any previous fill done by a control. This
32832 - Added DrawReversibleRectangle() stub
32833 * ScrollableControl.cs: Set visible state to false when scrollbars
32834 are removed (pdn fix)
32835 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
32836 DrawReversibleRectangle() method to allow drawing primitive
32838 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
32840 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32842 * ImageList.cs: Add(Icon): Create handle.
32844 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
32847 * ThemeWin32Classic.cs:
32848 - Fixes detail mode
32850 - Issues with drawing
32852 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32854 * ImageList.cs: Moved RecreateHandle back to ImageList as event
32855 source has to be the ImageList.
32857 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32859 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
32861 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32863 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
32865 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32867 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
32869 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
32870 * GridItem.cs: Fixed TODOs
32871 * GridItemCollection.cs: Added ICollection interface
32873 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32875 * ImageList.cs: Resize icons when needed.
32877 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
32880 - Fixes GetBounds and returns on screen rects
32882 - Fixes vertical and horzintal scrolling of items
32883 * ThemeWin32Classic.cs:
32886 2005-09-29 Raja R Harinath <harinath@gmail.com>
32888 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
32890 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
32892 * ImageList.cs: Added comments about handle creation. Moved Handle,
32893 HandleCreated and OnRecreateHandle implementations to ImageCollection.
32894 Handle is created in Add methods.
32896 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
32898 * DataGridDrawingLogic.cs:
32899 - Takes rows into account on Colum calculations
32900 - Returns the column when clickig
32902 - Fixes default HitTestInfo values
32903 - Fixes HitTestInfo.ToString
32904 - Fixes ResetBackColor
32906 2005-09-28 Jackson Harper <jackson@ximian.com>
32908 * MdiChildContext.cs: Obey rules for fixed sized windows (no
32909 sizing or cursor changes). Also added some temp code to draw the
32910 titlebars text (Makes dev a little easier).
32912 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
32914 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32916 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
32918 * ListBox.cs: Fixes bug 76253
32920 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
32922 * ImageList.cs: Added comments about the current implementation. Added
32923 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
32924 Format32bppArgb to preserve transparency and can use Graphics.FromImage
32925 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
32926 with Bitmap.LockBits for better performance. Revised the whole file to
32927 match MS.NET behaviour and provide better performance. Non-public
32928 interface members are calling public members even when they throw
32929 NotSupportedException for better maintainability. Moved ColorDepth,
32930 ImageSize, ImageStream and TransparentColor implementations to
32931 ImageCollection for better performance as these properties are not used
32933 * ImageListStreamer.cs: Added a new internal constructor that takes an
32934 ImageList.ImageCollection and serializes Images based on
32935 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
32936 match ImageList property name.
32938 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
32940 * ListBox.cs: Fixes IndexFromPoint for last item
32942 2005-09-27 Jackson Harper <jackson@ximian.com>
32944 * Form.cs: Set the position of new mdi children correctly.
32946 2005-09-27 Jackson Harper <jackson@ximian.com>
32948 * MdiClient.cs: New mdi children need to be added to the back of
32949 the controls collection so the zorder is set correctly. Also add a
32950 count of all the child windows that have been created.
32952 2005-09-27 Jackson Harper <jackson@ximian.com>
32954 * Form.cs (CreateParams): Setup MDI forms correctly.
32956 2005-09-27 Jackson Harper <jackson@ximian.com>
32958 * MdiChildContext.cs:
32959 * MonthCalendar.cs:
32965 * ScrollableControl.cs:
32966 * ComboBox.cs: Add implicit controls using the new implict control
32967 functionality in ControlCollection. Also try to block multiple
32968 control add in a suspend/resume layout to save some cycles.
32970 2005-09-27 Jackson Harper <jackson@ximian.com>
32972 * Control.cs: Add functionality to the controls collection to add
32973 'implicit controls' these are controls that are created by the
32974 containing control but should not be exposed to the user. Such as
32975 scrollbars in the treeview.
32976 * Form.cs: The list var of the ControlsCollection is no longer
32977 available because of the potential of implicit controls getting
32978 ignored by someone accessing the list directly.
32980 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
32982 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
32983 loose it's parent. (Fixed bug introduced in r49103 when we added
32984 setting the child parent to null on Remove)
32986 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
32988 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
32989 * Splitter.cs: Added missing attributes for BorderStyle property.
32990 * TextBoxBase.cs: Marked Calculate* methods internal.
32991 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
32994 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
32996 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
32998 2005-09-25 Jackson Harper <jackson@ximian.com>
33000 * TreeView.cs: Update the node bounds correctly regardless of
33001 whether the node is visible.
33003 2005-09-25 Jackson Harper <jackson@ximian.com>
33005 * ImageList.cs: Don't dispose the image after it is added to the
33006 image list. Only reformat images that need to be resized.
33008 2005-09-25 Jackson Harper <jackson@ximian.com>
33010 * ImageList.cs: Don't set the format when changing the image.
33012 2005-09-25 Jackson Harper <jackson@ximian.com>
33014 * TreeView.cs: We can't just assume the node has a font. Use the
33015 treeviews font if no node font is available.
33017 2005-09-25 Jackson Harper <jackson@ximian.com>
33019 * TreeView.cs: Allow the scrollbars to be reset with negative
33021 - Don't add scrollbars to negative sized windows.
33023 2005-09-23 Jackson Harper <jackson@ximian.com>
33025 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
33026 old Mono.Posix. Also remove some stray code that shouldn't have
33029 2005-09-23 Jackson Harper <jackson@ximian.com>
33031 * TreeView.cs: Attempt at proper sizing of the horizontal
33032 scrollbar. Also don't resize the scrollbars unless they are
33035 2005-09-23 Jackson Harper <jackson@ximian.com>
33037 * TreeView.cs: We don't need to expand the invalid area when the
33038 selection changes, as this is all drawn in the node's bounding
33039 box. The area needs to be expanded (previous typo was contracting
33040 it) when the focus rect moves.
33042 2005-09-23 Jackson Harper <jackson@ximian.com>
33044 * TreeView.cs: Display the selection box under the correct
33045 circumstances. We were rendering white text with no selection box
33048 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
33050 * TextControl.cs(Split): Now updates selection start/end if it points
33051 into a line that's being split. Fixes a FIXME and bug #75258
33053 2005-09-23 Jackson Harper <jackson@ximian.com>
33056 * ListControl.cs: Don't use the path when retrieving binding
33057 managers from the binding context. My bat sense tells me that the
33058 path is only used on insertion.
33060 2005-09-22 Jackson Harper <jackson@ximian.com>
33062 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
33064 2005-09-22 Jackson Harper <jackson@ximian.com>
33066 * Splitter.cs: There are special cursors used for splitting.
33067 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
33069 2005-09-22 Jackson Harper <jackson@ximian.com>
33071 * Splitter.cs: Change the cursor appropriately when the splitter
33072 is moused over, so the user actually knows there is a splitter
33075 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
33077 * Label.cs : Fix ToString method to give same output as MS.NET
33079 2005-09-22 Jackson Harper <jackson@ximian.com>
33081 * TreeView.cs: Create the scrollbars when the handle is created
33082 and add them right away, just make them invisble. Also account for
33083 the window being shrunk vertically to the point that the vert
33084 scrollbar needs to be added.
33085 - Remove some 0.5 adjustments to get around anti aliasing issues.
33087 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
33089 * MainMenu.cs: Fixes default value
33090 * MenuItem.cs: Fixes default value
33092 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
33094 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
33096 2005-09-21 Jackson Harper <jackson@ximian.com>
33098 * Control.cs: Don't try to set the border style on the window if
33099 it hasn't been created. When the window is created the border
33100 style will be used.
33102 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
33104 * Control.cs (Update): Don't call XplatUI if we don't have a
33107 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
33109 * ContainerControl.cs: Instead of throwing an exception, print
33110 a one-time warning about Validate not being implemented
33111 * XplatUIWin32.cs: Removed debug output
33113 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
33115 * Control.cs: Only set XplatUI background if we expect the windowing
33116 system to handle the background. This stops controls that draw their
33117 own background from flickering
33119 * XplatUIX11.cs: Support custom visuals and colormaps for window
33120 creation. This allows, amongst other things, using MWF X11 windows
33123 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
33125 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
33126 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
33127 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
33128 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
33129 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
33130 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
33131 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
33132 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
33133 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
33134 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
33135 GridColumnStylesCollection.cs,
33136 IDataGridColumnStyleEditingNotificationService.cs,
33137 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
33138 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
33139 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
33140 TreeNodeCollection.cs, AmbientProperties.cs,
33141 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33142 DataObject.cs, ErrorProvider.cs, Splitter.cs,
33143 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
33144 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
33145 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
33146 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
33147 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
33148 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
33149 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
33150 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
33151 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
33152 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
33153 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
33154 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
33155 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
33156 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
33157 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
33158 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
33159 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
33160 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
33161 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
33162 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
33163 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
33164 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
33165 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
33166 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
33167 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
33168 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
33169 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
33170 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
33171 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
33172 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
33173 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
33174 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
33175 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
33176 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
33177 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
33179 2005-09-21 Jackson Harper <jackson@ximian.com>
33181 * TreeNode.cs: Call Before/After Expand not Collapse when
33184 2005-09-20 Jackson Harper <jackson@ximian.com>
33186 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
33188 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
33192 - Fixes proper storing of subitems
33193 - Fixes not updated items
33195 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
33197 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
33198 things if our window handle isn't created yet. Also disabled
33199 debug for TextBoxBase
33201 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
33203 * MenuAPI.cs: Remove filtering of events to allow menu usage
33205 2005-09-20 Miguel de Icaza <miguel@novell.com>
33207 * Cursor.cs: Allow null to be passed to Cursor.Current.
33209 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
33211 * ThemeWin32Classic.cs:
33212 - Change some private methods/fields to protected virtual so that
33213 they can be accessed and overriden in derived classes
33214 - First refactoring of some methods. Derived themes now don't
33215 need to duplicate the complete code from ThemeWin32Classic
33217 - Added nice StatusBar
33218 - Derive from ThemeWin32Classic and not Theme
33219 - Removed duplicate ThemeWin32Classic code
33221 2005-09-20 Miguel de Icaza <miguel@novell.com>
33223 * Control.cs (ControlCollection.Add): If the value null is passed
33224 the control is ignored.
33226 Optimize this loop.
33228 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
33230 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
33231 PostQuitMessage state.
33232 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
33234 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
33236 * Application.cs: Our constructor will never get called, move
33237 initialization to fields; fixes bug #75933
33239 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
33242 - Allow files to be selected properly using file name
33244 - Add ability to change diretory (absolute / relative)
33245 using file name combo box.
33247 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
33250 - Fixes Multicolumn listboxes item wrong calculations
33251 - Allows to click when only one item is in the listbox
33252 - Fixes crash when no items using keyboard navigation
33254 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
33256 * ComboBox.cs: Reverted almost everything from the latest patch which
33259 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
33262 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
33264 - When DropDownStyle is Simple, it does not show scrollbar
33265 to the last item of the list.
33266 - When DropDownStyle is Simple, it crashed when the list was
33267 scrolled down with the down cursor key.
33268 - Fixed a bug that when DropDownStyle is DropDownList, the
33269 selected item was not shown.
33270 - The position of the selected item was not preserved when
33271 the next dropdown happened.
33272 * ThemeWin32Classic.cs:
33273 - Items were wrapped at the right end.
33274 * CheckedListBox.cs:
33277 - Items should be fully shown.
33278 - When resizing and vertical scrollbar disappeared, the item
33279 of index 0 should be on the top of the list.
33280 - GetItemRectangle should consider the size of ver. scrollbar
33282 - SizingGrip area should not be allocated when it is not
33284 - Now it reflects MinWidth of the containing panel and
33285 fixed a crash that happens when its width becomes so small.
33287 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
33289 * CheckedListBox.cs: Fixes bug 76028
33290 * ListBox.cs: Fixes bug 76028
33292 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
33294 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
33295 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
33297 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
33299 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
33301 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
33303 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
33305 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
33307 * IRootGridEntry.cs: Added
33308 * PropertyGridCommands.cs: Added
33309 * PropertiesTab.cs: Added missing methods and property
33310 * PropertyGridView.cs: Made class internal
33311 * PropertyGridTextBox.cs: Made class internal
33313 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
33315 * MimeIcon.cs: Try to check some other environment variables
33316 if "DESKTOP_SESSION" returns "default"
33318 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
33320 * ThemeNice.cs: Corrected background colors (e.g. menus)
33321 * ColorDialog.cs: Use correct background colors for controls
33323 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
33325 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
33327 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
33329 * RichTextBox.cs: Added initial implementation
33330 * lang.cs: Removed. Was accidentally checked in long time ago
33331 * TODO: Removed. Contents were obsolete
33333 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
33335 * PropertiesTab.cs : Added
33337 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
33339 * PropertyGrid.cs : Update
33340 * PropertyGridView.cs : Update
33341 * System.Windows.Forms.resx : Added images and strings
33343 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
33345 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
33347 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
33349 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
33350 a busy loop right after the Ungrab the X11 display is otherwise
33353 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
33355 * ThemeWin32Classic.cs: Optimise the use of clipping
33357 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
33359 * DataGrid.cs: fixes recursion bug
33361 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
33364 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
33367 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
33369 * ThemeNice.cs: Draw nice ProgressBars
33371 2005-09-01 Miguel de Icaza <miguel@novell.com>
33373 * VScrollBar.cs: Another buglet found by Aaron's tool.
33375 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
33378 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
33381 - Added nicer menu drawing
33385 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
33387 * CreateParams.cs (ToString): Made output match MS
33388 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
33389 handle is already created (to avoid forcing window creation)
33390 * XplatUIX11.cs: Set window text to caption after creating window,
33391 in case Text was set before window was created
33392 * Form.cs: Use this.Text instead of a static string as caption
33394 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
33396 * NotifyIcon.cs: Don't set the window to visible; this screws
33397 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
33398 OnPaint without a bitmap)
33399 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
33400 happen very often anyway; we could add the check to the WM_PAINT
33401 event generation code
33403 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
33405 * NotifyIcon.cs: Fill the icon area with a background color, to
33406 avoid 'residue' when transparent icons are drawn
33408 - Handle whole_window == client_window when destroying windows
33409 - SystrayAdd(): Set client_window to whole_window value to
33410 get mouse and other events passed to NotifyIcon
33412 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
33414 * Form.cs: Set proper default for Opacity property
33416 - ShowSystray(): Don't bother creating telling the OS
33417 about the systray item if no icon is provided
33418 - Now handles WM_NCPAINT message to deal with whole/client window
33420 - Create window as visible to not get caught by Expose optimization
33421 * Hwnd.cs: Removed debug message
33422 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
33423 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
33424 PaintEventStart/End to use new client argument
33426 - Commented out debug messages
33427 - Switched PaintEventStart/End to use new client argument
33428 * XplatUI.cs: Added client window bool to PaintEventStart()/
33429 PaintEventEnd() calls, to support drawing in non-client areas
33430 * XplatUIDriver.cs:
33431 - Added client window bool to PaintEventStart()/PaintEventEnd()
33432 calls, to support drawing in non-client areas
33433 - Added conditional compile to allow using MWF BeginInvoke
33436 - Added some conditional debug output
33437 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
33438 whole/client window split
33439 - Implemented handling of client argument to PaintEventStart()/End()
33441 - Throw exception if BeginInvoke() is called and the window handle
33442 or one of the window's parent handles is not created
33443 - Added conditional compile to allow using MWF BeginInvoke on
33445 - get_Parent(): Only sets parent if handle is created. This avoids
33446 forcing window handle creation when parent is set.
33447 - Now fires Layout and Parent changed events in proper order
33448 - Switched to use Handle instead of window.Handle for Z-Order setting,
33449 the get_Parent() patch above causes us to possibly get null for 'window'
33450 - Implemented handling of client argument to PaintEventStart()/End()
33451 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
33453 - Now sends a Refresh() to all child windows when Refresh() is called
33455 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
33457 * Form.cs: Added (non-functional) Opacity property
33458 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
33460 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
33461 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
33462 use export MONO_THEME=nice to activate it.
33463 Currently supported controls:
33467 - TabControl (TabAlignment.Top only, other will follow)
33468 * ThemeEngine.cs: Add theme nice
33469 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
33472 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
33474 * Splitter.cs: Resize docked control and its neighbor.
33476 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
33477 -- Making Windows with Menus layout correctly --
33478 * Form.cs : The first leg of the fix
33479 Menu setter - adjust Client Size as needed to make space for the menu
33480 SetClientSizeCore - doesn't call base version to be able to pass the
33481 menu handle to XplatUI.CalculateWindowRect
33482 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
33483 * XplatUIX11.cs: The critical second leg of the fix
33484 GetWindowPos needs to use a recalculated client_rect
33485 so that resizing the window doesn't break layout of child controls.
33486 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
33487 Lots of \t\n killed
33489 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
33491 * Label.cs: Now properly recalculates width and height on Font and Text
33492 changes if AutoSize is set
33494 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
33495 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
33497 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
33499 * ImageList.cs: Makes ToString method compatible with MS
33501 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
33503 * MenuAPI.cs: fixes bug 75716
33505 2005-08-11 Umadevi S <sumadevi@novell.com>
33506 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
33508 2005-08-11 Umadevi S <sumadevi@novell.com>
33509 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
33511 2005-08-10 Umadevi S <sumadevi@novell.com>
33512 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
33514 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
33516 * Menu.cs: fixes bug 75700
33517 * MenuAPI.cs: fixes navigation issues
33519 2005-08-09 Umadevi S <sumadevi@novell.com>
33520 * CheckedListBox.cs - simple fix for GetItemChecked.
33522 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
33524 * ComboBox.cs: Serveral fixes
33525 * ListBox.cs: Serveral fixes
33527 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
33529 * ComboBox.cs: Fixes FindString methods and GetItemHeight
33530 * ListBox.cs: Fixes FindString methods
33532 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
33534 * DataGrid.cs: fixes bugs exposed by new tests
33536 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
33538 * Mime.cs: Compile Mono assembly references only if compiling
33539 with Mono (Allows to build with VS.Net again)
33541 2005-07-28 Marek Safar <marek.safar@seznam.cz>
33543 * Control.cs (PaintControlBackground): Draw background image
33545 (CheckForIllegalCrossThreadCalls): Stubbed.
33547 * Form.cs (OnCreateControl): Center when should be centered.
33549 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
33551 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
33553 * Binding.cs: Binding to properties should be case unsensitive
33555 2005-07-18 vlindos@nucleusys.com
33557 * DataGrid.cs: fixes setmember order
33559 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
33561 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
33562 * FileDialog.cs: FileDialog is now resizable and uses the new
33565 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
33567 * DataGridTextBoxColumn.cs: default value
33568 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
33569 * GridTableStylesCollection.cs: fixes checking MappingName
33570 * DataGridDrawingLogic.cs: fixes drawing logic issues
33571 * DataSourceHelper.cs: rewritten to make compatible with more data sources
33572 * DataGrid.cs: fixes
33574 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
33576 * MimeGenerated.cs: Use case sensitive comparer for
33577 NameValueCollections
33579 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
33581 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
33582 * ThemeWin32Classic.cs: bug fixes, code refactoring
33583 * DataGridDrawingLogic.cs: bug fixes, code refactoring
33584 * DataGrid.cs: bug fixes, code refactoring
33585 * DataGridTextBox.cs: bug fixes, code refactoring
33586 * DataGridColumnStyle.cs: bug fixes, code refactoring
33587 * Theme.cs: bug fixes, code refactoring
33589 2005-07-01 Peter Bartok <pbartok@novell.com>
33591 * TextControl.cs: Quick fix for the reported crash on ColorDialog
33592 and other text box usage
33594 2005-07-01 Jackson Harper <jackson@ximian.com>
33596 * TabControl.cs: Make sure the bottom of the tab covers the pages
33599 2005-06-30 Peter Bartok <pbartok@novell.com>
33601 * Form.cs (ShowDialog): Assign owner of the dialog
33602 * TextBoxBase.cs: Always refresh caret size when deleting, caret
33603 might have been moved to a tag with different height
33605 2005-06-30 Jackson Harper <jackson@ximian.com>
33607 * Form.cs: Don't create an infinite loop when setting focus
33608 * MenuItem.cs: Don't dirty the parents if we don't have any
33610 2005-06-29 Ben Maurer <bmaurer@ximian.com>
33612 * LibSupport.cs: Rename
33614 2005-06-29 Peter Bartok <pbartok@novell.com>
33616 * TextBoxBase.cs: Re-align caret after deleting a character
33618 - DeleteChars(): Ensure that tag covers the provided position
33619 - StreamLine(): Drop reference for dropped tag
33621 2005-06-29 Peter Bartok <pbartok@novell.com>
33624 - Selections now work properly, anchoring at the initial location
33625 and properly extending in either direction (SetSelectionToCaret(),
33626 SetSelectionStart() and SetSelectionEnd())
33627 - No longer redraws the whole control on selection change, now
33628 calculates delta between previous and new selection and only
33629 invalidates/redraws that area
33630 - Fixed FindPos() math off-by-one errors
33631 - Changed DeleteChars() to verify the provided tag covers the
33632 provided position, selections may have a tag that doesn't cover
33633 the position if the selection is at a tag border
33634 - Fixed off-by-one errors in DeleteChars()
33635 - Added missing streamlining check in DeleteChars() to remove
33637 - Implemented Invalidate() method, now properly calculates exposures
33638 between two given lines/positions
33639 - Implemented SetSelection()
33640 - Obsoleted and removed FixupSelection()
33641 - Improved RecalculateDocument() logic, removing code duplication
33643 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33645 * LibSupport.cs: changes to match different input/output arguments.
33647 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33649 * LibSupport.cs: added libsupport.so init routine.
33651 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
33653 * ControlBindingsCollection.cs
33654 - Throws an exception on null datasource when adding
33655 - Checks for duplicated bindings when adding
33657 2005-06-28 Jackson Harper <jackson@ximian.com>
33659 * TreeView.cs (OnKeyDown): Support left and right properly
33660 (navigates as well as expanding and collapsing.
33661 - Add support for Multiply, this expands all the selected nodes
33663 - Fix some tabbing.
33665 2005-06-28 Jackson Harper <jackson@ximian.com>
33667 * TreeView.cs: Implement keyboard navigation, currently supports,
33668 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
33669 support for toggling checkboxes with the space bar.
33671 2005-06-28 Jackson Harper <jackson@ximian.com>
33673 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
33676 2005-06-28 Jackson Harper <jackson@ximian.com>
33678 * TreeView.cs: Add missing event.
33680 2005-06-27 Peter Bartok <pbartok@novell.com>
33683 - Made line ending size configurable (now allows for counting
33684 lineendings as \n or \r\n)
33685 - Added margin to viewport to keep caret visible on right side
33686 - Fixed translation routines for line/pos to documentpos to consider
33687 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
33688 - Fixed some line-endings to be unix style
33689 - Fixed Document.FormatText to perform it's calculations 1-based
33690 - Added descriptions for a few methods that might otherwise get
33692 - Added NOTE section with some basic conventions to remember at
33693 the top of the file
33694 - Major fixup for RichTextBox selection drawing:
33695 * Fixed crashes when multiple tags on a single line were selected
33696 * fixed selection box drawing not overlaying text
33697 * fixed bogus offset calculation for tags not starting at index 1
33698 * Switched behaviour from using multiple Substrings of a
33699 StringBuilder.ToString() to using multiple
33700 StringBuilder.ToString(start, length) statements, hoping this is
33701 faster (kept original version commented out in the code, in case
33702 original version was faster)
33703 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
33705 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
33708 2005-06-27 Jackson Harper <jackson@ximian.com>
33710 * TabControl.cs: Move to the left and right with the arrow
33711 keys. These keys don't cycle beyond first and last like
33712 tab. Refresh all the tabs when scrolling them to the left or
33715 2005-06-27 Jackson Harper <jackson@ximian.com>
33718 - ToString: Added method
33719 - CreateParams: Remove TODO and comment
33720 - OnKeyDown: Cycle through bounds properly.
33721 - SelectedIndex: Scroll to the right or left if we need to
33722 display the newly selected tab.
33724 2005-06-23 Jackson Harper <jackson@ximian.com>
33726 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
33729 2005-06-23 Jackson Harper <jackson@ximian.com>
33731 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
33732 CTRL-SHIFT-TAB, and HOME, END are there any others?
33734 2005-06-23 Jackson Harper <jackson@ximian.com>
33736 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
33738 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
33740 * DataGridTextBoxColumn.cs: fixes and enhancements
33741 * ThemeWin32Classic.cs: fixes and enhancements
33742 * DataGridBoolColumn.cs: fixes and enhancements
33743 * DataGridDrawingLogic.cs: fixes and enhancements
33744 * CurrencyManager.cs: fixes and enhancements
33745 * DataGrid.cs: fixes and enhancements
33746 * DataGridColumnStyle.cs: fixes and enhancements
33748 2005-06-22 Jackson Harper <jackson@ximian.com>
33750 * TabControl.cs: Add some missing methods that just call into the
33751 base. Make the TabPageCollection's IList interface behave in the
33752 same manner as the MS implementation.
33754 2005-06-22 Peter Bartok <pbartok@novell.com>
33756 * TextControl.cs: Added sanity check
33758 - Fixed wrapping behaviour, don't set wrap on single line controls
33759 (this fixes the breakage of colordialog introduced in an earlier
33761 - Added rudimentary support for autoscrolling right-aligned controls
33762 (still needs fixing, also, center alignment scroll is missing)
33764 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
33766 * ScrollBar.cs: Fixes thumbpos on Maximum values
33768 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
33770 * PropertyGridView.cs: Pass context information to UITypeEditors
33772 2005-06-21 Peter Bartok <pbartok@novell.com>
33775 - Now calling PositionCaret with absolute space coordinates
33776 - Enabled vertical scrolling
33777 - Better tracking of scrollbar changes, tied into WidthChange
33779 - Improved cursor tracking
33780 - Removed debug output
33782 - PositionCaret coordinates are now works in absolute space, not
33784 - Improved tracking of document size
33785 - Added events for width and height changes
33787 2005-06-21 Peter Bartok <pbartok@novell.com>
33789 * Form.cs: Set focus to active control when form is activated
33791 - Added word-wrap functionality to RecalculateLine()
33792 - Added some short function descriptions for VS.Net to aid in
33793 writing dependent controls
33794 - Added Caret property, returning the current coords of the caret
33795 - Added ViewPortWidth and ViewPortHeight properties
33796 - Added Wrap property
33797 - Added CaretMoved event
33798 - Removed some old debug code
33799 - Split() can now create soft splits
33800 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
33801 - Added method to format existing text
33802 - Fixed size/alignment calculations to use viewport
33803 - RecalculateDocument now can handle changing line-numbers while
33807 - Added some wrap logic, we don't wrap if alignment is not left
33808 - Added casts for scrollbar var, base class switched types to
33809 also support RichTextBoxA
33810 - Implemented handling of scrollbar visibility flags
33813 - Switched scrollbars type to RichTextBoxScrollBars to support
33815 - Added tracking of canvas width/height
33816 - Switched scrollbars to be not selectable (to keep focus on text)
33817 - Added central CalculateDocument() method to handle all redraw
33819 - Added ReadOnly support
33820 - Added WordWrap support
33821 - Fixed handling of Enter key (we now treat it as a DialogKey)
33822 - Fixed caret positioning when h or v scroll is not zero
33823 - Fixed placing/generation of vertical scrollbar
33824 - Added CalculateScrollBars() method to allow updating scrollbar
33825 limits and visibility
33826 - Fixed handling of horizontal scroll
33827 - Added handling of vertical scroll
33828 - Implemented auto-'jump' when caret moves to close to a left or
33829 right border and there is text to be scrolled into view (currently
33830 there's the potential for a stack overflow, until a bug in
33831 scrollbar is fixed)
33833 2005-06-21 Geoff Norton <gnorton@customerdna.com>
33835 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
33837 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
33841 - return application/x-zerosize for files with size zero
33842 (if no extension pattern matches).
33843 - check matches collection for strings too.
33844 - return only the first mime type if the name value
33845 collection has more than one mime type.
33847 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
33849 * PropertyGrid.cs: Cleaned up some TODOs
33850 * PropertyGridView.cs: Added support for UITypeEditors
33852 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
33854 * DataGrid.cs: clears cached value
33856 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
33858 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
33859 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
33860 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
33861 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
33863 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
33865 * ThemeWin32Classic.cs: fixes colour
33867 2005-06-15 Peter Bartok <pbartok@novell.com>
33869 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
33870 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
33871 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
33872 * Control.cs: Added some MWFCategory and MWFDescription attributes
33873 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
33875 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
33877 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
33880 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
33882 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
33883 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
33884 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
33885 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
33886 * DataGrid.cs: default datagrid settings for Default Styles, fixes
33887 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
33889 2005-06-13 Jackson Harper <jackson@ximian.com>
33891 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
33892 isn't printed when the user enables dropping. (X11 does accept
33895 2005-06-13 Jackson Harper <jackson@ximian.com>
33897 * TreeView.cs: Remove some TODOS.
33899 2005-06-13 Jackson Harper <jackson@ximian.com>
33901 * Form.cs: Hook into the mdi framework.
33902 * MdiClient.cs: Use the base control collections add method so
33903 parents get setup correctly. Set the default back colour and dock
33905 * MdiChildContext.cs: New class, this bad actor handles an
33906 instance of an MDI window. Right now there is only basic
33907 support. You can drag, close, and resize windows. Minimize and
33908 Maximize are partially implemented.
33910 2005-06-13 Jackson Harper <jackson@ximian.com>
33912 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33913 freaky when both vals are negative. NOTE: There are probably other
33914 places in XplatUIX11 that this needs to be done.
33916 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
33918 * DataGrid.cs: implement missing methods, move KeyboardNavigation
33919 * DataGridColumnStyle.cs: fixes signature
33921 2005-06-12 Jackson Harper <jackson@ximian.com>
33923 * XplatUIX11.cs: Use sizing cursors similar to the ones on
33926 2005-06-11 Jackson Harper <jackson@ximian.com>
33928 * StatusBarPanel.cs: Signature cleanups. Implement
33931 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
33933 * DataGridTextBoxColumn.cs: Honors aligment
33934 * GridColumnStylesCollection.cs: Contains is case unsensitive
33935 * GridTableStylesCollection.cs: several fixes
33936 * DataGridTableStyle.cs: default column creation
33937 * DataGridDrawingLogic.cs: fixes
33938 * CurrencyManager.cs: ListName property
33939 * DataGrid.cs: multiple styles support
33940 * DataGridColumnStyle.cs: fixes
33943 2005-06-10 Peter Bartok <pbartok@novell.com>
33945 * Control.cs(Select): Moved SetFocus call to avoid potential
33946 loops if controls change the active control when getting focus
33947 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
33948 the up/down buttons
33950 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
33952 * ImageListConverter.cs: Implemented
33954 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
33956 * MonthCalendar.cs: Wired in NumericUpDown control for year
33958 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
33960 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
33961 DoubleClick events, since they are not meant to be fired.
33963 2005-06-09 Peter Bartok <pbartok@novell.com>
33965 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
33966 Jonathan's standalone controls into MWF, implemented missing
33967 events, attributes and methods; added xxxAccessible classes
33968 * AccessibleObject.cs: Made fields internal so other classes
33969 can change them if needed
33971 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
33973 * UpDownBase.cs: Complete implementation
33974 * NumericUpDown.cs: Complete implementation
33975 * DomainUpDown.cs: Complete implementation
33977 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
33979 * DataGridTextBoxColumn.cs: drawing fixes
33980 * DataGridCell.cs: fixes ToString method to match MSNet
33981 * DataGridTableStyle.cs: fixes
33982 * DataGridBoolColumn.cs: fixes, drawing
33983 * DataGridDrawingLogic.cs: fixes, new methods
33984 * DataGridTextBox.cs: Keyboard and fixes
33986 - Keyboard navigation
33988 - Row selection (single, multiple, deletion, etc)
33991 2005-06-07 Jackson Harper <jackson@ximian.com>
33993 * ThemeWin32Classic.cs: Clear the background area when drawing
33996 2005-06-06 Peter Bartok <pbartok@novell.com>
33998 * ImageListStreamer.cs: Fixed signature for GetData
33999 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
34001 - Added missing ChildAccessibleObject class
34002 - Added missing OnXXXFocus overrides, switched to using those
34003 instead of the event handler
34005 - Added Parent property for ControlAccessibleObject
34008 - Added ResetBindings()
34009 * ListBindingConverter.cs: Implemented some methods
34010 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
34011 * ImageList.cs: Implemented basic handle scheme, removed TODOs
34012 * ContainerControl.cs: Fixed signature, now subscribing to the
34013 ControlRemoved event instead of overriding the handler, LAMESPEC
34014 * CurrencyManager.cs: Added missing attribute
34015 * MonthCalendar.cs: Added missing properties
34017 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
34019 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
34021 2005-06-06 Gaurav Vaish and Ankit Jain
34023 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
34024 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
34026 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
34028 * Control.cs: fixes CreateParams Width / Height.
34030 2005-06-05 Peter Bartok <pbartok@novell.com>
34032 * Win32DnD.cs: Removed compilation warnings
34034 2005-06-05 Peter Bartok <pbartok@novell.com>
34036 * Control.cs (CreateParams): Since we don't know if one of the
34037 properties we use is overridden, lets make sure if we fail accessing
34038 we continue with a backup plan
34040 2005-06-05 Peter Bartok <pbartok@novell.com>
34043 - Removed debug output
34044 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
34046 - Plugged resource leak
34047 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
34050 2005-06-05 Peter Bartok <pbartok@novell.com>
34052 * XplatUIWin32.cs: Removed DnD code
34053 * Win32DnD.cs: Implemented drop source and drop target functionality
34055 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
34057 * UpDownBase.cs: remove duplicate addition of event, enable some code
34058 that was commented out.
34059 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
34060 Validate input when a key is pressed. It works fine now for every
34061 combination of Hexadecimal. Only missing some drawing love when sharing
34062 space with other controls.
34064 2005-06-04 Peter Bartok <pbartok@novell.com>
34067 - We need to pass a window for DragDrop, so enable callback events
34068 - Added DnD callback events when being a DragSource
34069 * XplatUI.cs (StartDrag): Added window handle argument
34070 * XplatUIDriver.cs (StartDrag): Added window handle argument
34071 * QueryContinueDragEventArgs: Made fields internally accessible so
34072 drivers can set them
34073 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
34076 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
34078 * DataGridTextBoxColumn.cs: column text editing
34079 * DataGridTableStyle.cs: Respect columns styles created by the user
34080 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
34081 * DataGridBoolColumn.cs: bool column editing
34082 * DataGrid.cs: fixes to scrolling, properties, etc
34083 * DataGridTextBox.cs: handle keyboard
34084 * DataGridColumnStyle.cs: fixes
34086 2005-06-02 Jackson Harper <jackson@ximian.com>
34088 * ImageListStreamer.cs: Somewhat broken implementation of
34089 GetObjectData. The RLE needs some work to match MS properly.
34091 2005-06-02 Jackson Harper <jackson@ximian.com>
34093 * X11Dnd.cs: Attempting to keep at least one file in MWF
34096 2005-06-02 Peter Bartok <pbartok@novell.com>
34098 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
34101 2005-06-02 Peter Bartok <pbartok@novell.com>
34103 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
34104 * XplatUI.cs: Added DoDragDrop() method
34105 * XplatUIDriver.cs: Added DoDragDrop() method
34107 2005-06-02 Jackson Harper <jackson@ximian.com>
34109 * Splitter.cs: Implement BorderStyle.
34111 2005-06-02 Jackson Harper <jackson@ximian.com>
34113 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
34114 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
34117 2005-06-02 Peter Bartok <pbartok@novell.com>
34120 - Added Data setter
34121 - Fixed broken insertion code for SetData, now also
34122 overwrites any existing entry of the same format name
34123 * Hwnd.cs: Added list of pointers that automatically gets
34124 freed when the window is disposed
34125 * XplatUI.cs: Call driver initialization method when loading
34128 - OnDragLeave takes EventArgs, not DragEventArgs
34129 - Added setting of WS_EX_ACCEPTFILES style when dropping is
34131 - Forces style update when drop state changes
34132 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
34133 not perfect since we cannot (yet) call the IDataObject.GetData()
34134 method, we keep getting 0x80004005 error, dunno why)
34136 2005-06-02 Peter Bartok <pbartok@novell.com>
34138 * DragEventArgs.cs: Make fields internal so we can cache the
34139 object and re-set the fields from XplatUI
34141 2005-06-02 Jackson Harper <jackson@ximian.com>
34143 * Control.cs: Add some internal methods so the DnD subsystem can
34144 raise DnD events. Also call into the driver when AllowDrop is set.
34146 * XplatUIDriver.cs: New method for setting whether or not a window
34147 is allowed to accept drag and drop messages.
34149 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
34151 * ScrollBar.cs: Make sure that values sent in Scroll events
34152 are always between Maximum and Minimum.
34154 2005-06-01 Marek Safar <marek.safar@seznam.cz>
34156 * Menu.cs: Call MenuChanged when menuitem visibility has been
34158 * MenuItem.cs: Rebuild menu when item is (not) visible.
34159 * MainMenu.cs: MainMenu has special MenuChanged.
34160 * Theme.cs: Caption and FrameBorderSize are not fixed.
34161 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
34162 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
34164 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
34165 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
34167 2005-05-30 Jackson Harper <jackson@ximian.com>
34169 * DataFormat.cs: We can't statically initialize this stuff because
34170 it calls into the xplatui and could create a loop. So we lazy init
34173 2005-05-28 Jackson Harper <jackson@ximian.com>
34175 * Control.cs: Proper implementation of Product(Name/Version).
34177 2005-05-27 Jackson Harper <jackson@ximian.com>
34179 * DataObject.cs: Dont crash if no data is found.
34181 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
34182 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
34183 as per status page, guessing it should be set to true
34185 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
34187 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
34188 * DataGridTableStyle.cs: set proper formatting text, def header text
34189 * ThemeWin32Classic.cs: new themable paramaters
34190 * DataGridBoolColumn.cs: paint check box, get data, fixes
34191 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
34192 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
34193 * DataGridColumnStyle.cs: fixes
34194 * Theme.cs: new themable paramaters
34196 2005-05-26 Peter Bartok <pbartok@novell.com>
34198 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
34200 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34201 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
34203 2005-05-24 Peter Bartok <pbartok@novell.com>
34205 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
34206 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
34207 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
34208 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
34209 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
34210 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
34211 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
34212 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
34213 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
34214 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
34215 missing attributes, etc
34216 * DataGridPreferredColumnWidthTypeConverter.cs: Added
34218 2005-05-24 Peter Bartok <pbartok@novell.com>
34220 * Help.cs: Added, implemented trivial functions, throws up MessageBox
34221 when user tries to get help
34222 * DataObject.cs, DataFormats.cs, LinkArea.cs,
34223 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
34224 to suppress warnings
34225 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
34226 avoid unreachable code warning
34228 2005-05-20 Peter Bartok <pbartok@novell.com>
34230 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
34232 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
34234 * DataGridTextBoxColumn.cs: Basic painting methods
34235 * DataGridTableStyle.cs: Set table style in the column
34236 * ThemeWin32Classic.cs: Use Theme for colors
34237 * DataGridDrawingLogic.cs: Implement more drawing
34238 * DataGrid.cs: drawing, theming, enhacements, fixes
34239 * DataGridColumnStyle.cs: fixes, drawing
34240 * Theme.cs: theming for Datagrid
34242 2005-05-20 Peter Bartok <pbartok@novell.com>
34244 * Cursor.cs: Implemented GetObjectData() method
34246 2005-05-20 Peter Bartok <pbartok@novell.com>
34248 * Cursors.cs: Added setting of cursor name
34250 - Implemented constructors
34251 - Implemented Draw and DrawStretched
34252 - Implemented Current property
34253 - Implemented == and != operators
34254 - Implemented Dispose()
34255 - Implemented ToString
34256 - Added missing attributes
34258 - Added missing reset for OverrideCursor when DoEvents is called
34259 - Fixed creation of cursor, logic was wrong
34261 - Added missing reset for OverrideCursor when DoEvents is called
34262 - Fixed creation of cursor, bit arrays were swapped
34263 * Clipboard.cs: Removed obsolete MonoTODO attribute
34265 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
34267 * ComboBox.cs: fixes OnSelectedItemChanged
34268 * ControlBindingsCollection.cs: fixes item range check
34270 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
34273 - Calc preferred height properly
34274 - Implement missing properties
34276 * NumericUpDown.cs: Implement missing events
34278 2005-05-19 Jackson Harper <jackson@ximian.com>
34280 * TabControl.cs: New method that resizes the tab pages before
34281 redrawing them. This as needed as the control is double buffered
34282 and sizing will not be recalculated unless ResizeTabPages is
34284 * TabPage.cs: Set base.Text instead of Text in the constructor so
34285 that UpdateOwner does not get called. Use the new Redraw method of
34286 TabControl instead of Refresh so the sizing is recalculated.
34287 * ThemeWin32Classic.cs: Draw the text for button tabs.
34289 2005-05-19 Jackson Harper <jackson@ximian.com>
34291 * Control.cs: Paint control background images. Fix typo where
34292 PaintControlBackground was not getting called correctly.
34294 2005-05-19 Peter Bartok <pbartok@novell.com>
34296 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
34297 I can investigate, apparently I broke FileDialog
34299 2005-05-19 Marek Safar <marek.safar@seznam.cz>
34301 * AxHost.cs: Some simple properties.
34302 * Control.cs: window must be accessible after ctor.
34303 * Form.cs: Added TransparencyKey property.
34304 * TextBoxBase.cs: Implemented Clear. Text property can be null.
34305 * XplatUIWin32.cs: SetBorderStyle implemented.
34307 2005-05-18 Peter Bartok <pbartok@novell.com>
34309 * DataObject.cs: Entries are not global but particular to the
34310 DataObject, now it behaves that way
34311 * XplatUIWin32.cs: Implemented Clipboard methods
34312 * Clipboard.cs: Implemented
34313 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
34314 * XplatUIOSX.cs: Updated to final clipboard prototypes
34315 * XplatUIX11.cs: Implemented Clipboard methods
34316 * XplatUIDriver.cs: Updated to final clipboard prototypes
34317 * XplatUIStructs.cs:
34318 - Added BITMAPINFOHEADER struct
34319 - Added ClipboardFormats enum
34321 - Added ClipboardStruct
34322 - Added Atom enum items for clipboard types
34323 - Fixed atom types for Selection event structures
34325 - Added internal properties and methods for drivers to enumerate
34327 - Switched initialization method to allow drivers to assign their
34328 own IDs even for the MS predefined clipboard IDs
34329 * XplatUI.cs: Updated to final clipboard interface
34331 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34332 * PropertyGridView.cs: Fixed compiler warnings.
34334 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34335 * PropertyGrid.cs: Added some event calls
34336 * PropertyGridView.cs: Change drawing code to use double buffering
34337 * PropertyGridTextBox.cs: Changed Text property name
34338 * GridItem.cs: Added Bounds property.
34339 * GridEntry.cs: Added Bounds property.
34341 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
34343 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
34344 since GetType() may not return the correct type if the object is
34347 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
34349 * TreeNodeCollection.cs: fixes get/set item ranges
34351 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
34353 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
34355 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
34357 * ComboBox.cs: Fix item range comparation
34358 * ListView.cs: Fix item range comparation
34360 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
34363 - Clear example panel when OnPaint is called
34364 - Better solution for displaying the example panel text
34365 - Select default indexes in the ListBoxes
34367 2005-05-11 Geoff Norton <gnorton@customerdna.com>
34369 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
34371 2005-05-11 Peter Bartok <pbartok@novell.com>
34373 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
34374 * SelectionRangeConverter.cs: Implemented
34375 * PropertyGrid.cs: Fixed attribute value
34377 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
34378 - Added Sebastien Pouliot's CAS Stack Propagation fixes
34379 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
34380 that's common to all drivers. First methods to go there are
34381 Sebastien Pouliot's CAS Stack Propagation helper methods
34382 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
34383 Sebastien Pouliot for CAS Stack Propagation
34385 2005-05-11 Geoff Norton <gnorton@customerdna.com>
34388 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
34390 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
34392 * DataGridTextBoxColumn.cs: fixed some members
34393 * GridColumnStylesCollection.cs: indexed column is case insensitive
34394 * DataGridTableStyle.cs: fixes
34395 * ThemeWin32Classic.cs: add new theme parameter
34396 * Theme.cs: add new theme parameter
34397 * DataGridDrawingLogic.cs: Datagrid's drawing logic
34398 * DataGrid.cs: fixes, new internal properties, etc.
34399 * DataGridColumnStyle.cs: allows to set grid value
34402 2005-05-10 Peter Bartok <pbartok@novell.com>
34404 * AccessibleObject.cs:
34405 - Removed MonoTODO attribute on help, method is correct
34406 - Fixed Bounds property
34407 * AxHost.cs: Moved MonoTODO
34408 * ButtonBase.cs: Now setting AccessibleObject properties
34409 * RadioButton.cs: Setting proper AccessibleObject role
34410 * CheckBox.cs: Setting proper AccessibleObject role
34411 * ControlBindingsCollection.cs: Added properties, methods and attributes
34412 * DataFormats.cs: Fixed awkward internal API, and changed to enable
34413 userdefined DataFormats.Format items as well
34414 * ListControl.cs: Removed data_member from the public eye
34415 * OpenFileDialog.cs:
34416 - Made class sealed
34417 - Added missing attributes
34418 * SaveFileDialog.cs: Added missing attributes
34419 * ImageListStreamer.cs: Fixed code that caused warnings
34420 * LinkLabel.cs: Removed unreachable code
34421 * TreeView.cs: Fixed code that caused warnings
34422 * PropertyGridView.cs: Fixed code that caused warnings
34423 * GridColumnStylesCollection.cs: Added missing attributes
34424 * GridTableStylesCollection: Added missing attribute
34425 * PropertyManager: Added .ctor
34426 * SecurityIDType: Added
34427 * DataObject.cs: Implemented class
34428 * LinkArea.cs: Added missing attribute
34430 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
34432 * RadioButton.cs: call base method to allow to fire OnClick event
34433 * UpDownBase.cs: OnMouseUp call base method
34434 * CheckedListBox.cs: call base method before returning
34435 * TrackBar.cs: call base method before returning
34438 2005-05-10 Peter Bartok <pbartok@novell.com>
34440 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
34443 2005-05-10 Peter Bartok <pbartok@novell.com>
34445 * DataFormats.cs: Implemented
34446 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
34447 XplatUIX11.cs: Added Clipboard APIs
34448 * XplatUIWin32.cs: Implemented Clipboard APIs
34449 * FolderBrowserDialog.cs: Added missing event, attributes
34451 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
34453 * CheckBox.cs: call base method to allow to fire OnClick event
34455 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
34457 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
34459 2005-05-06 Peter Bartok <pbartok@novell.com>
34461 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
34462 * Screen.cs: Implemented
34463 * HelpNavigator.cs: Added
34464 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
34466 * HelpProvider.cs: Implemented all we can do until we have a CHM
34467 help library (which means that "What's This" does work now)
34469 2005-05-06 Jackson Harper <jackson@ximian.com>
34471 * XplatUIX11.cs: Fix waking up the main loop.
34473 2005-05-05 Peter Bartok <pbartok@novell.com>
34475 * XplatUI.cs: Updated revision
34476 * Form.cs: Removed enless loop
34477 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
34478 * Label.cs (OnPaint): Added call to base.OnPaint()
34479 * ToolTip.cs: Made ToolTipWindow reusable for other controls
34480 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
34481 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
34483 * ButtonBase.cs: Moved base.OnPaint() call to end of method
34484 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
34485 to ToolTip.ToolTipWindow for drawing and size methods; this allows
34486 reuse of ToolTipWindow by other controls
34487 * SizeGrip.cs: Moved base.OnPaint() call to end of method
34488 * XplatUIX11.cs: Now clipping drawing area (experimental)
34489 * PictureBox.cs: Moved base.OnPaint() call to end of method
34490 * Theme.cs: Fixed ToolTip abstracts to match new format
34491 * ErrorProvider.cs: Implemented
34493 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
34495 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
34499 - Implements LinkBehavior
34500 - Fixes many issues
34502 2005-05-03 Jackson Harper <jackson@ximian.com>
34504 * ListView.cs: Calculate the scrollbar positioning on resize and
34505 paint, so they get put in the correct place.
34507 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
34509 * ColorDialogs.cs: The small color panels are now handled by
34510 SmallColorControl. This fixes drawing of the focus rectangle
34511 and adds a 3D border.
34513 2005-05-03 Peter Bartok <pbartok@novell.com>
34515 * Control.cs: Modified version of Jonathan Chamber's fix for
34518 2005-05-03 Jackson Harper <jackson@ximian.com>
34520 * ListView.cs: Remove redraw variable. Control now handles whether
34521 or not a redraw needs to be done, and will only raise the paint
34522 event if redrawing is needed.
34524 2005-05-03 Jackson Harper <jackson@ximian.com>
34526 * Splitter.cs: No decorations for the splitter form. Cache the
34529 2005-05-03 Jackson Harper <jackson@ximian.com>
34531 * TreeView.cs: Use dashed lines to connect nodes. Use the
34532 ControlPaint method for drawing the focus rect instead of doing
34535 2005-05-02 Peter Bartok <pbartok@novell.com>
34537 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
34539 2005-04-29 Jackson Harper <jackson@ximian.com>
34541 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
34542 entire image buffer. Just clear the clipping rectangle.
34544 2005-04-29 Jackson Harper <jackson@ximian.com>
34546 * ThemeWin32Classic.cs: Don't draw list view items that are
34547 outside the clipping rectangle.
34549 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
34551 * ListBox.cs: added horizontal item scroll
34553 2005-04-29 Jackson Harper <jackson@ximian.com>
34555 * ThemeWin32Classic.cs: Remove some old debug code that was
34556 causing flicker with the new double buffering code.
34558 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
34560 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
34561 behave like combobox and comboboxlist (still not sure if this is
34564 2005-04-28 Jackson Harper <jackson@ximian.com>
34566 * ThemeWin32Classic.cs: Don't fill the middle of progress
34567 bars. This fills areas outside of the clip bounds that don't need
34570 2005-04-28 Jackson Harper <jackson@ximian.com>
34572 * Control.cs: Don't expose functionality to touch the image buffers.
34574 * ListView.cs: We do not need to (and no longer can) manipulate
34575 the image buffers directly. All of this is handled by Control.
34577 2005-04-28 Peter Bartok <pbartok@novell.com>
34579 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
34580 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
34581 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
34583 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
34586 - Adjust control's height for non-simple comboboxes (bug fix)
34588 * MenuAPI.cs: remove unused var
34589 * ScrollBar.cs: remove unsed var
34591 * ListBox.cs: unselect items when clearing
34593 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
34595 * ListControl.cs: honors OnPositionChanged and default Selected Item
34596 * ListBox.cs: unselect items when clearing
34598 2005-04-27 Jackson Harper <jackson@ximian.com>
34600 * X11Keyboard.cs: Initialize a default keyboard and give a warning
34601 if a "correct" keyboard is not found. This will make us not crash,
34602 but might give some users bad keyboard layouts...seems to be the
34603 same thing rewind does.
34605 2005-04-27 Jackson Harper <jackson@ximian.com>
34607 * BindingManagerBase.cs: Attach the current/position changed
34608 handlers to their respective events.
34610 2005-04-27 Jackson Harper <jackson@ximian.com>
34612 * Control.cs: Make sure that the first WM_PAINT does a full draw,
34614 * ThemeWin32Classic.cs: Don't fill the background for picture
34615 boxes. This could overright user drawing.
34616 * ComboBox.cs: Just fill the clipping rect not the entire client
34617 rect when drawing the background. This prevents pieces of the
34618 image buffer from getting overwritten and is theoretically faster.
34620 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
34622 * ComboBox.cs: Databinding support fixes, fire missing events
34623 * ListControl.cs: implement missing methods and properties, fixes
34624 * ThemeWin32Classic.cs: Databiding support on Drawing
34625 * CheckedListBox.cs: Databinding support fixes, fire missing events
34626 * ListBox.cs: Databinding support fixes, fire missing events
34628 2005-04-25 Peter Bartok <pbartok@novell.com>
34630 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
34632 2005-04-25 Jackson Harper <jackson@ximian.com>
34634 * TreeView.cs: Use the horizontal scrollbars height not width when
34635 determining how much of the client area is available.
34637 2005-04-25 Jackson Harper <jackson@ximian.com>
34639 * Control.cs: Double buffering is handled differently now. As per
34640 the spec, the extra buffer is created in the WM_PAINT message and
34641 passed down to the control's drawing code.
34649 * PropertyGridView.cs:
34661 * DateTimePicker.cs:
34663 * TreeView.cs: Update to new double buffering system.
34664 * MonthCalendar.cs: Uncomment block, as Capture is now
34665 working. Update to new double buffering
34666 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
34667 * PaintEventArgs.cs: New internal method allows us to set the
34668 graphics object. This is used for double buffering.
34669 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
34670 rectangle. The internal paint_area var has been removed from
34671 StatusBar. The clipping rect should be used instead.
34672 * Theme.cs: Give the PictureBox drawing method a clipping rect.
34673 * TabPage.cs: The RefreshTabs method was removed, so just call the
34674 tab controls Refresh method now.
34675 * TabControl.cs: Update to new double buffering. Make sure the
34676 handle is created before sizing the tab pages, otherwise we will
34677 get stuck in a loop.
34679 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
34681 * LinkLabel.cs: Fix typo, bug #74719; patch
34682 from Borja Sanchez Zamorano
34684 2005-04-22 Jackson Harper <jackson@ximian.com>
34686 * TreeNode.cs: Implement Handle stuff.
34687 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
34689 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
34691 * DataGridTextBoxColumn.cs: call base constructors, fixes
34692 * GridColumnStylesCollection.cs: missing events, methods, and functionality
34693 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
34694 * DataGridTableStyle.cs: implements create default column styles
34695 * DataGridBoolColumn.cs: which types can handle
34696 * DataGrid.cs: missing methods, fixes, new functionality
34697 * DataGridColumnStyle.cs: fixes
34699 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
34700 * FolderBrowserDialog.cs:
34701 - Use a thread to fill the TreeView
34702 - Adjusted some sizes
34704 2005-04-19 Peter Bartok <pbartok@novell.com>
34706 * LinkLabel.cs: (Re-)create the pieces when setting the Text
34707 property. Fixes #74360.
34709 2005-04-19 Jackson Harper <jackson@ximian.com>
34711 * XEventQueue.cs: Lock when getting the lockqueue size.
34712 * PictureBox.cs: Call base OnPaint
34714 2005-04-19 Peter Bartok <pbartok@novell.com>
34716 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
34717 messages were no longer being processed (this broke BeginInvoke)
34720 2005-04-18 Jackson Harper <jackson@ximian.com>
34722 * TreeView.cs: buglet that caused node images to get drawn
34723 regardless of whether or not they were in the clipping rectangle.
34725 2005-04-18 Jackson Harper <jackson@ximian.com>
34727 * CurrencyManager.cs: There are four rules for GetItemProperties:
34728 - If the type is an array use the element type of the array
34729 - If the type is a typed list, use the type
34730 - If the list contains an Item property that is not an object, use
34732 - use the first element of the list if there are any elements in
34735 2005-04-17 Jackson Harper <jackson@ximian.oom>
34737 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
34738 click. This handles offsets for scrolling properly and reduces
34739 memory. Also fixed GetNode to not offset now that TopNode works
34741 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
34743 2005-04-17 Jackson Harper <jackson@ximian.com>
34745 * CursorConverter.cs: Initial implementation.
34747 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
34749 * ListControl.cs: work towards complex data binding support on ListControl
34750 * CurrencyManager.cs: work towards complex data binding support on ListControl
34751 * ListBox.cs: work towards complex data binding support on ListControl
34754 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
34756 * GridTableStylesCollection.cs: fixes name and constructor
34757 * DataGridTableStyle.cs: fixes
34758 * DataGridBoolColumn.cs: fixes names and constructors
34759 * DataGrid.cs: define methods and properties. Some init implementations
34760 * DataGridCell.cs: define methods and properties. Some init implementations
34761 * GridTablesFactory.cs: Define methods and properties
34763 2005-04-15 Geoff Norton <gnorton@customerdna.com>
34765 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
34766 graphics port changes. We still want the coordinates in global screen
34769 2005-04-14 Jackson Harper <jackson@ximian.com>
34771 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
34772 check plus minus or checkbox clicks unless those features are enabled.
34774 2005-04-14 Jackson Harper <jackson@ximian.com>
34776 * TreeView.cs: Add methods for setting the top and bottom visible
34777 nodes. TreeNode::EnsureVisible uses these methods.
34778 * TreeNode.cs: Implement EnsureVisible
34780 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
34782 * Form.cs: Pospone menu assignation if the window has not been created yet
34783 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
34786 2005-04-12 Jackson Harper <jackson@ximian.com>
34788 * TreeView.cs: Set the TopNode properly when scrolling
34789 occurs. This has the added benifit of reducing the amount of
34790 walking that needs to be done when drawing. Also removed an old
34792 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
34794 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
34796 * Timer.cs: fixes interval setting when the timer is already enabled
34798 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
34800 * FolderBrowserDialog.cs: First approach
34802 2005-04-09 Peter Bartok <pbartok@novell.com>
34804 * FolderBrowserDialog: Added
34806 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
34808 * LinkLabel.cs: move drawing code into the theme
34809 * ThemeWin32Classic.cs: drawing code and painting background bugfix
34810 * Theme.cs: define DrawLinkLabel method
34812 2005-04-05 Jackson Harper <jackson@ximian.com>
34814 * BindingContext.cs: Use weak references so these bad actors don't
34815 stay alive longer then they need to.
34817 2005-04-05 Jackson Harper <jackson@ximian.com>
34819 * ListControl.cs: Basic implementation of complex databinding.
34821 * ListBox.cs: Add calls to ListControl databinding methods.
34823 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
34826 - Don't change PopupButtonState to Normal when the
34827 PopupButton gets pressed several times.
34828 - Renamed ButtonPanel to PopupButtonPanel
34830 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
34832 * ColorDialog.cs: Use cached objects instead of creating them
34833 * LinkLabel.cs: Use cached objects instead of creating them
34834 * Splitter.cs: Use cached objects instead of creating them
34835 * FontDialog.cs: Use cached objects instead of creating them
34836 * PropertyGridView.cs: Use cached objects instead of creating them
34837 * MessageBox.cs: Use cached objects instead of creating them
34838 * FileDialog.cs: Use cached objects instead of creating them
34839 * ThemeWin32Classic.cs: Use cached objects instead of creating them
34840 * TreeView.cs: Use cached objects instead of creating them
34842 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
34844 * Control.cs: use Equals to compare the font since no == op
34845 * ScrollBar.cs: use Equals to compare the font since no == op
34847 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
34849 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
34851 2005-04-01 Jackson Harper <jackson@ximian.com>
34853 * Binding.cs: Implement IsBinding.
34854 * BindingManagerBase.cs:
34855 * PropertyManager.cs:
34856 * CurrencyManager.cs: Add IsSuspended property.
34858 2005-04-01 Jackson Harper <jackson@ximian.com>
34860 * Binding.cs: Had some IsAssignableFrom calls backwards.
34862 2005-04-01 Jackson Harper <jackson@ximian.com>
34864 * Binding.cs: Handle null data members when pulling data.
34865 * PropertyManager.cs: Handle the data member being a property that
34868 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
34870 * DataGridTextBoxColumn.cs: fixes signature
34871 * DataGrid.cs: calls right constructor
34873 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
34875 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
34876 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
34877 * GridTableStylesCollection.cs: implements GridTableStylesCollection
34878 * DataGridTableStyle.cs: implements DataGridTableStyle
34879 * DataGridBoolColumn.cs: implements DataGridBoolColumn
34880 * DataGridTextBox.cs: implements DataGridTextBox
34881 * DataGridColumnStyle.cs: implements DataGridColumnStyle
34883 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
34885 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
34887 2005-03-29 Peter Bartok <pbartok@novell.com>
34890 - Properly implemented CompanyName property
34891 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
34892 returns a path that includes CompanyName, ProductName and
34893 Version (fixes bug #70330)
34895 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
34897 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
34900 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
34902 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34904 - Added ReadOnly CheckBox
34905 - Further refactoring: moved some code from Open-/SaveFileDialog
34908 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
34910 * OpenFileDialog.cs: Fixed CheckFileExists
34912 Moved FileView and DirComboBox outside FileDialog class.
34913 They can now be used outside FileDialog
34915 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
34917 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34918 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
34920 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
34922 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34923 - Added missing CreatePrompt property in SaveDialog
34924 - Overall SaveDialog handling should be better now
34925 - Added non standard ShowHiddenFiles property
34926 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
34927 - Added InitialDirectory and RestoreDirectory support
34929 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
34931 * FileDialog.cs: Made dirComboBox usable
34933 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
34935 * FileDialog.cs: Added Filter support (case sensitiv)
34937 2005-03-24 Jackson Harper <jackson@ximian.com>
34939 * TabControl.cs: Need a couple more pixels for the lines.
34941 2005-03-23 Jackson Harper <jackson@ximian.com>
34943 * TabControl.cs: Give the tab page focus when it is selected.
34945 2005-03-23 Jackson Harper <jackson@ximian.com>
34947 * TabControl.cs: Account for the drawing of tabs borders when
34948 invalidating. If the slider was clicked dont do click detection on
34951 2005-03-23 Jackson Harper <jackson@ximian.com>
34953 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
34955 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
34957 * CategoryGridEntry.cs: Added
34958 * GridItem.cs: Added helper properties
34959 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
34960 * GridEntry.cs: Updated code for collection
34961 * PropertyGrid.cs: Cleaned up some formatting
34962 * PropertyGridView.cs: Added drop down functionality for enums.
34963 * GridItemCollection.cs: Added enumerator logic
34964 * PropertyGridEntry.cs: Added
34966 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
34969 - Removed unnecessary commented code
34970 - Fixed handling for entering the filename manually in the combobox
34972 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
34974 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
34976 2005-03-18 Peter Bartok <pbartok@novell.com>
34978 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
34979 them being touching the border
34981 2005-03-18 Peter Bartok <pbartok@novell.com>
34983 * TextControl.cs: Quick hack to center text better
34985 2005-03-18 Peter Bartok <pbartok@novell.com>
34988 - Don't throw NotImplemented exceptions, just print a notice once
34989 instead (requested by Miguel). This makes running existing SWF
34992 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
34993 - Added context menu trigger on right click
34994 * Panel.cs: Trigger invalidate on resize
34996 - Removed old double-buffer drawing
34997 - Added ResizeRedraw style to force proper update of statusbar
34999 - Removed debug output
35000 * ThemeWin32Classic.cs:
35001 - Fixed drawing of status bar, now draws Text property if there
35002 are no defined panels
35004 2005-03-18 Jackson Harper <jackson@ximian.com>
35006 * ImageList.cs: When the image stream is set pull all the images
35008 * ImageListStreamer.cs: Implement reading image list streams.
35010 2005-03-18 Peter Bartok <pbartok@novell.com>
35012 * ThemeWin32Classic.cs (DrawPictureBox):
35013 - Fixed calculations for centered drawing
35014 - Fixed drawing for normal mode, not scaling the image on normal
35016 2005-03-18 Peter Bartok <pbartok@novell.com>
35018 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
35021 - Made Open/Save button the accept button for FileDialog
35022 - Tied the cancel button to the IButtonControl cancel button
35023 - Save/Open now properly builds the pathname
35024 - Now handles user-entered text
35025 - Preventing crash on right-click if no item is selected
35026 - Fixed Text property, now uses contents of textbox
35027 - Fixed SelectedText property, now just returns the text part that
35028 is selected in the text box
35030 2005-03-18 Jackson Harper <jackson@ximian.com>
35032 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
35033 rect, make sure to de-adjust the interior rect after drawing the
35036 2005-03-18 Peter Bartok <pbartok@novell.com>
35038 * MenuAPI.cs: Remove menu *before* executing selected action to
35039 prevent the menu from 'hanging around'
35041 2005-03-17 Geoff Norton <gnorton@customerdna.com>
35043 * XplatUIOSX.cs: Implemented WorkingArea property
35045 2005-03-17 Peter Bartok <pbartok@novell.com>
35047 * XplatUIX11.cs: Fixed menu coord calculations
35048 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
35049 for calculating offsets
35051 2005-03-17 Peter Bartok <pbartok@novell.com>
35053 * Hwnd.cs: Do not consider menu presence for default client
35054 rectangle location/size
35055 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
35056 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
35057 translation functions
35058 * FileDialog.cs: Fixed (what I presume is a) typo
35060 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
35062 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
35063 X access (avoids X-Async errors)
35065 2005-03-16 Jackson Harper <jackson@ximian.com>
35067 * TabControl.cs: Raise the SelectedIndexChanged event.
35069 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
35071 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
35072 - Removed vertical ToolBar and replaced it with a custom panel
35073 (desktop and home button already work)
35074 - Added Help button (some controls get resized or relocated then)
35075 - Draw correct text depending on Open or Save.
35076 - Fixed some typos...
35078 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
35081 - Only change Maximum and Minimum when need it (bug fix)
35083 2005-03-15 Peter Bartok <pbartok@novell.com>
35085 * Form.cs: Use Handle for icon, to trigger creation if
35086 the window does not yet exist
35088 - CanSelect: Slight performance improvement
35089 - Focus(): Preventing possible recursion
35090 - Invalidate(): Removed ControlStyle based clear flag setting
35091 - WM_PAINT: fixed logic for calling OnPaintBackground
35092 - WM_ERASEBKGND: Fixed logic, added call to new driver method
35093 EraseWindowBackground if the control doesn't paint background
35095 - Moved EraseWindowBackground() method to internal methods
35096 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
35097 is sent via SendMessage on BeginPaint call on Win32
35099 - Added EraseWindowBackground() method
35100 - No longer sends WM_ERASEBKGND on .Expose, but on call to
35101 PaintEventStart, which more closely matches Win32 behaviour
35102 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
35103 - Fixed SetFocus() to properly deal with client and whole windows
35104 * Hwnd.cs: Added ErasePending property
35105 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
35106 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
35108 2005-03-12 Geoff Norton <gnorton@customerdna.com>
35111 - Fix hard loop when timers exist.
35112 - Fix bugs with middle and right click for 3 button mice.
35114 2005-03-11 Peter Bartok <pbartok@novell.com>
35117 - get_WorkingArea: Need to call X directly, GetWindowPos only
35118 returns cached data now
35119 - Added sanity check to GetWindowPos hwnd usage
35121 2005-03-11 Jackson Harper <jackson@ximian.com>
35123 * BindingManagerBase.cs: This method isn't used anymore as
35124 PullData now updates the data in the control.
35126 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
35128 * Form.cs: fixes menu drawing on X11
35129 * MenuAPI.cs: fixes menu drawing on X11
35131 2005-03-11 Peter Bartok <pbartok@novell.com>
35133 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
35134 from Jonathan Gilbert; should fix bug #73606
35135 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
35136 in Screen coordinates. Thanks, Jordi.
35137 * Form.cs: Added missing attribute
35139 2005-03-11 Peter Bartok <pbartok@novell.com>
35142 - Rudimentary Mdi support
35143 - Removed outdated FormParent code
35144 - Implemented lots of missing properties and methods, still missing
35145 transparency support
35146 - Added missing attributes
35147 - Implemented support for MaximumBounds
35148 - Added firing of various events
35149 * XplatUI.cs: Added SetIcon() method
35150 * XplatUIDriver.cs: Added SetIcon() abstract
35151 * XplatUIOSX.cs: Stubbed out SetIcon() method
35153 - Implemented SetIcon() support
35154 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
35155 - Switched to unix line endings
35157 - Made POINT internal so for can access it as part of MINMAX
35158 - Implemented SetIcon() support
35159 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
35160 native Mdi support again, might have to go managed)
35161 * Control.cs: Now fires the StyleChanged event
35162 * MdiClient.cs: Added; still mostly empty
35164 2005-03-10 Peter Bartok <pbartok@novell.com>
35166 * SaveFileDialog.cs: Added emtpy file
35168 2005-03-08 Peter Bartok <pbartok@novell.com>
35170 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
35171 in turn triggers OnCreateContro) when creating a handle for the
35173 * TextControl.cs: Fixed endless loop in certain cases when
35174 replacing the current selection
35176 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
35179 - Honors NewValue changes in Scroll events allowing apps to change it
35180 - Adds First and Last Scroll events
35181 - Fixes Thumb events
35183 2005-03-07 Peter Bartok <pbartok@novell.com>
35185 * Hwnd.cs: Added DefaultClientRectangle property
35186 * XplatUI.cs: Now using the X11 driver Where() method, which provides
35187 more detailed debug information
35189 - Fixed size-change feedback loop, where we would pull an old size
35190 off the queue and mistakenly change our window's size to an
35192 - Now compressing ConfigureNotify events, to reduce looping and
35194 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
35197 2005-03-07 Jackson Harper <jackson@ximian.com>
35199 * Binding.cs: Push data pushes from data -> property. Check if the
35200 property is readonly when attempting to set it.
35202 2005-03-07 Jackson Harper <jackson@ximian.com>
35204 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
35205 instead of IsSubclassOf. Pulling data now sets the value on the
35207 * PropertyManager.cs:
35208 * CurrencyManager.cs: Just need to pull data when updating now,
35209 because PullData will set the value on the control.
35211 2005-03-04 Jackson Harper <jackson@ximian.com>
35213 * Binding.cs: Implement data type parsing and converting on pulled
35214 data. TODO: Are there more ways the data can be converted?
35216 2005-03-04 Jackson Harper <jackson@ximian.com>
35218 * Binding.cs: Support <Property>IsNull checks. Also bind to the
35219 controls Validating method so we can repull the data when the
35220 control loses focus.
35222 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
35225 - Fixes null string format
35228 - Adds enum type checks
35229 - Fixes redrawing and recalc need after changing some properties
35230 - Fixes on focus_item set after the event
35231 - Fixes adding columns after the control has been created
35233 * ThemeWin32Classic.cs:
35234 - Fixes CheckBox focus rectangle
35235 - Fixes ColumnHeader drawing
35238 2005-03-03 Jackson Harper <jackson@ximian.com>
35240 * Binding.cs: Bind to <Property>Changed events so we can detect
35241 when properties are changed and update the data.
35243 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
35246 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
35247 - Fixes ImageList constructor with ImageList container
35248 - Fixes image scaling (wrong parameters at DrawImage)
35250 2005-02-02 Jackson Harper <jackson@ximian.com>
35252 * Binding.cs: Make property searches case-insensitive. Eliminate
35253 some duplicated code.
35255 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
35258 - Handle focus event
35259 - Fix scrollbar events
35260 - Discard highlighted item if remove it
35261 - Fixes SelectedItem with strings
35263 2005-03-01 Peter Bartok <pbartok@novell.com>
35266 - Fixed Visible property, now follows (once again) parent chain
35267 to return false if any control in the chain is visible=false
35268 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
35269 - Fixed several places where is_visible instead of Visible was used
35270 - Implemented FIXME related to focus selection when setting focused
35271 control to be invisible
35273 * XplatUIWin32.cs: Now using proper method to find out if window is
35274 visible. Thanks to Jordi for pointing it out
35276 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
35278 * ComboBox.cs: show/hide scrollbar instead of creating it
35280 2005-02-27 Jackson Harper <jackson@ximian.com>
35282 * CurrencyManager.cs: Add PositionChanged stuff.
35284 2005-02-27 Peter Bartok <pbartok@novell.com>
35286 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
35287 * XplatUIOSX.cs: Added GetMenuOrigin() stub
35288 * XplatUIWin32.cs: Implemented GetMenuOrigin()
35290 - Implemented GetMenuDC()
35291 - Implemented GetMenuOrigin()
35292 - Implemented ReleaseMenuDC()
35293 - Implemented generation of WM_NCPAINT message
35294 - Implemented generation and handling of WM_NCCALCSIZE message
35295 * Form.cs: Added debug helper message for Jordi's menu work
35297 - Modified ClientRect property; added setter, fixed getter to handle
35298 setting of ClientRect
35299 - Added MenuOrigin property
35301 2005-02-26 Peter Bartok <pbartok@novell.com>
35304 - Destroys the caret if a window that's being destroyed contains it
35305 - Ignores expose events coming from the X11 queue for windows that
35306 already are destroyed
35307 - Now uses the proper variable for handling DestroyNotify, before we
35308 marked the wrong window as destroyed
35309 - Improved/added some debug output
35311 2005-02-26 Peter Bartok <pbartok@novell.com>
35313 * X11Keyboard.cs: Fixes to work on 64bit systems
35315 2005-02-26 Peter Bartok <pbartok@novell.com>
35318 - Now calling OnHandleDestroyed from DestroyHandle()
35319 instead of Dispose()
35320 - Removed bogus call to controls.Remove() from DestroyHandle()
35322 2005-02-26 Peter Bartok <pbartok@novell.com>
35324 * Control.cs: Properly destroy child windows when our handle is
35327 2005-02-25 Peter Bartok <pbartok@novell.com>
35330 - Added 'DriverDebug' define to allow tracing XplatUI API calls
35331 - Alphabetized Static Methods and Subclasses
35334 - Added XException class to allow custom handling of X11 exceptions
35335 - Created custom X11 error handler, tied into XException class
35336 - Added support for MONO_XEXCEPTIONS env var to allow the user
35337 to either throw an exception on X errors or continue running
35338 after displaying the error
35339 - Added handling of DestroyNotify message
35340 - Added handler for CreateNotify message (still disabled)
35341 - Improved (tried to at least) Where method to provide file and lineno
35343 - Added XErrorHandler delegate
35344 - Added XRequest enumeration (to suppor translation of errors)
35346 2005-02-25 Jackson Harper <jackson@ximian.com>
35348 * PropertyManager.cs: Implement editing features
35349 * CurrencyManager.cs:
35350 * Binding.cs: First attempt at UpdateIsBinding
35351 * BindingManagerBase.cs: Call UpdateIsBinding before
35352 pushing/pulling data.
35354 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
35356 * MenuAPI.cs: Respect disabled items
35357 * ThemeWin32Classic.cs
35358 - Caches ImageAttributes creation for DrawImageDisabled
35359 - Fixes vertical menu line drawing
35360 - Draws disabled arrows in disable menu items
35362 2005-02-24 Peter Bartok <pbartok@novell.com>
35365 - Added UserData property to allow associating arbitrary objects
35367 - Fixed leak; now removing Hwnd references from static windows array
35369 - Fixed Graphics leak in PaintEventEnd
35370 - Removed usage of HandleData, switched over to Hwnd class
35371 * HandleData.cs: Removed, obsoleted by Hwnd.cs
35373 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
35375 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
35376 * ScrollBar.cs: Fixes bug
35377 * TrackBar.cs: removes death code, clipping, mimize refreshes,
35378 keyboard navigation enhancements
35380 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
35382 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
35383 * GroupBox.cs: Add control styles
35384 * Label.cs: Add control styles
35385 * UpDownBase.cs: Add control styles
35386 * ListBox.cs: Add control styles
35387 * XplatUIWin32.cs: Fixes wrong parameter order
35390 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
35392 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
35394 2005-02-23 Jackson Harper <jackson@ximian.com>
35396 * PropertyManager.cs: Implement property binding. This doesn't
35397 seem to work yet though as (I think) there are some bugs in
35398 System.ComponentModel.PropertyDescriptor.
35399 * BindingContext.cs: Use new PropertyManager constructor.
35401 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
35403 * ProgressBar.cs: use clip region in ProgressBar
35404 * ThemeWin32Classic.cs: use clip region in ProgressBar
35406 2004-02-22 Jackson Harper <jackson@ximian.com>
35408 * BindingsCollection.cs: Remove some debug code.
35410 2005-02-22 Jackson Harper <jackson@ximian.com>
35412 * BindingContext.cs:
35413 * ControlBindingsCollection.cs:
35414 * CurrencyManager.cs:
35416 * BindingManagerBase.cs: Initial implementation
35417 * BindingsCollection.cs: Add an internal contains method that the
35418 BindingManagerBase uses to ensure bindings aren't added twice to
35420 * PropertyManager.cs: Stubbed out.
35422 * ContainerControl.cs: Hook up databinding
35424 2005-02-22 Geoff Norton <gnorton@customerdna.com>
35427 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
35428 Fixed Invalidate/Update chain.
35429 Fixed tons of other minor bugs (this is almost a complete rewrite).
35431 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
35433 * ComboBox.cs: do subcontrol creation when the control is created
35435 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
35437 * Label.cs: fixes image drawing (image and imagelist)
35438 * ThemeWin32Classic.cs: cache brushes
35440 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
35442 * Form.cs: Move menu drawing code to Theme class
35443 * ComboBox.cs: Move ComboBox drawing code to Theme class
35444 * MenuItem.cs: Move menu drawing code to Theme class
35445 * MenuAPI.cs: Move menu drawing code to Theme class
35446 * ThemeWin32Classic.cs: New methods
35447 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
35448 * ListBox.cs: Move Listbox drawing code to Theme class
35449 * Theme.cs: New methods
35451 2005-02-20 Peter Bartok <pbartok@novell.com>
35454 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
35455 only process mnemonics on those)
35456 - Fixed event sequence for key handling; first calling
35457 ProcessKeyEventArgs now
35459 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
35460 for processing non-character keys
35461 - Fixed WM_CHAR to generate proper event sequence before processing
35462 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
35465 2005-02-19 Peter Bartok <pbartok@novell.com>
35467 * UserControl.cs: Added TextChanged event; added attributes
35468 * SizeGrip.cs: Implemented resizing and optional display of grip
35469 * Form.cs: Fixed attribute
35470 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35471 Changed meaning of ScrollWindow bool argument; instead of the
35472 clear attribute (which will be true usually anyway), it gives the
35473 option of moving child controls as well.
35475 - Changed to match new ScrollWindow argument
35476 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
35477 now handles the implicit parent window a WM puts around us
35478 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
35480 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
35481 * TreeView.cs: Adjusted to new ScrollWindow arguments
35483 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
35485 * Form.cs: Menu integration with non-client area
35486 * MenuItem.cs: Menu integration with non-client area
35487 * MenuAPI.cs: Menu integration with non-client area
35489 2005-02-18 Peter Bartok <pbartok@novell.com>
35491 * MethodInvoker.cs: Added
35492 * MdiLayout.cs: Added
35493 * SendKeys.cs: Started implementation
35494 * ErrorIconAlignment.cs: Added
35496 2005-02-18 Peter Bartok <pbartok@novell.com>
35498 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
35499 * Form.cs: Added handling for Menu-related Non-client messages
35501 2005-02-17 Peter Bartok <pbartok@novell.com>
35503 * UpDownBase.cs: Fixed typo, compilation errors
35504 * DomainUpDown.cs: Fixed attribute value
35506 2005-02-16 Miguel de Icaza <miguel@novell.com>
35508 * UpDownBase.cs: Attach entry events.
35510 Add ForeColor property, Focused, InterceptArrowKeys (interception
35511 does not work yet).
35513 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
35516 - Redraw non client are on Setmenu
35517 - Calc proper menu starting point
35519 2005-02-17 Peter Bartok <pbartok@novell.com>
35521 * Application.cs: Fixed message_filter check
35523 2005-02-17 Peter Bartok <pbartok@novell.com>
35525 * Application.cs: Now calls registered message filters
35526 * DockStyle.cs: Fixed attribute
35527 * Form.cs: Fixed attribute
35528 * Menu.cs: Fixed attribute
35529 * ToolTip.cs: Fixed attribute
35530 * TreeNode.cs: Added missing attributes and arranged in regions
35531 * PropertyGrid.cs: Fixed signatures
35532 * TreeNodeCollection.cs: Added attributes
35533 * Splitter.cs: Added missing attributes; arranged into regions
35534 * TabPage.cs: Added missing attributes; arranged into regions
35535 * TextBoxBase.cs: Added missing attributes
35536 * TextBox.cs: Added missing attributes
35537 * ArrangeDirection.cs: Added missing attributes
35538 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
35539 * ToolBarButton.cs: Fixed attributes
35540 * AnchorStyles.cs: Fixed attribute
35541 * TrackBar.cs: Fixed attributes
35542 * TabControl.cs: Added missing attributes and arranged into regions
35543 * ToolBar.cs: Fixed attribute
35544 * StatusBar.cs: Fixed signature, organized into regions and added
35546 * StatusBarPanel.cs: Fixed attributes
35547 * ContentsResizedEventArgs.cs: Implemented
35548 * ContentsResizedEventHandler.cs: Implemented
35549 * DateBoldEventArgs.cs: Implemented
35550 * DateBoldEventHandler.cs: Implemented
35551 * UpDownEventArgs.cs: Implemented
35552 * UpDownEventHandler.cs: Implemented
35554 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
35556 * Form.cs: first Menu NC refactoring
35557 * MenuAPI.cs: first Menu NC refactoring
35559 2005-02-16 Peter Bartok <pbartok@novell.com>
35561 * ImeMode.cs: Added missing attributes
35562 * Menu.cs: Fixed attribute
35563 * GroupBox.cs: Fixed attribute
35564 * Label.cs: Fixed attribute
35565 * ColorDialog.cs (RunDialog): Removed TODO attribute
35566 * ComboBox.cs: Fixed attributes
35567 * ListControl.cs: Added missing attributes
35568 * PropertyGrid.cs: Fixed attributes
35569 * Control.cs: Fixed attributes
35570 * ListViewItem.cs: Added TypeConverter attribute
35571 * NotifyIcon.cs: Fixed attributes
35572 * ListView.cs: Fixed attributes
35573 * ButtonBase.cs: Fixed attribute
35574 * ImageList.cs: Added missing attributes
35575 * ContainerControl.cs: Fixed signature
35576 * CheckedListBox.cs: Fixed attribute; added missing attributes
35577 * Panel.cs: Fixed attributes
35578 * PropertyTabChangedEventArgs.cs: Added missing attribute
35579 * PropertyValueChangedEventArgs.cs: Added missing attribute
35580 * Binding.cs: Fixed attribute
35581 * ListViewItemConverter: Implemented ListViewSubItemConverter class
35582 * ListBox.cs: Fixed attribute; added missing attributes;
35583 * ScrollableControl.cs: Added missing attributes
35584 * PictureBox.cs: Added missing attributes; implemented missing property
35585 * DateTimePicker.cs: Added missing attributes
35586 * Theme.cs (ToolWindowCaptionHeight): Fixed type
35587 * MonthCalendar.cs: Fixed attributes
35588 * StatusBarPanel.cs: Added missing attributes
35589 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
35591 2005-02-16 Peter Bartok <pbartok@novell.com>
35593 * TextBoxBase.cs: The previous method to enforce height yet remember
35594 the requested high was less than ideal, this is an attempt to do
35596 * Control.cs: Added comment about possible problem
35597 * Copyright: Updated format
35598 * GridItemType.cs: Fixed swapped values
35600 2005-02-15 Jackson Harper <jackson@ximian.com>
35602 * BaseCollection.cs: Use property so we never access an
35603 uninitialized list. Also initialize the list in the property.
35605 2005-02-15 Peter Bartok <pbartok@novell.com>
35607 * GroupBox.cs (ProcessMnemonic): Implemented
35608 * Label.cs (ProcessMnemonic): Implemented
35609 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
35612 2005-02-15 Peter Bartok <pbartok@novell.com>
35614 * RadioButton.cs (ProcessMnemonic): Implemented
35615 * CheckBox.cs (ProcessMnemonic): Implemented
35617 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
35619 - Added internal method to allow calling ProcessMnemonic from other
35621 * ContainerControl.cs:
35622 - Started support for handling validation chain handling
35623 - Implemented ProcessMnemonic support
35624 - Added Select() call to Active, to make sure the active control
35626 * Form.cs: Setting toplevel flag for Forms (this was lost in the
35627 FormParent rewrite)
35628 * ThemeWin32Classic.cs:
35629 - DrawCheckBox(): Fixed stringformat to show hotkeys
35630 - DrawRadioButton(): Fixed stringformat to show hotkeys
35631 * CommonDialog.cs: Removed WndProc override, not needed
35633 2005-02-14 Peter Bartok <pbartok@novell.com>
35635 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
35636 missed those in the rewrite
35638 2005-02-14 Miguel de Icaza <miguel@novell.com>
35640 * NumericUpDown.cs (Increment, ToString): Add.
35641 (DecimalPlaces): implement.
35645 * UpDownBase.cs: Add the designer attributes.
35647 2005-02-13 Peter Bartok <pbartok@novell.com>
35649 * Panel.cs: Removed border_style, now in Control
35650 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
35651 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
35653 2005-02-13 Peter Bartok <pbartok@novell.com>
35655 * MouseButtons.cs: Added missing attributes
35656 * XplatUIStructs.cs: Added enumeration for title styles
35657 * LeftRightAlignment.cs: Added missing attributes
35658 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
35659 it compatible with Graphics.FromHwnd()
35660 * SelectedGridItemChangedEventArgs.cs: Fixed property type
35661 * Keys.cs: Added missing attributes
35662 * SelectionRange.cs: Added missing attributes
35663 * SelectionRangeConverter.cs: Added
35665 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
35666 ReleaseMenuDC methods
35667 - Renamed ReleaseWindow to UngrabWindow
35668 - Added proper startup notice to allow version identification
35670 - Added missing attributes
35671 - Removed FormParent concept
35672 * Label.cs: Removed border_style field, now in Control
35673 * RadioButton.cs: Now properly selects RadioButton when focus is
35675 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
35677 - Added missing attributes
35678 - Added borderstyle handling
35679 - Removed FormParent concept support
35680 - Fixed calls to XplatUI to match changed APIs
35681 - Fixed bug that would case us to use disposed Graphics objects
35682 - Removed unneeded internal methods
35683 - PerformLayout(): Fixed to handle DockStyle.Fill properly
35684 - SelectNextControl(): Fixed to properly check common parents
35685 * TextBoxBase.cs: Removed border_style field (now in Control)
35687 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
35688 fixed calculations for form size
35689 - Added support for localized strings and icons
35690 - Improved form size calculations, added border
35691 * ListView.cs: Removed border_style field (now in Control)
35692 * X11Structs.cs: Moved several structs from X11 driver here
35693 * X11Keyboard.cs: Changed debug message
35694 * Application.cs: Removed FormParent concept support
35696 - Resetting end_modal flag
35697 - Removed FormParent concept support
35698 * NativeWindow.cs: Removed FormParent concept support
35699 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
35700 Client area and Non-Client whole window to allow support for WM_NC
35702 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
35703 prevent using it until it supports Hwnd as per Geoff Norton's request
35704 * ToolBar.cs: Fixed drawing, was not doing proper drawing
35705 * PictureBox.cs: Removed border_style field, now in Control
35706 * XplatUIWin32.cs: Added new driver methods
35708 2005-02-12 Peter Bartok <pbartok@novell.com>
35710 * OpacityConverter.cs: Implemented
35711 * Hwnd.cs: Internal class to support drivers that need to emulate
35712 client area/non-client area window behaviour
35714 2005-02-11 Peter Bartok <pbartok@novell.com>
35716 * KeysConverter.cs: Implemented
35718 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
35720 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
35721 * LinkLabel: Added missing attributes
35722 * MainMenu.cs: fixes ToString
35723 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
35724 * ListBox.cs: fixes event position
35725 * TrackBar.cs: adds missing attributes and events
35727 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
35729 * MenuItem.cs: Use SystemInformation and bug fixes
35730 * MenuAPI.cs: Use SystemInformation and bug fixes
35732 2005-02-09 Jackson Harper <jackson@ximian.com>
35734 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
35735 their keystate otherwise things like VK_MENU get stuck "on".
35737 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
35739 * ListBox.cs: Fixes AddRange bug
35741 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
35744 - Add missing attributes
35745 - Add missing method
35747 * CheckedListBox.cs: Added missing attributes
35748 - Add missing attributes
35749 - Remove extra method
35751 * ComboBox.cs: Added missing attributes
35752 * VScrollBar.cs: Added missing attributes
35753 * ScrollBar.cs: Added missing attributes
35754 * ListBox.cs: Fixes signature, add missing consts
35755 * LinkArea.cs: Added missing attributes
35758 2005-02-08 Peter Bartok <pbartok@novell.com>
35760 * Menu.cs: Added missing attributes
35761 * MainMenu.cs: Added missing attributes
35762 * GroupBox.cs: Added missing attributes
35763 * Label.cs: Added missing attributes
35764 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
35766 - Added Instance and Options properties
35767 - Added missing attributes
35768 * Cursor.cs: Made Serializable
35769 * NotifyIcon: Added missing attributes
35770 * MenuItem.cs: Added missing attributes
35771 * TextBoxBase.cs: Implemented AppendText() and Select() methods
35772 * Panel.cs: Added Missing attributes
35773 * MonthCalendar.cs: Fixed CreateParams
35775 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
35779 - Fixes issues with links
35780 - Adds the class attributes
35782 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
35785 - Fixes button when no items available in dropdown
35786 - Fixes repainting problems
35787 - Adds the class attributes
35789 2005-02-07 Geoff Norton <gnorton@customerdna.com>
35791 * XplatUIOSX.cs: Detect the menu bar and title bar height from
35792 the current theme. Cache these on startup.
35794 2005-02-07 Jackson Harper <jackson@ximian.com>
35796 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
35797 the scrollbar buttons when they are depressed.
35799 2005-02-07 Geoff Norton <gnorton@customerdna.com>
35801 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
35802 Get the display size from the main displayid. We currently dont
35803 support multiple display configurations.
35805 2005-02-07 Geoff Norton <gnorton@customerdna.com>
35807 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
35809 2005-02-07 Miguel de Icaza <miguel@novell.com>
35811 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
35813 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
35815 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
35817 2005-02-04 Jackson Harper <jackson@ximian.com>
35819 * ThemeWin32Classic.cs: Respect the clipping rect when
35820 drawing. Only fill the intersection of clips and rects so there
35821 isn't a lot of large fills.
35822 * ScrollBar.cs: Pass the correct clipping rect to the theme
35823 engine. Remove some debug code.
35825 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
35827 * DateTimePicker.cs:
35828 - Fixed crash on DateTime.Parse, use Constructor instead
35830 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
35834 - Owner draw support (MeasureItem and DrawItem)
35836 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
35839 - Implements FindMergePosition and MergeMenu functions (very poor documented)
35840 - Fixes MenuItems.Add range
35842 - MergeMenu and Clone and CloneMenu functions
35844 2005-02-03 Jackson Harper <jackson@ximian.com>
35846 * ScrollBar.cs: Make abstract
35847 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
35850 2005-02-03 Jackson Harper <jackson@ximian.com>
35852 * ScrollBar.cs: First part of my scrollbar fixups. This removes
35853 all the unneeded refreshes and uses invalidates with properly
35856 2005-02-03 Peter Bartok <pbartok@novell.com>
35858 * ComponentModel.cs: Added
35859 * IDataGridEditingService.cs: Added
35860 * Timer.cs: Added missing attributes
35861 * ToolTip.cs: Added missing attributes
35863 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
35865 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
35867 2005-02-03 Peter Bartok <pbartok@novell.com>
35869 * ListBox.cs: Added missing attributes
35871 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
35874 - Fixes font height after font change
35875 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
35877 2005-02-02 Peter Bartok <pbartok@novell.com>
35879 * HandleData.cs: Introduced static methods to allow class
35880 to be more self-contained and track it's own HandleData objects
35881 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
35882 HandleData to use new static methods
35884 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
35887 - Fixes default size and PreferredHeight
35889 - ObjectCollection.Insert implementation
35895 - ObjectCollection.Insert implementation
35896 - No selection after clean
35899 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
35901 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
35903 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
35906 - Caches ItemHeight calculation for OwnerDrawVariable
35907 - Handles dropdown properly
35908 - Fixes several minor bugs
35910 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
35913 - Fixes 71946 and 71950
35914 - Fixes changing Multicolumn on the fly
35915 - Fixes keyboard navigation on Multicolumn listboxes
35917 2005-01-31 Geoff Norton <gnorton@customerdna.com>
35919 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
35920 crash reporter log.
35922 2005-01-31 Geoff Norton <gnorton@customerdna.com>
35924 * XplatUIOSX.cs: Allow applications to actually exit.
35926 2005-01-31 Geoff Norton <gnorton@customerdna.com>
35928 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
35929 their parent at creation time rather than lazily later. Fixes a major
35930 regression we were experiencing.
35932 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
35934 * ThemeWin32Classic.cs: more date time picker painting fixes
35935 * DateTimePicker.cs: more monthcalendar drop down fixes
35936 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
35938 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
35941 - When moving the thumb going outside the control should stop the moving
35942 - Adds the firing of missing events
35943 - Fixes no button show if Size is not specified
35944 - End / Home keys for keyboard navigation
35946 2005-01-30 Peter Bartok <pbartok@novell.com>
35948 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
35949 sanity check to prevent theoretical loop
35950 * XplatUIWin32.cs (SetVisible): Removed debug output
35951 * XplatUIX11.cs (SystrayChange): Added sanity check
35952 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
35953 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
35954 behaviour, valid until the X11 client window rewrite is done
35955 * TextBox.cs (ctor): Setting proper default foreground and background
35958 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
35960 * Theme: Added DrawDateTimePicker to interface
35961 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
35962 * DateTimePicker.cs: Created (still needs keys and painting code)
35963 * DateTimePickerFormat.cs: added
35964 * MonthCalendar.cs: fixed CreateParams for popup window mode
35966 2005-01-29 Peter Bartok <pbartok@novell.com>
35968 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
35969 this should also the calculations for ligher/darker
35970 * Theme.cs: Fixed defaults for ScrollBar widths/heights
35972 2005-01-29 Peter Bartok <pbartok@novell.com>
35974 * ArrangeDirection.cs: Added
35975 * ArrangeStartingPositon.cs: Added
35976 * SystemInformation.cs: Implemented
35977 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35978 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
35979 used by SystemInformation class
35980 * X11Strucs.cs: Added XSizeHints structure
35982 - Fixed CreateParams to make sure the menu window is always visible
35983 - TrackPopupMenu: Added check to make sure we don't draw the
35986 2005-01-29 Peter Bartok <pbartok@novell.com>
35988 * HandleData.cs: Added method for altering invalid area
35989 * TextBoxBase.cs: Implemented TextLength
35991 2005-01-28 Peter Bartok <pbartok@novell.com>
35993 * XplatUIX11.cs: Improvement over last patch, not sending
35994 the WM_PAINT directly anymore, instead we scroll any pending
35995 exposed areas and let the system pick out the WM_PAINT later
35997 2005-01-28 Peter Bartok <pbartok@novell.com>
35999 * SWF.csproj: Deleted, no longer used. Instead,
36000 Managed.Windows.Forms/SWF.csproj should be used
36001 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
36002 directly, to avoid a potential race condition with the next
36005 2005-01-28 Peter Bartok <pbartok@novell.com>
36007 * XplatUI.cs: Made class internal
36009 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
36011 * CheckedListBox.cs:
36014 - Missing methods and events
36016 2005-01-27 Peter Bartok <pbartok@novell.com>
36018 * Application.cs (Run): Don't use form if we don't have one
36020 2005-01-27 Peter Bartok <pbartok@novell.com>
36022 * TextBoxBase.cs (get_Lines): Fixed index off by one error
36024 2005-01-27 Peter Bartok <pbartok@novell.com>
36026 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
36027 * GridItem.cs: Added; Patch by Jonathan S. Chambers
36028 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
36029 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
36030 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
36031 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
36032 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36033 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
36034 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36035 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36036 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36037 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
36039 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
36042 - Draw focus on Simple Combobox
36043 - Fixes drawing issues
36046 2005-01-27 Peter Bartok <pbartok@novell.com>
36049 - Place window in default location, instead of hardcoded 0/0
36050 - Send initial LocationChanged event
36052 - UpdateBounds after creation to find out where the WM placed us
36053 - Make sure that if the ParentForm changes location the Form
36055 * XplatUIX11.cs: XGetGeometry will not return the coords relative
36056 to the root, but to whatever the WM placed around us.
36057 Translate to root coordinates before returning toplevel
36059 * XplatUIWin32.cs: Removed debug output
36060 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
36061 flag to GetWindowPos, to allow translation of coordinates on X11
36063 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
36065 * ListBox.cs: connect LostFocus Event
36067 2005-01-27 Peter Bartok <pbartok@novell.com>
36069 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36070 XplatUIX11.cs: Extended the Systray API
36071 * Form.cs: Removed debug output
36072 * Application.cs: Fixed focus assignment, always need to call
36073 XplatUI.Activate() since Form.Activate() has rules that may
36075 * NotifyIcon.cs: Should be complete now
36076 * ToolTip.cs: Worked around possible timer bug
36078 2005-01-27 Jackson Harper <jackson@ximian.com>
36081 - Only invalidate the effected tabs when the
36082 selected index changes. This reduces drawing and gets rid of some
36084 - Only refresh if the tabs need to be shifted, otherwise only
36085 invalidate the slider button.
36086 - On windows the tabs are not filled to right if the slider is
36089 2005-01-27 Jackson Harper <jackson@ximian.com>
36091 * TabControl.cs: Only refresh on mouseup if we are showing the
36092 slider. Also only invalidate the button whose state has changed.
36094 2005-01-26 Peter Bartok <pbartok@novell.com>
36096 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
36097 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
36098 and SystrayRemove() methods
36099 * XplatUIOSX.cs: Stubbed Systray methods
36101 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
36103 - Fixed broken XChangeProperty calls (marshalling messed up things)
36104 * X11Structs.cs: Added enums and structs required for Size hinting
36105 * NotifyIcon.cs: Added & implemented
36107 2005-01-26 Jackson Harper <jackson@ximian.com>
36109 * TabControl.cs: Space vertically layed out tabs properly.
36111 2005-01-26 Peter Bartok <pbartok@novell.com>
36113 * Form.cs (CreateClientParams): Always set the location to 0,0
36114 since we're a child window.
36116 * Control.cs (SetVisibleCore): Always explicitly setting the location
36117 of a toplevel window, apparently X11 doesn't like to move windows
36118 while they're not mapped.
36120 2005-01-26 Jackson Harper <jackson@ximian.com>
36122 * TabControl.cs: Implement FillToRight size mode with vertically
36125 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
36127 * ControlPaint.cs, ThemeWin32Classic.cs
36128 - Fixes DrawFocusRectangle
36130 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
36133 - MenuBar tracking only starts when item is first clicked
36134 - Fixes menu hidding for multiple subitems
36135 - Unselect item in MenuBar when item Executed
36138 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
36141 - IsInputKey for ListBox
36144 - Shift and Control item selection
36145 - Implement SelectionMode.MultiExtended
36146 - Fixes RightToLeft
36148 - IsInputKey implemented
36149 - Do not generate OnTextChangedEdit on internal txt changes
36151 2005-01-23 Peter Bartok <pbartok@novell.com>
36153 * AccessibleObject.cs: Partially implemented Select()
36154 * MonthCalendar.cs: Added missing attributes and events
36155 * Form.cs: Fixed CreateParams behaviour, now controls derived from
36156 form can properly override CreateParams.
36157 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
36158 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
36159 Control performs Invalidate & Update
36160 * NativeWindow (CreateHandle): Added special handling for Form
36161 and Form.FormParent classes to allow overriding of From.CreateParams
36163 - ControlNativeWindow: Renamed 'control' variable to more intuitive
36165 - ControlNativeWindow: Added Owner property
36166 - Removed usage of Refresh() on property changes, changed into
36167 Invalidate(), we need to wait until the queue is processed for
36168 updates, direct calls might cause problems if not all vars for
36169 Paint are initialized
36170 - Added call to UpdateStyles() when creating the window, to set any
36171 styles that CreateWindow might have ignored.
36172 - Added support for Form CreateParent overrides to UpdateStyles()
36173 * MessageBox.cs: Removed no longer needed FormParent override stuff,
36174 CreateParams are now properly overridable
36175 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
36176 CreateParams are now properly overridable
36178 2005-01-23 Miguel de Icaza <miguel@ximian.com>
36180 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
36183 Capture LostFocus and OnTextBoxChanged. The later introduces a
36184 recursive invocation that I have not figured out yet.
36186 Reset the timer when not using (it was accumulating).
36189 (OnTextBoxChanged): Set UserEdit to true here to track whether the
36190 user has made changes that require validation.
36192 Reset changing to avoid loops.
36194 2005-01-22 Miguel de Icaza <miguel@ximian.com>
36196 * NumericUpDown.cs: Display value at startup.
36198 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
36201 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
36202 filled in. Added some basic parsing of text.
36204 Still missing the OnXXX method overrides, and figuring out the
36205 events that must be emitted.
36207 * UpDownBase.cs: Handle UserEdit on the Text property.
36209 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
36212 - Fixes IntegralHeight
36215 2005-01-21 Jackson Harper <jackson@ximian.com>
36217 * TabControl.cs: Set the SelectedIndex property when SelectedTab
36218 is set so that the page visibility is updated and the tabs are
36221 2005-01-21 Jackson Harper <jackson@ximian.com>
36223 * TabControl.cs: Use cliping rectangle for blitting. Give the
36224 theme the clipping rect so we can do clipping while
36225 drawing. Remove some debug code.
36227 2005-01-21 Jackson Harper <jackson@ximian.com>
36229 * TabPage.cs: Add a new method so tab pages can force the tab
36230 control to recalculate the tab page sizes.
36231 * TabControl.cs: UpdateOwner needs to make the tab control recalc
36234 2005-01-20 Jackson Harper <jackson@ximian.com>
36236 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
36238 2005-01-20 Jackson Harper <jackson@ximian.com>
36240 * TreeView.cs: Set the bounds for nodes properly. They were
36241 getting screwed up when checkboxes were not enabled, but images
36244 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
36247 - Owner draw support
36250 2005-01-20 Jackson Harper <jackson@ximian.com>
36252 * XplatUIStructs.cs: More misc keys
36253 * X11Keyboard.cs: Ignore some control keys.
36255 2005-01-20 Jackson Harper <jackson@ximian.com>
36257 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
36258 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
36260 2005-01-19 Peter Bartok <pbartok@novell.com>
36262 * Control.cs: Un-selecting the control when it is loosing focus
36264 2005-01-19 Jackson Harper <jackson@ximian.com>
36266 * TreeView.cs: Hook up to the text controls leave event so we can
36267 end editing when the users clicks outside the text box.
36269 2005-01-19 Jackson Harper <jackson@ximian.com>
36271 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
36272 get set in the conversion array.
36274 2005-01-19 Peter Bartok <pbartok@novell.com>
36276 * Application.cs (ModalRun): Added a call to CreateControl to ensure
36277 focus is properly set
36279 - Added missing attributes
36280 - removed styles, those are already set in the base class
36282 - Added missing attributes
36283 - Added clip window styles
36284 * CheckBox.cs: Added missing attributes
36286 - FormParentWindow.CreateParams: Added required clip styles
36287 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
36288 also filters modifier keys
36290 - Added assignment of Accept and Cancel button to enable Enter
36291 and Esc keys in MessageBox dialogs
36292 - FormParentWindow.CreateParams: Added required clip styles
36293 * RadioButton.cs: Added missing attributes
36294 * TextControl.cs: No longer draws selection if control does not
36297 - Now draws simple rectangle around test area to make it obvious
36298 there's a control. This is a hack until we properly support borders
36299 - A few simple fixes to support selections better, now erases selected
36300 text when typing, and resets selection when using movement keys
36302 2005-01-19 Miguel de Icaza <miguel@ximian.com>
36304 * UpDownBase.cs: Added some new properties.
36306 * DomainUpDown.cs: Implement a lot to get my test working.
36308 2005-01-19 Geoff Norton <gnorton@customerdna.com>
36310 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
36312 2005-01-19 Geoff Norton <gnorton@customerdna.com>
36314 * OSXStructs (WindowAttributes): Fixed csc complaints
36316 2005-01-19 Geoff Norton <gnorton@customerdna.com>
36319 OSXStructs.cs: Initial refactor to move enums and consts into
36320 OSXStructs and use them in the driver for greater readability.
36322 2005-01-19 Geoff Norton <gnorton@customerdna.com>
36324 * XplatUIOSX.cs: Initial support for Standard Cursors.
36325 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
36327 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
36329 * ComboBox.cs: ability to change style when the ctrl is already
36330 created, missing methods and events, bug fixes, signature fixes
36332 2005-01-19 Peter Bartok <pbartok@novell.com>
36334 * Cursors.cs (ctor): Added ctor to fix signature
36336 2005-01-18 Peter Bartok <pbartok@novell.com>
36338 * Button.cs: Implemented DoubleClick event
36340 - Fixed keyboard handling to behave like MS, where the press of
36341 Spacebar is equivalent to a mousedown, and the key release is
36342 equivalent to mouseup. Now a spacebar push will give the same
36343 visual feedback like a mouse click.
36344 - Added missing attributes
36345 - Added ImeModeChanged event
36346 - Added support for generating DoubleClick event for derived classes
36348 - Implemented DoubleClick event
36349 - Added missing attributes
36350 * CommonDialog.cs: Added missing attribute
36351 * ContextMenu.cs: Added missing attributes
36353 - AutoChecked buttons do not allow to be unselected when clicked
36354 (otherwise we might end up with no selected buttons in a group)
36355 - Added missing attributes
36356 - Implemented DoubleClickEvent
36357 * ThreadExceptionDialog.cs: Enabled TextBox code
36359 2005-01-18 Peter Bartok <pbartok@novell.com>
36361 * Form.cs: Removed debug output
36362 * Button.cs: Added support for DoubleClick method
36364 2005-01-18 Peter Bartok <pbartok@novell.com>
36367 - Added method to parent window that allows triggering size
36368 calculations when a menu is added/removed
36369 - set_Menu: Cleaned up mess from early days of Form and Control,
36370 now properly triggers a recalc when a menu is added/removed
36371 - Added case to select form itself as focused form if no child
36373 - Added PerformLayout call when showing dialog, to ensure properly
36376 - Select(): Made internal so Form can access it
36377 - Focus(): Only call Xplat layer if required (avoids loop), and sets
36379 * Application.cs (Run): Removed hack and calls PerformLayout instead
36380 to trigger calculation when Form becomes visible
36382 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
36384 * ComboBox.cs: fixes for ownerdraw
36386 2005-01-18 Peter Bartok <pbartok@novell.com>
36389 - Sentinel is no longer static, each Document gets it's own, this
36390 avoids locking or alternatively overwrite problems when more
36391 than one text control is used simultaneously.
36392 - Switched to use Hilight and HilightText brushes for text selection
36394 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
36396 2005-01-18 Peter Bartok <pbartok@novell.com>
36399 - Hooked up the following events:
36407 o SystemColorsChanged
36408 o ParentFontChanged
36410 - Removed debug output
36411 - Added a call to the current theme's ResetDefaults when a color change
36413 * Form.cs: Now setting the proper ImeMode
36414 * Theme.cs: Defined a method to force recreation of cached resources
36415 and rereading of system defaults (ResetDefaults())
36416 * ThemeWin32Classic.cs: Added ResetDefaults() stub
36418 2005-01-17 Peter Bartok <pbartok@novell.com>
36420 * Control.cs: Added missing attributes
36422 2005-01-17 Jackson Harper <jackson@ximian.com>
36424 * TreeNode.cs: Implement editing. Add missing properties selected
36426 * TreeView.cs: Implement node editing. Also some fixes to use
36427 Invalidate (invalid area) instead of Refresh when selecting.
36429 2005-01-17 Peter Bartok <pbartok@novell.com>
36432 - Implemented InvokeGotFocus() method
36433 - Implemented InvokeLostFocus() method
36434 - Implemented InvokePaint() method
36435 - Implemented InvokePaintBackground() method
36436 - Implemented InvokeClick() method
36437 - Implemented FindForm() method
36438 - Implemented RectangleToClient() method
36439 - Implemented ClientToRectangle() method
36440 - Implemented ResetBackColor() method
36441 - Implemented ResetCursor() method
36442 - Implemented ResetFont() method
36443 - Implemented ResteForeColor() method
36444 - Implemented ResetImeMode() method
36445 - Implemented ResetLeftToRight() method
36446 - Implemented ResetText() method
36447 - Implemented Scale() methods
36448 - Implemented ScaleCore() method
36449 - Implemented Update() method
36450 - Removed unused variables
36451 - Stubbed AccessibilityNotifyClients and
36452 ControlAccessibleObject.NotifyClients() methods (dunno what to do
36454 - Now setting proper default for RightToLeft property
36455 - Fixed bug in SetClientSizeCore that would cause windows to get
36457 - Now sending Click/DoubleClick events
36458 - Now selecting controls when left mouse button is clicked on
36460 * AccessibleEvents.cs: Added
36461 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
36462 * XplatUIOSX.cs: Stubbed UpdateWindow() method
36463 * XplatUIWin32.cs: Implemented UpdateWindow() method
36464 * XplatUIX11.cs: Implemented UpdateWindow() method
36465 * Form.cs: Removed stray semicolon causing CS0162 warning
36466 * ThemeWin32Classic.cs: Fixed unused variable warnings
36467 * ScrollableControl.cs: Now calls base method for ScaleCore
36468 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
36469 style to avoid interference with internal click handler (which is
36470 different than standard Control click handling)
36472 - Now unchecks all sibling radio buttons when control is
36473 selected (Fixes #68756)
36474 - Removed internal tabstop variable, using the one inherited from
36477 2005-01-17 Jackson Harper <jackson@ximian.com>
36479 * NavigateEventArgs.cs: Fix base type.
36480 * LinkLabel.cs: Sig fix
36482 2005-01-17 Jackson Harper <jackson@ximian.com>
36484 * TreeView.cs: Only invalidate the effected nodes bounds when
36487 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
36489 * XplatUIWin32.cs: fixes Win32 marshaling
36490 * XplatUIX11.cs: fixes method signature
36492 2005-01-17 Peter Bartok <pbartok@novell.com>
36494 * XplatUIX11.cs: Clean up resources when we no longer need them
36496 2005-01-17 Peter Bartok <pbartok@novell.com>
36498 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
36499 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
36500 and DestroyCursor() methods.
36501 * Cursor.cs: Partially implemented, now supports standard cursors;
36502 still contains some debug code
36503 * Cursors.cs: Implemented class
36505 - WndProc(): Added handling of WM_SETCURSOR message, setting the
36507 - Implemented Cursor property
36508 - Replaced break; with return; more straightforwar and possibly
36510 - Now properly setting the result for WM_HELP
36511 * X11Structs.cs: Added CursorFontShape enum
36512 * XplatUIStructs.cs:
36513 - Added StdCursor enum (to support DefineStdCursor() method)
36514 - Added HitTest enum (to support sending WM_SETCURSOR message)
36516 - Now sends the WM_SETCURSOR message
36517 - Implemented new cursor methods
36518 * XplatUIOSX.cs: Stubbed new cursor methods
36520 - Implemented new cursor methods
36521 - Added GetSystemMetrics function and associated enumeration
36523 2005-01-15 Peter Bartok <pbartok@novell.com>
36526 - WndProc(): Now handles EnableNotifyMessage
36527 - SelectNextControl(): Fixed bug where if no child or sibling
36528 controls exist we looped endlessly
36530 2005-01-14 Jackson Harper <jackson@ximian.com>
36532 * TreeView.cs: Recalculate the tab pages when a new one is added
36533 so that the proper bounding rects are created.
36535 2005-01-14 Jackson Harper <jackson@ximian.com>
36537 * TreeView.cs: Draw a gray box instead of a grip in the lower
36538 right hand corner when there are both horizontal and vertical
36541 2005-01-14 Jackson Harper <jackson@ximian.com>
36543 * Control.cs: When erasing backgrounds use FromHwnd instead of
36544 FromHdc when there is a NULL wparam. This occurs on the X driver.
36545 * XplatUIX11.cs: Set the wparam to NULL.
36547 2005-01-13 Jackson Harper <jackson@ximian.com>
36549 * PictureBox.cs: Implement missing methods (except ToString, need
36550 to test that on windows) and events. When visibility is changed we
36551 need to redraw the image because the buffers are killed. When size
36552 is changed refresh if the sizemode needs it.
36554 2005-01-13 Peter Bartok <pbartok@novell.com>
36556 * Control.cs (SelectNextControl): Was using wrong method to select
36559 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
36561 * ComboBox.cs: fixes dropstyle
36563 2005-01-13 Peter Bartok <pbartok@novell.com>
36566 - Implemented Select() override
36567 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
36568 - Now sets keyboard focus on startup
36569 * Control.cs (SelectNextControl): Now properly handles directed=true
36571 - WndProc: Now passes tab key on to base if AcceptTabChar=false
36572 - Added (really bad) focus rectangle (mostly for testing)
36573 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
36574 to enforce redraw on focus changes
36575 * ContainerControl.cs:
36576 - Fixed detection of Shift-Tab key presses
36577 - Fixed traversal with arrow keys
36578 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
36579 gonna keep this or if it's complete yet
36581 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
36583 * ComboBox.cs: missing properties, fixes
36585 2005-01-13 Peter Bartok <pbartok@novell.com>
36587 * Panel.cs (ctor): Setting Selectable window style to off
36588 * Splitter.cs (ctor): Setting Selectable window style to off
36589 * GroupBox.cs (ctor): Setting Selectable window style to off
36590 * Label.cs (ctor): Setting Selectable window style to off
36592 2005-01-12 Miguel de Icaza <miguel@ximian.com>
36594 * UpDownBase.cs (InitTimer): If the timer has been already
36595 created, enable it.
36597 Use a TextBox instead of a Label.
36599 2005-01-12 Jackson Harper <jackson@ximian.com>
36601 * TreeView.cs: Refresh the tree after sorting the nodes. Always
36602 draw the connecting node lines (when ShowLines is true).
36603 * TreeNode.cs: The nodes index can now be updated. This is used
36604 when a node collection is sorted.
36605 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
36606 insert or an existing unsorted node collection can be sorted.
36608 2005-01-12 Peter Bartok <pbartok@novell.com>
36610 * ContainerControl.cs: Implemented ProcessDialogKeys()
36612 2005-01-12 Peter Bartok <pbartok@novell.com>
36615 - Implemented SelectNextControl() method
36616 - Several focus related bug fixes
36617 - Fixed Docking calculations to match MS documentation and
36620 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
36622 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
36625 2005-01-12 Peter Bartok <pbartok@novell.com>
36628 - Fixed broken Contains() method
36629 - Implemented GetNextControl() method. Finally. This is the pre-
36630 requisite for focus handling.
36632 2005-01-12 Peter Bartok <pbartok@novell.com>
36634 * OSXStrucs.cs: Added
36636 2005-01-12 Peter Bartok <pbartok@novell.com>
36639 - Removed PeekMessageFlags
36640 - Implemented SetWindowStyle() method
36641 * XplatUIStructs.cs: Added PeekMessageFlags
36642 * X11Structs: Added missing border_width field to XWindowChanges struct
36644 - PeekMessage: Now throws exception if flags which are not yet
36645 supported are passed
36646 - Implemented SetWindowStyle() method
36647 - Fixed SetZOrder to handle AfterHwnd properly
36648 * XplatUI.cs: Added SetWindowStyle() method
36649 * XplatUIDriver.cs: Added SetWindowStyle() abstract
36651 - Implemented UpdateStyles() method
36652 - Implemented UpdateZOrder() method
36653 * XplatUIOSX.cs: Added SetWindowStyle() stub
36655 2005-01-12 Geoff Norton <gnorton@customerdna.com>
36657 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
36661 2005-01-11 Jackson Harper <jackson@ximian.com>
36663 * TreeView.cs: Still need to draw lines to siblings even if out of
36664 the current node is out of the clip.
36666 2005-01-11 Jackson Harper <jackson@ximian.com>
36668 * TreeView.cs: When setting the hbar/vbar/grip position use
36669 SetBounds so that perform layout is only called once. Also suspend
36670 and resume layout so layout is only done once for all controls.
36671 - Removed some debug fluff
36672 * SizeGrip.cs: Call base implmentation in overriding methods.
36673 - When visibility is changed the drawing buffers are killed so we
36676 2005-01-11 Jackson Harper <jackson@ximian.com>
36678 * TreeView.cs: Calculate the open node count while drawing. This
36679 saves us an entire tree traversal for every paint operation. Use
36680 a member var for the open node count so less vars are passed around.
36682 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
36684 * MonthCalendar.cs:
36685 - fixed selection to use mousemove, not mouse polling on timer
36686 * ThemeWin32Classic.cs
36687 - removed redundant unused variable "no_more_content"
36689 2005-01-11 Peter Bartok <pbartok@novell.com>
36691 * XplatUIX11.cs (DoEvents): Needs to return when no more events
36692 are pending, so it now calls PeekMessage instead of GetMessage;
36693 implemented a incomplete version of PeekMessage
36695 2005-01-11 Peter Bartok <pbartok@novell.com>
36697 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
36699 * TextBoxBase.cs: Added sending of TextChanged event
36701 2005-01-10 Jackson Harper <jackson@ximian.com>
36703 * TreeView.cs: Try not to draw outside the clipping rectangle on
36706 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
36708 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
36710 2005-01-10 Jackson Harper <jackson@ximian.com>
36713 - Implement fast scrolling. Now only the newly
36714 exposed nodes are drawn and the old image is moved using the
36715 XplatUI::ScrollWindow method.
36716 - Factor in height of nodes when calculating whether or not the
36717 node is in the clipping rect.
36719 2005-01-10 Jackson Harper <jackson@ximian.com>
36721 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
36723 2005-01-10 Peter Bartok <pbartok@novell.com>
36725 * Application.cs: Added temporary hack to resolve all our resize
36726 required issues on startup. This will get fixed properly at
36727 some point in the future
36729 2005-01-10 Jackson Harper <jackson@ximian.com>
36731 * SizeGrip.cs: New internal class that is used as a sizing
36732 grip control...hence the name.
36734 2005-01-10 Peter Bartok <pbartok@novell.com>
36736 * Control.cs: Implemented proper TabIndex handling, now assigning
36737 a tabindex when a control is added to a container
36738 * GroupBox.cs (ctor): Now sets the Container style bit, required
36739 for Control.GetNextControl()
36741 2005-01-09 Jackson Harper <jackson@ximian.com>
36743 * TextBoxBase.cs: Clear window when scrolling (fixes build).
36745 2005-01-09 Peter Bartok <pbartok@novell.com>
36747 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36748 XplatUIX11.cs: Added ability to control ScrollWindow expose and
36749 an overload for ScrollWindow to allow only scrolling a rectangle
36751 2005-01-09 Peter Bartok <pbartok@novell.com>
36754 - Implemented SetDesktopBounds method
36755 - Implemented SetDesktopLocation method
36757 2005-01-08 Jackson Harper <jackson@ximian.com>
36759 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
36760 the node count has changed, this removes to VScroll::Refresh calls
36763 2005-01-08 Geoff Norton <gnorton@customerdna.com>
36765 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
36767 2005-01-07 Jackson Harper <jackson@ximian.com>
36769 * TreeNode.cs: Just update the single node when it is
36770 checked. Don't refresh after toggling, the Expand/Collapse already
36772 * TreeView.cs: Respect clipping a little more when drawing. Try
36773 not to redraw things that don't need to be redrawn. Just hide the
36774 scrollbars when they are no longer needed instead of removing
36775 them, so they don't have to be created again and again.
36777 2005-01-07 Geoff Norton <gnorton@customerdna.com>
36779 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
36780 coordinates to window space to place the caret properly, FIXED.
36781 Implement GetWindowState & SetWindowState
36783 2005-01-06 Peter Bartok <pbartok@novell.com>
36786 - Implemented ClientSize property
36787 - Implemented DesktopBounds property
36788 - Implemented DesktopLocation property
36789 - Implemented IsRestrictedWindow property
36790 - Implemented Size property
36791 - Implemented TopLevel property
36792 - Implemented FormWindowState property
36794 - Implemented GetTopLevel() method
36795 - Implemented SetTopLevel() method
36796 * X11Structs.cs (Atom):
36797 - Added AnyPropertyType definition
36798 - Added MapState definiton and updated XWindowAttribute struct
36799 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
36800 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
36801 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
36803 - Implemented GetWindowState() and SetWindowState() methods
36804 - Fixed Win32GetWindowLong return type
36806 - Introduced central function for sending NET_WM messages
36807 - Implemented GetWindowState() and SetWindowState() methods
36808 * TextBoxBase.cs (set_Lines):
36809 - Now uses Foreground color for text added via Text property (Duh!)
36810 - Added code to remember programmatically requested size (fixes
36811 behaviour when Multiline is set after Size)
36812 - Added AutoSize logic
36814 2005-01-06 Jackson Harper <jackson@ximian.com>
36816 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
36818 2005-01-06 Jackson Harper <jackson@ximian.com>
36820 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
36821 set to less then 0.
36823 2005-01-06 Jackson Harper <jackson@ximian.com>
36825 * ScrollableControl.cs: Lazy init the scrollbars.
36827 2005-01-06 Jackson Harper <jackson@ximian.com>
36829 * Theme.cs: Speed up getting pens and solid brushes, by using
36830 their ARGB as a hash instead of tostring and not calling Contains.
36832 2005-01-06 Peter Bartok <pbartok@novell.com>
36835 - Implemented OnActivated and OnDeactivate event trigger
36836 - Implemented Activate() method
36837 - Fixed ShowDialog() to activate the form that was active before
36838 the dialog was shown
36840 - Added global active_window var that tracks the currently active
36842 - Now always grabs Property changes from the root window to always
36843 catch changes on the active window property
36844 - Added code to PropertyNotify handler to send Active/Inactive
36845 messages when state changes. This puts X11 and Win32 en par on
36846 WM_ACTIVATE notifications (except for double notifications when
36847 the user clicks away from our modal window to another one of our
36850 2005-01-05 Jackson Harper <jackson@ximian.com>
36852 * ImageList.cs: Implment ctor
36854 2005-01-05 Geoff Norton <gnorton@customerdna.com>
36856 * XplatUIOSX.cs: Implement Activate/SetTopmost
36858 2005-01-05 Geoff Norton <gnorton@customerdna.com>
36860 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
36862 2005-01-05 Geoff Norton <gnorton@customerdna.com>
36864 * XplatUIOSX.cs: Implement GetActive/SetFocus.
36866 2005-01-05 Peter Bartok <pbartok@novell.com>
36868 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
36869 XplatUIOSX.cs: Added GetActive method to return the currently
36870 active window for the application (or null, if none is active)
36872 - Implemented ActiveForm
36873 - Commented out owner assignment for modal dialogs (causes problems
36874 on Win32, since the owner will be disabled)
36875 - Reworked some Active/Focus handling (still incomplete)
36876 * CommonDialog.cs: Commented out owner assignment for modal dialogs
36877 (causes problems on Win32, since the owner will be disabled)
36878 * IWin32Window: Added ComVisible attribute
36880 2005-01-05 Peter Bartok <pbartok@novell.com>
36882 * ToolTip.cs (WndProc): Enable setting focus now that we have the
36883 required XplatUI functions.
36885 2005-01-05 Peter Bartok <pbartok@novell.com>
36887 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
36888 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
36889 to implement focus and activation handling; still incomplete and
36892 2005-01-04 Peter Bartok <pbartok@novell.com>
36894 * TextBoxBase.cs: Changed access level for Document property to
36895 match switch to internal for TextControl
36897 2005-01-04 Peter Bartok <pbartok@novell.com>
36899 * AccessibleObject: Added ComVisible attribute
36901 2005-01-04 Jackson Harper <jackson@ximian.com>
36903 * X11Keyboard.cs: Remove unneeded var.
36905 2005-01-04 Jackson Harper <jackson@ximian.com>
36907 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36909 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36910 ClientMessage. This makes apps exit cleanly (more often).
36912 2005-01-04 Jackson Harper <jackson@ximian.com>
36914 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36915 handling focus, return correct colors and fonts,
36916 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36917 handle selection, horizontal scrolling, and mouse interaction.
36919 2005-01-04 Peter Bartok <pbartok@novell.com>
36921 * ICommandExecutor.cs: Added
36922 * IDataGridColumnStyleEditingNotificationService.cs: Added
36923 * IFeatureSupport.cs: Added
36924 * IFileReaderService.cs: Added
36925 * IDataObject.cs: Added ComVisible attribute
36926 * AmbientProperties.cs: Added
36927 * BaseCollection.cs: Added missing attributes
36928 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
36929 * BaseCollection.cs: Added missing attributes
36930 * Binding.cs: Added TypeConverter attribute
36931 * BindingContext.cs: Added DefaultEvent attribute
36932 * BindingsCollection.cs: Added DefaultEvent attribute
36933 * Button.cs: Added DefaultValue attribute
36934 * DragEventArgs.cs: Added ComVisible attribute
36935 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
36936 * KeyEventArgs.cs: Added ComVisible attribute
36937 * KeyPressEventArgs.cs: Added ComVisible attribute
36938 * MouseEventArgs.cs: Added ComVisible attribute
36939 * NavigateEventArgs.cs: Added
36940 * NavigateEventHandler.cs: Added
36941 * FeatureSupport.cs: Added
36942 * OSFeature.cs: Added
36943 * Theme.cs: Added abstract Version property to support OSFeature
36944 * ThemeWin32Classic.cs: Added Version property to
36945 support OSFeature.Themes
36946 * ProgressBar.cs: Removed OnPaintBackground override, not required since
36947 the proper styles to avoid background drawing are set, also doesn't
36949 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
36950 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
36951 * ScrollEventArgs.cs: Added ComVisible attribute
36952 * SplitterEventArgs.cs: Added ComVisible attribute
36953 * AccessibleSelection.cs: Added Flags attribute
36954 * Appearance.cs: Added ComVisible attribute
36955 * Border3DSide.cs: Added ComVisible attribute
36956 * Border3DStyle.cs: Added ComVisible attribute
36957 * BorderStyle.cs: Added ComVisible attribute
36958 * DragAction.cs: Added ComVisible attribute
36959 * ErrorBlinkStyle.cs: Added
36960 * ScrollEventType.cs: Added ComVisible attribute
36961 * AnchorStyles.cs: Added Editor attribute
36962 * DockStyle.cs: Added Editor attribute
36963 * HorizontalAlignment.cs: Added ComVisible attribute
36964 * HelpEventArgs.cs: Added ComVisible attribute
36965 * PaintEventArgs.cs: Added IDisposable
36967 2005-01-04 Peter Bartok <pbartok@novell.com>
36969 * TextControl.cs: Switched Line, LineTag and Document classes to
36972 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
36974 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
36975 Simple mode, fixes, IntegralHeight, etc.
36977 2005-01-04 Peter Bartok <pbartok@novell.com>
36979 * TextBoxBase.cs: Using proper font variable now
36981 2005-01-04 Peter Bartok <pbartok@novell.com>
36983 * Form.cs (ShowDialog): Set parent to owner, if provided
36984 * GroupBox.cs: Removed unused vars
36986 - Added GetHashCode() for Document and LineTag classes
36987 - Removed unused variables
36988 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
36989 to allow translation between continuous char position and line/pos
36990 * CheckBox.cs: Removed vars that are provided by base class
36991 * RadioButton.cs: Removed vars that are provided by base class, added
36992 new keyword where required
36993 * LinkLabel.cs: Added new keyword where required
36994 * Control.cs (WndProc): Removed unused variable
36996 - Finished SelectionLength property
36997 - Implemented SelectionStart property
36998 - Implemented Text property
36999 - Removed unused vars
37000 * MessageBox.cs: Added new keyword where required
37001 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
37003 * MenuAPI.cs: Added new keyword where required
37004 * ButtonBase.cs: Removed vars that are provided by base class, added
37005 new keyword where required
37006 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
37007 argument to double, to allow compiling with csc 2.0 (Atsushi ran
37009 * Application.cs (Run): Now triggers the ThreadExit event
37010 * CommonDialog.cs: Added new keyword where required; now properly sets
37011 parent (owner) for dialog
37012 * XplatUIX11.cs: Commented out unused vars
37013 * StatusBar.cs: Fixed signature for Text property
37014 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
37016 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
37018 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
37019 TrackBar.cs, MonthCalendar.cs: remove unused vars
37021 2005-01-03 Jackson Harper <jackson@ximian.com>
37023 * ThemeWin32Classic.cs:
37024 * X11Keyboard.cs: Remove unused vars.
37026 2005-01-03 Peter Bartok <pbartok@novell.com>
37029 - set_Text: Tied into TextControl
37030 - set_TextAlignment: Tied into TextControl
37032 - Added alignment properties and implemented alignment handling
37033 and drawing (still has a bug, not generating proper expose events)
37034 - Added new Line() constructor to allow passing the line alignment
37035 - Fixed selection setting, properly handling end<start now
37036 - Added aligment considerations to RecalculateDocument()
37038 - Now properly enforces control height for single line controls
37039 - Added support for CharacterCasing
37040 - Added IsInputKey override
37041 - Fixed Keys.Enter logic
37042 - Added SetBoundsCore override
37043 - Fixed mouse selection handling
37045 2005-01-03 Jackson Harper <jackson@ximian.com>
37048 - Collapse and uncheck all nodes when CheckBoxes is disabled.
37049 - Checkboxes are always aligned to the bottom of the node,
37050 regardless of item height.
37051 - Use the node bounds to draw the text so we can center it when
37052 the item height is greater then the font height.
37053 - Node::Bounds are only the text part of the node.
37054 * TreeNode.cs: New method to combine collapsing and unchecking all
37057 2005-01-02 Jackson Harper <jackson@ximian.com>
37059 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
37060 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
37061 tree when a check is changed. TODO: Only refresh the checked node.
37063 2004-12-30 Jackson Harper <jackson@ximian.com>
37065 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
37066 * TreeNode.cs: When collapsing make sure to never collapse the
37069 2004-12-29 Jackson Harper <jackson@ximian.com>
37071 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
37073 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
37075 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
37077 2004-12-28 Peter Bartok <pbartok@novell.com>
37079 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
37082 2004-12-28 Peter Bartok <pbartok@novell.com>
37084 * Control.cs (WndProc): Added WM_HELP handler, now generates
37085 HelpRequested event
37086 * Form.cs: Added HelpButton property and required support code
37087 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
37089 2004-12-28 Peter Bartok <pbartok@novell.com>
37092 - Made DialogForm.owner variable internal
37093 - Added check to ensure owner form is set before setting
37094 owner properties in CreateParams
37096 2004-12-28 Geoff Norton <gnorton@customerdna.com>
37098 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
37099 swizzling. Implement ClientToScreen and ScreenToClient. Implement
37100 GetCursorPos. Fix major visibility issues. Rework the windowing
37101 system to support borderless/titleless windows (implements menus).
37102 Fix GetWindowPos. Implement initial background color support for
37105 2004-12-28 Peter Bartok <pbartok@novell.com>
37107 * Form.cs (get_CreateParams): Make sure we have an owner before using
37108 the owner variable. Implement proper default if no owner exists
37110 2004-12-28 Peter Bartok <pbartok@novell.com>
37112 * In preparation for making Managed.Windows.Forms the default build target
37113 for System.Windows.Forms, the following stubbed files were added.
37114 Dialogs are currently being implemented by contributors and are only
37115 short-term place holders.
37116 * ColorDialog.cs: Initial check-in (minmal stub)
37117 * DataGrid.cs: Initial check-in (minimal stub)
37118 * DataGridLineStyle.cs: Initial check-in (minimal stub)
37119 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
37120 * DataGridTableStyle.cs: Initial check-in (minimal stub)
37121 * FontDialog.cs: Initial check-in (minimal stub)
37122 * FileDialog.cs: Initial check-in (minimal stub)
37123 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
37124 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
37125 * OpenFileDialog: Initial check-in (minimal stub)
37126 * IComponentEditorPageSite.cs: Initial check-in
37127 * Splitter.cs: Initial check-in (for Jackson)
37128 * SplitterEventArgs.cs: Initial check-in (for Jackson)
37129 * SplitterEventHandler.cs: Initial check-in (for Jackson)
37130 * TextBox.cs: Initial check-in; still needs some wiring to
37131 TextControl backend
37132 * Form.cs: Implemented ControlBox property
37133 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
37134 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
37135 * TextControl.cs: Added selection functionality; added todo header
37137 - Implemented Lines property
37138 - Implemented TextHeight property
37139 - Implemented SelectedText property
37140 - Implemented SelectionLength property
37141 - Implemented SelectAll method
37142 - Implemented ToString method
37143 - Removed and cleaned up some debug code
37144 - Implemented (still buggy) mouse text selection
37146 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
37148 * ComboBox.cs: Complete DropDownList implementation, fixes.
37150 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
37152 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
37153 * ComboBoxStyle.cs: ComboBoxStyle enum
37154 * ComboBox.cs: Initial work on ComboBox control
37156 2004-12-21 Peter Bartok <pbartok@novell.com>
37158 * Control.cs (ctor, CreateParams): Moved setting of is_visible
37159 forward so that anything that creates a window gets the default,
37160 also no longer uses Visible property in CreateParams to avoid
37161 walking up the parent chain and possibly get the wrong visible
37162 status. Fixed IsVisible to no longer walk up to the parent.
37164 2004-12-21 Peter Bartok <pbartok@novell.com>
37166 * Form.cs (ShowDialog): Unset modality for the proper window
37168 2004-12-20 Peter Bartok <pbartok@novell.com>
37170 * CommonDialog.cs: Initial check-in
37172 2004-12-20 Peter Bartok <pbartok@novell.com>
37174 * Control.cs (Visible): Now uses the parent window instead of the
37175 client area window for the property
37178 - ShowDialog(): Now uses the proper window for modality
37179 - The default visibility state for the form parent is now false. This
37180 will prevent the user from seeing all the changes to the form and
37181 its controls before the application hits Application.Run()
37182 - Removed some stale commented out code
37185 - Added FindWindow() method to have a method to check for existence
37187 - Added ability to override default exception handling (for example
37188 when debugging with VS.Net; to do this the ExternalExceptionHandler
37190 - Removed some useless debug output
37193 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
37194 not working as expected
37195 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
37196 property to allow switching back to the modal window if focus is
37197 given to another one of our windows (Application Modal)
37198 - Now only sets override_redirect if we create a window
37200 - Moved EventMask selection before mapping of newly created window
37201 so we can catch the map event as well
37202 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
37203 - Added various Atom related DllImports
37204 - Implemented Exit() method
37205 - .ctor() : No longer shows window if WS_VISIBLE is not defined
37206 in the CreateParams
37208 * MessageBox.cs: Now properly deals with the FormParent window by
37209 providing an override the FormParent CreateParams property to
37210 set as POPUP instead of OVERLAPPED window.
37212 2004-12-19 Geoff Norton <gnorton@customerdna.com>
37214 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
37215 Minor code cleanup.
37217 2004-12-19 Geoff Norton <gnorton@customerdna.com>
37219 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
37221 2004-12-18 Peter Bartok <pbartok@novell.com>
37223 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
37224 implementing SetModal() method
37226 2004-12-18 Peter Bartok <pbartok@novell.com>
37228 * X11Structs.cs (XGCValues): Fixed type of function element
37229 * XplatUI.cs: Added ScrollWindow() method
37230 * XplatUIDriver.cs: Added ScrollWindow() abstract
37231 * XplatUIWin32.cs: Implemented ScrollWindow() method
37232 * XplatUIX11.cs: Implemented ScrollWindow() method
37233 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
37235 2004-12-17 Geoff Norton <gnorton@customerdna.com>
37237 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
37238 Some more keyboard support (INCOMPLETE)
37240 2004-12-17 Peter Bartok <pbartok@novell.com>
37243 - Added color attribute to line tags.
37244 - Added color argument to all functions dealing with tags
37245 - Added color argument support to various functions
37246 - Fixed miss-calculation of baseline/shift in certain circumstances
37248 * TextBoxBase.cs: Added new color option to test code
37250 2004-12-17 Jackson Harper <jackson@ximian.com>
37253 * MonthCalendar.cs: Signature fixes
37255 2004-12-17 Geoff Norton <gnorton@customerdna.com>
37257 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
37258 keyboard event moved it. Create a new graphics context for each paint resolves this
37260 2004-12-17 Geoff Norton <gnorton@customerdna.com>
37262 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
37263 Make caret exist and go blink blink. Initial keyboard support.
37264 Fix exception handler, Add Invalidate support. Change way RefreshWindow
37267 2004-12-17 Jackson Harper <jackson@ximian.com>
37269 * XplatUIStructs.cs: Updated set of virtual keycodes.
37270 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
37272 2004-12-17 Jackson Harper <jackson@ximian.com>
37274 * XplatUIX11.cs: Prune old keyboard code.
37276 2004-12-17 Jackson Harper <jackson@ximian.com>
37278 * XplatUIX11.cs: When generating mouse wparams get the modifier
37279 keys from the ModifierKeys property.
37281 2004-12-17 Jackson Harper <jackson@ximian.com>
37283 * X11Keyboard.cs: Send up/down input when generating
37284 messages. Remove some unused vars.
37286 2004-12-17 Jackson Harper <jackson@ximian.com>
37289 * TreeView.cs: get rid of warnings.
37291 2004-12-17 Jackson Harper <jackson@ximian.com>
37293 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
37295 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
37297 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
37298 CheckedListBox.cs: Implementation
37300 2004-12-17 Peter Bartok <pbartok@novell.com>
37302 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
37304 2004-12-16 Peter Bartok <pbartok@novell.com>
37307 - InsertCharAtCaret(): Fixed start pos fixup
37308 - CaretLine_get: No longer derives the line from the tag, the tag
37309 could be stale if lines in the document have been added or deleted
37310 - RebalanceAfterDelete(): Fixed bug in balancing code
37311 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
37312 - Line.Streamline(): Now can also elminate leading empty tags
37313 - DumpTree(): Added a few more tests and prevented exception on
37315 - Added Debug section for Combining lines
37316 - Delete(): Now copies all remaining properties of a line
37319 - Left mousebutton now sets the caret (and middle button still acts
37320 as formatting tester, which must go away soon)
37321 - Added Debug section for Deleting/Combining lines
37322 - Fixed calculations for UpdateView after Combining lines
37324 2004-12-16 Peter Bartok <pbartok@novell.com>
37326 * TextControl.cs: Now properly aligns text on a baseline, using the
37327 new XplatUI.GetFontMetrics() method. Simplified several calculations
37328 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
37331 2004-12-16 Peter Bartok <pbartok@novell.com>
37333 * XplatUI.cs: Added GetFontMetrics() method
37334 * XplatUIDriver.cs: Added GetFontMetrics() abstract
37335 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
37336 into libgdiplus, our private GetFontMetrics function
37337 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
37338 * XplatUIWin32.cs: Implemented GetFontMetrics() method
37340 2004-12-16 Jackson Harper <jackson@ximain.com>
37342 * XplatUIStruct.cs: Add enum for dead keys
37343 * X11Keyboard.cs: Map and unmap dead keys.
37345 2004-12-16 Jackson Harper <jackson@ximian.com>
37347 * X11Keyboard.cs: Detect and use the num lock mask.
37349 2004-12-16 Peter Bartok <pbartok@novell.com>
37351 * Control.cs (CreateGraphics): Added check to make sure the
37352 handle of the window exists before calling Graphics.FromHwnd()
37354 2004-12-16 Peter Bartok <pbartok@novell.com>
37356 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
37357 contains a lot of code that's not supposed to be there for the
37358 real thing, but required for developing/testing the textbox
37361 2004-12-16 Peter Bartok <pbartok@novell.com>
37364 - Fixed Streamline method
37365 - Added FindTag method to Line
37366 - Added DumpTree method for debugging
37367 - Added DecrementLines() method for deleting lines
37368 - Fixed UpdateView to update the cursor to end-of-line on single-line
37370 - Added PositionCaret() method
37371 - Fixed MoveCaret(LineDown) to move into the last line, too
37372 - Added InsertChar overload
37373 - Fixed InsertChar tag offset calculations
37374 - Added DeleteChar() method
37375 - Added Combine() method for folding lines
37376 - Fixed Delete() method, no longer allocates wasted Line object and
37377 now copies all properties when swapping nodes
37378 - Delete() method now updates document line counter
37380 2004-12-15 Jackson Harper <jackson@ximian.com>
37382 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
37383 * X11Keyboard.cs: Expose the currently selected modifier keys
37384 through a property.
37386 2004-12-15 Peter Bartok <pbartok@novell.com>
37388 * TextControl.cs: Initial check-in. Still incomplete
37390 2004-12-15 Jackson Harper <jackson@ximian.com>
37393 * TreeView.cs: Fix build on csc (second time today ;-))
37395 2004-12-15 Jackson Harper <jackson@ximian.com>
37397 * TreeView.cs: Store the treenodes plus/minus box bounds when it
37398 is calculated and use this for click testing.
37399 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
37401 2004-12-15 Jackson Harper <jackson@ximian.com>
37403 * TreeView.cs: Pass the nodes image index to the image list when
37404 drawing that image.
37406 2004-12-15 Jackson Harper <jackson@ximian.com>
37408 * X11Keyboard.cs: Set messages hwnd.
37409 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
37410 post_message calls.
37412 2004-12-15 Jackson Harper <jackson@ximian.com>
37414 * X11Keyboard.cs: Fix to compile with csc.
37416 2004-12-15 Jackson Harper <jackson@ximian.com>
37418 * X11Structs.cs: Add key mask values
37419 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
37420 * X11Keyboard.cs: New file - Extrapolates and interpolates key
37421 down/up foo into WM_CHAR foo
37422 * KeyboardLayouts.cs: Common keyboard layouts
37423 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
37424 post messages into the main queue.
37426 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
37428 * Button.cs: implement ProcessMnemonic
37429 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
37431 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
37432 * ButtonBase.cs: Show HotkeyPrefix (not the &)
37434 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
37436 * MonthCalendar.cs: Implemented click-hold for next/previous month
37439 2004-12-11 Peter Bartok <pbartok@novell.com>
37442 - Added XKeyboardState (moved from XplatUIX11.cs)
37443 - Added XCreateGC related enums and structures
37444 - Added GXFunction for XSetFunction
37446 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
37448 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
37449 CaretVisible() calls
37451 * ToolTip.cs: Added code to prevent stealing focus from app windows
37453 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
37454 DestroyCaret, SetCaretPos and CaretVisible)
37457 - Added implementation for caret functions
37458 - Moved hover variables into a struct, to make it a bit easier
37459 on the eyes and to debug
37460 - Removed XKeyboardState (moved to XplatUIX11.cs)
37461 - Moved Keyboard properties into the properties region
37463 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
37464 call to get a graphics context for our control
37466 * XplatUIOSX.cs: Added empty overrides for the new caret functions
37468 * TreeView.cs: Fixed bug. No matter what color was set it would always
37469 return SystemColors.Window
37471 * XplatUIWin32.cs: Implemented caret overrides
37473 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
37475 * ListBox.cs: fire events, implement missing methods and properties,
37478 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
37480 * MonthCalendar.cs: invalidation bug fixing
37481 * ThemeWin32Classic.cs: paint fixing
37483 2004-12-09 Geoff Norton <gnorton@customerdna.com>
37485 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
37486 prepare the CGContextRef there now.
37488 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
37490 * MonthCalendar.cs:
37491 - optimisationL only invalidate areas that have changed
37492 * ThemeWin32Classic.cs:
37493 - only paint parts that intersect with clip_area
37495 2004-12-09 Peter Bartok <pbartok@novell.com>
37497 * Application.cs: Undid changes from r37004 which cause problems
37500 2004-12-09 Ravindra <rkumar@novell.com>
37502 * ToolBar.cs: Added support for displaying ContextMenu
37503 attached to a button on ToolBar.
37504 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
37507 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
37509 * Label.cs: autosize works in text change and removes unnecessary
37512 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
37514 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
37517 2004-12-08 Geoff Norton <gnorton@customerdna.com>
37519 * XplatUIOSX.cs: Added mouse move/click/grab support
37520 Remove some debugging WriteLines not needed anymore.
37521 Add window resizing/positioning.
37522 Fix visibility on reparenting.
37524 2004-12-08 Peter Bartok <pbartok@novell.com>
37526 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
37528 2004-12-07 Geoff Norton <gnorton@customerdna.com>
37530 * XplatUIOSX.cs: Initial checkin
37531 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
37533 2004-12-03 Ravindra <rkumar@novell.com>
37535 * ListView.cs: Added some keybindings and fixed scrolling.
37536 ScrollBars listen to ValueChanged event instead of Scroll
37537 Event. This would let us take care of all changes being
37538 done in the scrollbars' values programmatically or manually.
37539 * ListView.cs (CanMultiselect): Added a check for shift key.
37540 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
37541 * ListViewItem.cs (Clone): Fixed. We need to make a copy
37542 of ListViewSubItemCollection as well.
37544 2004-12-06 Peter Bartok <pbartok@novell.com>
37546 * Control.cs (Parent): Added check and exception to prevent
37549 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
37551 * ListBox.cs: implemented clipping, selection single and multiple,
37554 2004-12-03 Ravindra <rkumar@novell.com>
37556 * ListView.cs (ListView_KeyDown):
37557 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
37558 when CTRL key is pressed.
37559 * ListViewItem.cs (Selected): Fixed setting the property.
37561 2004-12-03 Marek Safar <marek.safar@seznam.cz>
37563 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
37565 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
37566 MinimizeBox, ShowInTaskbar, TopMost properties.
37568 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
37569 will be implemented).
37571 2004-12-03 Marek Safar <marek.safar@seznam.cz>
37573 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
37575 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
37578 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
37580 * TreeView.cs: BackColor is Colors.Window.
37582 2004-12-01 Jackson Harper <jackson@ximian.com>
37584 * TreeView.cs: When resizing the tree if the user is making it
37585 smaller we don't get expose events, so we need to handle adding
37586 the horizontal scrollbar in the size changed handler as well as
37587 the expose handler.
37589 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
37591 * DrawItemState.cs: fixes wrong enum values
37593 2004-12-01 Jackson Harper <jackson@ximian.com>
37595 * TreeView.cs: Resize the hbar as well as the vbar on resize.
37597 2004-12-01 Jackson Harper <jackson@ximian.com>
37599 * NodeLabelEditEventArgs.cs:
37600 * NodeLabelEditEventHandler.cs:
37601 * OpenTreeNodeEnumerator.cs:
37603 * TreeNodeCollection.cs:
37605 * TreeViewAction.cs:
37606 * TreeViewCancelEventArgs.cs:
37607 * TreeViewCancelEventHandler.cs:
37608 * TreeViewEventArgs.cs:
37609 * TreeViewEventHandler.cs: Initial implementation.
37611 2004-12-01 Ravindra <rkumar@novell.com>
37613 * ListView.cs (CalculateListView): Fixed scrolling related
37614 calculations. Also, removed some debug statements from other
37616 * ListViewItem.cs: Changed access to 'selected' instance variable
37617 from private to internal.
37618 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
37620 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
37622 * ThemeWin32Classic.cs: remove cache of brush and pens for
37623 specific controls and use the global system, fixes scrollbutton
37624 bugs (for small sizes, disabled, etc)
37626 * ScrollBar.cs: does not show the thumb for very small controls
37627 (as MS) and allow smaller buttons that the regular size
37629 2004-12-01 Miguel de Icaza <miguel@ximian.com>
37631 * UpDownBase.cs: Add abstract methods for the interface.
37632 Add new virtual methods (need to be hooked up to TextEntry when it
37634 Add override methods for most features.
37635 Computes the size, forces the height of the text entry.
37637 * NumericUpDown.cs: Put here the current testing code.
37639 * Set eol-style property on all files that do not have mixed line
37640 endings, to minimize the future problems. There are still a few
37641 files with mixed endings, and someone should choose whether they
37642 want to move it or not.
37644 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
37646 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
37649 2004-11-30 Ravindra <rkumar@novell.com>
37651 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
37652 drawing and replaced use of SystemColors by theme colors.
37653 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
37654 * ListView.cs (ListViewItemCollection.Add): Throw exception when
37655 same ListViewItem is being added more than once.
37657 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
37659 * MonthCalendar.cs:
37660 - ControlStyles love to make the control not flicker
37662 2004-11-30 Peter Bartok <pbartok@novell.com>
37664 * CharacterCasing.cs: Added
37666 2004-11-29 Peter Bartok <pbartok@novell.com>
37668 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37669 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
37670 I am removing these files as they conflict with already completed
37671 work. While it is fantastic to get contributions to MWF, I
37672 respectfully ask that everyone please coordinate their contributions
37673 through mono-winforms-list or #mono-winforms at this time. We're
37674 explicitly avoiding stubbing and don't want controls that don't have
37675 their basic functionality implemented in svn. Please also see
37676 http://www.mono-project.com/contributing/winforms.html
37679 2004-11-29 Marek Safar <marek.safar@seznam.cz>
37681 * Application.cs (ModalRun): Don't hang after exit.
37683 * Theme.cs: New TreeViewDefaultSize property.
37685 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
37686 with less hardcoded SystemColors constant.
37687 Implemented TreeViewDefaultSize.
37689 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37690 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
37693 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
37695 * MonthCalendar.cs:
37696 - Fix NextMonthDate and PrevMonthDate click moving calendar
37698 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
37700 * MonthCalendar.cs:
37701 - Fix usage of ScrollChange Property when scrolling months
37703 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
37705 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
37706 - Fixes menu destroying
37707 - Support adding and removing items on already created menus
37709 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
37711 * MonthCalendar.cs:
37712 - Re-worked all bolded dates handling to match win32
37713 * ThemeWin32Classic.cs:
37714 - Fixed rendering with bolded dates
37716 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
37718 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
37719 - Horizontal scroolbar
37724 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
37726 * MonthCalendar.cs:
37727 - Fix Usage of MaxSelectionCount from SelectionRange
37728 - Fixed Shift + Cursor Selection
37729 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
37730 - Fixed normal cursor selection to be compat with win32
37731 - Fixed Shift + Mouse Click selection
37733 2004-11-24 Peter Bartok <pbartok@novell.com>
37735 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
37736 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
37738 - CreatedKeyBoardMsg now updates keystate with Alt key
37739 - Added workaround for timer crash to CheckTimers, Jackson will
37740 develop a proper fix and check in later
37741 - Implemented DispatchMessage
37742 - Removed calling the native window proc from GetMessage (call
37743 now moved to DispatchMessage)
37745 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
37746 the keydata (Fixes bug #69831)
37749 - (DispatchMessage): Switched to return IntPtr
37750 - Added DllImport for SetFocus
37752 2004-11-24 Ravindra <rkumar@novell.com>
37754 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
37755 background drawing.
37756 * ListViewItem.cs: Fixed various properties, calculations
37757 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
37758 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
37759 and some internal properties. Fixed MouseDown handler and Paint
37762 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
37764 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
37766 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
37768 * ContainerControl.cs: correct accidental check in of local changes
37770 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
37772 * ThemeWin32Classic.cs:
37773 - Fixed Drawing Last month in grid (sometimes not showing)
37774 * MonthCalendar.cs:
37775 - Fixed title width calculation bug (makeing title small)
37777 2004-11-23 Peter Bartok <pbartok@novell.com>
37780 - Added generation of WM_MOUSEHOVER event
37781 - Added missing assignment of async_method atom
37782 - Fixed WM_ERASEBKGND; now only redraws the exposed area
37784 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
37786 * ThemeWin32Classic.cs:
37787 - Fixed Drawing of today circle when showtodaycircle not set
37788 - fixed drawing of first and last month in the grid (gay dates)
37789 * MonthCalendar.cs:
37790 - Fixed Drawing of today circle
37791 - Fixed drawing of grady dates
37792 - Fixed HitTest for today link when ShowToday set to false
37793 - Fixed DefaultSize to obey ShowToday
37795 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
37797 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
37798 * System.Windows.Forms/Theme.cs
37799 * MonthCalendar.cs: added for MonthCalendar
37800 * SelectionRange.cs: added for MonthCalendar
37801 * Day.cs: added for MonthCalendar: added for MonthCalendar
37802 * DateRangeEventArgs.cs: added for MonthCalendar
37803 * DateRangeEventHandler.cs: added for MonthCalendar
37805 2004-11-22 Ravindra <rkumar@novell.com>
37807 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
37810 2004-11-22 Miguel de Icaza <miguel@ximian.com>
37812 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
37815 * NumericUpDown.cs: Added new implementation.
37816 * UpDownBase.cs: Added new implementation.
37818 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
37821 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
37824 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
37827 2004-11-21 Miguel de Icaza <miguel@ximian.com>
37829 * Timer.cs (Dispose): Should call the base dispose when
37832 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
37834 * ScrollBar.cs: updates thumb position when max, min or increment
37837 2004-11-21 Ravindra <rkumar@novell.com>
37839 * ListView.cs: Implemented item selection, activation and
37840 column header style. Fixed properties to do a redraw, if
37841 required. Added support for MouseHover, DoubleClick, KeyDown
37842 and KeyUp event handling and some minor fixes.
37843 * ListViewItem.cs: Fixed constructor.
37844 * ThemeWin32Classic.cs: Improved drawing for ListView.
37846 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
37848 * ThemeWin32Classic.cs: initial listbox drawing code
37849 * DrawMode.cs: new enumerator
37850 * ListControl.cs: stubbed class
37851 * ListBox.cs: initial implementation
37852 * Theme.cs: new methods definitions
37853 * SelectionMode.cs: new enumerator
37855 2004-11-17 Peter Bartok <pbartok@novell.com>
37857 * XplatUIWin32.cs: Added double-click events to the class style
37858 * Control.cs (WndProc):
37859 - Added handling of click-count to MouseDown/ MouseUp events.
37860 - Added handling of middle and right mouse buttons
37861 - Removed old debug code
37863 2004-11-17 Jackson Harper <jackson@ximian.com>
37865 * XplatUIX11.cs: Use the new Mono.Unix namespace.
37867 2004-11-17 Ravindra <rkumar@novell.com>
37869 * ListView.cs: Added event handling for MouseMove/Up/Down.
37870 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
37871 * ThemeWin32Classic.cs: We need to clear the graphics context and
37872 draw column header in a proper state.
37875 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
37877 * Menu.cs: fixes signature
37879 2004-11-16 Peter Bartok <pbartok@novell.com>
37881 * XplatUIX11.cs (GetMessage): Implemented generation of
37882 double click mouse messages
37884 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
37886 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
37889 2004-11-11 Peter Bartok <pbartok@novell.com>
37891 * HandleData.cs: Added Visible property
37892 * XplatUIX11.cs (IsVisible): Now uses Visible property from
37894 * XplatUIX11.cs: Removed old debug leftovers
37895 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
37896 * Control.cs (WndProc): Removed old debug leftovers,
37897 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
37898 needed WM_SIZE handling
37900 2004-11-11 Jackson Harper <jackson@ximian.com>
37902 * OwnerDrawPropertyBag.cs:
37903 * TreeViewImageIndexConverter.cs: Initial implementation
37905 2004-11-10 Jackson Harper <jackson@ximian.com>
37907 * ThemeWin32Classic.cs:
37908 * TabControl.cs: instead of moving tabs by the slider pos just
37909 start drawing at the tab that is offset by the slider. This way
37910 scrolling always moves by exactly one tab.
37912 2004-11-10 Jackson Harper <jackson@ximian.com>
37914 * TabControl.cs: You can only scroll left when the slider has
37915 already ben moved right.
37917 2004-11-10 Jackson Harper <jackson@ximian.com>
37919 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
37922 2004-11-10 Jackson Harper <jackson@ximian.com>
37924 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
37927 2004-11-09 Jackson Harper <jackson@ximian.com>
37929 * TabControl.cs (CalcXPos): New helper method so we can determine
37930 the proper place to start drawing vertical tabs.
37931 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
37933 2004-11-09 Jackson Harper <jackson@ximian.com>
37935 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
37936 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
37937 and Bottom, left and right are illegal values for this and
37938 multiline is enabled when the alignment is set to left or right.
37939 (DrawTab): Each alignment block should draw the text itself now
37940 because Left requires special love. Also add rendering for Left
37943 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
37945 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
37946 does not destroy the windows, removes debugging messages
37948 2004-11-09 jba <jba-mono@optusnet.com.au>
37950 * ThemeWin32Classic.cs
37951 (DrawButtonBase): Fix verticle text rect clipping in windows
37952 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37953 rendering and incorrect text rect clipping
37954 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37955 rendering and incorrect text rect clipping
37957 2004-11-08 Jackson Harper <jackson@ximian.com>
37959 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
37960 bottom when they are bottom aligned so the bottoms of the tabs get
37962 * TabControl.cs (DropRow): Move rows up instead of down when the
37963 tab control is bottom aligned.
37965 2004-11-08 13:59 pbartok
37968 - Added handling for various window styles
37969 - Added handling for popup windows
37970 - Added SetTopmost handling
37972 2004-11-08 13:55 pbartok
37975 - Added argument to SetTopmost method
37976 - Fixed broken ClientToScreen function
37978 2004-11-08 13:53 pbartok
37980 * XplatUIStructs.cs:
37981 - Added missing WS_EX styles
37983 2004-11-08 13:53 pbartok
37985 * XplatUI.cs, XplatUIDriver.cs:
37986 - Added argument to SetTopmost
37988 2004-11-08 13:52 pbartok
37991 - Added XSetWindowAttributes structure
37992 - Improved XWindowAttributes structure
37993 - Added SetWindowValuemask enum
37994 - Added window creation arguments enum
37995 - Added gravity enum
37996 - Added Motif hints structure
37997 - Added various Motif flags and enums
37998 - Added PropertyMode enum for property functions
38000 2004-11-08 13:50 pbartok
38003 - Fixed arguments for updated SetTopmost method
38005 2004-11-08 13:49 pbartok
38008 - Fixed arguments for updated SetTopmost function
38009 - Fixed usage of PointToClient
38011 2004-11-08 13:44 pbartok
38014 - Added Clipping of children and siblings
38016 2004-11-08 13:41 pbartok
38019 - Removed SetMenuBarWindow call. We do this in Form.cs
38021 2004-11-08 13:40 jackson
38023 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
38024 scrolling jimmi in the correct location with bottom aligned tabs
38026 2004-11-08 13:36 pbartok
38028 * ContainerControl.cs:
38029 - Implemented BindingContext
38030 - Implemented ParentForm
38032 2004-11-08 12:46 jackson
38034 * TabControl.cs: Put bottom rendered tabs in the right location
38036 2004-11-08 07:15 jordi
38038 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
38041 2004-11-05 17:30 jackson
38043 * TabControl.cs: When selected tabs are expanded make sure they
38044 don't go beyond the edges of the tab control
38046 2004-11-05 14:57 jackson
38048 * TabControl.cs: Reset show_slider so if the control is resized to
38049 a size where it is no longer needed it's not displayed anymore
38051 2004-11-05 13:16 jackson
38053 * TabControl.cs: Make tab pages non visible when added to the
38056 2004-11-05 12:42 jackson
38058 * TabControl.cs: Implement SizeMode.FillToRight
38060 2004-11-05 12:16 jackson
38062 * Control.cs: Do not call CreateHandle if the handle is already
38065 2004-11-05 11:46 jackson
38067 * TabControl.cs: Remove superflous call to CalcTabRows
38069 2004-11-05 09:07 jackson
38071 * XplatUIX11.cs: Update for Mono.Posix changes
38073 2004-11-05 07:00 ravindra
38075 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
38078 2004-11-04 22:47 jba
38080 * ThemeWin32Classic.cs:
38081 - Fix Button rendering for FlatStyle = Flat or Popup
38082 - Fix RadioButton and CheckBox rendering when Appearance = Button
38083 (normal and flatstyle).
38084 - Correct outer rectangle color when drawing focus rectangle
38085 - Adjust button bounds to be 1 px smaller when focused
38086 - Make button not draw sunken 3d border when pushed (windows compat)
38087 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
38088 - Offset the text in RadioButton and Checkbox when being rendered as
38090 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
38092 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
38093 - Fixed disabled text rendering for normally rendered radiobuttons
38095 2004-11-04 10:26 jackson
38097 * TabControl.cs: Recalculate tab rows when resizing
38099 2004-11-04 07:47 jordi
38101 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
38102 collection completion, drawing issues, missing features
38104 2004-11-04 05:03 ravindra
38107 - We need to recalculate the Thumb area when
38108 LargeChange/maximum/minimum values are changed.
38109 - We set the 'pos' in UpdatePos() method to minimum, if it's less
38110 than minimum. This is required to handle the case if large_change is
38111 more than max, and use LargeChange property instead of large_change
38113 - We return max+1 when large_change is more than max, like MS does.
38115 2004-11-04 04:29 ravindra
38117 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
38118 - Changed default value signatures (prefixed all with ListView).
38119 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
38121 - Fixed calculations for ListViewItem and implemented Clone()
38124 2004-11-04 04:26 ravindra
38126 * Theme.cs, ThemeWin32Classic.cs:
38127 - Changed default ListView values signatures (prefixed all with
38129 - Fixed default size values for VScrollBar and HScrollBar.
38130 - Fixed DrawListViewItem method.
38132 2004-11-04 04:05 ravindra
38134 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
38136 2004-11-04 04:04 ravindra
38138 * ImageList.cs: Implemented the missing overload for Draw method.
38140 2004-11-03 19:29 jackson
38142 * TabControl.cs: Handle dropping rows on selection properly
38144 2004-11-03 11:59 jackson
38146 * TabControl.cs: remove debug code
38148 2004-11-03 11:52 jackson
38150 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
38151 the scrolly widgerywoo
38153 2004-11-02 13:52 jackson
38155 * TabControl.cs: Resize the tab pages and tabs when the tab control
38158 2004-11-02 13:40 jackson
38160 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
38161 selected tab to the bottom
38163 2004-11-02 13:39 jackson
38165 * TabPage.cs: Store the tab pages row
38167 2004-11-02 12:33 jordi
38169 * MenuItem.cs: fixes handle creation
38171 2004-11-02 11:42 jackson
38173 * TabControl.cs: signature fix
38175 2004-11-02 08:56 jackson
38177 * TabControl.cs: Calculate whether the tab is on an edge properly.
38178 Remove top secret debugging code
38180 2004-11-01 19:57 jackson
38182 * TabControl.cs: Add click handling, and proper sizing
38184 2004-11-01 19:47 jackson
38186 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
38189 2004-11-01 19:39 jackson
38191 * TabPage.cs: add internal property to store the bounds of a tab
38194 2004-10-30 04:23 ravindra
38196 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
38199 2004-10-30 04:21 ravindra
38201 * ListView.cs, ListViewItem.cs: Added support for scrolling and
38202 fixed calculations.
38204 2004-10-30 03:06 pbartok
38207 - Removed extension of DllImported libs
38209 2004-10-29 09:55 jordi
38211 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
38212 navigation, itemcollection completion, menu fixes
38214 2004-10-27 22:58 pbartok
38217 - Now throws a nice error message when no X display could be opened
38219 2004-10-26 13:51 jordi
38221 * ListView.cs: removes warning
38223 2004-10-26 03:55 ravindra
38225 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
38226 ThemeWin32Classic.cs: Some formatting for my last checkins.
38228 2004-10-26 03:36 ravindra
38230 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
38231 control and default values.
38233 2004-10-26 03:35 ravindra
38235 * Theme.cs: Added some default values for ListView control.
38237 2004-10-26 03:33 ravindra
38239 * ToolBar.cs: ToolBar should use the user specified button size, if
38240 there is any. Added a size_specified flag for the same.
38242 2004-10-26 03:33 ravindra
38244 * ColumnHeader.cs: Added some internal members and calculations for
38247 2004-10-26 03:32 ravindra
38249 * ListViewItem.cs: Calculations for ListViewItem.
38251 2004-10-26 03:31 ravindra
38253 * ListView.cs: Added some internal members and calculations for
38256 2004-10-22 13:31 jordi
38258 * MenuAPI.cs: speedup menus drawing
38260 2004-10-22 13:16 jackson
38262 * XplatUIX11.cs: Make sure to update exposed regions when adding an
38265 2004-10-22 11:49 jackson
38269 2004-10-22 11:41 jackson
38271 * Control.cs: Check to see if the window should have its background
38272 repainted by X when drawing.
38274 2004-10-22 11:31 jackson
38276 * XplatUIX11.cs: When invalidating areas only use XClearArea if
38277 clear is true, this way we do not get flicker from X repainting the
38280 2004-10-22 11:28 jackson
38282 * XEventQueue.cs: Queue properly
38284 2004-10-21 09:38 jackson
38286 * XEventQueue.cs: Fix access modifier
38288 2004-10-21 09:36 jackson
38290 * XEventQueue.cs: Don't loose messages
38292 2004-10-21 09:22 jackson
38294 * XEventQueue.cs: Don't loose messages
38296 2004-10-20 04:15 jordi
38298 * BootMode.cs: enum need it by SystemInfo
38300 2004-10-19 21:58 pbartok
38303 - Small sanity check
38305 2004-10-19 21:56 pbartok
38308 - Added private FormParentWindow class which acts as the container
38309 for our form and as the non-client area where menus are drawn
38310 - Added/Moved required tie-ins to Jordi's menus
38311 - Fixed/Implemented the FormStartPosition functionality
38313 2004-10-19 21:52 pbartok
38316 - Removed unneeded locals
38317 - Added code to all size and location properties to understand and
38318 deal with the parent container of Form
38320 2004-10-19 21:33 pbartok
38323 - Fixed to deal with new Form subclasses for menus
38325 2004-10-19 17:48 jackson
38327 * XEventQueue.cs: commit correct version of file
38329 2004-10-19 16:50 jackson
38331 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
38333 2004-10-19 16:15 jordi
38335 * MenuAPI.cs: MenuBarCalcSize returns the height
38337 2004-10-19 08:31 pbartok
38340 - Added missing call to PreProcessMessage before calling OnXXXKey
38343 2004-10-19 00:04 ravindra
38345 * ToolTip.cs: Fixed constructor.
38347 2004-10-18 09:31 jordi
38349 * MenuAPI.cs: menuitems in menubars do not have shortcuts
38351 2004-10-18 09:26 jordi
38353 * MenuItem.cs: fixes MenuItem class signature
38355 2004-10-18 08:56 jordi
38357 * MenuAPI.cs: prevents windows from showing in the taskbar
38359 2004-10-18 00:28 ravindra
38361 * ToolTip.cs: Suppressed a warning message.
38363 2004-10-18 00:27 ravindra
38365 * Control.cs: Default value of visible property must be true.
38367 2004-10-17 23:19 pbartok
38370 - Complete implementation
38372 2004-10-17 23:19 pbartok
38375 - Added EnableWindow method
38376 - Added SetModal stub
38377 - Added generation of WM_ACTIVATE message (still needs testing)
38378 - Added SetTopMost stub
38379 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
38381 2004-10-17 23:17 pbartok
38384 - Removed VirtualKeys to XplatUIStructs
38385 - Implemented SetTopMost method
38386 - Implemented EnableWindow method
38387 - Bugfix in ScreenToClient()
38388 - Bugfixes in ClientToScreen()
38390 2004-10-17 22:51 pbartok
38392 * XplatUIStructs.cs:
38393 - Added WS_EX styles to WindowStyles enumeration
38395 2004-10-17 22:50 pbartok
38397 * XplatUI.cs, XplatUIDriver.cs:
38398 - Added method for enabling/disabling windows
38399 - Added method for setting window modality
38400 - Added method for setting topmost window
38402 2004-10-17 22:49 pbartok
38404 * ThemeWin32Classic.cs:
38405 - Added ToolTip drawing code
38407 2004-10-17 22:49 pbartok
38410 - Added ToolTip abstracts
38412 2004-10-17 22:47 pbartok
38415 - Fixed Form.ControlCollection to handle owner relations
38416 - Added Owner/OwnedForms handling
38417 - Implemented Z-Ordering for owned forms
38418 - Removed unneeded private overload of ShowDialog
38419 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
38421 - Fixed Close(), had wrong default
38422 - Added firing of OnLoad event
38423 - Added some commented out debug code for Ownership handling
38425 2004-10-17 22:16 pbartok
38428 - Fixed/implemented flat list of controls
38430 2004-10-17 22:14 pbartok
38433 - Added code to simulate modal dialogs on Win32
38435 2004-10-17 16:11 jordi
38437 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
38440 2004-10-17 13:39 jordi
38442 * MenuAPI.cs: menu drawing fixes
38444 2004-10-15 09:10 ravindra
38446 * StructFormat.cs: General Enum.
38448 2004-10-15 09:09 ravindra
38450 * SizeGripStyle.cs: Enum for Form.
38452 2004-10-15 09:08 ravindra
38454 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
38455 in Theme for ListView.
38457 2004-10-15 09:06 ravindra
38459 * ColumnHeader.cs: Flushing some formatting changes.
38461 2004-10-15 09:05 ravindra
38463 * ListViewItem.cs: Implemented GetBounds method and fixed coding
38466 2004-10-15 09:03 ravindra
38468 * ListView.cs: Implemented Paint method and fixed coding style.
38470 2004-10-15 07:34 jordi
38472 * MenuAPI.cs: fix for X11
38474 2004-10-15 07:32 ravindra
38476 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
38477 - Renamed Paint() method to Draw() for clarity. Also, moved
38478 DrawImage() to OnPaint().
38480 2004-10-15 07:25 ravindra
38482 * CheckBox.cs, RadioButton.cs:
38483 - Removed Redraw (), we get it from ButtonBase.
38484 - Implemented Paint (), to do class specific painting.
38486 2004-10-15 07:16 ravindra
38489 - Redraw () is not virtual now.
38490 - Added an internal virtual method Paint (), so that
38491 derived classes can do their painting on their own.
38492 - Modified OnPaint () to call Paint ().
38494 2004-10-15 06:43 jordi
38496 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
38497 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
38499 2004-10-15 00:30 ravindra
38502 - MessageBox on windows does not have min/max buttons.
38503 This change in CreateParams fixes this on Windows. We
38504 still need to implement this windowstyle behavior in
38507 2004-10-14 05:14 ravindra
38510 - Changed Redraw () to do a Refresh () always.
38511 - Fixed the MouseMove event handling when mouse is pressed,
38512 ie drag event handling.
38513 - Replaced the usage of ToolBarButton.Pressed property to
38514 ToolBarButton.pressed internal variable.
38516 2004-10-14 05:10 ravindra
38518 * ToolBarButton.cs:
38519 - Added an internal member 'inside' to handle mouse move
38520 with mouse pressed ie mouse drag event.
38521 - Changed 'Pressed' property to return true only when
38522 'inside' and 'pressed' are both true.
38523 - Some coding style love.
38525 2004-10-14 00:17 ravindra
38527 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
38530 2004-10-14 00:15 ravindra
38532 * ButtonBase.cs: Redraw () related improvements.
38534 2004-10-14 00:14 ravindra
38536 * MessageBox.cs: Moved InitFormSize () out of Paint method and
38537 removed unnecessary calls to Button.Show () method.
38539 2004-10-13 17:50 pbartok
38543 - Removed destroying of window until we solve the problem of X
38544 destroying the window before us on shutdown
38546 2004-10-13 16:32 pbartok
38549 - Now Redraws on MouseUp for FlatStyle Flat and Popup
38551 2004-10-13 14:18 pbartok
38554 - Added code to destroy the X window
38556 2004-10-13 14:18 pbartok
38559 - Added code to destroy a window
38561 2004-10-13 14:12 pbartok
38564 - Added the Redraw on Resize that got dropped in the last rev
38566 2004-10-13 09:06 pbartok
38568 * ThemeWin32Classic.cs:
38569 - Path from John BouAntoun:
38570 * Fix check rendering (centre correctly for normal style, offset
38571 correctly for FlatStyle).
38572 * Fix border color usage (use backcolor) for FlatStyle.Popup
38573 * Use checkbox.Capture instead of checkbox.is_pressed when
38574 rendering flatstyle states.
38576 2004-10-12 21:48 pbartok
38578 * ThemeWin32Classic.cs:
38579 - Removed all occurences of SystemColors and replaced them with the
38580 matching theme color
38582 2004-10-12 21:41 pbartok
38584 * ThemeWin32Classic.cs:
38585 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
38586 him using the function for flatstyle drawing
38587 - Changed functions to use the new version of CPDrawBorder3D
38589 2004-10-12 21:15 pbartok
38592 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
38593 match MS documentation. They need to return defined colors if the
38594 passed color matches the configured control color. Thanks to John
38595 BouAntoun for pointing this out.
38597 2004-10-12 20:57 pbartok
38600 - Fix from John BouAntoun: Raise ForeColorChanged event when text
38603 2004-10-12 20:46 pbartok
38606 - Fix from John BouAntoun: Now properly sets the Appearance property
38608 2004-10-12 20:45 pbartok
38610 * ThemeWin32Classic.cs:
38611 - Fixes from John BouAntoun: now handles forecolors and backcolors
38612 for flatstyle rendered controls much better; It also fixes normal
38613 checkbox rendering when pushed or disabled.
38615 2004-10-08 02:50 jordi
38617 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
38620 2004-10-07 08:56 jordi
38622 * ThemeWin32Classic.cs: Removes deletion of cached brushes
38624 2004-10-06 03:59 jordi
38626 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
38627 XplatUIWin32.cs: removes warnings from compilation
38629 2004-10-05 12:23 jackson
38631 * RadioButton.cs: Fix ctor
38633 2004-10-05 11:10 pbartok
38636 - Partial implementation by Benjamin Dasnois
38638 2004-10-05 10:15 jackson
38640 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
38643 2004-10-05 03:07 ravindra
38646 - Removed a private method, Draw ().
38647 - Fixed the ButtonDropDown event handling.
38648 - Fixed MouseMove event handling.
38650 2004-10-05 03:04 ravindra
38652 * ThemeWin32Classic.cs:
38653 - Added DrawListView method and ListViewDefaultSize property.
38654 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
38655 - Changed DOS style CRLF to Unix format (dos2unix).
38657 2004-10-05 03:03 ravindra
38660 - Added DrawListView method and ListViewDefaultSize property.
38662 2004-10-05 02:42 ravindra
38664 * ToolBarButton.cs: Added an internal member dd_pressed to handle
38665 clicks on DropDown arrow.
38667 2004-10-04 22:56 jackson
38669 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
38670 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
38671 Control handle the buffers, derived classes should not have to
38672 CreateBuffers themselves.
38674 2004-10-04 21:20 jackson
38676 * StatusBar.cs: The control handles resizing the buffers now.
38678 2004-10-04 21:18 jackson
38680 * Control.cs: When resizing the buffers should be invalidated. This
38681 should be handled in Control not in derived classes.
38683 2004-10-04 14:45 jackson
38687 2004-10-04 02:14 pbartok
38689 * LeftRightAlignment.cs:
38692 2004-10-04 01:09 jordi
38694 * ThemeWin32Classic.cs: fixes right button position causing right
38695 button not showing on horizontal scrollbars
38697 2004-10-02 13:12 pbartok
38700 - Simplified the Invalidate method by using an X call instead of
38701 generating the expose ourselves
38702 - Added an expose when the window background is changed
38703 - Implemented ClientToScreen method
38705 2004-10-02 13:08 pbartok
38708 - Added Win32EnableWindow method (test for implementing modal
38710 - Added ClientToScreen method and imports
38712 2004-10-02 13:07 pbartok
38714 * XplatUI.cs, XplatUIDriver.cs:
38715 - Added ClientToScreen coordinate translation method
38717 2004-10-02 13:06 pbartok
38719 * KeyPressEventArgs.cs:
38720 - Fixed access level for constructor
38722 2004-10-02 13:06 pbartok
38725 - Changed access level for the window_collection hash table
38727 2004-10-02 13:05 pbartok
38730 - Added KeyPreview property
38731 - Added Menu property (still incomplete, pending Jordi's menu work)
38732 - Implemented ProcessCmdKey
38733 - Implemented ProcessDialogKey
38734 - Implemented ProcessKeyPreview
38736 2004-10-02 13:02 pbartok
38739 - Added private method to get the Control object from the window
38741 - Implemented ContextMenu property
38742 - Implemented PointToScreen
38743 - Implemented PreProcessMessage
38744 - Implemented IsInputChar
38745 - Implemented IsInputKey
38746 - Implemented ProcessCmdKey
38747 - Completed ProcessKeyEventArgs
38748 - Fixed message loop to call the proper chain of functions on key
38750 - Implemented ProcessDialogChar
38751 - Implemented ProcessDialogKey
38752 - Implemented ProcessKeyMessage
38753 - Implemented ProcessKeyPreview
38754 - Added RaiseDragEvent stub (MS internal method)
38755 - Added RaiseKeyEvent stub (MS internal method)
38756 - Added RaiseMouseEvent stub (MS Internal method)
38757 - Added RaisePaintEvent stub (MS Internal method)
38758 - Added ResetMouseEventArgs stub (MS Internal method)
38759 - Implemented RtlTranslateAlignment
38760 - Implemented RtlTranslateContent
38761 - Implemented RtlTranslateHorizontal
38762 - Implemented RtlTranslateLeftRight
38763 - Added generation of KeyPress event
38765 2004-10-02 05:57 ravindra
38767 * ListViewItem.cs: Added attributes.
38769 2004-10-02 05:32 ravindra
38771 * ListView.cs: Added attributes.
38773 2004-10-01 11:53 jackson
38775 * Form.cs: Implement the Close method so work on MessageBox can
38778 2004-09-30 14:06 pbartok
38783 2004-09-30 11:34 jackson
38785 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
38787 2004-09-30 07:26 ravindra
38789 * ListViewItemConverter.cs: Converter for ListViewItem.
38791 2004-09-30 07:26 ravindra
38793 * SortOrder.cs: Enum for ListView control.
38795 2004-09-30 07:25 ravindra
38797 * ColumnHeader.cs: Supporting class for ListView control.
38799 2004-09-30 07:24 ravindra
38801 * ListView.cs, ListViewItem.cs: Initial implementation.
38803 2004-09-30 07:20 ravindra
38805 * ItemActivation.cs: Enum for ListView Control.
38807 2004-09-29 20:29 pbartok
38810 - Added lookup of pixel value for background color; tries to get a
38811 color 'close' to the requested color, it avoids having to create a
38812 colormap. Depending on the display this could mean the used color
38813 is slightly off the desired color. Might have to change it to a more
38814 resource intensive colormap approach, but it will work as a
38815 workaround to avoid red screens.
38817 2004-09-29 14:27 jackson
38819 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
38821 2004-09-28 12:44 pbartok
38823 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
38824 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
38825 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
38826 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
38827 TrackBar.cs, VScrollBar.cs:
38828 - Streamlined Theme interfaces:
38829 * Each DrawXXX method for a control now is passed the object for
38830 the control to be drawn in order to allow accessing any state the
38831 theme might require
38833 * ControlPaint methods for the theme now have a CP prefix to avoid
38834 name clashes with the Draw methods for controls
38836 * Every control now retrieves it's DefaultSize from the current
38839 2004-09-28 12:17 jackson
38841 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
38844 2004-09-24 14:57 jackson
38846 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
38847 Gives us a nice little performance boost.
38849 2004-09-24 12:02 jackson
38851 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
38852 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
38853 Control and supporting classes. Initial checkin
38855 2004-09-23 13:08 jackson
38857 * Form.cs: Temp build fixage
38859 2004-09-23 01:39 ravindra
38861 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
38862 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
38863 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
38864 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
38865 EventHandlers needed by ListView Control.
38867 2004-09-22 14:12 pbartok
38869 * ScrollableControl.cs:
38870 - Implemented DockPadding property
38871 - Implemented AutoScroll property
38872 - Implemented AutoScrollMargin property
38873 - Implemented AutoScrollMinSize property
38874 - Implemented AutoScrollPosition property
38875 - Implemented DisplayRectangle property (still incomplete)
38876 - Implemented CreateParams property
38877 - Implemented HScroll property
38878 - Implemented VScroll property
38879 - Implemented OnVisibleChanged property
38881 2004-09-22 14:09 pbartok
38884 - Added Form.ControllCollection class
38885 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
38886 RemoveOwnedForm (still incomplete, missing on-top and common
38887 minimize/maximize behaviour)
38888 - Added StartPosition property (still incomplete, does not use when
38890 - Added ShowDialog() methods (still incomplete, missing forcing the
38893 2004-09-22 14:05 pbartok
38896 - Added message loop for modal dialogs
38898 2004-09-22 14:02 pbartok
38901 - Fixed wrong types for events
38903 2004-09-22 14:00 pbartok
38905 * Shortcut.cs, FormWindowState.cs:
38906 - Fixed wrong values
38908 2004-09-22 12:01 jackson
38910 * Control.cs: Text is never null
38912 2004-09-20 22:14 pbartok
38915 - Fixed accessibility level for Idle handler
38917 2004-09-20 18:54 jackson
38919 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38920 XplatUIX11.cs: New message loop that uses poll so we don't get a
38923 2004-09-17 10:43 pbartok
38926 - Fixed behaviour of arrow buttons. Now properly behaves like
38927 Buttons (and like Microsoft's scrollbar arrow buttons)
38929 2004-09-17 10:14 pbartok
38932 - Added missing release of keyboard/mouse capture
38934 2004-09-17 06:18 jordi
38936 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
38937 Theme.cs: Very early menu support
38939 2004-09-16 17:45 pbartok
38942 - Fixed sending a window to the front
38943 - Added overload for SetWindowPos to avoid casting
38945 2004-09-16 17:44 pbartok
38948 - Added SendToBack and BringToFront methods
38950 2004-09-16 07:00 ravindra
38952 * Copyright: Added Novell URL.
38954 2004-09-16 07:00 ravindra
38956 * ToolBar.cs: Invalidate should be done before redrawing.
38958 2004-09-15 21:19 ravindra
38960 * ColumnHeaderStyle.cs: Enum for ListView Control.
38962 2004-09-15 21:18 ravindra
38964 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
38967 2004-09-13 18:26 jackson
38969 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
38972 2004-09-13 18:13 jackson
38974 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
38975 a second thread and post messages into the main threads message
38976 queue. This makes timing much more consistent. Both win2K and XP
38977 have a minimum timer value of 15 milliseconds, so we now do this
38980 2004-09-13 15:18 pbartok
38982 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38984 - Added Z-Ordering methods
38986 2004-09-13 10:56 pbartok
38989 - Fixed #region names
38990 - Moved properties and methods into their proper #regions
38992 2004-09-13 10:51 pbartok
38995 - Added Accept and CancelButton properties
38996 - Added ProcessDialogKey() method
38998 2004-09-13 08:18 pbartok
39000 * IWindowTarget.cs:
39003 2004-09-10 21:50 pbartok
39006 - Added DoDragDrop() [incomplete]
39007 - Properly implemented 'Visible' handling
39008 - Added SetVisibleCore()
39009 - Implemented FindChildAtPoint()
39010 - Implemented GetContainerControl()
39011 - Implemented Hide()
39013 2004-09-10 19:28 pbartok
39016 - Moved methods into their appropriate #regions
39017 - Reordered methods within regions alphabetically
39019 2004-09-10 18:57 pbartok
39021 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39022 - Added method to retrieve text from window
39024 2004-09-10 18:56 pbartok
39027 - Moved some internal functions into the internal region
39028 - Implemented FontHeight
39029 - Implemented RenderRightToLeft
39030 - Implemented ResizeRedraw
39031 - Implemented ShowFocusCues
39032 - Implemented ShowKeyboardCues
39033 - Implemented FromChildHandle
39034 - Implemented FromHandle
39035 - Implemented IsMnemonic
39036 - Implemented ReflectMessage
39037 - All public and protected Static Methods are now complete
39039 2004-09-10 16:54 pbartok
39042 - Implemented remaining missing public instance properties
39043 - Alphabetized some out of order properties
39045 2004-09-10 05:51 ravindra
39047 * PictureBox.cs: Added a check for null image.
39049 2004-09-10 00:59 jordi
39051 * GroupBox.cs: remove cvs tag
39053 2004-09-09 05:25 ravindra
39055 * ToolBar.cs: Make redraw accessible from ToolBarButton.
39057 2004-09-09 05:23 ravindra
39059 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
39062 2004-09-09 02:28 pbartok
39064 * ThemeWin32Classic.cs:
39065 - Improve disabled string look
39067 2004-09-09 01:15 jordi
39069 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
39072 2004-09-08 23:56 ravindra
39074 * ItemBoundsPortion.cs: It's enum, not a class!
39076 2004-09-08 23:47 ravindra
39078 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
39081 2004-09-08 21:13 ravindra
39083 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
39086 2004-09-08 21:03 ravindra
39088 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
39091 2004-09-08 21:01 ravindra
39093 * ScrollableControl.cs: Removed unreachable code.
39095 2004-09-08 06:45 jordi
39097 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
39099 2004-09-08 01:00 jackson
39101 * XplatUIX11.cs: Only run the timers when updating the message
39102 queue. This effectively gives X messages a higher priority then
39103 timer messages. Timers still need love though
39105 2004-09-07 14:01 jackson
39107 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
39108 this for us and the handle is no longer valid.
39110 2004-09-07 13:59 jackson
39112 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
39113 loop that manages to not crash. TODO: Add poll and cleanup timers
39115 2004-09-07 11:12 jordi
39117 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
39119 2004-09-07 03:40 jordi
39121 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
39122 fixes, methods, multiple links
39124 2004-09-06 06:55 jordi
39126 * Control.cs: Caches ClientRectangle rectangle value
39128 2004-09-05 02:03 jordi
39130 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
39133 2004-09-04 11:10 jordi
39135 * Label.cs: Refresh when font changed
39137 2004-09-02 16:24 pbartok
39140 - Added sanity check to creation of double buffer bitmap
39142 2004-09-02 16:24 pbartok
39145 - Fixed selection of text color
39146 - Fixed handling of resize event; now properly recreates double
39148 - Added missing assignment of TextAlignment
39149 - Added proper default for TextAlignment
39151 2004-09-02 14:26 pbartok
39154 - Added missing RadioButton.RadioButtonAccessibleObject class
39156 2004-09-02 14:26 pbartok
39159 - Added missing Control.ControlAccessibleObject class
39160 - Started to implement Select()ion mechanisms, still very incomplete
39162 2004-09-02 14:25 pbartok
39164 * AccessibleObject.cs:
39165 - Added missing methods
39167 2004-09-02 14:23 pbartok
39169 * AccessibleNavigation.cs, AccessibleSelection.cs:
39172 2004-09-02 10:32 jordi
39174 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
39175 pool for pens, brushes, and hatchbruses
39177 2004-09-01 15:30 jackson
39179 * StatusBar.cs: Fix typo
39181 2004-09-01 14:44 pbartok
39186 2004-09-01 14:39 pbartok
39188 * Button.cs, RadioButton.cs:
39189 - Functional initial check-in
39191 2004-09-01 14:01 pbartok
39194 - Added missing default
39195 - Added missing region mark
39197 2004-09-01 09:10 jordi
39199 * Label.cs: fixes method signatures, new methods, events, fixes
39202 2004-09-01 07:19 jordi
39204 * Control.cs: Init string variables with an empty object
39206 2004-09-01 04:20 jordi
39208 * Control.cs: fires OnFontChanged event
39210 2004-08-31 20:07 pbartok
39213 - Enabled display of strings
39215 2004-08-31 20:05 pbartok
39218 - Added (partial) implementation of DialogResult; rest needs to be
39219 implemented when the modal loop code is done
39221 2004-08-31 19:55 pbartok
39224 - Fixed to match the removal of the needs_redraw concept
39226 2004-08-31 19:55 pbartok
39229 - Removed the rather odd split between 'needs redraw' and redrawing
39230 - Now handles the events that require regeneration (ambient
39231 properties and size)
39233 2004-08-31 19:41 pbartok
39236 - Added firing of BackColorChanged event
39237 - Added TopLevelControl property
39238 - Fixed handling of WM_ERASEBKGRND message
39240 2004-08-31 12:49 pbartok
39246 2004-08-31 12:48 pbartok
39249 - Finished (famous last words)
39251 2004-08-31 04:35 jordi
39253 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
39254 scrolling bugs, adds new methods
39256 2004-08-30 14:42 pbartok
39259 - Implemented CheckBox drawing code
39261 2004-08-30 14:42 pbartok
39264 - Made Redraw() and CheckRedraw() virtual
39265 - Improved mouse up/down/move logic to properly track buttons
39267 2004-08-30 09:44 pbartok
39270 - Updated to fix broken build. Not complete yet.
39272 2004-08-30 09:28 pbartok
39277 2004-08-30 09:17 pbartok
39282 2004-08-27 16:12 ravindra
39284 * ToolBarButton.cs: Added TypeConverter attribute.
39286 2004-08-27 16:07 ravindra
39288 * ImageIndexConverter.cs: Implemented.
39290 2004-08-27 14:17 pbartok
39293 - Removed unneeded stack vars
39294 - First attempt to fix sizing issues when layout is suspended
39296 2004-08-25 15:35 jordi
39298 * ScrollBar.cs: more fixes to scrollbar
39300 2004-08-25 14:04 ravindra
39302 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
39303 Added the missing divider code and grip for ToolBar Control.
39305 2004-08-25 13:20 pbartok
39308 - Control now properly passes the ambient background color to child
39311 2004-08-25 13:20 jordi
39313 * ScrollBar.cs: small bug fix regarding bar position
39315 2004-08-25 12:33 pbartok
39318 - Now only calls SetTimer or KillTimer if the enabled state has
39321 2004-08-25 12:33 pbartok
39324 - Fixed timer handling, now seems to work
39325 - Improved error message for window creation
39327 2004-08-25 12:32 pbartok
39330 - Fixed generation of MouseUp message
39332 2004-08-25 12:29 jordi
39334 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
39335 and fixes for progressbar
39337 2004-08-24 18:43 ravindra
39339 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
39340 in ToolBar control.
39342 2004-08-24 17:15 pbartok
39346 - Added missing events
39349 2004-08-24 17:14 pbartok
39351 * StatusBar.cs, PictureBox.cs:
39352 - Now uses Control's CreateParams
39354 2004-08-24 16:36 pbartok
39357 - Fixed background color handling
39358 - Fixed sending of enter/leave events on a grab
39360 2004-08-24 16:35 pbartok
39363 - Refined definitions for CrossingEvent
39365 2004-08-24 12:37 jordi
39367 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
39368 formmating, methods signature, and adds missing events
39370 2004-08-24 12:24 jordi
39372 * Control.cs: fire OnEnabledChanged event
39374 2004-08-24 11:17 pbartok
39377 - Implemented SetTimer() and KillTimer()
39379 2004-08-24 11:16 pbartok
39382 - Now uses Remove instead of Add to kill the timer
39384 2004-08-24 10:16 jackson
39386 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
39387 picture boxes in the theme now. Draw picture box borders and obey
39390 2004-08-24 05:49 jackson
39392 * Timer.cs: Remove top secret debugging code
39394 2004-08-24 05:34 jackson
39396 * PictureBox.cs: Temp hack to make picture boxes draw their full
39399 2004-08-24 05:29 jackson
39401 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39402 XplatUIX11.cs: Move timers to the driver level. On X they are
39403 queued by the driver and checked on idle.
39405 2004-08-24 01:07 jackson
39407 * XplatUIX11.cs: Use a queue for async messages instead of passing
39408 them as ClientMessages since that was totally broken. Also simply
39409 check for events and return an idle message if none are found. This
39410 gives us an idle handler, and prevents deadlocking when no messages
39413 2004-08-23 18:19 ravindra
39415 * XplatUIWin32.cs: Removed the unwanted destructor.
39417 2004-08-23 17:27 pbartok
39420 - Finishing touches. Works now, just needs some optimizations.
39422 2004-08-23 16:53 jordi
39424 * ScrollBar.cs: small fix
39426 2004-08-23 16:45 pbartok
39429 - Removed debug output
39432 2004-08-23 16:43 jordi
39434 * ScrollBar.cs: [no log message]
39436 2004-08-23 16:10 pbartok
39439 - Fixed handling of WM_CLOSE message
39440 - Removed debug output
39442 2004-08-23 16:09 pbartok
39445 - Added handling of Idle event
39446 - Added handling of form closing
39447 - Fixed reporting of MessageLoop property
39448 - Removed some unneeded code, should provide a bit of a speedup
39450 2004-08-23 15:22 pbartok
39453 - Added InitLayout() method
39454 - Added code to properly perform layout when Anchor or Dock property
39456 - Changed 'interpretation' of ResumeLayout. MS seems to have a
39457 LAMESPEC, tried to do it in a way that makes sense
39459 2004-08-23 14:10 jordi
39461 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
39462 properties and methods
39464 2004-08-23 13:55 pbartok
39467 - Properly fixed Jordi's last fix
39468 - Now uses Cursor's Position property instead of calling XplatUI
39471 2004-08-23 13:44 jordi
39473 * PaintEventHandler.cs: Adding missing attribute
39475 2004-08-23 13:39 pbartok
39478 - Implemented Position property
39480 2004-08-23 13:39 pbartok
39482 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39483 - Added method to move mouse cursor
39485 2004-08-23 13:39 pbartok
39488 - Fixed setting of background color
39489 - Added method to move mouse cursor
39491 2004-08-23 13:16 jordi
39493 * Control.cs: avoids null exception
39495 2004-08-22 17:46 jackson
39497 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
39500 2004-08-22 17:40 jackson
39502 * XplatUIX11.cs: Add some missing locks
39504 2004-08-22 15:10 pbartok
39506 * Control.cs, Form.cs:
39507 - Removed OverlappedWindow style from Control, instead it's default
39509 - Made form windows OverlappedWindow by default
39511 2004-08-22 13:34 jackson
39513 * ScrollBar.cs: Update the position through the Value property so
39514 the OnValueChanged event is raised.
39516 2004-08-22 12:04 pbartok
39519 - Added Cursor.cs and UserControl.cs
39521 2004-08-22 12:03 pbartok
39524 - Started implementation, not usable yet
39526 2004-08-22 12:00 pbartok
39529 - Implemented UserControl (complete)
39531 2004-08-21 19:20 ravindra
39533 * ToolBar.cs: Correcting the formatting mess of VS.NET.
39535 2004-08-21 18:49 ravindra
39537 * ToolBar.cs: Probably this completes the missing attributes in
39540 2004-08-21 18:03 ravindra
39542 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
39543 Fixed toolbar control signatures.
39545 2004-08-21 16:32 pbartok
39550 2004-08-21 16:30 pbartok
39555 2004-08-21 16:19 pbartok
39557 * Control.cs, Label.cs:
39560 2004-08-21 15:57 pbartok
39563 - Added loads of debug output for development
39564 - Fixed typo in method name
39566 2004-08-21 15:52 pbartok
39568 * ToolBarButtonClickEventArgs.cs:
39569 - Added missing base class
39571 2004-08-21 14:53 pbartok
39574 - Updated to match new GrabWindow signature
39576 2004-08-21 14:51 pbartok
39578 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39579 - Added method to get default display size
39581 2004-08-21 14:23 pbartok
39583 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39584 - Added method to query current grab state
39585 - Added argument to allow confining a grab to a window
39587 2004-08-21 14:22 pbartok
39590 - Added [Flags] attribute so that modifiers can be used in bitwise
39593 2004-08-21 14:21 pbartok
39595 * TrackBar.cs, ScrollBar.cs:
39596 - Replaced direct XplatUI calls with their Control counterpart
39598 2004-08-21 13:32 pbartok
39601 - Implemented Created property
39603 2004-08-21 13:28 pbartok
39606 - Implemented ContainsFocus
39608 2004-08-21 13:26 pbartok
39611 - Implemented CausesValidation
39613 2004-08-21 13:21 pbartok
39616 - Implemented CanFocus
39617 - Implemented CanSelect
39618 - Implemented Capture
39620 2004-08-21 12:35 pbartok
39623 - Fixed bug with Async message handling
39624 - Implemented getting the ModifierKeys
39626 2004-08-21 12:32 jackson
39628 * AsyncMethodResult.cs: Make sure we have the mutex before we
39629 release it. Fixes BeginInvoke on windows
39631 2004-08-21 11:31 pbartok
39633 * XplatUIWin32.cs, XplatUIX11.cs:
39634 - Drivers now return proper mouse state
39636 2004-08-21 10:54 jackson
39638 * Control.cs: Implement EndInvoke
39640 2004-08-21 10:48 jackson
39642 * Timer.cs: Remove unneeded finalizer
39644 2004-08-20 19:52 ravindra
39646 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
39647 in mouse event handling in the ToolBar control.
39649 2004-08-20 19:50 ravindra
39651 * ImageList.cs: Changed draw method to use the arguments passed in
39654 2004-08-20 18:58 pbartok
39656 * XplatUIStructs.cs:
39657 - Added private message for async communication
39659 2004-08-20 17:38 ravindra
39661 * Control.cs: Made RightToLeft property virtual and removed a
39664 2004-08-20 14:39 jordi
39666 * ThemeGtk.cs: use style_attach
39668 2004-08-20 14:39 pbartok
39671 - Added jackson's Async code from X11 to Win32
39673 2004-08-20 14:09 pbartok
39676 - Added all new files
39678 2004-08-20 14:09 pbartok
39681 - Added call to set window background color
39683 2004-08-20 14:03 pbartok
39685 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39686 - Added method for setting the window background
39688 2004-08-20 14:02 pbartok
39691 - Added method for setting the background color
39692 - Added handling for erasing the window background
39694 2004-08-20 13:45 jordi
39696 * TrackBar.cs: fixes timer, new properties and methods
39698 2004-08-20 13:34 jackson
39700 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
39703 2004-08-20 13:22 jackson
39705 * Timer.cs: Timer Tick events are now handed through Controls Async
39706 mechanism so the callbacks are executed in the same thread as X
39708 2004-08-20 13:19 jackson
39710 * XplatUIDriver.cs: Expose functionality to send async messages
39713 2004-08-20 13:18 jackson
39715 * Control.cs: Implement Begininvoke
39717 2004-08-20 13:14 jackson
39719 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
39720 messages through the driver
39722 2004-08-20 13:12 jackson
39724 * XplatUIX11.cs: Lock before all X operations. Also added Async
39725 method functionality through XSendEvent
39727 2004-08-20 13:11 jackson
39729 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
39730 This will screw up on 64 bit systems)
39732 2004-08-20 13:10 jackson
39734 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
39735 Async messages through X/Win32
39737 2004-08-19 19:39 pbartok
39740 - Updated code to match new HandleData.DeviceContext type
39742 2004-08-19 19:38 pbartok
39745 - Made DeviceContext a generic object to allow usage from various
39747 - Added support for queueing Windows messages
39749 2004-08-19 19:37 pbartok
39752 - Added generation of MouseEnter, MouseLeave and MouseHover events
39753 - Added cleanup on EndPaint
39755 2004-08-19 19:17 pbartok
39758 - Added handling of WM_MOUSEHOVER
39759 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
39762 2004-08-19 18:55 jordi
39764 * ThemeGtk.cs: fixes button order
39766 2004-08-19 18:12 jordi
39768 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
39770 2004-08-19 17:09 pbartok
39773 - Added Right property
39774 - Added RightToLeft property
39776 2004-08-19 16:27 jordi
39778 * ThemeGtk.cs: experimental GTK theme support
39780 2004-08-19 16:26 jordi
39782 * ITheme.cs, Theme.cs: move themes from an interface to a class
39784 2004-08-19 16:25 jordi
39786 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
39789 2004-08-19 16:04 pbartok
39792 - Added colormap basics
39793 - Added a way to re-initialize with a different display handle
39794 - Fixed setting of the window background color
39795 - Added various X11 imports related to colors and colormaps
39797 2004-08-19 15:51 pbartok
39800 - Removed packing hints (Paolo suggested this a while back)
39801 - fixed colormap type
39802 - Added default Atom types
39803 - Added Screen and color structs and enums
39805 2004-08-19 15:39 pbartok
39808 - Added missing Draw() method
39809 - Added missing RecreateHandle event
39811 2004-08-19 15:30 pbartok
39814 - Added handling of WM_CLOSE
39816 2004-08-18 13:16 jordi
39818 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
39821 2004-08-18 09:56 jordi
39823 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
39825 2004-08-17 15:31 ravindra
39827 * SWF.csproj: Updated project.
39829 2004-08-17 15:25 pbartok
39832 - Drawing improvement; don't call UpdateBounds if we are not visible
39833 (or have been minimized)
39835 2004-08-17 15:24 pbartok
39838 - Finished IsVisible
39839 - Added Win32GetWindowPlacement
39841 2004-08-17 15:08 jackson
39843 * Panel.cs: Initial checkin of the Panel
39845 2004-08-17 14:25 pbartok
39848 - Fixed broken handling of default window sizes
39850 2004-08-17 13:29 jackson
39852 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
39853 has a large startup time.
39855 2004-08-17 10:25 jackson
39857 * HandleData.cs: union areas properly
39859 2004-08-17 10:12 jackson
39861 * HandleData.cs: union areas properly
39863 2004-08-16 20:00 ravindra
39865 * ToolBar.cs, ToolBarButton.cs: Added attributes.
39867 2004-08-16 18:48 ravindra
39869 * ToolBar.cs: Added attributes.
39871 2004-08-16 17:17 ravindra
39873 * SWF.csproj: Updated project.
39875 2004-08-16 17:16 jackson
39877 * XplatUIX11.cs: Check for more expose events before sending a
39878 WM_PAINT so they can all be grouped together. This makes dragging a
39879 window across another window redraw in a sane way.
39881 2004-08-16 15:47 pbartok
39884 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
39885 support OnMouseEnter/Leave()
39886 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
39889 2004-08-16 15:46 pbartok
39891 * XplatUIStructs.cs, XplatUIX11.cs:
39892 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
39893 OnMouseEnter/Leave()
39895 2004-08-16 15:34 jackson
39897 * XplatUIX11.cs: Group multiple expose events in HandleData, make
39898 sure messages get the message field set to WM_NULL if they are not
39901 2004-08-16 15:24 jackson
39903 * HandleData.cs: HandleData is used for storing message information
39906 2004-08-15 17:23 ravindra
39908 * ColorDepth.cs: Added attribute.
39910 2004-08-15 17:23 ravindra
39912 * SWF.csproj: Updated project for ToolBar Control.
39914 2004-08-15 17:20 ravindra
39916 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39917 control and also dos2unix format.
39919 2004-08-15 17:13 ravindra
39921 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
39922 ToolBarButtonClickEventArgs.cs,
39923 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
39924 ToolBarTextAlign.cs: First Implementation of ToolBar control.
39926 2004-08-15 15:31 pbartok
39929 - First (mostly) working version
39931 2004-08-13 16:15 pbartok
39934 - Fixed Anchor default
39936 2004-08-13 15:43 pbartok
39939 - Changed GetCursorPos signature
39941 2004-08-13 15:42 pbartok
39943 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39944 - Changed signature for GetCursorPos
39946 2004-08-13 15:25 pbartok
39950 - Fixed resizing/exposure handling
39952 2004-08-13 15:22 jordi
39954 * ThemeWin32Classic.cs: removes redundant code and fixes issues
39957 2004-08-13 14:55 jordi
39959 * TrackBar.cs: change from wndproc to events
39961 2004-08-13 13:00 jordi
39963 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39964 XplatUIX11.cs: implements PointToClient (ScreenToClient)
39966 2004-08-13 12:53 pbartok
39969 - Changed GetWindowPos to also provide client area size
39970 - Fixed broken prototypes for several win32 functions
39972 2004-08-13 12:53 pbartok
39974 * XplatUI.cs, XplatUIDriver.cs:
39975 - Changed GetWindowPos to also provide client area size
39977 2004-08-13 12:52 pbartok
39980 - Added generation of WM_POSCHANGED
39981 - Changed GetWindowPos to also provide client area size
39983 2004-08-13 12:52 pbartok
39986 - Added Dispose() and destructor
39987 - Fixed resizing and bounds calculation
39989 - Added memory savings for invisible windows
39991 2004-08-13 12:46 jordi
39993 * TrackBar.cs: adds timer and grap window
39995 2004-08-13 10:25 jackson
39997 * Timer.cs: SWF Timer
39999 2004-08-12 16:59 pbartok
40001 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40002 - Implemented method to get current mouse position
40004 2004-08-12 14:29 jordi
40006 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
40007 enhancement, fix mouse problems, highli thumb, etc
40009 2004-08-12 13:31 pbartok
40012 - Fixed Anchoring bugs
40014 2004-08-12 13:01 jackson
40016 * StatusBar.cs: Don't forget things
40018 2004-08-12 12:54 jackson
40020 * ThemeWin32Classic.cs: Handle owner draw status bars
40022 2004-08-12 12:54 jackson
40024 * StatusBar.cs: Implement missing properties, events, and methods.
40025 Handle mouse clicking
40027 2004-08-12 10:19 jackson
40029 * StatusBarPanelClickEventArgs.cs,
40030 StatusBarPanelClickEventHandler.cs: Classes for handling status
40031 bar panel click events
40033 2004-08-12 10:10 jackson
40035 * Control.cs: Add missing properties
40037 2004-08-12 09:46 pbartok
40039 * BindingsManagerBase.cs:
40040 - Name changed to BindingManagerBase.cs
40042 2004-08-12 09:25 jordi
40044 * ScrollableControl.cs: calls ctrlbase instead of exeception
40046 2004-08-11 16:28 pbartok
40048 * InputLanguageChangingEventArgs.cs:
40049 - Never check in before compiling. Fixes the last check-in
40051 2004-08-11 16:26 pbartok
40053 * InputLanguageChangingEventArgs.cs:
40054 - More signature fixes
40056 2004-08-11 16:20 pbartok
40058 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
40059 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
40060 ImageListStreamer.cs, InputLanguage.cs,
40061 InputLanguageChangedEventArgs.cs,
40062 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
40063 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
40064 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
40065 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40068 2004-08-11 16:16 pbartok
40072 - Added .Net 1.1 method
40074 2004-08-11 15:25 pbartok
40077 - Fixed BindingManagerBase.cs filename
40079 2004-08-11 15:22 pbartok
40081 * BindingManagerBase.cs:
40082 - Was checked in with wrong filename
40084 2004-08-11 14:50 pbartok
40089 2004-08-11 13:41 jordi
40091 * XplatUIWin32.cs: Fixes ClientRect
40093 2004-08-11 13:19 pbartok
40095 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
40097 - We had SetWindowPos and MoveWindow to set window positions and
40098 size, removed MoveWindow. We have GetWindowPos, so it made sense to
40099 keep SetWindowPos as matching counterpart
40100 - Added some X11 sanity checking
40102 2004-08-11 12:59 pbartok
40105 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
40106 (It seems that SetBounds is just a front for SetBoundsCore and
40107 SetBoundsCore updates the underlying window system and
40108 UpdateBounds is responsible for updating the variables associated
40109 with the Control and sending the events)
40110 - Major cleanup of Size handling; we now have two sizes, client_size
40111 and bounds. Bounds defines the window with decorations, client_size
40114 2004-08-11 12:55 pbartok
40116 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40117 - Added method to calculate difference between decorated window and
40120 2004-08-11 12:54 pbartok
40123 - Forcing redraw on resize
40125 2004-08-11 11:43 pbartok
40128 - Removed disposing of the actual images when the list is disposed
40130 2004-08-11 09:13 pbartok
40133 - Now properly reparents windows
40135 2004-08-11 08:37 pbartok
40140 2004-08-11 07:47 pbartok
40143 - Rewrote the collection stuff. Might not be as fast now, not
40144 keeping the number of children around and accessible directly, but
40145 it's more straightforward
40147 2004-08-11 07:44 pbartok
40149 * AccessibleObject.cs:
40150 - Fixed to match ControlCollection rewrite
40152 2004-08-11 07:43 pbartok
40155 - Added missing creation of the collection list
40157 2004-08-10 20:08 jackson
40159 * StatusBar.cs: Get the paint message from WndProc
40161 2004-08-10 19:31 jackson
40163 * ThemeWin32Classic.cs: Create Brushes as little as possible
40165 2004-08-10 19:20 jackson
40167 * UICues.cs: Add Flags attribute
40169 2004-08-10 19:19 jackson
40171 * StatusBarPanel.cs: Signature cleanup
40173 2004-08-10 19:10 jackson
40175 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
40176 Initial implementation of status bar item drawing
40178 2004-08-10 17:27 jordi
40180 * TrackBar.cs: add missing methods, properties, and restructure to
40183 2004-08-10 16:24 jackson
40185 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
40186 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
40189 2004-08-10 13:21 jordi
40191 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
40192 enhancements and standarize on win colors defaults
40194 2004-08-10 12:52 jackson
40196 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
40197 ThemeWin32Classic.cs: Implement DrawItem functionality
40199 2004-08-10 12:47 jordi
40201 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
40203 2004-08-10 12:32 jordi
40205 * Control.cs: throw ontextchange event
40207 2004-08-10 11:43 pbartok
40210 - Added more to the still unfinished Dock/Anchor layout code
40212 2004-08-10 11:39 pbartok
40214 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
40215 - Added GetWindowPos method
40217 2004-08-10 11:36 pbartok
40220 - Implemented several methods
40222 2004-08-10 09:47 jackson
40224 * TrackBar.cs: Allow control to handle buffering
40226 2004-08-10 09:41 jackson
40228 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
40230 2004-08-10 09:24 jackson
40232 * Label.cs, LinkLabel.cs: Let Control handle buffering.
40234 2004-08-10 09:09 jackson
40236 * StatusBar.cs: Let Control handle all the buffering.
40238 2004-08-10 09:08 jackson
40240 * Control.cs: Control will now handle the buffering code, so each
40241 control does not have to implement this.
40243 2004-08-10 08:34 jackson
40245 * XplatUIDriver.cs: Use default colors from the theme
40247 2004-08-09 17:12 pbartok
40250 - Fixed several bugs Ravindra pointed out
40252 2004-08-09 16:11 pbartok
40255 - Added incomplete dock layout code
40256 - Added support for mouse wheel
40258 2004-08-09 16:09 pbartok
40261 - Added handling for middle and right mousebutton
40262 - Added handling for mouse wheel
40263 - Added handling for key state and mouse state and position
40264 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
40267 2004-08-09 15:40 jackson
40269 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
40270 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
40273 2004-08-09 15:37 jackson
40275 * StatusBar.cs: Initial implementation of StatusBar
40277 2004-08-09 15:36 jackson
40279 * ITheme.cs: Add support for drawing status bar and getting status
40282 2004-08-09 15:35 pbartok
40287 2004-08-09 15:34 jackson
40289 * ThemeWin32Classic.cs: Add support for drawing status bar and get
40290 status bar item sizes
40292 2004-08-09 15:21 jackson
40294 * ThemeWin32Classic.cs: Use known colors for default control
40297 2004-08-09 15:12 jackson
40299 * ThemeWin32Classic.cs: Make the default font static, it is static
40300 in control so this doesn't change functionality and creating fonts
40303 2004-08-09 14:56 pbartok
40306 - Added GrabMode enum
40308 2004-08-09 14:55 pbartok
40310 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40311 - Removed Run method, was only required for initial development
40313 2004-08-09 14:51 pbartok
40315 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40316 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
40319 2004-08-09 13:48 pbartok
40322 - Fixed default sizing for child windows
40324 2004-08-09 12:56 pbartok
40327 - Added generation of WM_DESTROY message
40328 - Added handling of window manager induced shutdown
40330 2004-08-09 11:31 jackson
40332 * ThemeWin32Classic.cs: New names for control properties
40334 2004-08-09 11:25 jackson
40336 * Control.cs: Use new color names
40338 2004-08-09 11:02 jackson
40340 * XplatUI.cs: Get default window properties from the theme
40342 2004-08-09 11:01 jackson
40344 * ITheme.cs: The theme engine now controls default window
40347 2004-08-09 11:00 jackson
40349 * ThemeWin32Classic.cs: Add default window color properties
40351 2004-08-09 10:17 jackson
40353 * ThemeWin32Classic.cs: Use correct default back color
40355 2004-08-09 10:05 jackson
40357 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
40360 2004-08-09 09:56 jackson
40362 * XplatUI.cs: Remove defaults, these are handled by the theme now.
40364 2004-08-09 09:54 jackson
40366 * Control.cs: Get default properties from the theme.
40368 2004-08-09 09:53 jackson
40370 * ITheme.cs: Themes now handle default control properties
40372 2004-08-09 09:53 jackson
40374 * ThemeWin32Classic.cs: Themes now handle default control
40375 properties so coloring will be consistent
40377 2004-08-08 16:54 jordi
40379 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
40381 2004-08-08 15:08 jordi
40383 * XplatUIX11.cs: fixes keyboard crash
40385 2004-08-08 13:47 jordi
40387 * Label.cs: add cvs header info
40389 2004-08-08 12:09 jackson
40391 * ThemeWin32Classic.cs: Add pen_buttonface
40393 2004-08-08 11:52 jordi
40395 * Label.cs, LinkLabel.cs: [no log message]
40397 2004-08-08 11:34 jordi
40399 * ThemeWin32Classic.cs: Use Windows Standard Colours
40401 2004-08-07 17:32 jordi
40403 * TrackBar.cs: throw exceptions of invalid enums values
40405 2004-08-07 17:31 jordi
40407 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
40410 2004-08-07 16:56 jackson
40412 * HorizontalAlignment.cs: Initial checkin
40414 2004-08-07 13:16 jordi
40416 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
40419 2004-08-07 13:05 jordi
40421 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
40422 GetSysColor defines
40424 2004-08-06 18:01 pbartok
40426 * ThemeWin32Classic.cs:
40427 - Fixed some rounding issues with float/int
40429 2004-08-06 18:00 jackson
40431 * DockStyle.cs, AnchorStyles.cs:
40433 Add flags and serializable attributes.
40435 2004-08-06 17:46 pbartok
40438 - Implemented GetParent
40440 2004-08-06 17:18 pbartok
40443 - Fixed some rounding issues with float/int
40445 2004-08-06 17:17 pbartok
40447 * X11Structs.cs, XplatUIX11.cs:
40448 - Fixed Refresh and Invalidate
40450 2004-08-06 15:30 pbartok
40452 * Control.cs, X11Structs.cs, XplatUIX11.cs:
40453 - Fixed recursive loop when resizing
40454 - Improved/fixed redrawing on expose messages
40456 2004-08-06 09:53 jordi
40458 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
40459 keyboard navigation
40461 2004-08-06 08:02 pbartok
40463 * X11Structs.cs, XplatUIX11.cs:
40464 - Fixed reparenting
40465 - Fixed window border creation
40467 2004-08-05 15:38 pbartok
40470 - Attempted fix for reparenting problems
40472 2004-08-04 15:14 pbartok
40475 - Fixed Invalidation bug (calculated wrong client area)
40476 - Added ClientSize setter
40478 2004-08-04 15:13 pbartok
40481 - Added AutoScale properties
40483 2004-08-04 15:13 pbartok
40486 - Added latest files
40488 2004-08-04 14:11 pbartok
40490 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
40492 - Added Invalidate handling
40494 2004-08-03 17:09 jordi
40496 * XplatUIDriver.cs: fixes spelling mistake
40498 2004-07-27 09:53 jordi
40500 * TrackBar.cs: fixes trackbar events, def classname, methods
40503 2004-07-27 09:29 jordi
40505 * ScrollBar.cs: fixes scrollbar events
40507 2004-07-27 04:38 jordi
40509 * Control.cs: changes to be able to run winforms samples
40511 2004-07-26 11:42 jordi
40513 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
40514 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
40516 2004-07-26 05:41 jordi
40518 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
40519 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
40522 2004-07-22 09:22 jordi
40524 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
40525 check link overlapping, implement events, and fixes
40527 2004-07-21 10:28 jordi
40529 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
40531 2004-07-21 10:19 jordi
40533 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
40534 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
40535 LinkLabelLinkClickedEventArgs.cs,
40536 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
40537 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
40540 2004-07-19 13:09 jordi
40542 * Control.cs, Label.cs: label control re-written: added missing
40543 functionlity, events, and properties
40545 2004-07-19 10:49 jordi
40547 * Control.cs: fixes SetBounds logic
40549 2004-07-19 01:29 jordi
40551 * Control.cs: Call RefreshWindow only if the window has created
40553 2004-07-15 14:05 pbartok
40555 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
40556 - Implemented ImageList and ImageList.ImageCollection classes
40557 - Added ColorDepth enumeration
40558 - Updated SWF VS.Net project
40560 2004-07-15 11:06 jordi
40562 * XplatUIStructs.cs: added MsgButons enum
40564 2004-07-15 11:03 jordi
40566 * Control.cs: added basic mouse handeling events
40568 2004-07-15 03:38 jordi
40570 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
40571 Vertical TrackBar control implementation
40573 2004-07-13 09:33 jordi
40575 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
40577 2004-07-13 09:31 jordi
40579 * Control.cs, Form.cs: commit: new properties and fixes form size
40582 2004-07-09 14:13 miguel
40584 * ProgressBar.cs: Spelling
40586 2004-07-09 11:25 pbartok
40589 - Removed usage of Rectangle for drawing. Miguel pointed out it's
40592 2004-07-09 11:17 miguel
40594 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
40596 * ProgressBar.cs: Fixed spelling for `block'
40598 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
40601 Avoid using the += on rect.X, that exposed a bug in the compiler.
40603 2004-07-08 23:21 pbartok
40605 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
40606 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
40607 BaseCollection.cs, Binding.cs, BindingContext.cs,
40608 BindingMemberInfo.cs, BindingsCollection.cs,
40609 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
40610 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
40611 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
40612 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
40613 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
40614 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
40615 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
40616 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
40617 FrameStyle.cs, GiveFeedbackEventArgs.cs,
40618 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
40619 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
40620 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
40621 InputLanguageChangedEventArgs.cs,
40622 InputLanguageChangedEventHandler.cs,
40623 InputLanguageChangingEventArgs.cs,
40624 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
40625 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
40626 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
40627 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
40628 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
40629 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
40630 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
40631 QueryAccessibilityHelpEventArgs.cs,
40632 QueryAccessibilityHelpEventHandler.cs,
40633 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
40634 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
40635 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
40636 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
40637 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
40638 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
40639 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
40640 XplatUIX11.cs, lang.cs: