1 2010-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3 * TreeView.cs: When receiving a double click on a node, toggle it only
4 if it has one or more nodes - just as .net does.
7 2010-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9 * X11Keyboard.cs: Small correction for the previous patch: I forgot to
10 take into account the case where the buffer used in XLookupString is
11 not empty, but filled with garbage.
13 2010-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15 * X11Keyboard.cs: When handling the key events, sometimes calling
16 either Xutf8LookupString or XLookupString with special chars (such
17 backspace and enter) can result in a buffer filled with garbage, or
18 empty - thus re-use the value returned by the same functions to fill
22 2010-02-25 Ivan Zlatev <ivan@ivanz.com>
24 * Control.cs: ControllCollaction IList implementation wasn't calling the
25 Add implementation causing ParentChanged and all sorts of other events not to
29 2010-02-25 Ivan Zlatev <ivan@ivanz.com>
31 * DataGridView.cs: If we are setting a new data source and it is
32 data bindable clear DataMember before binding.
35 2010-02-25 Ivan Zlatev <ivan@ivanz.com>
37 * DataGridViewCheckBoxCell.cs: Toggle the checkbox on Space key press.
40 2010-02-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
42 * RichTextBox.cs: When retrieving SelectedRtf/Rtf properly escape any
43 RTF reserved char, so we don't end up messing around the actual rtf
45 Fixes part of #575731.
47 2010-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
49 * Line.cs: When setting the Text property, if the new text is larger
50 than the previous one, call Grow to update our internal 'widths'
51 array, to be properly in sync with the new text.
54 2010-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
56 * TabControl.cs: When calculating the layout for the tab pages, take
57 into account the ImageList size info if it exists, even if it is
60 2010-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
64 * X11Structs: Implement the new BeginMoveResize method, designed to
65 instruct the window manager to init a resize operation on a top level
66 form. This is used by StatusStrip.
70 * XplatUICarbon.cs: Fill the gaps by creating stubs and updating the
74 2010-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
76 * ComboBox.cs: When creating DrawItemEventArgs pass the fore color and
77 back color arguments depending on the higlight/focus state, just like
81 2010-01-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
83 * ComboBox.cs: When the normal drop down window is closed, make sure
84 that the auto complete list -if any- is closed as well, instead of
85 stay open without need.
87 2010-01-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
89 * TextBox.cs: When showing the autocomplete listbox, make sure it's on
90 top, by calling the raw XplatUI.SetZOrder for it, since we can't
91 properly call BringToFront on it as it is parentless. This fixes an
92 issue when using this feature with ComboBox's own parentless listbox.
93 Fixes the remaining bits of #489339.
95 2010-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
102 * XplatUIStructs: Implement support for different kind of audible
103 alerts in Windows, and update the requiered classes.
105 * TextBoxBase.cs: Update calls to XplatUI.AudibleAlert.
108 2010-01-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
110 * ComboBox.cs: When use manually setting DropDownHeight, ignore the
111 MaxDropDownHeight property - also rename our field 'count' to
112 'visible_items_count' to avoid confusion as much as possible.
113 Fixes an issue with several items, showing an incorrect layout.
115 2010-01-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
117 * RichTextBox.cs: SelectedText should set Modified to true. Observe
118 that this is happening just here, not for the Text property, and
119 neither for the TextBoxBase impl.
122 2010-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
124 * ToolStripMenuItem.cs: Put the Checked/CheckState logic in a single
125 place and synchronize the events properly. Fixes a lack of
126 coordination between the events - which should be fired together.
128 2010-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
130 * TrackBar.cs: Move our events code to a single method, allowing it to
131 optionally fire the Scroll event. This way we both avoid the
132 duplicated calls to OnScroll and also will be able to fire Scroll
133 *before* OnValueChanged in other places.
136 2010-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
138 * RadioButton.cs: When drawing, if Appearance is Button use the old
139 normal routine in the theme engine, instead of using the one in 2.0,
140 since this last one doesn't support proper rendering of the control as
144 2010-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
146 * GroupBoxRenderer.cs: Properly use SystemColors.GrayText to draw to
147 text of the group box if it is disabled.
150 2009-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
152 * Control.cs: When changing the cursor and updating it, do update the
153 cursor immediately even if there's a child control under the current
154 cursor position - this is exactly what .net does.
157 2009-11-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
159 * DataGrid.cs: In OnLeave, do cancel or end current edit, depending on
160 the commit_new_row value, instead of just trying to cancel if a new
161 row had been added. This is important when modifying existing rows and
162 then moving the focus out of the control.
164 2009-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
166 * XplatUICarbon.cs: Implement the overriden AudibleAlert
167 function in XplatUICarbon. Currently it throws
168 NotImplementedException which will kill a WinForms application showing
170 Patch by Erik Ylvisaker (erik@agatelib.org).
172 2009-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
174 * DataGrid.cs: In CurrentCell, the check to do nothing in case we are
175 in the same cell as specified *and* not editing is wrong.
177 2009-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
179 * DataGrid.cs: When removing the cells, don't do anything if the
180 specified row is the extra cell we use to add new ones.
182 2009-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
184 * DataGrid.cs: CurrentCell should be *used* if the new value is the
185 same as the current one, since we could need to activate the edition
186 in the current row. Also, when beginning the edition, do nothing if,
187 basides having an empty source, we are sure we don't have the new
188 cell, which could obviously start it.
189 Fixes other bits of #323154.
191 2009-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
193 * DataGrid.cs: When we get notified by a change in the position of our
194 data source, don't set CurrentRow if the source is empty, as there's
195 no need to do anything else in the first place, and second, the logic
196 in the CurrentRow setter (public property) will add a new row by
197 default in this case (that is, when the source is empty).
198 Fixes part of #323154.
200 2009-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
202 * ToolStripMenuItem.cs: Don't try to use SystemColors.MenuText if fore
203 color is SystemColors.ControlText, as this system color detection
204 should be done *completely*. This is specially important when
205 detecting colors in systems running Gtk+ and dark themes.
207 2009-11-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
209 * DataGrid.cs: Add a new internal property to get the maximum possible
210 visible rows in the grid. We cannot use VisibleRowCount since this
211 value can, depending on the scroll position, return a +1 or -1 value,
212 so we need an absolute way to know whether we need a scroll bar or
213 not. Also, update VLargeChange to avoid code duplication.
214 Fixes a vertical scroll mismatch happening trying to add a new row
215 while the scrollbar has reached its maximum value.
217 2009-11-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
219 * DataGridTextBoxColumn.cs:
220 * DataGrid.cs: Position the cursor in the add row should *not* show
221 yet another new row - that will happen till we get any real input data
222 from the user. When that happens, we will also mark the new row as
223 ready to commit - otherwise, when the cursor moves to a different row,
224 the just added row will be discarded. This is exactly what .Net seems
227 2009-11-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
229 * DataGrid.cs: The large value for our vertical scrollbar should
230 depend on the number of visible rows, instead of trying to re-use the
231 value of VisibleRowCount, which is the value of *current* visible
232 rows, and can easily end messed up if new rows are added/removed.
234 2009-11-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
236 * DataGrid.cs: When moving the scroll, *dont* ever end the current
237 edit - this could seriously mess up our current edit cycle, specially
238 when adding new rows.
240 2009-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
242 * TabControl.cs: In OnKeyDown call the base implementation first -
243 this way we let the user tell us whether we should handle the key or
247 2009-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
249 * DataGrid.cs: Implement removal of rows the Correct Way by creating a
250 copy of the indexes, as any direct write access to the source will cause to
251 reset the entire selection - also, do the linear de-selection in
252 reverse order to avoid any index mismatch in the source, due to out of
253 synchronization removing the rows.
255 2009-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
257 * DataGridTextBoxColumn.cs:
258 * DataGrid.cs: Don't use this add-pending behaviour to try to add a
259 new row until we have the first input char - it was helping us to fix
260 other issues we have/had, but it's not matching .net.
262 2009-10-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
264 * TextBoxBase.cs: When returning the preferred height, and we are
265 supposed to be borderless, return the TopMargin value - usually in
266 borderless mode it has a value of 0, but in the ToolStrip controls we
267 need to set the margin manually.
270 2009-10-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
272 * ToolTip.cs: ShowAlways works at the form level, not at the control
273 level. Fixes #544565.
275 2009-10-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
277 * ButtonBase.cs: Usually the click routines are handled in Control,
278 but in this class we are handling it ourselved, thus we need to have
279 the same calls, and we were missing the call to MouseClick.
280 Patch by Eric Petit <surfzoid@gmail.com>.
282 2009-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
284 * ComboBox.cs: When setting Text and data source is being used, if the
285 passed value is not matching any of the items in the source, don't
286 pass it to GetItemText, since it's useless, as GetItemText expects a
290 2009-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
292 * ListView.cs: When retrieving an item in virtual mode, as part of the
293 process calculate its layout, instead of trying to do it later.
294 * ListViewItem.cs: There's no need to try to infer whether we need to
295 compute layout or not anymore - we just do it every time we are
297 This way we should be fixing View changes with cached items, which
298 were storing the previous value, and not updating their contents
301 2009-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
303 * ColumnHeader.cs: Remove the double linear search in the Index
304 property, by removing the call to Contains, which is not needed.
305 Also, Columns collection can never be null.
307 2009-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
309 * ColumnHeader.cs: When calculating the width and height of the
310 column, try to expand to the right and use all the free space if we
311 are the last column *and* the resize mode is set to -2/header content.
314 2009-10-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
316 * ListView.cs: When retrieving the top item, take into account the
317 offset represented by the header control, to retrieve the proper
318 value. Patch by Christoph von Wittich (Christoph at ApiViewer.de)
319 Fixes the remaining bits of #543773.
321 2009-10-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
323 * ListView.cs: TopItem setter should set the value as the top, not
324 only ensuring its visibility.
325 Fixes part of #543773.
327 2009-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
329 * ListView.cs: For virtual mode, when navigating the items using keyboard,
330 don't use the matrix of positions, and instead calculate the positions
331 based on the number of cols and rows, taking advantage of the fixed
332 positions of items. Use the same idea to implement FirstVisibleIndex,
333 so we avoid iterating over all the items. Patch by Stephen Robinson
335 Fixes part of #467418.
337 2009-10-12 Dick Porter <dporter@codicesoftware.com>
339 * Splitter.cs: Adjust offsets when more than one splitter is
340 present in a control. Fixes bug 509472.
342 2009-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
344 * ListView.cs: When computing the value for groups height don't use
345 text_size field, since in LargeIcon view it sometimes contains a
346 double height value - use Font.Height directly, and also improve the
348 * ThemeWin32Classic: The same as above.
349 This way the space between the group header, the line, and the items
350 area is not that big in LargeIcon view.
352 2009-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
354 * ListView.cs: When retrieving the fixed positions for the items in
355 virtual mode, use the row value to compute the coords of the item,
356 instead of the col value, as opposed to SmallIcon/LargeIcon views.
358 2009-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
360 * ListView.cs: The location of the items should be computed on the fly
361 in virtual mode - that decreased speed overall, but reduces the load
362 time.that decreased speed overall, but reduces the load time. Also,
363 handle the cases where we were using data structures we don't need to
364 use/create for this mode.
365 Fixes part of #467418.
367 2009-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
369 * ListView.cs: Tile view and VirtualMode can't be applied together.
370 Patch by Stephen Robinson <mono@esar.org.uk>.
372 2009-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
374 * ListView.cs: When calculating the layout for Details view, don't ask
375 for the items *at all* in case we are in virtual mode. This should
376 re-enable the proper behaviour of virtual mode.
378 2009-09-26 Jonathan Pobst <monkey@jpobst.com>
380 * TreeNode.cs: When we invalidate a node, make sure we start at
381 0, instead of the node's Bounds.Left, which does not include
382 the +/-, checkbox, or stateimages.
385 2009-09-24 Ivan N. Zlatev <contact@i-nz.net>
387 * DataGridView.cs: Compare the name and not displayname of properties
388 when checking if the column is already bound.
390 2009-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
392 * RichTextBox.cs: For SelectedRtf, after inserting the stream, adjust
393 the position of the caret by adding the needed chars represented by the new line chars,
394 according to the system, using rich *or* hard new lines as needed. Also do a
395 check to be sure we don't move the cursor position beyond the limits
396 of our text. This should avoid problems with text being pasted,
397 regarding the position of the caret.
399 2009-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
401 * RichTextBox.cs: When SelectedRtf is set, and we are in the 0
402 position in the x axis, force to re-use any already available line,
403 even if it is not empty. This way pasting text into our textbox in the
404 beginning for non empty lines should work fine.
406 2009-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
408 * RichTextBox.cs: When we are inserting a flow of rtf text, and we are
409 *not* loading it from a file, try to re-use a line if already
410 available, since the default behaviour of the parser is to create new
411 lines for the document.
412 This should fix a regressions we found after the last fix for #513030.
414 2009-09-14 Tom Hindle <tom_hindle@sil.org>
416 * ToolStripOverflow.cs: Fixes #536036 by adding null ptr check.
418 2009-09-11 Ivan N. Zlatev <contact@i-nz.net>
420 * PropertyGrid.cs: Hide the splitter when the help is hidden.
422 2009-09-11 Ivan N. Zlatev <contact@i-nz.net>
424 * InternalWindowManager.cs: Call Invalidate-Update instead of
425 Refresh for MS compitability. Note also that Refresh is virtual
426 and several controls override it in order to provide data refresh
427 functionallity on top of the redraw and they do not expect this
429 * Control.cs: In Refresh Invalidate the control and all children
430 insead of calling Refresh for each of them.
433 2009-09-11 Ivan N. Zlatev <contact@i-nz.net>
435 * PropertyGrid.cs: Always set the help panel properties on the
436 internal control, because they are inherited and can change with
440 2009-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
442 * RichTextBox.cs: When processing rtf, don't add a new line if we
443 already have one for that position. This way we avoid overriding by
444 mistake our lines when copying/pasting.
447 2009-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
449 * TextControl.cs: When inserting new lines, look for the end of file
450 char, and remove chars after it. This is unlikely to happeng either
451 loading a file, pasting text or pressing a char, but can happen using
452 the TextBox.Text property.
455 2009-09-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
457 * Line.cs: In DeleteCharacters, cache line.Length for every tag, since
458 tag.Start changes will modify it indirectly and then we would end up
462 2009-09-03 Ivan N. Zlatev <contact@i-nz.net>
464 * BindingSource.cs: Implement support for chained data sources.
465 * ListBindingHelper.cs: Add support for ICurrencyManagerProvider and
467 [Fixes part of bug #536547]
469 2009-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
471 * RichTextBox.cs: When saving the text to a file using SaveFile use
472 Environment.NewLine to separate the lines. This way we should be
473 saving the files according to the system.
474 Fixes the remaining part of #511515.
476 2009-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
478 * RichText.cs: Remove some unix new line characters and use
479 Environment.NewLine. Fixes part of #511515.
481 2009-08-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
483 * TextBoxBase.cs: Modified should *not* be modified from the Text
484 property, as our new tests show. It should be to false, however, in
485 Append and Clear; and Paste, Cut, Undo, and direct user input should set it
486 to true. Also, as opposed to what the .net docs say -but proven by our
487 tests-, the changes should be generating a ModifiedChanged event
488 (thus we set the property, instead of the field).
491 2009-08-27 Ivan N. Zlatev <contact@i-nz.net>
493 * DataGridView.cs: Fire the CellDoubleClicked event.
496 2009-08-27 Ivan N. Zlatev <contact@i-nz.net>
498 * DataGridView.cs: Add support for column DataGridViewAutoSizeColumnMode
499 DisplayedCells and DisplayedCellsExceptHeader.
502 2009-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
504 * TextControl.cs: When removing a simple char, actually record the
505 action in the undo manager. This way we both support undoing the
506 removal of chars using backspace/delete, as well as keeping data
507 integrity when other undo tasks are performed.
510 2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
512 * Control.cs: Remove the ancient code in ResetText, which was setting
513 the internal field to String.Empty, instead of doing it for our Text
514 property, as .net does (which also causes a TextChanged event and all
515 the other related routines).
518 2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
520 * TreeNodeCollection.cs: Correctly implement Contains by using a
521 linear search - there's no possible way to use a binary search, since
522 the node instances are not implementing IComparable, nor have a
526 2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
528 * DataGrid.cs: If we are *not* changing a row
529 already added to the source, and thus we are adding a new
530 row instead, try to move to the previous row when Esc is
531 pressed -if possible-.
532 Fixes some bits of #322974.
534 2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
536 * DataGridTextBoxColumn.cs:
537 * DataGrid.cs: Moving the cell to the add row (the last one) should
538 not immediately add a new row - this should happen until the very
539 first change happens in that textbox.
540 Fixes part of #322974.
542 2009-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
544 * ToolStripDropDown.cs: When assigning the owner item, use its Font as
547 2009-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
549 * ToolStripItem.cs: When the owner changes its Font, call the
550 OnFontChanged event, so we let our users know that we likely have a
551 new font - since Font is an ambient property.
552 * ToolStripDropDownItem.cs: When our Font changes, propagate that
553 information to our DropDown control, if any.
556 2009-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
559 * ThemeWin32Classic.cs: When the user clicks on a new cell, we should reset any
560 previous selection, just like .net does. Also, in the cases where a
561 cell is being edited and it keeps the selected status, use the normal
562 colors for it, and use the selected colors for the rest of the columns of
564 Fixes the remaining bits of #323051.
566 2009-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
568 * DataGrid.cs: When getting ProcessKeyPreview fired, call Edit() if we
569 are not editing already - so the edition is actually active on our
570 column style textbox. Also, it seems the code handling process the
571 grid keys is repeated, but instead of removing it, just comment it for
573 Fixes part of #323051.
575 2009-08-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
577 * AsyncMethodResult.cs: Store a exception field in case the called
578 method actually caused an exception. This way we can throw it later.
579 * XplatUIDriver.cs: Check if the async method result has an exception
580 - throw it if needed.
581 The idea is that Control.Invoke throws the exception from the thread
582 that called it, not the main MWF thread.
583 Patch by Tom Spink <tspink@gmail.com>. Fixes #497175.
585 2009-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
587 * DataGrid.cs: In mouse move we need to shift the selection in case
588 the pointer is on the row headers.
591 2009-08-11 Ivan N. Zlatev <contact@i-nz.net>
593 * SplitContainer.cs: Avoid updating the splitter distance if it hasn't
594 moved. Updating the distance was causing a re-layout which was resetting
595 the clicks counter and preventing DoubleClick from every firing.
598 2009-08-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
600 * DataGrid.cs: When a new TableStyle is added, don't create new
601 columns for it unless it is empty - this is the correct way to both
602 respect the columns if they were provided by our user, or create them
603 for him in case the column collection is empty.
606 2009-08-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
608 * DataGrid.cs: Actually call BindColumns in the handler for
609 ListManager.MetaDataChanged, since the current code is already taking
610 into account the scenario when a custom table style is used - this was
611 confusing us before, and that's why we commented the call to
612 BindColumns. Also call CallAreasAndInvalidate, to properly reflect the
616 2009-08-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
618 * DataGrid.cs: When setting the data source, if we have a user
619 provided table style available, force a complete bind in case the
620 column styles for that table style is empty.
622 2009-08-09 Ivan N. Zlatev <contact@i-nz.net>
624 * DataGridViewCell.cs: Handle null and DBNull values.
626 2009-08-07 Rodrigo Kumpera <rkumpera@novell.com>
628 * ListBindingHelper.cs: Fix the 1.0 build by making this type available
631 2009-08-07 Ivan N. Zlatev <contact@i-nz.net>
633 * CurrencyManager.cs: Remove duplicate code.
635 2009-08-07 Ivan N. Zlatev <contact@i-nz.net>
637 * DataGridView.cs, DataGridViewCell.cs, DataGridViewColumn.cs:
638 Massive population performance boost. From seconds to ms.
641 2009-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
643 * DataGrid.cs: When handling mouse down on a column, don't do any sort
644 even if the list supports it if we are empty. This way we avoid an exc
645 sorting the empty list, and keep the UI compatible with .net.
647 2009-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
649 * DataGrid.cs: In Edit () check we have any row before trying to use
650 the current row. Fixes a IOOR exc with an empty data grid.
652 2009-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
654 * DataGridColumnStyle.cs: Don't call CheckValidDataSource when setting
655 the owner DataGrid - even if this seems to be the right thing to do,
656 .net is not doind this check at this point, but in later operations.
659 2009-07-28 Mike Gorse <mgorse@novell.com>
661 * ToolStripMenuItem.cs: Added UIA CheckOnClickChanged event.
663 2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
665 * Application.cs: Make FilterMessage internal for 1.1. Fixes the 1.1 build.
667 2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
670 * XplatUIWin32.cs: We need to filter the messages using
671 Application.FilterMessage for our DoEvents implementations. Observe
672 that I don't like the idea of XplatUI call the upper level Application
673 class, but at this point is easier and simpler to do this call - based
674 on the fact it's only one simple call.
677 2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
679 * TreeNodeCollection.cs: When removing the selected node, set the
680 SelectedNode value of TreeView to null if there aren't more nodes left -
681 this is better than to clear the selected node in Clear, since we need
682 to handle the situation in the Remove methods as well.
685 2009-07-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
687 * ToolStripItemCollection.cs: Find should do a case insensitive
688 search, and should throw an ArgumentNullException if the parameter is
691 2009-07-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
693 * PropertyGrid.cs: Use click handlers for each ToolStripButton instead
694 of using a global handler for the ToolStrip. This way the buttons can
695 be recovered and can have its PerformClick method called properly.
698 2009-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
700 * X11Dnd.cs: Implement support for XdndActionList, so we can get the
701 complete list of the supported actions in the drag source, and use the
702 action passed in the Position message only as a fallback. This will
703 help us with dnd operations with non winforms apps.
706 2009-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
708 * ToolStripItemCollection.cs: Use a List<> instead of an ArrayList in
709 Find. This should fix the exception we were getting when trying to
710 convert the ArrayList to an array of objects (since we were losing the
714 2009-07-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
716 * RadioButton.cs: Setting Checked when none of the sibligs is checked
717 should happen *not* in GotFocus, but in the Enter event. This is
718 specially important since we should get that Checked behaviour even if
719 no handle is created yet - and thus, no actual GotFocus call happens at
723 2009-07-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
725 * ComboBox.cs: Adjust manually the top border for out internal
726 ComboBox, since removing the border from it leaves it without any
727 margin. This is not noticeable in a default ComboBox, but it is in an
728 instance shown on top of ToolStrip.
729 Fixes the remaining part of #507462.
731 2009-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
733 * TextBoxBase.cs: Expose the margin top width as a property, to keep
735 * ToolStripTextBox.cs: Since we are actually using no border in the
736 default TextBox impl, and we are drawing the border ourselves, we need
737 to manually set the top margin.
738 Fixes part of #507462.
740 2009-07-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
742 * PrintPreviewDialog.cs: Record when left was pressed, so we can
743 simulate Tab+Alt when moving the focus throughout our buttons and
745 Fixes the remaining bits of #509142.
747 2009-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
749 * TabControl.cs: When computing the width of each tab page, use the
750 page's Font instead of the tab control one.
753 2009-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
755 * MenuAPI.cs: When handling the Keys.Left key, don't close the menu if
756 the current menu is specifically a ContextMenu (this is what .net does
757 as well). This way we also avoid a crash caused by MenuTracker trying
758 to use the menu when it was already hidden.
760 2009-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
762 * PrintPreviewDialog.cs: Remove the code used to handle the
763 DropDown menu, since we are now doing it by default in ToolBar, and
764 just call the base impl as needed.Also, deactivate the dropdown menu
765 before moving the focus to a different button in our toolbar, as .net
768 * MenuAPI.cs: Make as internal the needed bits to deactivate a
769 ContextMenu, and also to keep some beauty in our api.
771 2009-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
773 * ToolBar.cs: When handling the key down message, if we are on a
774 drop down button, either show the DropDownMenu or pass the key to its
775 ProcessCmdKey method as needed.
776 Fixes the remaining bits of #509985.
778 2009-06-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
780 * ToolBar.cs: Isolate the event logic related to OnButtonClick. Also
781 set current_item when navigating with the keyboard, so we can use it
782 properly later. Finally, handle both Enter and Space to fire
783 OnButtonClick *only*, without any other impact, as .net does.
784 Fixes part of #509985.
786 2009-06-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
788 * MenuAPI.cs: Close any active menu when we get a simple Alt.
791 2009-06-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
793 * ToolBar.cs: In OnButtonClick only change the Pushed value for
794 buttons with toogle style. We were previously doing it for
795 DropDownButton's buttons, but that's not what .net is doing.
798 2009-06-26 Atsushi Enomoto <atsushi@ximian.com>
800 * XplatUICarbon.cs : support multi-byte text input.
803 2009-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
805 * ListBox.cs: When creating DrawItemEventArgs, pass either
806 Theme.ColorHighlightText or ForeColor depending on the selected state
807 of our item, as .net does.
810 2009-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
812 * ComboBox.cs: When handling WM_CHAR, process the message first, and
813 send it to the textbox only if it wasn't handled.
816 2009-06-18 Jonathan Pobst <monkey@jpobst.com>
818 * ComboBox.cs: Only do my big sort at the end of AddRange if
819 the combobox is actually set to Sorted.
821 2009-06-18 Tom Hindle <tom_hindle@sil.org>
823 * XplatUIX11.cs: Enabled Text to coexist with custom data formats.
826 2009-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
828 * ListBox.cs: When calculating the scrollbars for non MultiColumn
829 mode, force the use of the horizontal scrollbar only if
830 ScrollAlwaysVisible is true as well.
833 2009-06-17 Jonathan Pobst <monkey@jpobst.com>
835 * ComboBox.cs: When using AddRange on a sorted combobox, don't
836 try to use our inefficient sorted insert method, just append
837 it and sort the whole thing at then end.
840 2009-06-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
842 * ToolBar.cs: Expose as internal the code used to show a dropdown menu.
843 * PrintPreviewDialog.cs: Handle the down/up arrow keys for our
847 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
849 * DataGridView.cs: Scrolling fixes.
852 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
854 * DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and
855 optimize for batch adding rows.
857 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
859 * DataGridView.cs: Avoid calling ReBind twice during the initial data
863 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
865 * DataGridView.cs: Suppress invalidation during data binding.
866 [Fixes part of bug #512807]
868 2009-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
870 * PrintPreviewDialog.cs: Tune the navigation among the buttons and
871 controls that are part of our ToolBar, so we can mimic the behaviour
872 observed in .Net, by handling also the arrow keys and doing the
873 preprocess for them too.
874 Fixes the remaining bits of #509142.
876 2009-06-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
878 * ToolBar.cs: Expose the current item as internal.
879 * PrintPreviewDialog.cs: Tune the TabStop property for
880 PrintPreviewControl/ToolBar so we match the .net scenario regarding
881 Tab navigation. Also implement support to navigate throughout the
882 items in the ToolBar.
885 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
887 * DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs:
888 Implement items syncing in the non-databound scenario.
891 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
893 * DataGridView.cs: Call OnCellValidating and OnCellValidated and
894 handle the Cancel accordingly.
897 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
899 * DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
902 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
904 * DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs,
905 DataGridView.cs: Fire CollectionChangeAction.Refresh collection
906 changed when Clearing the collections so that the DataGridView
907 can know and reset the current cell.
910 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
912 * BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor
913 with the PropertyDescriptor parameter instead of index, because the
914 latter will set some irelevant indices. Fixes a bug uncovered by recent
915 fix to ListChangedEventArgs.
917 2009-06-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
919 * DataObject.cs: When looking for any specific format, do a case
920 insensitive search, as .net does.
923 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
925 * CurrencyManager.cs: In AllowNew firstly check if the list is a
926 IBindingList and proxy to AllowNew. IBindingList has slightly differet
927 logic and eventhough it's an IList IsReadOnly should not be used in this
928 case as it might be True but AllowNew could be True as well.
929 Fixes a bug uncovered by a fix to the Array class.
931 2009-06-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
933 * ListBindingHelper.cs: In GetListItemType do a null check when
934 looking for IList.Item, since the impl could be explicit, and thus
935 private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
936 Fixes the remaining part of #507120
938 2009-06-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
940 * DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
941 to match them in all the cases, as this is exactly what .net does.
944 2009-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
946 * ListBindingHelper.cs: In GetListItemType handle gracefully the case
947 where an instance of IEnumerator returns a null value for its Current
948 property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
951 2009-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
953 * ComboBox.cs: Properly detect whether we need to use our vertical
954 scrollbar or not, specially for DropDownList/DropDown styles,
955 depending on the value of DropDownHeight.
958 2009-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
960 * ToolTip.cs: Call the base implementation in Dispose, but do it
961 before anything else to avoid a regression. This way we do the default
962 routines related to any System.ComponentModel.Container.
965 2009-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
969 * DataFormats.cs: Implement support for serializable types in our
973 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
975 * ColorDialog.cs: Actually add the help button to the form, so it can
979 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
981 * PrintPreviewDialog.cs: Don't use Dock.Fill for the
982 PrintPreviewControl, since it will be hidden in the top by our
983 toolbar. Use manual location and anchoring instead.
986 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
988 * FileDialog.cs: When saving the size of the dialog, use the
989 ClientSize instead of Size, so we have always the same size for the
990 form. Patch by Alex Shulgin.
993 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
995 * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
996 show a beep, similar to what .net does.
999 2009-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1001 * ContainerControl.cs:
1003 * ToolStrip.cs: Implicit mnemonic processing should happen for every
1004 ToolStrip child, not only for MenuStrip, so we are going to do that in
1005 ToolStrip.ProcessMnemonic, where we already had that exactly
1006 functionality, but we are only just checking that either this instance
1007 is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
1008 remove the extra code, since we are not going to use it now.
1009 Fixes the remaining bits of #503663.
1011 2009-05-21 Neville Gao <nevillegao@gmail.com>
1013 * ContextMenu.cs: Cleaned up UIA properties.
1015 2009-05-20 Dick Porter <dick@acm.org>
1017 * XplatUICarbon.cs: Add more locking around MessageQueue
1020 2009-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1022 * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
1023 duplication of code, as well as actually getting the focus back in
1024 *any* scenario where the drop down is closed.
1026 2009-05-18 Tom Hindle <tom_hindle@sil.org>
1027 * ScrollableControl.cs: Ignore setting properties HScroll and
1028 VScroll when AutoScroll is true.
1031 2009-05-18 Jonathan Pobst <monkey@jpobst.com>
1033 * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
1034 disabled graphics look closer to the ones that .Net produces.
1037 2009-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1039 * DateTimePicker.cs: When calculating the max width for the year part,
1040 use the current value, since *all* the possible values are exactly a 4
1041 digits number. This way we avoid a ArgumentOutOfRangeException trying
1042 to check against different values.
1045 2009-05-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1047 * MessageBox.cs: When handling ProcessDialogChar, check that
1048 CancelButton is not null before trying to use it, to avoid a null ref
1049 exception. We don't need to do that on the ok/yes buttons, since they
1053 2009-05-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1055 * ListBox.cs: Handle the key down event in WndProc instead of doing it
1056 in an event handler, as we need to avoid any operation in case
1057 the user has handled it in its own OnKeyDown handler, and this can't
1058 be achieved since our handler would be the first one always.
1059 * FontDialog.cs: Update the calls since our method handling key down
1063 2009-05-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1065 * Application.cs: We should dismiss the active ToolStrip when we
1066 receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
1067 keyboard short cut can be properly processed by another menu item.
1068 Fixes part of #503663.
1070 2009-05-13 Andreia Gaita <avidigal@novell.com>
1072 * HtmlDocument.cs: If the objects are strings, wrap them in ""
1074 2009-05-13 Andreia Gaita <avidigal@novell.com>
1076 * HtmlDocument.cs: Fix InvokeScript call (duh).
1078 2009-05-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1080 * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
1081 * ComboBox.cs: If auto complete is being used, it is needed to update
1082 the actual value of the combo box, doing it immediately if the user
1083 presses Enter, or doing it when our combo box loses focus. Finally,
1084 when handling Enter and Escape keys for the combobox, don't try to
1085 hide the listbox if it is not visible in the first place.
1086 Fixes part of #489339.
1088 2009-05-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1090 * ToolStripDropDownMenu.cs: Use the height returned by
1091 ToolStripItem.GetPreferredHeight to calculate our own height.
1093 2009-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1095 * TreeNode.cs: When setting Checked, do a double null check, since the
1096 current node can still get a null parent handling
1097 TreeView.OnAfterCheck.
1100 2009-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1102 * Control.cs: When assigning ContextMenu, do a null check before
1103 assigning its container field.
1105 2009-05-08 Brad Taylor <brad@getcoded.net>
1107 * DateTimePicker.cs: Add a UIA-specific property to ensure that if
1108 is_checkbox_checked is changed, we won't break.
1110 2009-05-08 Andrés G. Aragoneses <aaragoneses@novell.com>
1112 * ToolStripItem.cs: Prevent NRE when our holder is a
1113 ToolStripDropDownButton and we get Select()ed.
1115 2009-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1117 * ToolStripControlHost.cs: DefaultSize must return the current size of
1118 the Control, not the value returned by GetPreferredSize. Also connect
1119 a handle to the control Resize event, and use it to fire
1120 OnHostedControlReize.
1121 Fixes the remaining bits of #483146.
1123 2009-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1125 * ToolStripDropDown.cs: When performing the layout, use
1126 ToolStripItem.GetPreferredSize ().Height instead of
1127 ToolStripItem.Height, since we are already using it that way in this
1129 Fixes part of ##483146.
1131 2009-05-08 Brad Taylor <brad@getcoded.net>
1133 * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers. Send
1134 OnUIASelectionChanged when ShowCheckbox is true and the checkbox
1135 recieves focus. Part of fix for #502029.
1137 2009-05-06 Mike Gorse <mgorse@novell.com>
1139 * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
1140 Add PerformClick and PerformDoubleClick to PopupButton.
1143 2009-05-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1145 * TabControl.cs: call Focus() to emit GotFocus event at the
1146 proper time when SelectionIndex changes. Fixes #499887.
1148 2009-05-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1150 * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
1151 have valid values, even if BoundSpecified is not including
1152 Size/Height/Width - this is useful when we are in a control using Dock
1154 Fixes part of #483146.
1156 2009-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1158 * ComboBox.cs: When losing the focus, if our textbox is not null,
1159 close its auto complete list, if any.
1160 Fixes part of #489339.
1162 2009-04-27 Andrés G. Aragoneses <aaragoneses@novell.com>
1164 * ListView.cs: Make OnColumnClick +internal to be used by a11y.
1166 2009-04-27 Brad Taylor <brad@getcoded.net>
1168 * ToolStripButton.cs: Emit an internal event when CheckOnClick is
1171 2009-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1173 * XplatUIX11.cs: Properly support UTF8 when handling the
1174 SelectionRequest event - this is helpful supporting some window
1175 managers, such KDE, that explictly request the text in utf8, as
1176 opposed to gnome, that supports ascii.
1179 2009-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1181 * ToolStripDropDownItem.cs: When assigning a new
1182 ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
1183 Capture duties performed by Application/ToolStripManager are handled
1184 nicely and we don't end up in an inconsisten stat.
1187 2009-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1189 * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
1190 any ToolStripDropDownItem when receiving a mouse down event in an
1193 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
1195 * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
1197 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
1199 * ToolBarButton.cs: rename a method to include UIA prefix.
1201 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
1203 * ToolBarButton.cs: change visibility of some UIA methods from
1204 protected virtual to private.
1206 2009-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1208 * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
1209 fire OnDropDownOpened/OnDropDownClosed depending on the new
1210 visibility. This also ensures that any direct access to this instance
1211 will fire the mentioned events for the OwnerItem.
1212 * ToolStripDropDownItem.cs: Remove the invocations to
1213 OnDropDownOpened/OnDropDownClosed, since they are handled in
1214 ToolStripDropDown, as well as updating the
1215 OnDropDownHide/OnDropDownShow calls to be in the right order.
1218 2009-04-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1220 * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any
1221 shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the
1222 event is the same as the owner of the menu item. Also set properly
1223 SourceControl for ContextMenuStrip, as well as add an internal field to
1224 contain the control that owns the ContextMenuStrip (we need to know this
1225 even before the public property is assigned).
1226 Fixes bits of #393775.
1228 2009-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1230 * StatusStrip.cs: Use the same icon as .net when the mouse is over the
1234 2009-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1236 * ComboBox.cs: When calculating the height of the ComboListBox,
1237 specially for the 2.0 profile, use MaxDropDownItems if the
1238 DropDownHeight property hasn't been set, and use the later if it has
1239 been set. This way we support both properties.
1242 2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1244 * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
1247 2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1249 * ContainerControl.cs: Implement support for Control.CausesValidation,
1250 by adding a pending list of controls to be validated in the top
1251 container control, and postpone validation as needed.
1252 Also remove any control in the validation chain in case it gets removed
1253 from its owner before the pending validation actually happens.
1256 2009-04-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1258 * ListBox.cs: The default instance StringFormat field used to draw our
1259 items should use the StringFormatFlags.NoWrap value, so it doesn't try
1260 to put in a different line the text that doesn't fit our bounds, but
1264 2009-04-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1266 * CheckedListbox.cs: When executing OnItemClick check that the index
1267 is different to -1 before trying to retrieve an item using that value.
1268 Fixes a ArgumentOutOfRangeException thrown when the horizontal
1269 scrollbar was visible but not needed, and then a clicked was received
1272 2009-04-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1274 * MaskedTextBox.cs: If Insert is pressed, change the internal
1275 overwrite mode for our default value.
1276 Fixes some bits of #477395.
1278 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1280 * ListView.cs: In EnsureVisible avoid any direct access to items if we
1281 are using virtual mode - otherwise use the bounds stored in a specific
1282 item in a given index. This is specially important when using groups
1283 or when items are re-arranged, since the position in the items
1284 collection can be different than that one being displayed.
1285 Fixes the rest of ##491978.
1287 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1289 * ThemeWin32Classic.cs: Include the previous check for ListView in a
1290 2.0 define as needed.
1292 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1294 * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
1295 Fixes part of #491978.
1297 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1299 * ToolTip.cs: New fields to store the title/icon information.
1300 * ThemeWin32Classic.cs: Implement support for tooltip's title and
1304 2009-04-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1306 * TabControl.cs: When removing a tab that was previously selected, set
1307 internally the value of selected_index to -1, to avoid trying to
1308 access the previous one when trying to set the new one (and was
1309 already removed from the collection). This is what .net seems to do
1313 2009-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1315 * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
1316 separated, and we cannot fallback on Text if Rtf is requested but not
1318 * Clipboard.cs: Actually use the format specified by our user when
1321 2009-03-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1323 * X11Clipboard.cs: Actually look for the RtfText format when calling
1324 GetRftText in our clipboard formats list, instead of using the
1325 generical Text format.
1327 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1329 * TextBox.cs: Process auto completion properly when we are using the
1330 internal source provided by ComboBox, and also remove some repeated
1334 2009-03-30 Tom Hindle <tom-hindle@sil.org>
1336 * DataGridView added Support for Invisible Columns to
1337 AutoFillColumnsInternal method.
1339 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1342 * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
1343 its own file, since it is adding some functionality and thus is not a
1344 simple struct as before.
1345 * XplatUIX11.cs: Add support to store different formats that could
1346 have been specified by the user when puting data in the Clipboard -
1347 this is important when more than one format is supported (such plain
1348 text and rtf text). Update in the needed places, as well as simplify
1352 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1354 * XplatUIX11.cs: When handling the SelectionRequest event, use
1355 SelectionRequestEvent instead of SelectionEvent, so we get the right
1356 data for the app asking for clipboard data. Set the member of
1357 SelectioneEvent.property to indicate the place where we are storing
1358 the information as well - this is specially important for gnome/kde
1359 apps using the TARGETS atom to ask for the supported permission before
1360 actually asking for a specific format.
1363 2009-03-28 Ivan N. Zlatev <contact@i-nz.net>
1365 * DataGridViewCell.cs: We don't support drawing all types of cell borders,
1366 so fallback and at least draw something instead of nothing.
1368 2009-03-27 Ivan N. Zlatev <contact@i-nz.net>
1370 * DataGridView.cs: If the column header isn't visible allow resizing
1371 using the cell column border. Also be sure to reset the cursor properly.
1374 2009-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1376 * ToolStrip.cs: When disposing, iterate over the items in reverse
1377 order, since disposing the items modifies the collection.
1378 * ToolStripItem.cs: Remove from the owner when disposing.
1381 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1383 * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No
1384 longer throws a NotImplementedException.
1385 Based on a patch by Tom Hindle <tom_hindle@sil.org>
1388 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1390 * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws
1391 NotImplementedException.
1393 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1395 * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs:
1396 Fix SortMode clash handling.
1399 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1401 * DataGridView.cs: Do not show the vertical scrollbar if there is only
1402 one row or less. For the sake of MSNET compatibility.
1405 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1407 * DataGridView.cs: When the current cell is moved out of the editing row
1408 be sure to reset it back to a place holder row.
1410 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1412 * DataGridView.cs: If IsHandleCreated and the very first row is added
1413 to the grid in a non-databound scenario - select the first cell.
1416 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1418 * DataGridView.cs: If we are not databound and empty once the first row
1419 gets added select the first cell.
1422 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1424 * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
1425 DataGridView. They do not belong to a DataGridView.
1428 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1430 * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs:
1431 Set indices and associate with DataGridView only after the item is
1432 add to the internal list.
1433 [Fixes part of bug #486645]
1435 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1437 * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount.
1438 FullRowTemplate already contains all the cells.
1439 [Fixes part of bug #486645]
1441 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1443 * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal
1444 to perform Pre and Post removal actions to allow the current cell to be
1445 moved and all events fired properly before the column is removed.
1447 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1449 * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and
1450 Post removal action to allow the current cell to be moved and all events fired
1451 properly before the row is removed.
1453 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
1455 * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
1458 2009-03-18 Jonathan Pobst <monkey@jpobst.com>
1460 * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
1461 placement of popup windows on OSX.
1463 2009-03-18 Matt Guo <matt@mattguo.com>
1465 * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
1468 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
1470 * DataGridView.cs: Implement the CellMouseDoubleClick event.
1473 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
1475 * DataGridView.cs: Fix scrolling to take into account that the
1476 scrollbars are actually inside the client area of the datagridview.
1478 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
1480 * DataGridView.cs: Implement mouse wheel scrolling.
1483 2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
1485 * DataGridView.cs: When DataSource changes the rebinding should happen
1486 not if IsHandleCreated but if BindingContext != null.
1489 2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
1491 * DataGridView.cs: Browsable(false) properties should be skipped when
1492 autogenerating the columns.
1495 2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1497 * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
1498 user should use a different handling, trying to use every pressed char
1499 as a unique and only one prefix to compare against the items. Also,
1500 refactor some input check code to avoid duplication.
1503 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
1505 * DataGridViewCell.cs: In OwningColumng Handle invalid column index
1509 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
1511 * DataGridViewBand.cs: Update our State whenever a property changes.
1512 * DataGridView.cs: Don't be so generous in reseting Displayed, because
1513 it will spawn lots and lots of unneeded State changed events.
1516 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
1518 * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs:
1519 Add support for invisible rows and columns.
1522 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
1524 * DataGridViewCell.cs: Escape literal { in ToString.
1525 * DataGridViewTextBoxCell.cs: Fix ToString.
1528 2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1530 * MenuAPI.cs: When navigating items using the keyboard properly handle
1531 the case when no item is selected - this way we should try to select
1532 the first or the last item depending on the direction, but no the
1533 second or third one, etc.
1535 2209-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1537 * Form.cs: When calling ProcessCmdKey, just after checking for any
1538 MainMenu, check if there's an active ContextMenu that is *not* owned
1539 by the form - this is needed when a non-focusable control owns a
1540 ContextMenu but its ProcessCmdKey method can't be called since it
1541 can't receive any input.
1544 2009-03-13 Neville Gao <nevillegao@gmail.com>
1546 * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
1547 * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
1548 ContextMenu is displayed.
1550 2009-03-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1552 * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
1553 WM_HELP message for the associated window, don't call
1554 NativeWindow.WndProc *at all*, since this could send a WM_*
1555 key-related to Control.WndProc. Also, return the keypress message, in
1556 case it needs to be preprocessed for any menu.
1559 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
1561 * DataGridView.cs: When removing the first displayed row and moving
1562 the current cell up one we must invalidate the first displayed row
1563 index before calculating the row heights, etc.
1566 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
1568 * DataGridView.cs: Fix three column bugs:
1569 - Rows should be cleared (but not removed) if columns become 0.
1570 - The current cell should get moved
1571 - ColumnCount increase was adding too many columns.
1573 2009-03-07 Ivan N. Zlatev <contact@i-nz.net>
1575 * DataGridView.cs: Fix RowCount decrease which wasn't working well
1576 in both scenarions - with and without editing row.
1578 2009-03-06 Ivan N. Zlatev <contact@i-nz.net>
1580 * DataGridView.cs: Be compatible with MS in that the scroll to
1581 selection has a synchronous effect. The trick here is that in
1582 order to avoid unnecessary calculations each time a row/column
1583 is added/removed we recalculate the whole grid size just before
1584 just before the scroll to selection.
1587 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1589 * RichTextBox.cs: LoadFile(string path) should pass by default
1590 RichTextBoxStreamType.RichText, without caring about the detection or
1591 extension of the file.
1593 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1595 * RichTextBox.cs: When calling LoadFile, remove the extra EOL
1596 introduced by StreamReader, since it will convert the EOF to an EOL.
1599 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
1601 * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
1602 preferred size twice.
1604 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
1606 * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
1607 string if we aren't on a ToolStripDropDownMenu.
1609 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
1611 * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
1612 code from Item to Button. Patch from Alex Shulgin.
1614 2009-03-05 Jonathan Pobst <monkey@jpobst.com>
1616 * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
1617 * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
1618 not a ToolStripDropDown.
1619 * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
1621 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
1623 * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
1625 Based on a patch by Tom Hindle <tom_hindle@sil.org>
1628 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
1630 * DataGridView.cs, DataGridViewElement.cs:
1631 - Always calls OnDataGridViewChanged() if the new DGV is
1632 not the same/null as the current one.
1633 - Do not throw NREs when setting TopLeftHeaderCell to null
1634 - Unset the DGV for TopLeftHeaderCell when replacing it
1635 Based on a patch by Tom Hindle <tom_hindle@sil.org>
1638 2009-03-04 Jonathan Pobst <monkey@jpobst.com>
1640 * ToolStripDropDown.cs: When dismissing control due to ESC, don't
1641 hit a NRE if we are a ContextMenuStrip and do not have a parent.
1644 2009-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1646 * ListView.cs: When removing items from a ListViewItemCollection
1647 contained in ListView (not in ListViewGroup), before actually removing
1648 the items remove them also from their -if any- associated groups. If
1649 the item is present in ListViewGroup.Items but not in ListView.Items,
1650 then don't remove it - this is *exactly* what .net seems to do.
1651 Fixes the remaining bits of #478689.
1653 2009-02-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1655 * ListView.cs: In our MouseDown handler in ItemControl use the item in
1656 the very specific *real* position where the mouse was pressed, using
1657 GetItemAtDisplayIndex for that purpose, instead of directly accessing
1658 Items - this is specially useful when groups with Details view is
1659 used. This is what we do in other places when using groups.
1660 Fixes part of #478689.
1662 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1664 * MaskedTextBox.cs: Properly replace selection when a new valid key
1665 is pressed - even when IsOverwriteMode is false. This is what .net
1668 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1670 * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
1671 true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace,
1672 since Set will keep the previous value in case of error (just what we
1673 need), but still call MaskedTextProvider.Clear if
1674 RejectOnFirstFailure is false - match .net.
1676 2009-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1678 * MaskedTextBox.cs: When setting Text use the very precise algorithm
1679 that .net uses: iterate over every char of the new value, trying to
1680 use every char, and use a normal call to MaskedTextProvider.Replace
1681 call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected
1682 in case of error in both cases, as well.
1685 2009-02-25 Neville Gao <nevillegao@gmail.com>
1687 * ColorDialog.cs: Added UIA Framwork Property:
1688 UIASelectedSmallColorControl.
1690 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1692 * MaskedTextBox.cs: Forgot to update the call of the new method
1693 introduces in the previous patch.
1695 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1697 * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
1698 key. Also create a new method to avoid code duplication between
1699 OnKeyDown and OnKeyPress.
1702 2009-02-24 Ivan N. Zlatev <contact@i-nz.net>
1704 * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected
1708 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1710 * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
1711 actually inversed, so put it the right way. Also, don't automatically
1712 look for the next editable item after adding a new one, but way for
1713 the next insertion (this is what .net does) - this is not needed when
1714 MaskedTextProvider.InsertAt is called however, since it already looks for the
1715 next editable position.
1716 Fixes the remaining bits of #477383.
1718 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1720 * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
1721 MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
1722 property after the text was modified, adjust the testPosition value
1723 depending on what method was called.
1724 Fixes part of #477383.
1726 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1728 * ListView.cs: For EnsureVisible, adjust the view port bounds based on
1729 the existence of the column headers, as well as using this information
1730 to adjust the vscrollbar value, so items never get hidden by the
1734 2009-02-23 Ivan N. Zlatev <contact@i-nz.net>
1736 * DataGridView.cs: Make the ScrollBars property work properly.
1738 2009-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1740 * TextBox.cs: Some code lifting for AutoComplete's support. First,
1741 when handling non-navigation keys, save the original Text typed by the
1742 user, and don't motify it BEFORE. This was a design mistake, since the
1743 re-assignation happens only when navigating the append/suggest list,
1744 not while creating the matches. Also, process the Delete key just like
1745 the backspace one. Finally, when handling WM_CHAR, ignore both Escape
1747 Fixes some missing bits of #469967.
1749 2009-02-22 Ivan N. Zlatev <contact@i-nz.net>
1751 * DataGridView.cs: Fix row removal in the data-bound scenario.
1753 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
1755 * DataGridViewCell.cs: Use strict equality comparison in order to
1756 prevent superfluous CellValueChanged events.
1758 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
1760 * DataGridView.cs: Do not reset the columns when the data list changes,
1761 but only the rows. Fixes multiple bugs related to sorting, custom
1762 column styles being reset and more.
1764 2009-02-19 Jonathan Pobst <monkey@jpobst.com>
1766 * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
1769 2009-02-18 Andrés G. Aragoneses <aaragoneses@novell.com>
1771 * ToolBarButton.cs: Oops, use the correct event (fix r127298).
1773 2009-02-17 Andrés G. Aragoneses <aaragoneses@novell.com>
1775 * ToolBarButton.cs: Event for Enabled property (needed to fix
1778 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1780 * TextBox.cs: When handling WndProc with autocomplete activated,
1781 event if the new text is not causing any change in the look up
1782 algorithm, save it as we normally do when numbers and letters.
1785 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1787 * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
1788 Invalidate the proper bounds in the TreeView, not only resetting the
1792 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1794 * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
1795 BackColor property. This is what .net does in both 1.1 and 2.0.
1796 * TreeView.cs: When selected_node is not the same as highlighted_node,
1797 we need to handle the back color in a different way, trying to use the
1798 node's BackColor if it's not Color.Empty.
1801 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1803 * TreeView.cs: When canceling selection in our MouseUp handler,
1804 invalidate also the previous selected node bounds.
1807 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
1809 * DataGridView.cs: End or if end fails then cancel the current edit
1810 operation before clearing the data source.
1812 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
1814 * DataGridView.cs: Data-bind only after the handle is created.
1817 2009-02-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1819 * TreeView.cs: When handling the MouseMove event, check if
1820 focused_node and selected_node fields are null - usually they are non
1821 null, since we have always a selected node, but canceling selection by
1822 handling BeforeSelect event leaves the two of them as null.
1825 2009-02-06 Neville Gao <nevillegao@gmail.com>
1827 * TabControl.cs: Control enabled to support accessibility.
1830 2009-02-05 Ivan N. Zlatev <contact@i-nz.net>
1832 * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation:
1833 - Use ArrayList.Insert instead of the Item property so that the item
1834 is actually inserted and not an existing item replaced.
1835 - Call DataGridView.OnRowsAddedInternal and drop internal from
1836 OnRowsAdded for binary compitability. This also fixes several
1840 2009-02-05 Andrés G. Aragoneses <aaragoneses@novell.com>
1842 * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
1845 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1847 * ToolBarButton.cs: Add another event (OnUIATextChanged).
1849 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1851 * ToolBarButton: Fix typo in previous commit (r125704).
1853 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1855 * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
1856 when a button gets focus, firing the events from the ToolBar.
1859 2009-02-04 Mario Carrion <mcarrion@novell.com>
1861 * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting
1863 * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
1864 ColumnHeader to raise ColumnWidthChanged.
1867 2009-02-03 Ivan N. Zlatev <contact@i-nz.net>
1869 * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion
1870 code in the row collection code, so that the completion happens before
1871 the CollectionChanged event, also better encapsulation.
1874 2009-02-02 Ivan N. Zlatev <contact@i-nz.net>
1876 * DataGridView.cs: When editing is finished do not remove the editing
1877 row, because it has already become a real one. Instead add a new one.
1880 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1882 * TreeView.cs: When drawing the node's image, check that the index
1883 specified by the node is valid for the ImageList.
1886 2009-02-02 Andrés G. Aragoneses <aaragoneses@novell.com>
1888 * ToolBar.cs: Add new UIAPerformClick method to be called by
1889 UIAutomationWinforms when someone calls Invoke() on the
1890 ToolBarButtonProvider. r: jpobst
1892 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1894 * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
1895 MapNotify/UnmapNotify events - we are already firing those events in
1896 the proper places, so we avoid this way to send the same message two
1897 times. I'm leaving the handling code in case we could break something
1898 in the future, as this change seems dangerous (but needed).
1901 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
1903 * DataGridView.cs: Complete incomplete rows when they are added to
1907 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
1909 * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the
1910 binding is cleared prior to setting it to null. Fixes a regression
1911 causing exceptions when the DataSource is set to null and then set
1912 again to a data source.
1914 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
1916 * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs:
1917 - Make Image/Bitmap cells work.
1918 - Handle images with size greater than the cell.
1919 - Default to MiddleCenter alignment for image cells.
1922 2009-01-30 Ivan N. Zlatev <contact@i-nz.net>
1924 * UpDownBase.cs: Force Height to PreferredHeight.
1926 2009-01-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1928 * XplatUIX11.cs: We should use utf8 handling clipboard transference
1929 with other x11 applications, and use utf16 when handling clipboard
1930 data in the class library. Update the related points as well.
1933 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
1935 * DataGridViewCell.cs: Format strings according to the supplied
1939 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
1941 * DataGridView.cs: Reset the hover cell if it gets moved due to row(s)
1942 addition or removal. Fixes multiple crashes in OnMouseMove.
1944 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
1946 * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
1948 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
1950 * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the
1954 2009-01-26 Andreia Gaita <avidigal@novell.com>
1956 * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
1957 won't be disabled by default.
1960 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
1962 * DataGridView.cs: Do not clear the rows if we are not databound.
1964 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
1966 * DataGridView.cs: Do not be too smart about selecting the first cell
1967 when the first row is added as this is not what MS does. Fixes the
1970 2009-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1972 * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
1973 take into account the fact that OpenTreeNodeEnumerator needs to call
1974 MoveNext/MovePrevious to actually put the passed node as the one
1975 retrieved in Current. This way this property should work as really
1977 Fixes part of #467225.
1979 2000-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1981 * TreeView.cs: When calculating the scrollbars, don't use
1982 TreeNode.Bounds, since it still can have the values of the previous
1983 -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1984 could not have been updated as well-, and use the actual number of
1985 visible number of nodes to compute the height needed to contain all
1986 the nodes. Also reset the value of vbar to 0 when disabled - this way
1987 we make sure that, when re-enabled, it will update the visible area of
1988 the treeview, even if the previous value before disabling it is the
1989 same as now. Finally don't do anything for the vbar.ValueChanged
1990 handler - for the case wheer we manually set the value but don't the
1991 vbar is disabled already.
1992 Fixes part of #467225.
1994 2009-01-23 Jonathan Pobst <monkey@jpobst.com>
1996 * ToolStrip.cs: Switch from foreach to for, in case the collection
1997 somehow changes while enumerating it.
1999 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
2001 * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no
2004 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
2006 * DataGridView.cs: Fix new row adding/editing in the non-databound
2009 2009-01-21 Mike Gorse <mgorse@novell.com>
2011 * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
2013 Added UIAValueParamChangedEvent.
2015 2009-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2017 * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
2018 of trying to set as top node the highest parent of the previous top
2019 node. Moving to the bottom of the TreeView after a call to CollapseAll
2020 is exactly what .net does. This should avoid some nasty issue when
2021 CollapseAll is called and we don't need the vertical scroll bar.
2023 2009-01-21 Mario Carrion <mcarrion@novell.com>
2025 * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
2026 and UIATopMostChanged.
2028 2009-01-21 Sandy Armstrong <sanfordarmstrong@gmail.com>
2030 * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
2031 UIAEnabledChanged, and UIATextChanged events.
2033 * Form.cs: Add UIAMenuChanged event.
2036 * MenuAPI.cs: Note which internal APIs are being used by UIA.
2038 2009-01-21 Neville Gao <nevillegao@gmail.com>
2040 * ToolBar.cs: Control enabled to support accessibility.
2043 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2045 * TreeView.cs: When handling mouse up event, check whether
2046 highlighted_node is null or not - usually it should be non-null
2047 alwaays, since the mouse down handler sets it, but some externa
2048 operations, such TreeNodeCollection.Clear, could set it to null.
2051 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
2053 * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu
2056 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
2058 * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
2061 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2063 * MonthCalendar.cs: When handling the selection changes using the
2064 mouse, don't set SelectionRange if the selection range didn't actually
2065 change. This matters because, even if we set the range to the same
2066 previous range, an extra DateChanged event is fired. Just to be clear:
2067 SelectionRage property doesn't check whether the new value is
2068 different to the previous one (by ref equals doesn't work here).
2069 Fixes other bits of #364914.
2071 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2073 * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
2074 selection using the keyboard, since we are already firing this event
2075 when setting SelectionRange. Also don't set SelectionRange if the
2076 previous and the new value are the same (the property, just as .net
2077 does, doesn't check whether the previous value and the new one are the
2078 same). This saves us from firing OnDateChanged event if the selection
2079 range didn't change actually.
2080 Fixes the remaining bits of #364914.
2082 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2084 * ListBox.cs: When removing an item and the last item is selected,
2085 remove it from the selection, and if selection mode is One try to
2086 select the new last item.
2089 2009-01-16 Mike Gorse <mgorse@novell.com>
2091 * Splitter.cs: Make MaxSize internal so that UIA code can use it.
2093 2009-01-16 Mario Carrion <mcarrion@novell.com>
2095 * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged
2098 2009-01-16 Carlos Alberto Cortez <calberto.cortez@ggmail.com>
2101 * XplatUIX11.cs: Properly encode/decode the unicode strings we
2102 store/retrieve in the Clipboard. Also, since we try to convert the
2103 data to different formats, separate the source and the result of
2104 it, so we can always fallback to the original and don't mix wrong
2107 2009-01-16 Mike Gorse <mgorse@novell.com>
2109 * TextControl.cs: Add UIASelectionChanged event.
2111 2009-01-16 Ivan N. Zlatev <contact@i-nz.net>
2113 * DataGridView.cs: Forward the first key events to the editing control.
2116 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
2118 * Application.cs: Oops, launch the copied handler of PreRun instead of
2119 the global one (gendarme would bark otherwise). (Improving r123375)
2121 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
2124 * Application.cs: Move the PreRun event fire to the end of the XplatUI
2125 static ctor (we don't move the PreRun event to this class because its
2126 usage would cause the call to the static ctor). This way we can get
2127 a11y support for dialogs that run without App.Run.
2129 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
2131 * ListView.cs: New internal property to know the inner array's length of
2132 the location of items, in order to avoid a try-catch strategy for the
2133 case when this array has not been resized yet (for reference, look at
2136 2009-01-13 Andrés G. Aragoneses <aaragoneses@novell.com>
2138 * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
2139 reflection calls. This requires UIAutomationWinforms r123213.
2141 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2143 * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
2144 handlers and fire the DateSelected event until MouseUp is reached,
2145 like .net does, instead of firing it for each mouse event.
2146 Fixes part of #364914.
2148 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2150 * TreeView.cs: When the selection gets canceled using the BeforeSelect
2151 event, invalidate the previous highlighted_node bounds, to show the
2152 user that the item was *not* selected.
2155 2009-01-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2157 * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
2158 well as -in DropDown and Simple modes- writing in the textbox should
2159 try to set the requested item as the top one, but navigating with the
2160 keyboard and handling mouse selection don't need that behaviour. Also,
2161 when resetting selected_index handling key press events, reset
2162 ComboListBox.HighlightIndex.
2163 Fixes the remaining bits of #464188.
2165 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
2167 * DataGridView.cs: Fix crashes when shortcut keys are pressed, but
2169 - CurrentCellAddress should be -1, -1 and not 0, 0.
2170 - Be tolerant and fall back to clearing the current cell if either
2171 column or row is -1 in MoveCurrentCell.
2172 - Misc. more -1 checks.
2174 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
2176 * DataGridView.cs: Preserve the column index. Fixes a regression
2177 introduced by the data binding position tracking code.
2179 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
2181 * DataGridView.cs: If the bottom of the row matches the client height
2182 do not regard the row as partially visible. Fixes the weird scrolling
2183 when there is no scrollbar.
2185 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
2187 * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
2189 2009-01-09 Mario Carrion <mcarrion@novell.com>
2191 * MessageBox.cs: Fixed internal UIAIconRectangle property.
2193 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2195 * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
2197 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2199 * DataGridView.cs: Track the Position in the CurrencyManager.
2201 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2203 * DataGridView.cs: Implement data-bound new item editing/addition.
2204 * DataGridViewRowCollection.cs: Make it possible for us to internally
2205 remove the edit row.
2206 [Fixes bugs #457107, #457308, #325240]
2208 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2210 * CurrencyManager.cs: Even if Position is set to a greater value than the
2211 list count reset it to position of the last item.
2213 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2215 * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList.
2216 Fix that in order to make CancelNew to work.
2218 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2220 * BindingSource.cs: When adding a new item try to delegate to the internal
2221 list first before throwing an exception.
2223 2009-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2225 * ComboBox.cs: When setting the text and adjusting the top_item, do it
2226 *only* if the current item is *not* visible already.
2227 Fixes part of #464188.
2229 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2231 * DataGridView.cs: Requesting the CurrencyManager for the first time can
2232 lead to unexpected OnBindingContextChanged calls and recursive rebinding.
2236 2009-01-08 Brad Taylor <brad@getcoded.net>
2238 * ComboBox.cs: Expose a few private fields as internal UIA properties.
2240 2009-01-07 Mario Carrion <mcarrion@novell.com>
2242 * DataGrid.cs: CWL removed.
2244 2009-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2246 * RadioButton.cs: When setting Checked, we should first update the
2247 check state of the current RadioButton, as well as invalidating it,
2248 and after that actually update the siblings. This is done to match
2250 Fixes the remaining bits of #463028.
2252 2009-01-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2254 * RadioButton.cs: Setting Checked to false should set TabStop to stop
2255 as well. Also, when we get the focus and no other RadioButton is
2256 selected in the parent control, we should mark ourselves as Checked.
2257 Fixes part of #463028.
2259 2009-01-05 Mario Carrion <mcarrion@novell.com>
2261 * DataGrid.cs: UIA suppport. internal events:
2262 UIAGridCellChanged, UIAColumnsHeadersVisibleChanged,
2263 UIASelectionChanged, UIACollectionChanged. Internal properties:
2264 UIARowHeight, UIACellsArea, UIACaptionArea,
2265 UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle,
2266 UIAVScrollBar and UIAHScrollBar.
2268 2009-01-05 Jonathan Pobst <monkey@jpobst.com>
2270 * ToolStripSplitStackLayout.cs: Enable the overflow button if any
2271 of the buttons are set to Overflow = Always.
2274 2009-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2276 * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
2277 based on whether the binding source is availble or not. Fixes #463008.
2279 2009-01-03 Ivan N. Zlatev <contact@i-nz.net>
2281 * DataGridViewCell.cs: We should return a value even if we are not bound
2284 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2286 * CurrencyManager.cs, DataGrid.cs:
2287 - Rename CanAddRows to AllowNew. The CurrencyManager has no
2289 - Add two more internal properties AllowRemove and AllowEdit.
2290 * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows,
2291 AllowUserToDeleteRows and cell ReadOnly state to be also checked against the
2292 CurrencyManager data source.
2294 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2296 * DataGridView.cs: Fix crashes caused by assigning negative values to
2297 ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than
2298 the column/row heights/widths.
2301 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2303 * DataGridView.cs: Non-autogenerated columns that have a data property
2304 set that exists in the current datasource should be set to be data-bound.
2306 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2308 * DataGridView.cs: Fix column sorting for columns containing null
2309 values. A "null" value is not always "null" (e.g could be String.Empty)
2310 and thus parsing numeric types throwed an exception for "null" values.
2312 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2314 * DataGridView.cs: Detach the editing control when the edit is
2317 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2319 * DataGridView.cs: Multiple fixes to handle last column/row removal
2320 and cell movement after that instead of throwing exceptions.
2322 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2324 * DataGridViewCellCollection.cs: When cells are removed the column
2325 indices become invalid if the cell is not the last one and have to
2328 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2330 * DataGridView.cs: Return false in CommitEdit if there was an error.
2332 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2334 * DataGridView.cs: Remove a leftover Console.WriteLine.
2336 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2338 * DataGridViewRow.cs: Access the indexer of the data manager directly
2339 instead of the internal list.
2341 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2343 * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs:
2344 Rewrite the value getting, setting, parsing, formatting logic:
2345 - If data-bound value get/set should actually get and set from the
2347 - Make proper usage of TypeConverters for value parsing/formatting.
2348 - Raise DataError if setting the new value fails.
2349 - Get rid off the internal valueType field and get/set the ValueType
2353 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2355 * DataGridView.cs: Rewrite the DataBinding layer:
2356 - Get rid off all BindingSource/IBindingList/DataSet/DataTable
2358 - Get rid off the per DataSource type column autogeneration code.
2359 - Use the CurrencyManager for everything that is DataBinding related.
2361 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2363 * CurrencyManager.cs: Do not fire duplicate ListChanged events.
2365 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
2367 * DataGridView.cs, DataGridViewRow.cs: Add a new internal property
2368 DataManager to fetch the CurrencyManager for the DataGridView and to
2369 spare this logic for the other components to follow.
2371 2008-12-31 Mario Carrion <mcarrion@novell.com>
2373 * MessageBox.cs: UIA support: new properties: UIAMessage,
2374 UIAMessageRectangle and UIAIconRectangle.
2376 2008-12-31 Sandy Armstrong <sanfordarmstrong@gmail.com>
2378 * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
2379 and DirComboBox.DirComboBoxItem.ToString override for UIA support.
2381 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
2383 * DataGridView.cs: Do not autogenerate duplicate column for a
2384 data member that has already problematically been assigned one.
2387 2008-12-30 Jonathan Pobst <monkey@jpobst.com>
2389 * ProfessionalColorTable.cs: Better detection of user's theme.
2392 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
2394 * DataGridView.cs: In the case where there are no autogenerated
2395 columns and the user adds columns problematically we must generate
2396 the rows after the very first column is added.
2398 2008-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2400 * DateTimePicker.cs: When increasing/decreasing the value of month
2401 with ShowUpDown set to true, moving from december to january, and
2402 moving from january to december should adjust the year to the next and
2403 the previous year, respectively.
2404 Fixes the remaining bits of #459674.
2406 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
2408 * DataGridView.cs: If a new cell is selected edit mode should be
2409 immediately enabled only if EditOnEnter is set. Whether the mouse
2410 or not was used to select the cell is irrelevant.
2412 2008-12-29 Ivan N. Zlatev <contact@i-nz.net>
2414 * DataGridView.cs: Remove a bogus ReBind call, which was causing
2415 recursive rebinding.
2417 2008-12-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2419 * DateTimePicker.cs: Handle the "MMMM" month format.
2422 2008-12-23 Ivan N. Zlatev <contact@i-nz.net>
2425 - Make ReBind private and refactor various calls to call ReBind
2426 instead of ClearBinding/DoBinding
2427 - Rebind when the column collection changes
2428 * DataGridViewColumnCollection.cs:
2429 - Leave the rebinding on change to be handled by the DataGridView.
2431 2008-12-23 Jonathan Pobst <monkey@jpobst.com>
2433 * DataGridView.cs: Add a ReBind convenience method.
2434 * DataGridViewColumnCollection.cs: Rebind when a column is added.
2437 2008-12-23 Neville Gao <nevillegao@gmail.com>
2439 * StatusBar.cs: Modified argument variable.
2440 * SplitContainer.cs: Control enabled to support accessibility.
2443 2008-12-22 Jonathan Pobst <monkey@jpobst.com>
2445 * ToolStripMenuItem.cs: Guard against an NRE.
2448 2008-12-22 Mario Carrion <mcarrion@novell.com>
2450 * Control.cs: AccessibleXXXX properties don't return
2451 AccessibleObject.XXXX, instead a local referece is returned.
2453 2008-12-22 Neville Gao <nevillegao@gmail.com>
2455 * PrintPreviewControl.cs: Added internal properties to support
2459 2008-12-19 Mario Carrion <mcarrion@novell.com>
2461 * Control.cs: Reverted r121561.
2463 2008-12-19 Andrés G. Aragoneses <aaragoneses@novell.com>
2465 * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
2466 it has been moved to the bridge.
2468 2008-12-18 Brad Taylor <brad@getcoded.net>
2470 * DateTimePicker.cs: Add a few UIA specific events, and a couple
2471 internal methods useful for UIA.
2473 2008-12-18 Mario Carrion <mcarrion@novell.com>
2475 * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
2478 2008-12-17 Mike Gorse <mgorse@novell.com>
2480 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
2481 item's Focused property is set.
2483 2008-12-17 Sandy Armstrong <sanfordarmstrong@gmail.com>
2487 * TreeNodeCollection.cs: Add events for UIA support:
2488 UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
2489 UIACollectionChanged.
2491 2008-12-17 Bill Holmes <billholmes54@gmail.com>
2493 * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
2494 SubItemStyle member field.
2496 Contributed under MIT/X11 license.
2498 2008-12-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2500 * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
2501 y coord, since it's useless in this case, and we need to rely only on
2502 the number of rows and ItemHeight to compute this value.
2503 Fixes part of #257471.
2505 2008-12-15 Mike Gorse <mgorse@novell.com>
2507 * StatusBar.cs: Send OnUIACollectionChanged in Remove().
2509 2008-12-15 Mario Carrion <mcarrion@novell.com>
2511 * Control.cs: Accessibility properties instantiate AccessibilityObject when
2515 2008-12-15 Brad Taylor <brad@getcoded.net>
2517 * ToolStripItem.cs: Add a UIA specific event for listening for when a
2518 ToolStripItem becomes selected or deselected.
2520 2008-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2522 * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
2523 .net does. Use the date in the point of the mouse move coords as the
2524 new range as well, if the left button of the mouse is being pressed.
2527 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2529 * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
2530 MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
2531 effectively repaint the control.
2532 Fixes the remaining bits of #417961.
2534 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2536 * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
2537 range to contain only dates within the new possible range.
2538 Fixes part of #417961.
2540 2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2542 * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
2543 length of the text, but the end position, so we need to substract 1 to
2544 have a valid value. Also, in the same InputText method, don't use
2545 SelectionLength as the length of the text, since the selected text
2546 could actually be empty, but we need to set the value anyway.
2549 2008-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2551 * TextBox.cs: Don't do any auto complete task if the custom source is
2552 null or empty. Also avoid duplication of code.
2555 2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
2557 * DataGridView.cs: Refresh column sizes when new rows are added.
2560 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2561 * RichTextBox.cs: When parsing the contents of a rtf file, don't call
2562 Split to create a line - we are already doing this, by _adding_ a new
2563 one when rtf_cursor_x is 0 (this field gets this value just after we
2564 receive the newline param as true). This avoids having a proportional number
2565 of empty lines in the end of the rich text box.
2568 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2570 * RichTextBox.cs: When saving the contents as a plain text, don't add
2571 a new line for every Line structure, since the data in Document
2572 already contains the new line characters. This avoids duplicated new
2573 lines using the Save methods.
2576 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
2578 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
2579 framework. Fixes bug #457678.
2581 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2583 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
2584 where datasource is null.
2585 [Fixes exception reported in bug 441240]
2587 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2589 * DataGridView.cs: EndEdit validation fixes.
2591 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2593 * DataGridView.cs: This is the cool patch that adds support for
2594 actually updating the data in the databinding backend after editing.
2595 With bonus firing and handling the DataError event.
2597 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2599 * Line.cs: When calculating the text tags's Shift value, store it as
2600 pixels instead of points. This way we can actually handle different
2601 fonts in the same RichTextBox, as well as the right size of the caret.
2602 Fixes part of #351938.
2604 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2606 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
2607 casted to CheckState causing InvalidCastExceptions.
2609 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2611 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
2612 to not depend on the item being clicked.
2614 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2616 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
2617 longer throws a NotImplementedException.
2619 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2621 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
2622 IDataGridViewEditingControl for editing.
2624 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2626 * DataGridViewComboBoxCell.cs: Implement data binding support.
2628 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2630 * DataGridView.cs: Use the CurrencyManager to update the data source
2631 binding position instead of casting the data sourcde to BindingSource.
2632 This enables position updating for other type of data sources.
2634 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2636 * ComboBox.cs: Update the SelectedIndex before updating the Text
2637 in OnDisplayMemberChanged.
2639 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
2641 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
2644 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2646 * DataGridView.cs: Sorting fixes:
2647 - Be strict when sorting is enabled.
2648 - If there is a data source delegate the sorting request.
2650 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2652 * Binding.cs: When converting the data also try with the destination
2653 type typeconverter. This indirectly adds support for Nullable types
2654 in our databinding layer.
2656 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2658 * DataGridView.cs: When cell editing is finished focus back the
2659 DataGridView. Fixes keyboard navigation post-editing.
2661 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2663 * DataGridView.cs: Fix the cell editing by delaying the currentCell
2664 setting to after EndEdit is called for the old cell.
2666 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2668 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
2670 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2672 * XplatUIX11.cs: Send WM_HELP only to the focused window.
2674 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2676 * CurrencyManager.cs: Fix exceptions when resetting the data source
2677 for the same time (e.g. in ComboBox):
2678 - Do not set the list position if we are still transferring data
2679 - When resetting the list firstly push the data then update the
2681 * Binding.cs: Check BindingManager.Position == -1 instead of
2682 BindingManager.Current == null in order to avoid unexpected
2685 2008-12-05 Brad Taylor <brad@getcoded.net>
2687 * MonthCalendar.cs: Add UIA specific events so that we can know when
2688 the selection changes, and when MaxSelectedCount changes.
2690 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2692 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
2695 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2697 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
2698 to the control being drawn for the first time by:
2699 - Implement DisplayedRowsCount to not rely on the control being
2700 already painted. Also added support for the partial row flag.
2701 - Fix scrolling to take into account partial rows and scroll to
2705 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2707 * DataGridView.cs: Do not reset the CurrentCell when the handle is
2708 created if the user has already set it.
2710 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2712 * DataGridView.cs: Fix CurrentCell to actually select the cell.
2714 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2716 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
2717 text and then let the underneath users of IDataObject interpret and
2718 parse by themselves.
2721 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2723 * DataGridView.cs: Fix my previous commit to actually update what it
2726 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2728 * DataGridView.cs: Ensure that when a row is removed the all the
2729 current row/column/cell get updated. Fixes multiple exceptions.
2731 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2733 * DataGridView.cs: Fix scrolling to the current cell when key navigation
2737 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2739 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
2740 * DataGridViewCell.cs: Set the cell as selected prior to setting the
2742 [Fixes issue 1 in bug #443560]
2744 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2746 * DataGridView.cs: Invalidate after the current row/column seletion
2750 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2752 * DataGridView.cs: Refresh the data if the data list is reset, etc.
2754 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2756 * DataGridView.cs: Handle datasource state changes:
2757 - IBindingList - list changes
2758 - BindingSource - list changed and datasource changes
2760 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2762 * DataGridView.cs: Select the first cell when databound.
2763 Visually select when CurrentCell is set.
2765 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2767 * DataGridView.cs: Set the current cell before raising CellClick.
2769 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2771 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
2772 CellLeave events as this is already done in SetCurrentCellAddressCore.
2774 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2776 * DataGridView.cs: Set the minimum size for the columns to be the
2777 width of their header, so that the columns don't get squashed
2780 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2782 * DataGridView.cs: After the data is bound PerformLayout, so that
2783 the columns get autosized.
2785 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2787 * DataGridView.cs: Move all currentCell setting code into
2788 one central place - SetCurrentCellAddressCore. That way the
2789 current cell is properly updated when programatically set.
2790 Fire RowEnter/Leave events.
2792 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2794 * DataGridView.cs: Update the CurrencyManager.Position, so that
2795 when a BindingSource is used BindingSource.Current will be correct.
2797 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2799 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
2800 - No caption text is drawn because Color.Empty is used.
2801 - Fix top and height off by 1.
2803 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2805 * DataGridViewRow.cs: Implement DataBoundItem.
2807 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2809 * BindingSource.cs: Return null for Current if there is no data present.
2811 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2813 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
2814 menus using the arrow keys. Also when handling the left arrow key, don't
2815 assign the current menu to the parent one, if the parent is null.
2818 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
2820 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
2823 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2826 * ScrollableControl.cs: Simplify the code to manually set the size of
2827 the thum area, avoiding duplication of code, and also preserving the
2828 right value for different code paths - this can happen when size
2829 changes are made to the scrollbar after setting LargeChange, Maximum
2830 or related properties for the ScrollBar.
2832 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2834 * ScrollableControl.cs: When scrolling, don't invalidate the entire
2835 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
2836 what .Net does: copy the visible area, and only invalidate the part of
2837 the area that wasn't visible before scrolling.
2840 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
2842 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
2843 can clear ourselves when it is raised, we don't have a newrowindex
2844 if we don't have any columns.
2845 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
2846 re-index after each delete so the NewRow will have the correct index.
2849 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
2851 * Form.cs: Don't change min/max size if it is empty.
2854 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2857 * ScrollableControl.cs: When the manual thumb size is used, the
2858 maximum allowed value should depend on that thumb size, instead of
2859 LargeChange (using the maximum - LargeChange + 1 value). But
2860 LargeChange should be used normally when incrementing/decrementing.
2861 Fixes the remaining part of #441546.
2863 2008-11-23 Andreia Gaita <avidigal@novell.com>
2865 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
2866 until an about:blank has been loaded (according to spec). Fix
2867 ScrollbarsEnabled to set when a document is loaded (since we use js
2868 for it). Fix url so it reflects the current loading document and not
2869 the previous one. Send StatusChanged events.
2871 2008-11-23 Andreia Gaita <avidigal@novell.com>
2873 * Application.cs: If a message comes in for an embedded control
2874 (like webbrowser) when we're capturing the keyboard, release the
2875 capture and continue.
2878 2008-11-22 Andreia Gaita <avidigal@novell.com>
2880 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2882 2008-11-21 Andreia Gaita <avidigal@novell.com>
2884 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2886 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2889 * ScrollableControl.cs: Set manually the thumb size for the
2890 ScrollableControl scrollbars, so any further changes to the underneath
2891 scrollbars respect the original size.
2892 Fixes part of #441546.
2894 2008-11-21 Geoff Norton <gnorton@novell.com>
2896 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
2897 PlatformID.MacOSX now exists.
2899 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
2901 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
2902 Having something internal abstract isn't very nice for people who want
2903 to inherit from this class.
2905 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
2907 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
2908 invalid value. Just return null for the Image, and use the ImageList's
2909 ImageSize for calculations.
2911 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
2913 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
2914 through DroppedDown so the proper events get called and state gets reset.
2917 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
2919 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
2920 the collection is modified.
2922 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
2924 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
2925 aren't always correct, and fixing them for every case is not worth the
2926 negligible benefit they provide.
2929 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
2931 * DataGridView.cs: We should never add actual cells to the RowTemplate.
2932 Internally, use RowTemplateFull to give us a new row with cells.
2933 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
2934 * DataGridViewRowCollection.cs: Use RowTemplateFull.
2936 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2938 * XplatUIX11.cs: Forms without borders should be able to change its
2939 size - specially they should be able to be maximized, adding the
2940 respective MotifFunctions.Resize bit when setting window properties as
2941 well as *not* marking the Hwnd as size fixed.
2944 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
2946 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
2950 2008-11-11 Andrés G. Aragoneses <aaragoneses@novell.com>
2952 * Application.cs: After UIA assembly is successfully loaded,
2953 dump any exception that happens on initialization to stderr.
2955 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
2957 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
2958 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
2959 AutoSizeColumnModeChanged.
2962 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
2964 * DataGridViewRowCollection.cs: Guard against the user deleting the
2965 NewRow. Add an internal delete so we can still delete it.
2966 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
2969 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
2971 * TextControl.cs: Add some order of operation to our math so
2972 we don't end up with a negative height for our invalidate rect.
2975 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
2977 * Control.cs: When our enabled changes, notify our implicit children
2978 controls as well as our regular controls.
2981 2008-11-08 Andreia Gaita <shana@jitted.com>
2983 * HtmlElement.cs: Small code cleanup
2985 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2987 * BindingNavigator.cs: MoveFirstItem should be enabled only if
2988 position is larger than 0, not only different than 0. Also Position
2989 and Count items should be enabled if the BindingSource is non null and
2993 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
2995 * TabControl.cs: Don't raise SelectedIndexChanged until we have
2996 actually modified the tab collection, so TabCount will be correct.
2999 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
3001 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
3002 NonSerialized to fix serialization of ListViewItem.
3004 2008-11-04 Mike Gorse <mgorse@novell.com>
3006 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
3007 focus change, and always call in SetFocusedItem.
3008 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
3010 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
3012 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
3013 mode. Based on a patch by John Mortlock.
3016 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3018 * ListView.cs: Use the UsingGroups property where needed, instead of
3019 duplicating the check in other places.
3021 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3023 * ListView.cs: When calculating layout, refresh the count of items
3024 belonging to the default item, insteas of doing it only one time. This
3025 was already working fine for icon views, not not for details.
3028 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3032 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
3033 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
3037 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
3039 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
3041 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
3043 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
3044 #441280, patch by Mike Gorse <mgorse@novell.com>.
3046 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
3048 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
3049 if there is no scrollbar.
3052 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
3054 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
3055 patch from Andy Hume that fixes many issues with ProgressBar.
3058 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
3060 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
3063 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
3067 * NumericUpDown.cs: Internal events added to UpDownBase:
3068 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
3071 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
3073 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
3075 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3078 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
3079 Application.EnableVisualStyles hasn't been called.
3080 Fixes part of #437933.
3082 2008-10-31 Andreia Gaita <shana@jitted.com>
3084 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
3085 if the container is not focused already, we need to specifically set
3086 focus to the first available control, or to the form itself if there
3089 2008-10-31 Andreia Gaita <shana@jitted.com>
3091 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
3092 WM_ACTIVATE have been processed before returning, so it is guaranteed that
3093 once it returns and the form is visible, it is actually on the screen on X11
3095 * ContainerControl.cs: Only send focus to the control if the top container
3096 is already focused. This is so that, when a form is first shown, all
3097 the enter/leave events are done first before any focus stuff comes in.
3098 If a control has no top container, there's an extra check on Control.Focus
3099 to make sure it gets focused in this particular case.
3101 * Control.cs: Force focus if the control is active but did not receive
3102 focus after being set as active.
3104 * MdiClient.cs: Dispose the form when closing
3106 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
3107 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
3108 if the window is a top Form.
3109 Reset all hwnd properties when the window has been destroyed so that
3110 we don't land in any codepaths that might try to do something with it.
3111 Added a bunch of debugging messages. If TRACE is defined, all X calls
3112 are logged through DebugHelper. Set a few missing EntryPoint attributes.
3114 2008-10-29 Mario Carrion <mcarrion@novell.com>
3116 * ListViewItem.cs: Control enabled to support Accessibility:
3117 - Internal events: UIATextChanged, UIASubItemTextChanged.
3118 - Internal event UIATextChanged in ListViewSubItem that triggers
3119 UIASubItemTextChanged.
3120 * ListView.cs: Control enabled to support Accessibility:
3121 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
3122 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
3123 - Internal event UIACollectionChanged in ColumnHeaderCollection.
3124 - Internal event UIACollectionChanged in ListViewItemCollection.
3125 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
3126 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
3127 - Internal methods: UIAGetHeaderBounds.
3129 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3131 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
3132 the event from the respective scrollbars.
3135 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3137 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
3138 textbox to know whether any navigation key will be handled or not. If
3139 not, don't pass the message to the textbox, and use it here instead.
3140 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
3141 is more precise- than the previous AutoCompleteMatches one.
3142 This should the keyboard navigation in ComboBox when using auto
3145 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
3147 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
3150 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
3152 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
3153 overridden methods will get called.
3154 * ToolStripItem.cs: Raise Click before MouseUp.
3155 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
3156 the item's location into account.
3159 2008-10-24 Neville Gao <nevillegao@gmail.com>
3161 * NumericUpDown.cs: Control enabled to support accessibility.
3162 [Fiexes bug #438135]
3164 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3166 * TextBox.cs: Check that we actually have items no navigate, select
3167 text when pressing enter, as well as handle direction keys only if
3168 mode is different to Suggest or the suggest listbox is visible.
3170 2008-10-23 Andreia Gaita <shana@jitted.com>
3172 * WebBrowser.cs: Use the new ContentStream property to retrieve
3173 a stream encoded from the document content
3175 2008-10-23 Andreia Gaita <shana@jitted.com>
3179 HtmlWindow.cs: Fix GetHashcode for null objects
3181 2008-10-22 Andreia Gaita <shana@jitted.com>
3185 HtmlWindow.cs: Fix equality operators (fixes #428173)
3187 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
3189 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
3190 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
3193 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
3195 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
3196 same item with the mouse as was already selected.
3199 2008-10-21 Brad Taylor <brad@getcoded.net>
3201 * TextControl.cs: Break out code to get the visible range into
3202 GetVisibleLineIndexes to be used in UIA code.
3206 * TextBoxBase.cs: Add comments indicating that the method or property
3207 is used via reflection from UIA code.
3209 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3211 * ListViewItem.cs: Match .net serialization.
3212 Fixes remaining part of #417520.
3214 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
3216 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
3218 2008-10-20 Mario Carrion <mcarrion@novell.com>
3220 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
3221 added: UIAToolTipRectangle.
3223 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3225 * ListViewItem.cs: When deserializing enumerate over the data, instead
3226 of accessing the data directly. This way we handle much better the
3227 cases were we lack information.
3230 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3232 * ListView.cs: When removing an item from a main ListView.Items
3233 collection (and not a ListViewGroupCollection.Items one), remove it
3234 also from the group, as .net does. Patch by Mario Carrion (mario at
3238 2008-10-19 Andreia Gaita <avidigal@novell.com>
3240 * Form.cs: Forms that get closed without a handle being created are
3241 disposed in 2.0. Fixes failing FormTest.FormClose and
3242 FormTest.FormClose2 on windows.
3244 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3246 * ListView.cs: If both scrollbars are visible, the vertical one
3247 shouldn't extend too far down.
3250 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
3252 * DataGridView.cs: Add the ability to resize columns and rows with
3253 the mouse. Also support double-clicking to autoresize.
3254 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
3255 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
3256 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
3257 isn't shown on autoresize.
3260 2008-10-17 Mario Carrion <mcarrion@novell.com>
3262 * ComboBox.cs: Remove UIAListbox.
3264 2008-10-17 Mario Carrion <mcarrion@novell.com>
3266 * ComboBox.cs, ListBox.cs: Using added/removed item in
3267 OnUIACollectionChangedEvent instead of index.
3269 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
3271 * ComboBox.cs: When we are sorting the items, if the item's type
3272 doesn't support IComparer, use a default one that compares based
3273 off the item's visible text.
3276 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3278 * ColumnHeader.cs: Invalidate ListView.header_control when setting
3279 ImageIndex/ImageKey.
3280 * ThemeWin32Classic.cs: When drawing the column header, draw a image
3281 for the column if available, and make the required adjustments to the
3285 2008-10-17 Neville Gao <nevillegao@gmail.com>
3287 * StatusBarPanel.cs: Control enabled to support accessibility.
3290 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3292 * DataGridView.cs: When a user begins an edit in the 'new row',
3293 make that a real row, and add a new 'new row'. If the user
3294 cancels the edit, remove the new 'new row' and reset everything.
3295 Also, ensure UserAddedRow and UserRemovedRow events are raised.
3298 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
3300 * TableLayoutSettings.cs: Fix NREs when deserializing and
3301 panel is not yet set.
3304 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3306 * DataGridView.cs: Invalidate after deleting a row.
3308 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3310 * DataGridView.cs: Handle Enter and Escape keys.
3311 - Move call to EndEdit to MoveCurrentCell.
3312 - Remove call to EndEdit from navigation key routines.
3313 - Fire CellLeave and CellEnter.
3315 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3317 * DataGridViewCell.cs: Some fixes to the new cell border
3320 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3322 * ThemeEngine.cs: Enable visualstyles rendering by default
3323 (on platforms that support it).
3325 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
3327 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
3328 MainForm.OnLoad has completed unless DoEvents is forced.
3331 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
3333 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
3335 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
3337 * Control.cs: Make our implementation of DrawToBitmap better
3338 match WmPaint. [Fixes bug #435579]
3340 2008-10-14 Andreia Gaita <avidigal@novell.com>
3342 * WebBrowser.cs: Use DocumentElement as the document's root for the
3343 whole content. Should fix DocumentText and DocumentStream problems.
3345 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
3347 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
3348 these will get called in DGV.OnCollectionChanged. Make sure
3349 OnCollectionChanged always gets called.
3350 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
3351 from every row. Call this in OnCollectionChanged.
3354 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3356 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
3357 textbox if auto complete is used, since we need to navigate over it.
3358 And in this case don't pass this messages to the base impl. Also hide
3359 the auto complete list box when displaying the drop down listbox.
3360 * TextBox.cs: new internal members to expose some of the auto complete
3361 functionality to combobox.
3363 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
3365 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
3366 MainForm.OnLoad has completed.
3369 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3371 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
3372 Append support to this controls. We need it to apply new patches.
3374 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3376 * Control.cs: When updating z order in child controls, send to back
3377 the implicit controls. Also, do it explicitly, instead of making
3378 GetAllControls return the implicit controls in a specific order, and
3379 thus avoid depending on that, which could change in the future.
3382 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3384 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
3385 call to StartDrag, since we must fire DragDrop/DragLeave *before*
3386 that, as .net does - instead of firing DragDrop/DragLeave *after* the
3387 call to Control.DoDragDrop has completed. This is needed since at the
3388 point of returning, we have sent related dnd ClientMessages, but we
3389 need to wait for them to fire the wmf respective ones.
3392 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
3394 * LinkLabel.cs: Recreate link pieces when change Padding.
3396 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
3398 * LinkLabel.cs: Take Padding into account when recreate link pieces.
3401 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
3403 * Control.cs: Implement internal property PaddingClientRectangle, it will be
3404 useful for drawing controls that must take care about Padding property.
3406 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
3408 * BindingSource.cs: Make item_type internal so we can access it in DGV.
3409 * DataGridView.cs: Add support for autogenerating columns from a
3412 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
3414 * DataGridView.cs: Comment out an exception that is getting thrown
3415 too often currently.
3417 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
3419 * DataGridView.cs: Always rebind to the datasource, as things may
3420 have changed in it that we aren't capturing yet.
3422 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
3424 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
3425 drawing mode. If we are top aligned, give ourselves some top padding.
3427 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3429 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
3430 events on the control under the mouse pointer, instead of firing them
3431 on the window generating the dnd operation. To achieve this re-use the
3432 code used to get the window under the pointer when getting MouseMove
3436 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3438 * X11Dnd.cs: Don't check that that the window sending the dnd events
3439 is the owner of the selection. Although Gtk+ sets it that way, it's
3440 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
3441 So, just as Gtk+ does, we set our window sending the dnd events as the
3442 owner of the selection, but don't check it when receiving them. This
3443 should fix interoperability with Qt/Kde.
3446 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
3448 * DataGridView.cs: Make sure we take the vertical scrollbar into
3449 account when autosizing columns.
3451 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
3453 * DataGridView.cs: Handle sorting datetimes.
3455 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
3457 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
3458 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
3459 compilation warnings.
3461 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3463 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
3464 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
3465 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
3466 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
3467 compilation warnings.
3469 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3471 * DataGridView.cs, DataGridViewCell.cs,
3472 DataGridViewCellValidatingEventArgs.cs,
3473 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
3474 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
3475 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
3477 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3479 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
3480 Cleanup compilation warnings.
3482 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3484 * XplatUIWin32.cs: Cleanup compilation warnings.
3486 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3488 * PropertyGrid.cs: Cleanup compilation warnings.
3490 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3492 * DataGridViewRow.cs: Only clear the row background if we
3493 are going to paint a new background.
3495 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3497 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
3498 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
3499 use PaintBorder instead.
3501 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3503 * DataGridView.cs: When CellBorderStyle is set, update the
3504 AdvancedCellBorderStyle to match.
3506 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3508 * DataGridViewCell.cs: Add helper methods to convert Alignment
3509 to TextFormatFlags and align rectangles.
3510 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
3511 * DataGridViewImageCell.cs: Use Alignment when painting the image.
3513 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
3515 * ToolTip.cs: Display tooltips only for controls on the active form.
3518 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3520 * DataGridView.cs: Make OnCellValueNeeded internal.
3521 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
3522 user can supply their own value if they choose.
3524 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3526 * DataGridViewColumnHeaderCell.cs: Create a new style object
3527 so the DefaultCellStyle doesn't get changed.
3529 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3531 * ToolStripItem.cs: Check to make sure the owner is actually
3532 changing in InternalOwner before doing any work. Fixes some
3535 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3537 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
3538 * DataGridView.cs: Use a column header's inherited style instead
3539 of just using the default.
3541 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3543 * SplitContainer.cs: Raise SplitterMoved when the splitter is
3546 2008-10-01 Mario Carrion <mcarrion@novell.com>
3548 * ScrollBar.cs: Internal property added: UIAThumbPosition.
3550 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3552 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
3554 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3556 * ToolStripItem.cs: When the user sets Owner, we need to remove
3557 it from its previous owner and then add it to the new owner's
3558 item collection. Also, create InternalOwner, so we can set the owner
3559 that doesn't do this new stuff.
3560 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
3562 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3564 * ToolStripItem.cs: When our parent changes, recalculate our text
3565 size, since we may be getting our Font from our parent. When our
3566 owner's Font changes, recalculate ourselves as we may be using
3569 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
3571 * MenuAPI.cs: Select the first option of a popup when opening the popup via
3572 return key. [Fixes bug #413792].
3574 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3576 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
3577 ambient properties. (Get their value from their parents if
3578 values haven't been set.)
3580 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3582 * ToolStripSystemRenderer.cs: Call overridden methods' bases
3583 after our logic, so users can do painting by handling the events.
3584 Currently, we draw over any user painting.
3586 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3588 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
3589 after our logic, so users can do painting by handling the events.
3590 Currently, we draw over any user painting.
3592 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
3594 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
3596 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
3598 * TreeNode.cs, TreeView.cs: Move logic that determines the node
3599 image to draw to TreeNode. Give Index/Keys put on the node
3600 precedence over the global one for the TreeView.
3602 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
3604 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
3606 2008-09-29 Mario Carrion <mcarrion@novell.com>
3608 * ListBox.cs: Index fixed.
3610 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3612 * TabControl.cs: When expanding the tab -because it's selected now-,
3613 using Right alignment, instead of adding some selected delta value to
3614 the X origin, substract it, so it gets a location adjacent to the panel,
3615 instead of be more separated.
3618 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
3620 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
3623 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3625 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
3626 as well as the other static fields, to avoid using their previous
3627 values my mistake when handling the dnd events. This should avoid
3628 handling any status event after the drop has been finalized/cancelled.
3630 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3632 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
3633 operation, instead of waiting until we get any movement - this will
3634 help us to have the data available in case no movement was detected
3635 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
3636 Finally add a windows.forms-only fallback to fire the mentioned events
3637 if no movement at all was detected, just like .net does.
3640 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
3642 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
3643 return early if the text is empty because the icon doesn't get
3644 drawn then. [Fixes bug #428113]
3646 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3648 * FileDialog.cs: Implement basic support for sorting by columns in
3649 Details view. Patch by Eric Petit.
3652 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3654 * ThemeWin32Classis.cs: When drawing gridlines take into account the
3655 case where ListView.ItemSize hasn't been computed, and provide a
3656 fallback as well. This prevents a division by 0.
3658 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
3660 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
3661 correctly draw tooltip backgrounds.
3663 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
3665 * ImageList.cs: Change CopyTo implementation to ensure clones are
3666 created of our images.
3669 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
3671 * Control.cs: When setting fonts, we need to ensure we change our
3672 reference to the new font object, even if it represents the same
3673 font as before. If we don't, the original font can get disposed
3674 and we will still try to use it.
3677 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3679 * FileDialog.cs: Take into account Tile view when selecting the view
3682 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3684 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
3685 the item bounds, since we can't iterate over them in virtual mode.
3686 Also fix wrong calculation of the gridlines when using scrolling.
3689 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3691 * XplatUIX11.cs: When handling EnterNotify events, take into account
3692 both the public and implicit controls when trying to detect the
3693 grab/ungrab process. This should fix ListView selection in Details
3696 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
3698 * TreeView.cs: Redraw the whole node area when the selected node changes.
3699 Things like state images were not getting redrawn because the invalid
3700 rectangle was too small.
3703 2008-09-23 Mario Carrion <mcarrion@novell.com>
3705 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
3708 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
3710 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
3713 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
3715 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
3718 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
3720 * StatusBar.cs: Add tooltip support.
3723 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3725 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
3726 alignments of sub items in Details view. Patch by John Mortlock (johnm at
3727 hlaustralia.com.au).
3730 2008-09-23 Neville Gao <nevillegao@gmail.com>
3732 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
3735 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
3737 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
3740 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3742 * ListView.cs: Don't do anything when EnsureVisible is called inside a
3743 BeginUpdate/EndUpdate block.
3746 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3748 * ListViewItem.cs: The semantics for the public .ctor of
3749 ListViewSubItemCollection need us to already have a Text value for the
3750 item, which in our implementation have as available *after* adding the
3751 first sub item. So create an internal .ctor that satisfies our needs
3752 and let the public .ctor have the same semantics as .net.
3755 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3757 * ListControl.cs: Changes in Formatting related values should call
3758 RefreshItems, as .net does.
3760 * ListBox.cs: In the respective overrides of RefreshItems calculate
3761 layout as well as refreshing - again, this is what .net does.
3764 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3766 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
3767 since we are already doing that when we change the value of the
3768 scrollbar or force the call to ScrollWindow in the same method. This
3769 way we don't cause a Invalidate call for all the listbox bounds for
3770 methods calling UpdateTopItem with an already updated top item. This
3771 was happening specially calling EnsureVisible with already visible
3774 2008-09-18 Mike Gorse <mgorse@novell.com>
3776 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
3777 XplatUIStructs.cs: Added KeyFilter
3780 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3782 * RelatedPropertyManager.cs: The properties returned by
3783 GetItemProperties should be that ones of the *actual* object returned
3784 by the property, not the property type - this is very special when the
3785 property exposes a type, but the returned object actually is a child
3786 class and implements more functionality and properties.
3788 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3790 * Binding.cs: Don't look for the property in the data source if the
3791 passed string is empty.
3793 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
3795 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
3796 fix unused variable warnings.
3798 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
3800 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
3803 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
3806 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
3807 leads to the window manager overriding our border style and zorder.
3808 - Allow the activation of non-modal forms, which are children of a
3812 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
3814 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
3815 ask the window manager to do the work instead of changing the property
3819 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
3821 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
3822 AddNew to fix some navigation for empty datasets. [Fixes #323053]
3824 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
3826 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
3827 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
3828 border and fixes some drawing issues when resize form.
3830 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
3832 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
3834 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
3837 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
3839 * TextBoxBase.cs: For standard textbox the scrollbars are always
3840 visible if Multiline is true.
3843 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
3845 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
3848 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
3850 [Fixes most od DBNull and HeadersVisible problems]
3853 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
3854 returns the value that we need.
3855 - Fixed FromPixelToColumn method that return zero for first column and for
3856 row header cell, now it returns -1 for row header cell.
3857 - Fixed HitTest to check row header cell in column header area, it now
3858 returns HitTestType.None. [Fixes #322864]
3859 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
3860 checks for RowHeadersVisible and other things.
3861 - If an exception occurs when setting CurrentCell and user type 'yes' in
3862 message dialog, invalidade current and new cell and set setting_current_cell
3863 to false to prevent future errors. [Partially fixes #323050]
3865 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
3866 value (SetColumnValueAtRow), it must be done by grid to properly show
3867 messages. [Fixes #323050]
3869 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
3870 better draw column and row header. Also dont draw anything when column
3871 headers is not visible.
3873 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3875 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
3878 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3880 * TreeView.cs: Don't start editing a node on right click, only
3883 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3885 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
3886 disabled over a year ago.
3887 * Form.cs: Wrap calling Load in a try/catch because it can happen
3888 before the catch-all one in NativeWindow.
3891 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3893 * ToolStripDropDownMenu.cs: Calculate the connected area better
3894 to take into account when the drop down is not directly under the
3896 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
3898 2008-09-16 Mario Carrion <mcarrion@novell.com>
3900 * ScrollBar.cs: New event added: UIAValueChanged, generated when
3901 LargeChange, SmallChange, Maximum or Minimum values are changed.
3904 2008-09-16 Mario Carrion <mcarrion@novell.com>
3906 * ErrorProvider.cs: Component enabled to support accessibility.
3907 * Application.cs: Updated to Initialize UIA in ErrorProvider.
3910 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3912 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
3913 so we don't highlight on first focus.
3916 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3918 * TextControl.cs: Correctly calculate the height of the area we
3919 need to invalidate when we have started scrolling and viewport_y
3920 is used. [Fixes bug #387608]
3922 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3924 * TextControl.cs: When getting the SelectedText, don't add in
3925 NewLine characters, as they are already contained in the lines.
3928 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3930 * TextBoxBase.cs: Replace the buggy Lines setter with one that
3931 simply concats the lines and send it to the Text setter.
3932 [Fixes issue #2 and #3 of 388115]
3934 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3936 * Binding.cs: The default value of DataSourceNullValue should be
3937 Convert.DBNull actually. Also, the NullValue should only be used *if*
3938 itself is not null, and use the null/Convert.DBNull value instead.
3940 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
3942 * TextControl.cs: Add a method to convert a string newline to the
3944 * TextBoxBase.cs: When the user hits enter, insert a native newline.
3945 [Fixes part 1 of bug #388115]
3947 2008-09-15 Mario Carrion <mcarrion@novell.com>
3949 * ToolTip.cs: UnPopup event set to internal to match public API.
3951 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
3953 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
3954 have to remove the Ctrl in order for the focus moving code to kick in.
3957 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
3959 * CheckedListBox.cs: Return the real item index from Add. It may not be
3960 the last item if the list is sorted. The user can change the NewValue in
3961 the ItemCheck event, we need to use that value if so.
3962 * ListBox.cs: Return the real item index from a sorted Add.
3965 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
3967 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
3968 happen that the icons from the theme is missing or the particular size
3972 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3974 * Binding.cs: When assigning null or DBNull depending on value/ref type,
3975 use IsValueType instead to get the precise desired value.
3978 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3980 * TreeNodeCollection.cs: When adding a new node to an opened node,
3981 we have to invalidate everything below the parent node because
3982 every node scoots down and we have to repaint them.
3985 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3987 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3988 property into account when drawing.
3991 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3993 * ListBox.cs: When calling Items.Clear(), call
3994 SelectedIndexCollection.ClearCore instead of normal Clear method, to
3995 not fire any Selected*Changed event - this is done to match .net and
3996 don't have invalid values when changing the DataSourceProperty.
3999 2008-09-12 Mario Carrion <mcarrion@novell.com>
4001 * HelpProvider.cs: Control enabled to support accessibility.
4002 * Application.cs: Updated to Initialize UIA in HelpProvider.
4005 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
4007 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
4008 make the dialog TopMost as well.
4011 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
4013 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
4014 clipboard data better.
4017 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
4019 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
4020 TextChanged and SelectionChanged events fire in the same order as .Net.
4023 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
4025 * DataGridView.cs: When sorting a column, if it only contains numbers,
4026 do a numeric sort instead of a string sort.
4029 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
4031 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
4032 against NRE's when the settings have a null panel.
4033 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
4037 2008-09-11 Mario Carrion <mcarrion@novell.com>
4039 * ToolTip.cs: Control enabled to support accessibility.
4040 * Application.cs: Updated to Initialize UIA in ToolTip.
4043 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
4045 * Control.cs: Make the custom Enumerator internal to fix build.
4047 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
4049 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
4050 already in edit mode, begin edit mode. Generally edit mode isn't
4051 started until the second click, but CheckBoxes are special.
4053 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
4055 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
4056 since that can be set to anything. Always add them to the Control's
4057 parent. [Fixes bug #416058]
4059 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
4061 * ListView.cs: Use a custom enumerator for ListViewItemCollection
4062 so items can be deleted in a foreach.
4065 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
4067 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
4068 Store the user set explicit height so that the row can be AutoSized
4069 and then when AutoSize is turned off, it can get its original size back.
4070 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
4071 duplicating the logic. When setting AutoSizeRowsMode to None, reset
4072 rows' heights back to their explicit values.
4075 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4077 * DateTimePicker.cs: When getting focus, select the checkbox if we are
4078 already showing it. Also, don't change its value when pressing space
4079 if the checkbox is not visible (ShowCheckBox as false). Finally, the
4080 checkbox should remain selected as long as Checked is false, and the
4081 other parts are disabled.
4084 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
4086 * MessageBox.cs: Handle shortcut keys to dialog buttons.
4089 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4091 * Binding.cs: When the value retrieved from the control property is
4092 null, don't return Convert.DBNull for Nullable instances, since they
4093 can *actually* get a null value.
4096 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
4098 * Control.cs: Add an internal field to force doublebuffering regardless
4099 of what the public mechanisms are set to. This is because MS's native
4100 controls are doublebuffered even though their .Net bits are set to false.
4101 * ProgressBar.cs: Set force_double_buffer to true.
4104 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
4106 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
4108 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
4109 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
4110 without EditingControls, paint background selection for types without
4111 EditingControls, reset the EditingCellValueChanged flag when the
4112 cell's value is committed.
4113 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
4114 have EditingControls, remove a double call to a cell's OnContentClickInternal,
4115 don't do cell changing logic in OnMouseDown if the cell didn't change.
4118 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4120 * DateTimePicker.cs: Fix the edition of am/pm specifier.
4122 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
4124 * TextControl.cs: Add "&" to the list of valid characters in a URL.
4126 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4128 * DateTimePicker.cs: Before incrementing or decrementing any part in
4129 the textbox, end any current edit. Also when ending the current edit
4130 use the editing_part_index field instead of the current selected
4131 value, since they can be out of synch, and we really need to work on
4132 the *real* current edit part. Finally when PartData.Selected changes,
4133 always try to end any ongoing edit.
4134 This should fix some small errors handling mouse navigation and
4135 increase/decrease operations.
4137 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4139 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
4140 respectively) should handled different, since the 12 hours format
4141 needs the value typed by the user to be adjusted depending on the
4142 a.m/p.m value, so it is preserved, and only changed when the value
4143 reaches the 12 value (when it changes from a.m to p.m).
4144 Fixes part of #416555.
4146 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
4148 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
4149 * ToolStripDropDownItem.cs: Don't fire events and such again if
4150 ShowDropDown is called on an already dropped down item.
4151 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
4152 subitems, the user may add some in the DropDownOpening event.
4155 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
4157 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
4160 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
4162 * MdiClient.cs: When looking for menustrips on a child form to merge,
4163 look inside ToolStripContainers.
4166 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
4168 * ErrorProvider.cs: Unbreak my previous commit.
4170 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
4172 * ErrorProvider.cs: Icon should always be 16x16.
4175 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
4177 * GridEntry.cs: Invalidate the child items cache when the property
4180 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
4182 * GridEntry.cs, PropertyGridView.cs:
4183 - Update the ReadOnly detection and rendering to finally hopefully
4184 match the one of MSFT.
4185 - Niceify and move the debug CWLS.
4188 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4190 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
4191 since we are already calling Invalidate for the entire control when
4192 needed - and call Redraw() when size changes, since we need to paint
4193 there by ourselved and not anymore from the mentioned method.
4194 This should improve the layout process. Also clean some not needed calls
4197 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
4199 * MenuAPI.cs: Add a null check to the Alt-F4 code.
4202 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
4204 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
4207 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
4209 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
4210 PropertyGridView.sc: Implement lazy/delayed propertygrid population
4211 on item expansion. Improves performance and fixes bug #417955.
4214 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
4216 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
4219 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
4221 * TextControl.cs: Add "_" to the list of valid characters in a URL.
4224 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
4226 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
4230 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
4232 * FontDialog.cs: When storing our font size from the starting font,
4233 use SizeInPoints instead of Size in case Size is a different unit
4237 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
4239 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
4240 don't use it for anything else, check if a directory is highlighted.
4241 If it is, navigate into it.
4244 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4246 * Binding.cs: When acquiring a BindingManagerBase for the first time,
4247 check that the specified property actually exists in the data source,
4248 and throw an ArgumentException if that's not the case - this is only
4249 done for this scenario, since for later cases (such Position changes)
4250 we throw different exceptions (match .Net).
4252 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
4254 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
4255 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
4256 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
4257 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
4258 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
4259 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
4263 2008-09-03 Neville Gao <nevillegao@gmail.com>
4265 * StatusBar.cs: Control enabled to support accessibility.
4268 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4270 * Binding.cs: When connecting the event handler for the "Changed"
4271 event for the property, only do it for PropertyManager, and not for
4272 CurrencyManager - this is exactly what does .Net, totally ignoring any
4273 change in the property of the elements of a list.
4276 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
4278 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
4279 to Windows when creating a window, as we fake MDI stuffs.
4282 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
4284 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
4285 change takes effect.
4287 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
4289 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
4292 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
4294 * DataGridView.cs: Raise CellContentClick event.
4295 [Fixes part of bug #420351]
4297 2008-08-27 Mario Carrion <mcarrion@novell.com>
4299 * ScrollBar.cs: Control enabled to support accessibility.
4302 2008-08-27 Mario Carrion <mcarrion@novell.com>
4304 * ComboBox.cs: Control enabled to support accessibility.
4307 2008-08-27 Mario Carrion <mcarrion@novell.com>
4309 * ListBox.cs: Control enabled to support accessibility.
4312 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
4314 * ComboBox.cs: Don't suppress the TextChanged event when changing
4316 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
4320 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
4322 * ErrorProvider.cs: Fix a regression NRE when setting properties
4323 for a control before it has a parent.
4326 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4328 * Binding.cs: Use the BindingManagerBase.Current value to obtain
4329 connect the property "Changed" event, instead of using the data
4330 sources - this is useful when the property specifies actually a
4331 multiple objects path.
4332 Fixes part of #417973.
4334 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4336 * RelatedPropertyManager.cs: PropertyManager instances associated to a
4337 nested properties should return not the properties of the data source
4338 itself, but the properties of the type of a specific property in the
4339 data source - match .net.
4341 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
4343 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
4344 AddRange overloads into AddItems method, and added missing NULL check.
4345 Added extra argument check to RemoveAt for compatibility with MS.
4346 Modified IList implementation of Add, Contains, IndexOf and Remove to
4347 throw an ArgumentException if item is not an int. Modified IList.Insert
4348 to throw a NotSupportException instead of an Exception. Implemented
4350 (ObjectCollection): To avoid duplication, use AddItems method from
4351 AddRange overloads. On 1.0 profile, first perform NULL check on items
4354 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
4356 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
4359 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
4361 * X11Keyboard.cs : comment out some Console.WriteLine().
4363 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
4365 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
4366 even if premises are not filled. Also XLookupString() was not
4367 receiving correct input, which blocked precise input handling
4370 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4372 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
4373 type of delegate, instead of EventHandler - this was causing a type
4374 cast exception in all apps handling this event.
4377 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
4379 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
4380 ShowDropDown to give the user a chance to dynamically add
4381 drop down items. [Step 1 of fixing bug #417877]
4383 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4385 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
4386 had any mouse motion since the call to StartDrag, to match the dnd
4388 Fixes part of #381876.
4390 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4392 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
4393 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
4394 Also, if we are actually moving into a different window after
4395 grabbing, generate a LeaveNotify event for the previous window, since
4396 we need to fire the leave events until the grab ends, not when
4397 actually moving outside of the control.
4399 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4401 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
4402 events only for client windows was wrong - we need to compare the
4403 client window against the window receiving the EnterNotify event, not
4404 against zero (since client window is never Zero, btw).
4405 This prevents having unnecessary handling of EnterNotify events for
4406 non-client windows when a gran begins.
4408 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4410 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
4411 MouseMove/MotionNotify events at all (which should only happen after
4412 MouseUp/ButtonRelease, as .Net does).
4413 This avoids firing an extra and unnecessary MouseMove event just after
4414 every MouseDown event.
4416 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
4418 * LinkLabel.cs: Always clear any previous links when LinkArea
4419 is set. [Fixes bug #410709]
4421 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
4423 * ToolStripProfessionalRenderer.cs: Revert last change.
4424 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
4425 for ToolStripDropDownBackground.
4427 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
4429 * ToolStripProfessionalRenderer.cs: Use Window color for the
4430 background of dropdowns to match .Net when the user is not
4431 using the default white. [Fixes bug #418108]
4433 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
4435 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
4436 it caused timer registration twice. Fixed bug #418107.
4438 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4440 [Correction: This is the actual change to X11Dnd issue, not the
4441 previous one, which was actually a different issue.]
4443 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
4444 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
4445 when the pointer is actually in motion, but only when the pointer
4446 seems to stop (as .net does).
4447 Fixes part of #381876.
4450 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
4452 * ListBox.cs: Fix CopyTo implementation.
4455 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
4457 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
4458 drawing a ComboBox's background. Fixes bad disabled rendering when
4459 the control is not at 0,0.
4462 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
4464 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
4465 ComponentModel layer, which will properly prioritize the attributes.
4466 Avoids wrong prioritization of duplicate attributes when retrieving
4467 the converter and editor.
4470 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4472 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
4473 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
4474 when the pointer is actually in motion, but only when the pointer
4475 seems to stop (as .net does).
4476 Fixes part of #381876.
4478 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
4480 * GridEntry.cs: Perform stricter check for the ParentEntry's
4481 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
4485 2008-08-14 Geoff Norton <gnorton@novell.com>
4487 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
4488 Fixes #396983. Properly fix ActiveWindow trackin and do not
4489 prematurely show POPUP windows.
4491 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4493 * XplatUIX11.cs: Handle the obscured regions while scrolling using
4494 GraphicsExpose event, processing it just after we copy the scrolled
4495 area. This ensures that the next calls to ScrollWindow will copy
4496 regions already updated, and the scrolling will be smooth. Also remove
4497 the code that was trying to detect the obscured regions, since we are
4498 not using it anymore (too slow).
4500 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4502 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
4503 MultiExtended mode, by separating some logic between the ctrl/shift
4504 handling. Also ignore any MouseMove events generated together with
4505 MouseDown events - we are only interested in the real motion event.
4506 Fixes part of #414963.
4508 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
4510 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
4511 is selected. [Fixes bug #414143]
4513 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
4515 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
4516 and not the parent one (the propertyowner). Fixes the behavior of
4517 GetConverter/GetEditor.
4520 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
4522 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
4523 [Fixes part of bug #415452]
4525 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
4527 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
4528 GridEntry, not the current.
4531 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
4533 * TextBoxBase.cs: De-internalize max_length field.
4534 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
4535 share the same logic.
4538 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4540 * ListBox.cs: Selection changes made in the MouseDown handler should
4541 use the *Core versions of selection in SelectedIndices collection,
4542 since the SelectedIndexChanged/SelectedValueChanged events are fired
4543 until we get a MouseUp event, and thus we need to separate the logic
4544 from the events, as done in the keyboard navigation. Also, fire those
4545 selection events from keyboard navigation in SelectionMode.None, even
4546 if we don't have a selection, as .Net does.
4548 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
4550 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
4551 last change introduced when an item is clicked but isn't on a toolstrip.
4553 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4555 * ListBindingHelper.cs: When looking for an object's properties, check
4556 if it implements ICustomTypeDescriptor, in which case we should
4557 resolve the propertu based on its GetProperties method, not in its
4558 actual properties. This is what .Net seems to do.
4559 Fixes a UsingWebBrowser problem during initialization.
4561 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
4563 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
4564 sitting on a MenuStrip.
4566 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
4568 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
4569 no children with the keyboard, we need to release the keyboard capture.
4572 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
4574 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
4575 no children with the keyboard, we need to release the keyboard capture.
4578 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
4580 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
4581 the GTK+-based implementation of VisualStyles.
4582 * ThemeWin32Classic.cs: Exposed various layout values for use in the
4583 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
4584 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
4585 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
4586 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
4587 TrackBarHorizontalTrackHeight.
4589 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
4591 * TabControl.cs: Added hot style handling for the scroll buttons.
4592 right_slider_state, left_slider_state are now of type PushButtonState to
4593 allow for a hot state. Added tracking of the mouse button being held down
4594 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
4595 LeftScrollButtonArea.
4596 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
4597 TabControlGetRightScrollRect.
4599 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4601 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
4604 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
4606 * Form.cs: Ensure that we reset the shown_raised flag after
4607 the form is closed, so that we raise the show events the next
4608 time the form is shown.
4611 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
4613 * Form.cs: Ensure closing events are raised only once.
4616 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
4618 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
4619 so that we can successfully generate the LParam in-place instead of
4620 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
4621 navigation for menus.
4623 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4625 * MenuAPI.cs: When montion don't set the keyboard navigation state to
4626 'navigating'. Fixes bug #411356.
4628 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4630 [Fixed remaining issues of #406773 (#1)]
4631 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
4633 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
4634 MainMenu (already done) and ContextMenu creation.
4636 * ContextMenu.cs: Create tracker on construction.
4638 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4640 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
4641 possible to instantiate MenuTracker without GrabControl.
4643 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4645 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
4647 * MainMenu.cs: Set GrabControl on SetForm using current form.
4649 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4651 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
4653 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4655 * MenuAPI.cs: Check if menu is activated before deactivate it in
4658 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
4660 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
4662 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
4663 - One style instance can only participate in a single style collection.
4664 - Styles can request their owner to layout whenever their properties
4666 [Fixes bugs #412583 and #412582]
4668 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
4670 * X11Keyboard.cs: Implement the generation of the LParam for
4671 all keyboard messages.
4674 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
4676 * ListBox.cs: Don't let the user set TopIndex so high that it
4677 scrolls up far enough to show empty items.
4680 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4682 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
4683 (I'm an idiot and forgot to commit the actual changes, as well as
4684 specify the right file, which is this one, not ListView.cs).
4686 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4688 * ListView.cs: Don't draw ListViewSubItem instances from
4689 DrawListViewItem - we need to reuse the main item's drawing for the
4690 first sub item in case owner draw is true, but wants the system to
4691 do the default draw for the first sub item, without incurring in a
4695 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
4697 * ToolStripButton.cs: Update Checked for CheckOnClick before
4698 raising the Click event. [Fixes bug #412505]
4700 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
4702 * Form.cs: Remove some seems leftover code for non-TopLevel's
4703 CreateParams, which is breaking ClientSize sizing, because it
4704 removes the border window styles.
4706 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
4708 * PropertyGrid.cs: Invalidate the View when the PropertyTab
4711 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
4713 * WebBrowser.cs: Removed debug output.
4715 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
4717 * FileDialog.cs: Apply patch from Ernesto to clean up some
4720 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4722 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
4723 that the change has an immediate effect.
4725 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4727 * ScrollableControl.cs: Update PerformLayout calls to include
4728 provide the name of the property that changed.
4730 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4732 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
4733 location. Fixes drawing of border and cell borders if scrollable.
4735 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4737 * ScrollableControl.cs: Perform layouting after the AutoScroll
4738 properties have changed, so that the changes have immediate
4742 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4744 * XplatUIX11.cs: Non Client area is actually Client such in the
4745 case of NotifyIcon, so double check WholeWindow == ClientWindow
4746 when adding an expose.
4747 [Fixes bugs #324237 and #357022]
4749 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4751 * TableLayoutPanel.cs: Invalidate after layouting, so that we
4752 repaint the cell borders.
4754 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4756 * PropertyGridTextBox.cs: Stop filtering messages prior to our
4757 disposal to avoid unexpected ObjectDisposedExceptions.
4759 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
4761 * TableLayoutPanel.cs: Layout on Row/Column count change.
4763 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
4765 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
4767 * PictureBox.cs: When ImageLocation is set to null or an empty string,
4768 only set image to null if it was previously initialized from an url
4769 (or using ImageLocation). In ImageLocation, load specified image
4770 asynchronously if WaitOnLoad is false. Added support for local file
4771 paths to LoadAsync, and added missing argument check.
4773 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4775 * DateTimePicker.cs:
4776 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
4777 order to set the value as required (which means: when selection
4778 changes for a part being edited, and not before that if not needed).
4779 Also use an enum to describe which part are we using, and use the
4780 selection as a property in PartData, in order to notify the
4781 DateTimePicker owner that we need to end the current edit.
4784 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
4786 * PropertyGridTextBox.cs: Validation should be performed only if we
4787 are focused. We can lose focus for example if the Return key is used
4788 to set the entry and there is an error. When the message box is
4789 displayed we would have validate on click in the message box.
4791 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
4793 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
4794 in order to determine that we are expandable is wrong. There was a bug,
4795 now fixed, in TypeDescriptor that was causing the wrong converter to be
4796 returned which caused GetPropertiesSupported == false in most cases.
4799 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
4801 * ImageList.cs: Fix ICollection.CopyTo implementation for
4802 ImageListCollection. [Fixes bug #409169]
4804 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4806 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
4807 WorkingArea so that menus can appear on the second monitor
4808 when one has dual monitors.
4810 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4812 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
4815 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4817 * TextBox.cs: Implement navigation support for auto complete in
4818 TextBox, as well as refactor the code to show the auto complete window
4819 when receiving a WM_CHAR message, instead of TextChanged, since
4820 autocomplete itself should be able to set the Text a lot of times and
4821 finally only typing should show it, not changes from code.
4823 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4825 * TabControl.cs: When expanding the selected tab, don't adjust the
4826 width if alignment is Right, since it has a different offset than 0,
4827 as opposed to the other alignments.
4828 Fixes the selected tab not being painted at all with alignment = Right
4829 and using FillToRight size mode.
4831 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4833 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
4835 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4837 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
4838 values from the textbox to the boundary values. [Fixes bug #409026]
4840 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4842 * TreeNodeCollection.cs: We were copying one too many elements when
4843 doing our array copy. Fixes a crash when RemoveAt is called.
4846 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4848 * TabControl.cs: When doing the layout and need to call FillRow -using
4849 FillToRight size mode-, use the overload receiving a bool param
4850 indicating whether we need to do a vertical or horizontal calculation.
4851 Fixes part of #399583.
4853 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4855 * TextBox.cs: When painting, use the value returned by
4856 GetLastVisibleItem instead of using the cached last_item field, since
4857 there could be a desynchronization between the layout and the
4858 painting. Fixes a AOOR exception in auto complete mode.
4860 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
4862 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
4863 NonClientAreaEnabled until our VisualStyles is modified to allow it.
4865 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
4867 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
4869 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4871 * TextBox.cs: When focus is lost, if the auto complete listbox is
4874 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
4876 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4877 tracking size for tool windows.
4878 * Theme.cs, ThemeWin32Classic.cs : Extracted
4879 ManagedWindowSpacingAfterLastTitleButton.
4881 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
4883 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
4884 They are bit-rotted and have always been listed as "unsupported".
4886 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
4888 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
4890 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
4892 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
4894 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4896 * ListBox.cs: Make sure last_item_visible gets reset before we try
4897 to do a layout due to scrollbars appearing or disappearing.
4900 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4902 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
4903 for different window themes. [Fixes bug #339140]
4905 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4907 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
4908 in ManagedWindowBorderWidth.
4910 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4912 * InternalWindowManager.cs: Change MouseMove to take a point, so
4913 we can use the same point later on.
4914 * MdiWindowManager.cs: Store point sent to MouseMove so we can
4915 later reset to it. On Windows, the Cursor.Position had already
4916 changed by the time we were resetting to it.
4919 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4921 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
4923 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
4927 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4929 * MdiWindowManager.cs: Double-clicking on the title bar should not
4930 maximize a MDI form if MaximizeBox = false.
4932 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4934 * ThemeVisualStyles.cs: Fixed a warning.
4936 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4938 * ThemeVisualStyles.cs: Fixed warnings and formatted.
4940 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4942 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
4943 implementation produces a better result.
4945 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4947 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
4950 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4952 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
4953 cannot be used from the ThemeEngine constructor.
4954 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
4955 Application.VisualStylesEnabled because it does not work on X11.
4957 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
4959 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
4960 that we did not always check for, as well as fixes to the IList
4961 implementations. [Fixes bug #402703]
4963 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
4965 * IDeviceContext.cs: Added Dispose.
4967 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
4969 * Control.cs: Added OnSizeInitializedOrChanged.
4970 * Form.cs: OnLoadInternal: Added a call to
4971 Control.OnSizeInitializedOrChanged.
4972 * InternalWindowManager.cs:
4973 * HandleTitleBarMouseMove: No longer invalidates the parent window.
4974 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
4975 * TitleButton: Added Entered.
4976 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
4977 * MdiWindowManager.cs:
4978 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
4979 move over the maximized title buttons causes a change.
4980 * IsActive: Can now be called before the window is added to a MDI parent.
4981 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
4982 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4983 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4984 * ThemeWin32Classic.cs:
4985 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4986 * DrawTitleButton takes a new form parameter.
4987 * Added ManagedWindowTitleButtonHasHotElementStyle,
4988 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4990 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
4992 * ThemeEngine.cs: ThemeVisualStyles is now selected if
4993 Application.EnableVisualStyles has been called, even if the current system
4994 configuration does not support rendering with Visual Styles.
4995 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4996 Styles should not be used.
4998 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
5000 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
5001 ComboBox in FormsTest.
5003 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
5005 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
5006 for fixed toolwindows.
5008 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
5010 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
5012 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
5014 * Control.cs: CreateControl just returns if the Control is diposed
5015 and doesn't throw ObjectDisposedException.
5018 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
5020 * Control.cs: Do not create the control if the parent isn't created
5021 yet, e.g in the case of a parented form on which .Show is called.
5022 It will be created when the parent is made visible/created.
5025 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
5027 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
5028 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
5031 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
5033 * Form.cs: When disposed set owner to null. Improves #402446.
5035 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
5037 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
5038 use children's PreferredSize if in AutoSize mode and ExplicitBounds
5040 * Form.cs: Take the Padding into account for the PreferredSize.
5043 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5045 * TabControl.cs: Since we don't support more than one direction in
5046 TabControl rows alignment (this is, the row becomes the
5047 bottom row when selected), make Direction return always 1. This way
5048 the layout doesn't get confused about a bad calculation.
5051 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
5053 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
5054 so that the wparam is properly set.
5055 Fixes form moving in the test case in bug 402446.
5057 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
5059 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
5060 the full tree instead of nothing. [Improves bug #406584]
5062 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
5064 * ThemeWin32Classic.cs: Adjusted minimized window painting.
5066 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
5068 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
5071 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
5073 * TreeView.cs: Add a null check when using CollapseAll on an
5074 empty tree. [Fixes bug #406449]
5076 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5078 * Form.cs: Make OnMenuComplete internal so we can call it.
5079 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
5082 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5084 * TabControl.cs: Handle Up and Down keys when TabControl is in
5088 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5090 * TabControl.cs: Invalidate when we remove a tab. Guard against
5091 an AOORE when trying to remove a tabpage that is not owned by the
5095 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5097 * ScrollBar.cs: Change the LargeChange calculation to be correct.
5098 Ensure we are using LargeChange instead of large_change so we our
5099 calculations are correct.
5102 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5104 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
5105 we need to ensure the ColumnCount/RowCount gets set.
5108 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5110 * ListBox.cs: When handling item navigation, if selection mode is
5111 None, call EnsureVisible, since scrolling is normally handled by
5112 selection, that we are not calling in this case.
5115 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
5117 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
5118 a null check to our focus walking code. [Fixes bug #394332]
5120 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
5122 * ComboBox.cs: Case missed in bug 379596 "Support item
5123 navigation by entering text": On _close_ drop-down select
5124 the first item matching the text in the textbox. [Fixes bug #397265]
5126 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
5128 * DataGridView.cs: Fix a crash when sorting by column headers,
5129 mentioned in bug #404841. Remove some dead switch cases.
5131 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5134 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
5135 uses the AutoComplete support in the internal TextBox. Also TextBox
5136 can store a reference to ComboBox, in case AutoCompleteSource is set
5137 to ListItems (this is, ComboBox's items, and we don't want to pass an
5138 additional collection).
5140 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5142 * ListViewItem.cs: Restore the initial value of bounds rect to
5143 Rectangle.Empty, and is this value for Layout detection in virtual
5144 mode. Fixes the tests.
5146 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
5148 * XPlatUI.cs: Remove references to "new" X11 backend.
5150 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
5152 * Control.cs: Add an internal virtual OnDragDropEnd method
5153 to allow controls such as ListBox, which depend on a sequence
5154 of MouseDown+Move+End events, to handle the lack of a MouseUp
5155 when a DnD operation is started in MouseDown.
5156 * ListBox.cs: If a DnD operation is started in MouseDown we won't
5157 get a MouseUp, so reset our state whenever a DnD operation ends.
5159 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
5161 * PropertyGrid.cs: Clear the root griditem first thing when
5162 new object/s is/are selected. Fixes some rare cases where
5163 the View will get a paint request and won't know that the
5164 grid is in the process of repopulating.
5166 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
5168 * XplatUIX11.cs, InternalWindowManager.cs:
5169 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
5170 doesn't automagically update the FormBorderStyle, so we must
5171 double check the CreateParams explicitly to determine if the
5172 window is a toolwindow.
5173 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
5174 instead of doing custom checks.
5176 Fixes toolwindows for the test case in bug #402446
5178 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
5180 * Control.cs: Visibility of the control should be false
5181 when the handle is destroyed in WmDestroy and not immediately
5182 in Dispose(). This is effectively where the disposing process
5183 ends even though the control is marked as Disposed immediately
5184 after calling Dispose().
5187 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
5189 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
5190 when the textbox gets focus.
5193 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
5195 * PropertyGridTextBox.cs, PropertyGridView.cs:
5196 - Alt + Down should show the drop down editor.
5197 - Focus the editor when showing it
5200 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
5202 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
5203 that are not the first panel.
5204 * StatusBar.cs: Ensure that the X coordinate of panels is always
5205 stored. Fix IList implementation of StatusBarPanelCollection to
5206 call the regular methods.
5207 [Fixes bug #403599, #402165]
5209 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
5211 * ThemeWin32Classic.cs: Fix position calculation for centered
5212 text on status bar panels. [Fixes bug #402165]
5214 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
5216 * Splitter.cs: Fix Splitter to:
5217 - Work for arbitrary splitter size
5218 - Handle MinSize and MinExtra properly
5219 - Get rid of absolute positioning during drag and use relative
5220 - Multiple other fixes
5223 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
5225 * Cursor.cs: Show shouldn't hide the cursor.
5227 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5229 * ListViewItem.cs: When invalidating, add some extra space to bounds,
5230 since focus rectangle and selection can add some space and need to
5231 take into account those small offsets - specially in Details view.
5232 * ListView.cs: Instead of invalidate using item Bounds directly, call
5233 item.Invalidate, to have the code centralized.
5234 Fixes focused/selection garbage when selecting and deselecting items
5237 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5239 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
5240 mode we can check whether we have to force a Layout or not, and can
5241 cache based on this, instead of avoiding caching all the the time. Do
5242 this check in GetBounds and TextBounds.
5243 Fixes selection in Details view.
5245 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5247 * ListView.cs: Make HeaderControl internal, thus the theme engine can
5248 get its *real* height instead of trying to infere it.
5249 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
5250 get the position of them, since it's in general a bad idea in general,
5251 and because we can't do that in virtual mode. Instead get the first
5252 visible item as well as item height, and draw them.
5255 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
5257 * ToolStripSplitButton.cs: We can't add in extra width if
5258 the button is not AutoSize. [Fixes bug #401279]
5260 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
5262 * PaddingConverter.cs:
5263 - Implement conversion to InstanceDescriptor
5264 - Handle "All" in CreateInstance by using the supplied
5265 ITypeDescriptorContext.
5266 [Fixes bugs #396076 and #396078]
5268 Patch by Andy Hume <andyhume32@yahoo.co.uk>
5269 Code contributed under MIT/X11 license.
5271 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
5273 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
5275 Add Category attributes.
5276 Code is contributed under the MIT/X11 license.
5278 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
5281 - Fix a NRE when unparenting a form.
5282 - Do not recreate or destroy a parented form when
5285 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5287 * TextBox.cs: Implement basic support for AutComplete with custom
5290 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
5292 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
5293 DropDownButtonBounds should be from the origin of the button, not the
5294 ToolStrip. [Fixes bug #401279]
5296 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
5298 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
5299 running gtk_init_check. This prevents GAIL from loading
5300 unnecessarily, which was breaking UIA support. Initial fix for bug
5302 * Application.cs: Add UIA support to Winforms. New static constructor
5303 uses reflection to initialize UIAutomationWinforms assembly. Added
5304 PreRun event so UIA can initialize before the mainloop starts, and
5305 FormAdded event so UIA can provide a11y support for new Forms in an
5308 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
5310 * DataGridView.cs: When binding to a dataset, subscribe to table
5311 and column change events. Unsubscribe to these when we clear bindings.
5314 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
5316 [DataGrid drawing refactory]
5318 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
5320 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
5321 must be handle by Theme, now it call DataGridPaintColumnHeader.
5323 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
5324 test cases must be also fixed because it checks for wrong size.
5326 * ThemeWin32Classic.cs:
5327 - Draw the bottom line of grid caption.
5328 - Prevent to draw caption text when it is empty.
5329 - Use CPDrawBorder3D for 3D efects to simplify code.
5330 - Uses 3D (when not flat) to paint corner shared between row and column
5332 - Fix header drawing issues on win32, now borders are drawing.
5333 - Fix column header paint issues to mimic win32.
5334 - Adjust header drawing for last column, like first one it must be draw
5336 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
5338 - DataGridPaintColumnHeader created to draw column headers, it also
5339 paint stuff right on Win32.
5340 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
5344 - DataGridPaintRowHeaderStar method added.
5345 - DataGridPaintColumnHeader method added.
5347 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
5349 * Control.cs: Don't reset to Dock style layout if DockStyle is
5350 set to none. [Fixes bug #399316]
5352 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
5354 * Win32DnD.cs: Fix the check for control not equal null.
5355 Fixes bug #341420 and #381886.
5357 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
5359 * DataGridViewRowCollection.cs: Update the indexes of rows after
5360 one has been removed.
5361 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
5362 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
5363 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
5364 rows for the Rows collection, or deleting rows from the bound DataSet.
5366 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
5368 * DataGridView.cs: Listen to a DataSet's changed event even
5369 when autogeneratecolumns is false. Refactor the changed event's
5370 add row code to use the same as the existing add row code.
5373 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5375 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
5376 much any time the caret moves and there is text, not just when
5377 the selection changes as one would think.
5378 * RichTextBox.cs: Override RaiseSelectionChanged and fire
5382 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5384 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
5385 instead of trying to duplicate the code.
5386 * ListBox.cs: Make method internal so we can send keyboard events.
5389 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5391 * TextBoxBase.cs: When pasting and checking the max length,
5392 subtract the selected text length (the text we will be replacing) from
5393 the document length.
5394 * TextControl.cs: Ensure every character insertion is reflected in
5395 charcount, so max length will work properly.
5398 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5400 * ListBox.cs: Ensure scrollbars are updated when a single
5401 column listbox with an already set top-index is created.
5404 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5406 * FontDialog.cs: Typing in the font/style textboxes should search
5407 the list boxes case-insensitively. [Fixes bug #398343]
5409 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
5411 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
5412 widths of icon and buttons instead of hard coded values.
5414 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5416 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
5417 as well as generating a SelectedIndexChanged event, just like .Net does
5421 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5423 * ListBox.cs: When navigating items visually, use FocusedItem as the
5424 reference point instead of SelectedIndex, since even in
5425 SelectionMode.None we need to support navigation, and in that case we
5426 just can't use SelectedIndex.
5427 Fixes part of #398345.
5429 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
5431 * Control.cs: Make a SetBoundsInternal that avoids the new
5433 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
5434 SetBoundsInternal instead of SetBoundsCoreInternal.
5436 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
5438 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
5439 SetBounds for the scrollbars.
5441 2008-06-10 Andreia Gaita <avidigal@novell.com>
5443 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
5444 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
5445 OnMouseMove, OnMouseOver, OnMouseUp
5446 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
5447 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
5448 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
5449 to the WebControl object to pass to new collection objects
5450 * HtmlHistory.cs: Implement support for individual window histories.
5451 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
5452 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
5453 GotFocus, LostFocus, OnLoad, OnUnload
5454 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
5456 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
5457 security level changes and context menu event support.
5459 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5461 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
5462 as happens with Esc, patch my Andy Hume.
5465 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5467 * MdiWindowManager.cs: DrawMaximizedButtons now uses
5468 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
5469 * Theme.cs: Made MenuButtonSize platform dependent. Added
5470 ManagedWindowButtonSize.
5471 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
5472 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
5474 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5476 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
5477 Added support for rendering with VisualStyles.
5479 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5481 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5482 support for rendering the border with VisualStyles.
5484 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5486 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
5487 the icon is not shown.
5488 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
5491 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5493 * InternalWindowManager.cs: Draw minimized windows even if they don't have
5496 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
5498 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
5500 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
5502 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
5505 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5507 * ComboBox.cs: When snaping height -because of IntegralHeight set to
5508 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
5509 if the requested height leaves the listbox area with *less* than the
5510 required are to see one item. We were setting it to PreferredHeight
5511 even for values matching the height for a single item.
5514 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
5516 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
5518 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
5520 * DataGridViewCell.cs: Use property instead of field.
5522 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
5524 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
5527 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
5529 * Theme.cs: Added #region around the managed window code. Made the managed
5530 window methods abstract.
5531 * ThemeWin32Classic.cs: Added #region around the managed window code.
5533 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
5535 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
5537 * ThemeWin32Classic.cs: Removed HasBorders checks in
5538 DrawManagedWindowDecorations.
5540 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
5542 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5543 Extracted ManagedWindowGetTitleBarIconArea.
5545 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
5547 * DataGridViewCellStyle.cs: Don't clone the font.
5549 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
5551 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
5553 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5555 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
5556 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
5559 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
5561 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
5562 Use Format/FormatProvider before trying converters.
5563 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
5564 are 'set'. Change constructor to not use ApplyStyle since it wants
5565 everything applied. Clone the Font.
5566 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
5567 ApplyStyle the rest.
5569 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5571 * ListView.cs: We need to calculate the scrollbars even if the handle
5572 hasn't been created - this is needed when methods using scrollbars
5573 info, such EnsureVisible, are called before control has been created.
5576 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
5578 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
5579 only if the elements are defined.
5581 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5583 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
5584 section. Also, when setting bounds, snap height as well as save the
5585 requested height if Dock has any value affecting the height: Left,
5586 Right and Bottom - important if using IntegralHeight as true.
5588 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5590 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
5591 passed to SetBounds to reflect the new adjusted height (Integral-wise),
5592 instead of doing that only in our SetBoundsCore override, since the
5593 bounds cached can be the same as saved one and we could not get the
5597 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5599 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
5600 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
5601 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
5602 ToolWindowCaptionButtonSize.
5603 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
5605 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5607 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
5609 * Theme.cs: Made DoubleClickTime plaform dependent.
5611 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5613 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
5614 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
5615 ToolWindowCaptionHeight.
5617 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5619 * InternalWindowManager.cs: The adjustment to ensure positive client area
5620 sizes is now platform dependent (disabled on Windows).
5621 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
5622 RequiresPositiveClientAreaSize.
5624 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5626 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
5628 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5630 * InternalWindowManager.cs: Changed IconicSize to use
5631 SystemInformation.MinimizedWindowSize.
5632 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
5633 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
5635 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5637 * ComboBox.cs: If the combobox is anchored both on top and bottom,
5638 adjust height if IntegralHeight is true when calling SetBoundsCore (as
5639 likely the height was modified even if Height wasn't specified in
5640 BoundsSpecified parameter).
5641 Fixes part of #396297.
5643 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5645 * InternalWindowsManager.cs: Changed minimum window size while resizing to
5646 SystemInformation.MinWindowTrackSize.
5647 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
5648 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
5650 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
5652 * MenuItem.cs: Fixed Dispose.
5654 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
5656 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
5657 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
5658 EnteredHeaderCell, PressedHeaderCell: Added.
5659 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
5660 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
5661 theme a chance to override default painting.
5662 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
5663 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
5664 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
5665 ListView and DataGridView header rendering.
5667 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
5669 * RichTextBox.cs: GetPositionFromCharIndex should return the
5670 visual position of the character relative to the viewport.
5671 [Fixes part of bug #396664]
5673 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
5675 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
5676 and not just for the existance of an UITypeEditor. In some cases
5677 there is an editor associated just to do PaintValue, but which
5678 doesn't actually support editing.
5681 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5683 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
5684 if needed, instead of 0 - this should help us in the corner case where
5685 we have more than one item but we are only partially showing 1 item.
5686 Fixes part of #374713.
5688 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5690 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
5691 control, return immediately if the any parent control's handle hasn't
5692 been created or isn't visible, as well as avoiding creating the parent
5693 Form if the handle hasn't been previously created.
5696 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
5698 * TableLayoutPanel.cs: Use border sizes when calculating the
5699 panel's preferred size. [Fixes part of bug #396433]
5701 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
5703 * SplitContainer.cs:
5704 - Fix SplitterDistance to update only if needed.
5705 - Make it force min and max validation.
5706 - Handle properly mouse moves outside the resizeable area.
5709 2008-06-02 Andreia Gaita <avidigal@novell.com>
5711 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
5712 (which also suppresses all popup dialogs). Throw NotSupported
5713 exceptions for activex getters/setters.
5714 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
5715 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
5716 StatusText, Version, GoSearch
5717 * HtmlDocument.cs: Add DocType support
5719 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
5721 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
5724 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
5726 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
5728 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
5730 * TableLayoutPanel.cs: When calculating preferred size, use the
5731 actual number of columns and rows, not what the user set them to.
5734 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
5736 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
5739 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5741 * XplatUIX11.cs: When detecting areas obscured in a control by other
5742 toplevel windows while scrolling, return if the control hasn't a
5746 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5748 * XplatUIX11.cs: Properly detect the visible area of a control being
5749 scrolled (obscured by other winforms controls and any X toplevel
5750 windows), to mark as invalid the requested area to be scrolled that
5751 isn't visible and thus can't be copied.
5754 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5756 * ListBox.cs: Compute the precise amount to vertically scroll when
5757 using DrawMode.OwnerDrawVariable.
5758 Patch by jkeymer (j.keymer@gmx.net).
5760 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5762 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
5763 to avoid setting an invalid value for the verticall scrollbar
5764 when navigating items. And, duh, also remove my silly debug messages
5765 from previous commits.
5768 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
5770 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
5771 make it MS compatible.
5773 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
5775 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
5776 - Allow the editing of entries even if their parent is read-only.
5777 - Do not render expandable properties read-only.
5778 - Refactor expansion checks form PropertyGrid into PropertyGrid.
5780 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
5782 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5783 support for the hover style.
5785 2008-05-29 Andreia Gaita <avidigal@novell.com>
5787 * ContainerControl.cs: Check for null dead-end when traversing the tree
5790 [Fixes #394332, patch by Ernesto Carrea]
5792 2008-05-29 Geoff Norton <gnorton@novell.com>
5794 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
5795 constant that it is. Fixes #393981
5797 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
5799 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
5800 that the user probably doesn't want to set this.
5802 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
5804 * ThemeWin32Classic.cs: Don't let the text size be bigger than
5805 the control size for CheckBox/RadioBox.
5806 [Fixes part of bug #394645]
5808 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
5810 * PropertyGrid.cs: Update the state of the sorting buttons in
5811 the toolbar if PropertySort is set programatically.
5813 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
5815 * GridItemCollection.cs: Add multiple items with conflicting names
5816 support and also preserve name ordering.
5819 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
5821 * GridItemCollection.cs: Revert my multiple items with same
5824 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5826 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
5828 Fixes part of #393908.
5830 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
5832 * ToolStripDrowDown.cs: When using the Show () methods that have a
5833 Control parameter, set the menu owner to that Control.
5836 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
5838 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
5841 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5843 * GridItemCollection.cs: Refactor to support multiple items with the
5847 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
5849 * Control.cs: The 2.0 check for illegal cross thread calls in
5850 Control.Handle were throwing an exception when we were getting
5851 the Handle in order to invoke correctly. Created a private
5852 version that does not contain this check.
5855 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5857 * PropertyGrid.cs: Respect DefaultTabType.
5859 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5861 * ListView.cs: SPACE selects an item.
5864 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5866 * ListView.cs: Reset the search string whenever the items are
5870 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5872 * ListControl.cs: For the first added item PositionChanged is fired
5873 _before_ ItemChanged, which leave us in a temporary invalid state - so
5874 we need to set the selected index from ItemChanged handler *if* we
5875 know that the first item has just been added *and* the items have been
5876 actually added to the ListControl.
5879 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5881 * TabControl.cs: Only clicks with the left button should be
5885 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5889 * TextBox.cs: Expose an internal method in TextBox to restore the
5890 original context menu, and call it from ComboBox to re-use it in the
5891 combobox containing the file name in FileDialog.cs.
5892 Fixes part of #393775.
5894 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
5896 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
5899 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
5901 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
5904 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5906 * ComboBox.cs: Minor correction to previous patch: PageDown should
5907 also *try* to move by one item if the computed offset is negative,
5908 just like the PageUp case.
5910 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5912 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
5913 should be done for at least 1 item, and not stay at the same item.
5914 Fixes part of #374713.
5916 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
5918 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
5919 directories. [Fixes bug #393931]
5921 2008-05-22 Andreia Gaita <avidigal@novell.com>
5923 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
5924 Don't fire events until the initial about:blank page has finished
5925 loading. Clean up events.
5927 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
5929 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
5930 FocusIn() too. This should fix the issue on switching
5933 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
5935 * X11Keyboard.cs : set XIM font size to somewhat reasonable
5936 number (ideally the input textbox size, but that could be
5939 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
5941 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
5942 the ToolStripItem's TextChanged. [Fixes bug #393597]
5944 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5946 * TabControl.cs: When invalidating in SelectedIndex and we need to
5947 inflate to take into account the border of the tabs, make sure that
5948 the invalidated rect doesn't overflow the control bounds, since that
5949 would avoid updating at all.
5951 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5953 * TabControl.cs: Don't substract scroller width from the row width,
5954 since we need to take into account the total width of the control when
5955 calculating the position of the tabs. This avoids showing scroller
5956 when it is actually not needed.
5957 Fixes part of #322325.
5959 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5961 * ThemeVisualStyles.cs: Added support for TextBoxBase.
5963 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5965 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5966 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
5968 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
5970 * DataGridView.cs: Only paint the top left header cell if there
5973 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
5975 * DataGridView.cs: When binding to a BindingSource, get the underlying
5976 list to bind to. [Fixes bug #345483]
5978 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
5980 * DataGridView.cs: Do not bind to collection properties.
5983 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5985 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5987 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5989 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5992 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5994 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5996 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5998 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
6001 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6003 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
6005 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6007 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
6010 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6012 * TabControl.cs: Extended to handle the hot style.
6014 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6016 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
6017 Extended UpDownBase code to handle hot and disabled styles.
6019 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
6021 * DataGridView.cs: Handle databinding to generic list type things.
6024 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
6026 * DataGridViewCellCollection.cs: Add a method to find the cell
6027 with the given DataPropertyName.
6028 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
6029 * DataGridViewColumnCollection.cs: Add a method to clear all
6030 autogenerated columns.
6031 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
6035 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
6037 * DataGridView.cs: Don't try to update the RowTemplate with
6038 a null CellTemplate.
6040 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
6042 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
6043 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
6044 * DataGridView.cs: Lots of fixes/enhancements to databinding to
6047 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
6049 * Control.cs: Remove invalidating implicit child controls when
6050 control is invalidated. It was causing too many redraws on
6051 controls with implicit scrollbars.
6052 * ListView.cs: Listen to the Invalidated event and invalidate
6055 2008-05-20 Andreia Gaita <avidigal@novell.com>
6057 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
6058 * HtmlDocument.cs: Check for nulls
6060 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6062 * Control.cs: In ControlCollection.RemoveInternal, remove the
6063 internal control before calling PerformLayout and OnControlRemoved,
6064 which was leaving us in an invalid state and causing a X error (bad
6065 match). Observe that Remove () call has the same order.
6066 Fixes an X error changing ComboBoxStyle.DropDownStyle.
6068 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6070 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
6071 being fired if ControlStyles.UserPaint style is activated.
6074 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
6076 * GridEntry.cs: Don't be so strict when setting the value -
6077 do not check if what we set is what we get.
6080 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
6082 * XplatUIX11.cs: If there are no timers timeout should be 0
6085 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
6087 * Control.cs: As a followup to invalidating implicit children when
6088 a control is invalidated, only invalidate them if they are in the
6091 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6093 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
6095 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6097 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
6099 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6101 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
6102 * XplatUIWin32.cs: Made Win32DeleteObject public.
6104 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
6106 * GridEntry.cs: Determine HasDefaultValue more strictly by using
6107 PropertyDescriptor.ShouldSerializeValue.
6110 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6112 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
6113 in the classic theme.
6115 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6117 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
6119 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
6120 ScrollBarHasPressedThumbStyle.
6122 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6124 * TextRenderer.cs: Included some methods in the 1.1 profile.
6126 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
6128 * Control.cs: When we make a control visible, it may have been
6129 previously visible and while it wasn't visible, the z-order of
6130 things may have been shuffled, so the control needs to have its
6131 z-order updated just in case. [Fixes bug #391518]
6133 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6135 * ThemeVisualStyles.cs: Added support for GroupBox.
6137 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6139 * GroupBoxRenderer.cs: Included in the 1.1 profile.
6141 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
6143 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
6144 bug #389996; XSelectInput() behaved as mouse handler robber,
6145 so remove extra call to it.
6147 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
6149 * Control.cs: Simplify ControlCollection.Contains method.
6151 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
6153 * DataGridViewRow.cs: Implement GetPreferredSize.
6155 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
6157 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
6159 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
6161 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
6162 painting and edit control fixes.
6164 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
6166 * DataGridView.cs, DataGridViewCell.cs: Work around some external
6167 checks to make sure we are in an actual row/col for top left header cell.
6168 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
6170 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
6172 * Control.cs: Use long instead of int when handling WParam from
6173 mousewheel scrolling. Int was overflowing on Win64.
6175 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
6177 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
6178 flow panel without scrolling first, and then calculate the
6179 scrolling based on the new layout. [Fixes bug #390149]
6181 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
6183 * ListBox.cs: Invalidate after scrolling up when selected index
6184 changes. [Fixes bug #390151]
6186 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6188 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
6189 set, default height to 150. I tried first with DefaultSize, but this
6190 is not generating a SetBoundsCore call before handle creation time, so
6191 we can take it into account. This is just what .net does.
6193 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
6195 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
6196 as it broke some stuff. Calberto is filing a bug for eno to
6199 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6201 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
6202 to 0 is the current value is -1, and if style is not Simple, just
6203 return, like .net does.
6204 Fixes part of #374713.
6206 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
6208 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
6209 progress bar stuffs, use doubles instead of ints to prevent
6210 overflow. [Fixes bug #389798]
6212 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
6214 * XplatUIX11.cs, X11Keyboard.cs :
6215 Significant refactoring on XIM support. Now IM engine UI
6216 should show up, at mostly-correct preedit position.
6217 - Eliminated use of FocusWindow, as it is never mapped
6218 and hence blocks correct preedit position. XIC is now
6219 created per window, and it must be destroyed too when
6220 the window is destroyed.
6221 - WM_QUIT messages should not be filtered even when hwnd
6222 is zombie. Filtering it could cause endless loop.
6223 - Preedit position must move only when the window is alive.
6224 - Make it IDisposable and make sure to release XIM/XICs.
6226 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
6228 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
6229 XplatUIX11.cs, XplatUIWin32.cs :
6230 fix for bug #325033 and #387693;
6231 - WM_QUIT should not be sent when no running application
6233 - SetTimer/KillTimer (especially on win32) should be
6234 invoked for the window that the timer is/will_be attached.
6235 - There could be unattached timers to a window when it's
6236 started. For those timers, hold pending timers and when
6237 a window is mapped, attach them to it.
6238 - WaitForHwndMessage() could run into loop when
6239 WM_SHOWWINDOW is handled before this method is called.
6240 So, strictly check wm_showwindow state.
6241 - Tick handler should not be invoked while one Tick handler
6242 call is still running (introduced Busy state).
6244 2008-05-13 Andreia Gaita <avidigal@novell.com>
6246 * WebBrowserBase.cs: Override Internal alternative methods for
6247 SetBoundsCore and OnResize instead of the protected ones.
6248 * Control.cs: Move SetBoundsCore and OnResize implementations to
6249 SetBoundsCoreInternal and OnResizeInternal, so they can be
6250 overriden internally (WebBrowserBase needs to catch them but can't
6251 override the protected methods without api compat problems)
6253 2008-05-13 Andreia Gaita <avidigal@novell.com>
6255 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
6257 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6260 * ListView.cs: Remove debug messages.
6262 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6264 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
6265 area is empty. Also calculate scrollbars in Simple mode based in area
6266 height and total number of items, not in MaxDropDownItems.
6267 Fixes part of #371991.
6269 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6271 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
6273 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6275 * BindingSource.cs: GetListSortDescription is not public.
6277 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6279 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
6281 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6283 * HtmlElement.cs: Fix parameter names to match MS.
6284 * HtmlWindowCollection.cs: Should not be sealed.
6286 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6288 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
6289 button, because the thumb button will not get drawn if the scrollbar
6290 is disabled. [Fixes bug #389262]
6292 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6294 * ListBox.cs: Handle End key for multi-column listboxen.
6297 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6299 * ListBox.cs: Fix algorithm to determine which column our item is in.
6302 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6304 * ListBox.cs: Invalidate when the listbox is resized.
6307 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6309 * ListBox.cs: There is always at least one row in the ListBox (if
6310 we are doing these calculations.) [Fixes bug #389253]
6312 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6314 * ListBox.cs: There is always at least one column in the ListBox.
6317 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6319 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
6320 ensure in Simple mode that the height is exactly the requested one.
6321 Also add the ComboBoxListControl to the controls collection in Simple
6322 mode even if handle hasn't been created.
6323 Fixes part of #371991.
6325 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6327 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
6328 our ComboBox owner instead of giving it back to the previous control (
6329 as done in other controls). Also remove the empty override of Select
6330 method, since we want to be selected *and* give focus to our owner.
6331 This should let the user do keys-navigation in Simple mode.
6333 2008-05-10 Geoff Norton <gnorton@novell.com>
6335 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
6336 problems with rapid scrolling of treeviews. Fixes #381084
6338 2008-05-10 Geoff Norton <gnorton@novell.com>
6340 * XplatUICarbon.cs: Deactivate the active window before
6341 activating the desired window. Completes fixing #386504
6343 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6345 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
6346 SmallChange to the item size width plus the padding, to match .net.
6348 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6350 * FileDialog.cs: Apply the custom filter typed by the user in the file
6351 name combobox as much as possible while navigating in the file dialog.
6354 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6356 * Binding.cs: Actually use NullValue if the retrieved value of
6357 data source is null or DBNull. Makes a test pass.
6359 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
6361 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
6362 * MimeIcon.cs: Provide a way to get icons from resources.
6364 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6366 * Binding.cs: When the value retrieved from the control to be assigned
6367 to the data source is null, actually use the 2.0 DataSourceNullValue
6368 value. Make pass a data binding test.
6370 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
6372 * Control.cs: We need to invalidate implicit children even when
6373 invalidate is called with invalidatechildren = false. (Implicit
6374 children are really part of the parent.)
6375 * ListView.cs: Double-buffer internal child controls for less
6377 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
6378 owner ListView subitems for greatly increased performance.
6381 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
6383 * FileDialog.cs: When the user types a wildcard character in the
6384 filename combobox, update the contents of the folder using the text as
6386 Fixes part of #385261.
6388 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
6390 * ListBox.cs: Various fixes for MultiColumn listboxen.
6393 2008-05-08 Andreia Gaita <avidigal@novell.com>
6395 * HtmlElement.cs: Implement Style property
6397 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
6399 * ListBox.cs: Respect checkboxes when measuring item size.
6400 * ThemeWin32Classis.cs: When drawing list items, don't draw
6401 text outside of the item's bounds to prevent overlapping.
6402 (.Net actually overlaps, but that's just silly.)
6405 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
6407 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
6408 Gert Driesen. Fixes bug #324830.
6410 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
6412 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
6415 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6417 * BindingSource.cs: When calling IsSynchronized, return the value of
6418 the related IList list.
6420 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6422 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
6425 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
6427 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
6428 navigation to scroll the grid if the current cell is not visible.
6430 2008-05-07 Andreia Gaita <avidigal@novell.com>
6432 * HtmlElement.cs: Implement TabIndex
6434 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
6436 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
6437 properties, even when there are no items.
6440 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
6442 * NativeWindow.cs: Add support for multiple handles per window.
6443 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
6444 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
6445 directly - use FromHandle instead.
6448 2008-05-07 Andreia Gaita <avidigal@novell.com>
6450 * HtmlElement.cs: Implement InnerHTML setter
6452 2008-05-07 Andreia Gaita <avidigal@novell.com>
6454 * HtmlDocument.cs: Implement Focused
6456 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6458 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
6459 methods, as well as add messages to the exceptions.
6461 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6463 * BindingSource.cs: Setting DataSource should only reset DataMember if
6464 the previous value was null (make pass a not working test).
6466 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6468 * BindingSource.cs: When EndInit call is postponed and is called until
6469 DataSource.EndInit is called, remove the handler for data source.
6471 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6473 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
6475 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6477 * ToolStripManager.cs: Store references to toolstrips as
6478 weak references so they do not prevent forms from getting collected.
6481 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6483 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
6484 on .Net. So do the same thing in WndProc.
6486 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6488 * TrackBar.cs: Commit patch from Andy Hume that corrects
6489 the clickable areas to better match .Net.
6492 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6494 * TrackBar.cs: Commit patch from Andy Hume that adds the
6495 ResizeRedraw control flag so the track bar repaints itself
6496 when it is resized. [Fixes bug #387072]
6498 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6500 * TrackBar.cs: Commit patch from Andy Hume that adds better
6501 support for keyboard navigation when the TrackBar is vertical.
6504 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6506 * BindingSource.cs: Implement ISupportInitializeNotification support.
6508 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
6510 * ThemeVisualStyles.cs: Added support for ToolBar.
6512 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
6514 * ToolBar.cs: Made the Vertical property internal.
6516 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
6518 * ThemeVisualStyles.cs: Added support for TrackBar.
6520 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
6522 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
6523 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
6524 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
6525 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
6526 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
6527 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
6529 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
6531 * ThemeVisualStyles.cs: Added support for UpDownBase.
6533 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
6535 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
6536 Extracted Theme.UpDownBaseDrawButton.
6538 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
6540 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
6541 removed from the static toolstrips collection in ToolStripManager
6542 when they are disposed. Provides a workaround for bug #386483.
6544 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
6546 * GridEntry.cs: Read-only properties with Editor with
6547 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
6550 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
6552 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
6553 the menu key and there are no items on the menu.
6556 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
6558 * Control.cs: Avoid calling ToString on a string.
6559 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
6560 * GroupBox.cs: In FlatStyle property throw, not just create, the
6561 exception. Avoid calling ToString on a string.
6562 * ProgressBar.cs: Avoid calling ToString on a string.
6563 * ScrollBar.cs: Avoid calling ToString on a string.
6564 [All issues were found using Gendarme]
6566 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
6568 * NotifyIcon.cs: Prevent click events to be trigger after double click
6569 events. Fixes remaining issues of bug #324832.
6571 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
6573 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
6574 to mimic win32 behavior. Partially fixes bug #324832.
6576 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6578 * BindingSource.cs: Implement Find methods.
6580 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6582 * BindingSource.cs: Implement Sort, ApplySort overloads, and
6585 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6587 * ListBindingHelper.cs: When calling GetListItemProperties and the
6588 passed object is ITypedList, return the result of
6589 ITypedList.GetItemProperties instead.
6591 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
6593 * LinkLabel.cs: Set default value of name on constructor of Link class
6594 only for 2.0 profile.
6596 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
6598 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
6599 Fixes remaining issues of bug #346154.
6601 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
6603 * LinkLabel.cs: Set a default value for name on internal contructor of
6604 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
6606 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
6608 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
6609 and refer all instances to owner.links. Partially fixes #346154.
6611 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6613 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
6614 length equal zero. Also called CreateLinkPieces in constructor. It fixes
6615 the LinkLabel test 'TestLinkArea'.
6617 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6619 * Form.cs: Remove menu before close form to prevent form to be not gaced.
6622 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6624 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
6627 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6629 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
6632 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6634 * MenuAPI.cs: Remove unused ProcessCmdKey method.
6636 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6638 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
6641 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6643 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
6646 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6648 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
6649 sometimes we open a conext menu on mouse down of some controls and the mouse
6650 up is dispatched to menu and dont need to. It fix remaining issues of
6651 #363711 and other problems related to menu mouse click events.
6653 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
6655 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
6656 some var names to better fit changes, now we have month_menu and today_menu
6657 vars. Fixes bug #363711.
6659 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
6661 * MonthCalendar.cs: Handle every right mouse click to open context menu,
6662 right now the default month menu but it will be change to have "Go to today"
6665 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6667 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
6669 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
6671 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
6673 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6675 * ThemeVisualStyles.cs: Added support for TreeView.
6677 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6679 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
6680 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
6682 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6684 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
6686 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6688 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
6689 Implement 2.0 SP1 stuffs.
6691 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6693 * FileDialog.cs: Implement 2.0 SP1 stuffs.
6695 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6697 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
6698 Implement CanEnableIme property. (2.0 SP1)
6700 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6702 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
6705 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6707 * Control.cs: Provide an internal way for a control to override
6708 the setting of Height.
6709 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
6710 set height using new method.
6712 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6714 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
6716 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6718 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
6719 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
6721 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6723 * ThemeVisualStyles.cs: Added support for StatusBar.
6725 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6727 * DataObject.cs: Add the other IDataObject interface.
6729 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6731 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
6732 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
6734 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6736 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
6737 * ListView.cs: Hide non-public API.
6738 * MaskedTextBox.cs: Remove extra attribute.
6740 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6742 * DataGridViewImageCell.cs: Use formatted value instead of value
6743 to calculate preferred size.
6745 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
6747 * ListBox.cs: Move some initialization around so that selected_indices
6748 is not accessed before it is created.
6750 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
6752 * InputLanguageCollection.cs: Implement the collection better.
6755 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
6757 * ToolStripDropDownItem.cs: Get the correct event object for
6758 DropDownItemClicked.
6759 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
6762 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
6764 * DataGridViewRowCollection.cs: We don't currently support shared
6765 rows. Should fix test failures caused by previous commit.
6767 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
6769 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
6770 datagridview gets set. Only paint cells in visible columns.
6771 * DataGridViewCell.cs: Draw border after cell content.
6772 * DataGridView.cs: Invalidate after setting some properties. Only
6773 use visible columns. Fit hit test bug with areas in the col/row header
6774 area but not in a row or col. Implement UpdateCell/Row methods.
6776 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
6778 * DataGridViewElement.cs: Don't throw NIEX.
6779 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
6780 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
6781 * DataGridViewCheckBoxColumn.cs: Implement ToString.
6782 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
6783 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
6784 if the user filled in the formatting Value, use it.
6786 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
6788 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
6791 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6793 * BindingSource.cs: Some corrections to Filter property, as well as
6794 setting it for our list when resetting it.
6796 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
6798 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
6799 than the maximum. Fixes reopened bug #384182.
6801 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6803 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
6804 Fixes remaining issues of #367490.
6806 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6808 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
6809 SystemInformation.WorkingArea to get max_screen value.
6811 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6813 * BindingSource.cs: Implement Filter and RemoveFilter.
6815 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6817 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
6819 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6821 * X11Dnd.cs: When trying to convert data and we know we started the
6822 dnd loop, don't try to use the cached data if the loop is not running,
6823 which means that the data has been resetted.
6826 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6828 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
6831 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6833 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
6834 it to drawn off screen edge. Fixes bug #367490.
6836 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6838 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
6839 menu position to have only one assignment of Location var.
6841 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6843 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
6844 for this patch. Fixes bug #384115.
6846 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
6848 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
6849 the same. If LargeChange is zero, set a minimum size for the scroll
6850 thumb grip. [Fixes bug #384182]
6852 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
6854 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
6857 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
6859 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
6861 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6863 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
6864 patch from Ernesto).
6866 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6868 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
6870 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6872 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
6874 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6876 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
6878 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6880 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
6882 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
6884 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
6886 2008-04-27 Andreia Gaita <avidigal@novell.com>
6888 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
6889 supposed to return a reference to an mshtml interface, which we
6891 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
6892 reference to an mshtml interface, which we don't support). Code
6894 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
6895 DomDocument getter (it's supposed to return a reference to an
6896 mshtml interface, which we don't support). Code formatting cleanup.
6898 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6900 * ListView.cs: Ouch, forgot to commit.
6902 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6905 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
6907 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6909 * ListView.cs: When calculating box selection for virtual mode, don't
6910 look for intersection with item's text, but item bounds, since that
6911 would mean read ListViewItem's text for _every_ item, and that's
6912 something we just can't do in virtual mode (items are only requested
6915 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
6917 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
6918 partial support for managed windows (based on the patch from Ernesto).
6920 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6922 * ListView.cs: When doing a key search use FindItemWithText method
6923 instead of doing the search by ourselves, this way we avoid
6924 duplicating the code and also we handle the special case for virtual
6925 mode. To achieve that make our private overload of FindItemWithText
6926 internal and also have a 'roundtrip' parameter.
6928 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6930 * ListView.cs: When doing the layout don't request the
6931 ListViewItem instance if we are in virtual mode (since we can't request it
6932 until the item is actully drawn).
6934 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6936 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
6939 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6941 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
6942 the patch from Ernesto).
6944 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6946 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
6947 * ThemeVisualStyles.cs: Added.
6949 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6951 * IDeviceContext.cs: Added a missing using.
6953 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6955 * ButtonBase.cs: Made IsDefault protected internal.
6956 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
6958 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6960 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
6961 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
6962 RadioButtonRenderer.cs: Included in the 1.1 profile.
6963 * IDeviceContext.cs: Added.
6964 * TextRenderer.cs: Included a member in the 1.1 profile.
6966 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6968 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
6970 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
6972 * ErrorProvider.cs: Make the error icons come after the control
6973 they refer to. It isn't the way the MS does it, but its better
6974 than what we were doing. See bug #368587.
6976 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
6978 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
6979 from Eric Albright that lazy loads the input language as ensures
6980 everything gets properly initialized. Fixes bug #373871.
6982 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
6984 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6985 implicit mnemonics. [Fixes bug #383000]
6987 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6989 * X11Dnd.cs: When canceling the operation, automatically restore the
6990 default cursor - normally the default cursor is restored when the
6991 mouse buttons are released, but we should be able to restore it even
6992 if the buttons are still pressed (for example, when pressing ESC to
6996 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6998 * X11Dnd.cs: When starting a new drad and drop operation, set control
6999 field to null, just as the other fields, to avoid calling any
7000 operation on a previous control. Also, when calling DndLeave on a
7001 control, set it to null, thus we don't fire that event multiple times
7005 2008-04-23 Geoff Norton <gnorton@novell.com>
7007 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
7008 the whole_window object. Fixes #377084.
7010 2008-04-23 Andreia Gaita <avidigal@novell.com>
7012 * HtmlElement.cs: Implement RaiseEvent (event injection into the
7015 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
7017 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
7019 2008-04-23 Andreia Gaita <avidigal@novell.com>
7021 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
7024 2008-04-23 Andreia Gaita <avidigal@novell.com>
7026 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
7029 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7031 * X11Dnd.cs: When the drop was cancelled, or could just not be
7032 performed, return DragDropEffect.None always (match .net).
7034 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
7036 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
7038 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
7040 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
7042 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
7044 * DataGridView.cs: Add support for error icon tool tips.
7045 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
7046 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
7048 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
7050 * X11Structs.cs: Add mouse button masks enum.
7051 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
7052 WM_EXITSIZEMOVE only once at the beginning and at the end of the
7053 form resize/move operation instead of for each step of it.
7054 [Fixes bug #346529 for the x11 backend]
7056 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
7058 * DataGridView*: Implement support for drawing error icons.
7060 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
7062 * TreeView.cs: Make vbar and hbar internal.
7063 * TreeNode.cs: If collapsing the node removes one of the TreeView's
7064 scrollbars, invalidate the whole thing.
7067 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
7069 * TreeView.cs: Calling Sort() sets Sorted = true.
7070 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
7071 if the nodes need to be sorted.
7074 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
7076 * Form.cs: Fire SizeChanged for both when the form is minimized and
7078 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
7079 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
7081 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
7083 * ComboBox.cs: If the combobox is disabled, draw a disabled
7084 background before painting anything else.
7087 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7089 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
7090 forget to send a Leave event to the target window - just as .net does
7091 when cancelling dnd operations.
7093 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7095 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
7096 soon as possible - this happens when we send the drop message to the
7097 target window. This way we avoid firing any DragOver _after_ drop finished.
7100 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
7102 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
7103 * Form.cs: Handle form minimization as a special state, where size doesn't
7104 change, but we have to fire SizeChanged.
7105 [Fixes bug #325122 for the win32 and x11 backends]
7107 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
7109 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
7110 if the handle is disabled.
7113 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
7115 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
7116 for forms with FormBorderStyle.None.
7119 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
7121 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
7123 [Fixes bug #346529 for the X11 backend]
7125 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
7128 - Send a mouse Enter message after say dragging the mouse with a
7129 button down and then release it in another client.
7130 - Reset the cursor to prevent X11 from remembering it and setting it
7131 before the control gets WM_SETCURSOR.
7132 - Qeueue a mouse move after a mouse enter like win32.
7135 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
7137 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
7138 It's sent when the form gets moved, resized, closed.
7139 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
7140 [Fixes bug #359193 for X11]
7142 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
7144 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
7147 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
7149 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
7150 group. Fixes the 1.1 build.
7152 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7154 * ListView.cs: Use display indexes for selection in Details view, as
7155 well as do the proper layout based on display indexes for that view
7158 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7160 * ListView.cs: Focused item information is now stored as a display
7161 index, and display indexes are used all over the place for selection,
7162 instead of ListViewItem.Index values, which doesn't give us enough
7163 information to modify the selection in groups mode, and was broken.
7165 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
7167 * Control.cs: Do not fire MouseDown if validation of the control has
7169 * Form.cs: Validate the form before closing.
7170 [Fixes bugs #330501 and #353310]
7172 2008-04-18 Andreia Gaita <avidigal@novell.com>
7174 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
7175 CreateWebBrowserSiteBase implementations
7176 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
7177 Style and TabIndex setters
7179 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7181 * ListViewGroup.cs: When returning the actual item count, return the
7182 proper count for default group.
7185 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7188 * ListViewGroup.cs: When calculating groups layout, get the actual
7189 number of items per group, since groups added to the group BUT not
7190 added to the ListView are just ignored, and can cause some nasty
7191 exceptions because of the lack of synchronization. Also for
7192 ListViewGroup don't use lazy initialization for items, since we
7193 the common scenario is to use it always - and it helps us to refactor
7194 and clean the .ctor overloads.
7196 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7198 * ListView.cs: When adding an item to a ListViewItemCollection
7199 belonging to a group (ListViewGroup.Items), don't generate a redraw if
7200 the added item hasn't beeen previously added to the ListView instance
7201 refered by the group, since it will be ignored. This should avoid some
7202 really nasty flickering.
7204 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7206 * ListView.cs: When accessing an item in a specific display
7207 position, use the helper method GetItemAtDisplayIndex, instead of
7208 direct access to the reordered_items_indices array. When doing layout
7209 for groups set the correct Items index for the display position (since
7210 in groups mode items don't have the same position as in Items
7212 * ListViewGroup.cs: Add a field to store the starting item number,
7213 which is later used when calculating the layout.
7217 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
7219 * Application.cs: Fixed ProductVersion to fallback to the assembly
7220 version. Fixes regression for bug #325413.
7222 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7224 * ListView.cs: New helper method to retrieve an item in a _specific
7225 display_ position (the items can be displayed in a different order
7226 than one of Items collection).
7227 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
7228 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
7229 specific display position (again remember that items can be sorted
7230 different than Items).
7232 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
7234 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
7235 list and update it when the collection changes. We were recreating
7236 this several times per row paint and for every pixel the mouse moved
7238 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
7241 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
7243 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
7244 list to use generics.
7245 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
7246 and remove unneccessay casts.
7248 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
7250 * DataGridViewBand.cs: Add internal way to set displayed variable.
7251 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
7252 * DataGridView.cs: Make sure we always keep track of Displayed
7253 rows and columns, and only draw things that are displayed.
7255 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
7257 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
7258 whether the key events are filtered or not. Introduced
7259 PreFilter() process for this purpose. This fixes atokx3/iiimx
7262 2008-04-16 Andreia Gaita <avidigal@novell.com>
7264 * HtmlHistory.cs: Implement Length property
7266 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
7268 * DataGridView.cs: Call EndEdit when a sort is performed so we take
7269 away the edit textbox. Refactor to reuse column sort code.
7271 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
7273 * MenuAPI.cs: Remove the code that save and restore capture status of
7274 grab_control, this fixes some Menu and Context menu bugs but maybe it can
7275 cause some others, I cant figure the possible problems of this patch but
7276 right now remove the code looks to be better than keep it. This patch fixes
7277 bugs #357638, #378721 and #379570.
7279 2008-04-12 Andreia Gaita <avidigal@novell.com>
7281 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
7282 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
7283 add missing properties and event handlers.
7285 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
7287 * ListBox.cs: Make sure the LargeChange we are setting is at least
7288 zero, to prevent an IOORE. [Fixes bug #379531]
7290 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
7292 * ComboBox.cs: Support item navigation by entering text. Firstly,
7293 in DropDownList mode, for each key-press select the next item
7294 starting with that letter.
7295 For other modes, when no item selected, on arrow-up/-down and open
7296 drop-down select the first item matching the text in the textbox.
7298 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
7300 * X11Keyboard.cs : Control.FromHandle() could return null
7301 in MoveCurrentCaretPos().
7303 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7305 * ListView.cs: When changing the size in VirtualMode, also Reset the
7307 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
7308 changing selection info for VirtualMode.
7311 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7313 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
7314 view, don't use LineLimit for the first item - use NoWrap *always*
7315 instead, since ListView.LabelWrap is not used for this view.
7318 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7320 * Binding.cs: Call UpdateIsBinding when setting control - probably
7321 Binding is already usable and we don't need to wait to check the
7322 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
7323 Created, just like 2.0 does.
7324 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
7326 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7328 * Binding.cs: Just realized we don't need to have a handler for
7329 BindingContextChanged, since this info should be now consumed directly
7330 in the BindingManagerBase. And also, the manager.IsBindingSuspended
7331 state info is checked directly, instead of caching it.
7333 * CurrencyManager.cs: IsSuspended should return always false if Count
7336 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7338 * Binding.cs: When calling PushData, return if manager.Count == 0,
7339 since we just don't have data to be read. Also, when setting the
7340 Control for binding, hook up some events to refresh the IsBinding
7341 state when BindingContext change or control gets created; use
7342 Control.IsHandleCreated instead of Control.Created check to set
7343 IsBinding state - we *actually* need to modify IsBinding when control
7344 is created, but we don't have any Created event, only HandleCreated.
7345 Fixes part of #349364.
7347 2008-04-11 Geoff Norton <gnorton@novell.com>
7349 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
7350 warping a null Caret.
7352 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
7354 * DataGridView.cs: Implement row/column autosizing methods. Implement
7356 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
7357 * DataGridViewRowCollection.cs: Add an internal sorting method.
7359 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
7361 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
7362 value in ListView drawing code.
7364 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
7366 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
7367 is clicked. Respect the user setting Cancel in FileOk.
7369 2008-04-11 Geoff Norton <gnorton@novell.com>
7371 * ListView.cs: Avoid setting and resetting control Width/Heights and
7372 calculate the final value and set it once. Prevents a feedback loop
7375 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
7377 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
7380 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
7382 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
7383 Add some on-the-spot code, but it seems we don't need it.
7385 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
7387 * Form.cs: Add method for DataGridView to trigger focus cues
7388 even when it handles the tab keypress.
7390 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
7392 * DataGridView.cs: More keyboard handling, tab, esc.
7393 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
7394 when at the beginning or end of the text in the text box.
7396 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7398 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
7400 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7402 * DataGridView.cs: Some fixups for showing and adding the edit control.
7403 * DataGridViewButtonColumn.cs: Implement ToString.
7404 * DataGridViewCell.cs: Size and position the control simultaneously.
7405 * DataGridViewTextBoxCell.cs: Use base to position control.
7407 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7409 * DataGridViewCell.cs: Fix up some formatting and painting code.
7410 * DataGridViewImageCell.cs: Implement some NIEX methods.
7412 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7414 * ToolStripItemCollection.cs: What moving an item from one owner
7415 to another, remove from source owner before adding to destination.
7418 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7420 * PictureBox.cs: Call Load when ImageLocation is set.
7423 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
7425 * X11Keyboard.cs, XplatUIX11.cs :
7426 Implement over-the-spot mode (with some odd offsets).
7427 - set preedit position when caret is set.
7428 - Wrap XMoveResizeWindow() to move preedit position.
7430 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
7432 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
7435 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
7437 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
7438 and ScanTableIndex public, it fix compilations errors when compiling
7439 WinForms to generate keyboard layout resources.
7441 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
7443 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
7444 different element count than scan table. It prevents some errors in non
7447 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
7449 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
7451 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
7453 * DataGridView.cs: Call OnContentClick.
7454 * DataGridViewCell.cs: Do a null check on ValueType instead
7456 * DataGridViewCheckBoxCell.cs: Implement.
7458 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
7460 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
7462 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
7464 * X11Keyboard.cs : Check XGetIMValues() return value in
7465 case it does not return input styles in some environment.
7467 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
7469 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
7471 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7473 * BindingContext.cs: Stub UpdateBinding method.
7475 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
7477 * X11Structs.cs : added couple of structs for XIM support.
7479 Release XIM in case it failed to create XIC.
7480 Use consts for XNblah string.
7481 Add support for IM style customization and XIC creation
7482 for preedit-position and preedit-callback.
7483 Right now use MONO_WINFORMS_XIM_STYLE environment variable
7484 (list of: over-the-spot | on-the-spot | root). Only root
7487 (redoing r99172 with fix.)
7489 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
7491 * TreeView.cs: Center the checkbox a little better.
7493 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
7495 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
7496 Apply very nice patch from Ernesto Carrea that simplifies our
7497 scrollbar drawing. [From bug #376146]
7499 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
7501 * TreeView.cs: Correct the location of the root node checkbox when
7502 ShowRootLines = false. Don't draw the root lines for the root node
7503 when ShowRootLines = false. [Fixes bug #377535]
7505 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
7507 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
7509 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
7511 * MaskedTextBox.cs: Added missing attribute. Code formatting.
7512 * PageSetupDialog.cs: Added missing attribute. Code formatting.
7513 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
7514 * ImeMode.cs: Added missing field.
7515 * HtmlWindow.cs: Code formatting. Fixed line endings.
7516 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
7518 * HtmlHistory.cs: Code formatting. Fixed line endings.
7519 * HtmlDocument.cs: Code formatting. Fixed line endings.
7520 * ToolStripPanel.cs: Added missing IList implementation.
7521 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
7523 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
7525 * BindingContext.cs: Changed argument names to fix corcompare errors.
7526 * DataGridView.cs: Removed extra explicit interface implementation
7527 of IDropTarget. Code formatting.
7528 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
7529 * ComboBox.cs: Changed argument names to fix corcompare errors.
7530 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
7532 * GridColumnStylesCollection.cs: Changed argument names to fix
7533 corcompare errors. Removed extra tabs.
7534 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
7536 * Control.cs: Changed argument names to fix corcompare errors. Code
7537 formatting. Removed extra explicit IList implementation.
7538 * TextBox.cs: Changed argument names to fix corcompare errors. Code
7539 formatting. Use string.Empty instead of "".
7540 * GridItemCollection.cs: Changed argument names to fix corcompare
7541 errors. Code formatting.
7542 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
7543 corcompare errors. Code formatting.
7544 * ImageList.cs: Changed argument names to fix corcompare errors.
7545 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
7546 * DataGridViewRowCollection.cs: Changed argument names to fix
7547 corcompare errors. Code formatting.
7548 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
7549 * DataGridViewSelectedCellCollection.cs: Changed argument names to
7550 fix corcompare errors. Code formatting.
7551 * DataGridViewComboBoxCell.cs: Changed argument names to fix
7552 corcompare errors. Code formatting.
7553 * LinkLabel.cs: Changed argument names to fix corcompare errors.
7554 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
7556 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
7558 * BindingSource.cs: Changed argument names to fix corcompare errors.
7559 Removed extra explicit interface implementations.
7560 * DataGridViewSelectedRowCollection.cs: Changed argument names to
7561 fix corcompare errors. Code formatting.
7562 * ToolStripItemCollection.cs: Removed extra explicit interface
7563 implementation of IList.ReadOnly.
7564 * DataGridViewColumnCollection.cs: Changed argument names to fix
7565 corcompare errors. Code formatting.
7566 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
7567 * ListView.cs: Changed argument names to fix corcompare errors.
7568 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
7570 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
7572 * ListBindingHelper.cs: Changed argument names to fix corcompare
7574 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
7575 fix corcompare errors. Code formatting.
7576 * ToolStripPanel.cs: Removed extra explicit implementation of
7577 IDropTarget interface.
7578 * ListBox.cs: Changed argument names to fix corcompare errors. Code
7579 formatting. Removed extra tabs and spaces.
7580 * DataGridViewCellCollection.cs: Changed argument names to fix
7582 * Help.cs: Changed argument names to fix corcompare errors. Code
7584 * TabControl.cs: Changed argument names to fix corcompare errors.
7585 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
7587 * TableLayoutSettings.cs: Changed argument names to fix corcompare
7590 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7592 * ListBindingHelper.cs: When returning properties, only return those
7593 that are browsable. Also, don't do a linear search of the properties,
7594 but use the indexer of the PropertyDescriptorCollection class.
7596 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7598 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
7599 Dictionary containing the related (child) currency managers. Also,
7600 when setting DataSource, add datasource to our List if it is not a list.
7602 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
7604 * PropertyGridTextBox.cs: Fix background color of the buttons.
7605 * PropertyGridView.cs: Make the entry less jumpy.
7607 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
7609 * PropertyGrid.cs: Fix unused variable warnings.
7611 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
7613 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
7614 double-click. It expanded it once in the mouse down and then
7615 again in the double-click handler.
7617 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
7619 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
7620 TypeConverter and UITypeEditors.
7622 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
7624 * Control.cs: Visibility should be set synchronously,
7625 so we must also redraw once it is and not rely on layouting or
7626 other code to repaint.
7629 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
7631 * DataGridViewCell.cs: Respect DataGridView.GridColor.
7633 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
7635 * Control.cs: Invalidate when the alpha channel is less than 255,
7636 not only when control is transparent.
7638 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
7640 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
7641 Implement some painting convenience methods that threw NIEX.
7643 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
7645 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
7646 * DataGridViewLinkCell.cs: Implement.
7648 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
7650 * GridEntry.cs: Report the conversion exception error description.
7653 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
7655 * PropertyGridView.cs: Do not scroll to item on resize.
7658 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7660 * BindingContext.cs: When retrieving a BindingManagerBase, if the
7661 dataSource parameter is ICurrencyManagerProvider, then return
7662 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
7663 instead of creating a new one.
7665 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7667 * BindingSource.cs: Implement support for Type instances as
7670 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
7672 * DataGridView.cs: Minor cleanups and call CellMouseUp.
7673 * DataGridViewCell.cs: Make some painting routines internally virtual.
7674 * DataGridViewButtonCell.cs: Implement.
7676 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
7678 * Control.cs: We always need to invalidate our children with
7679 transparent backgrounds when we are invalidated.
7682 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7684 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
7685 and CancelCurrentEdit on CurrencyManager respectively. Implement
7686 support for ICancelAddNew too.
7688 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7690 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
7691 call EndNew/CancelNew if list is ICancelAddNew.
7693 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
7695 * DataGridView.cs: Guard against an exception while painting
7696 if there are no rows.
7698 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
7700 * DataGridView.cs: Implement a bunch of keyboard commands.
7702 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
7704 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
7705 isn't set, don't call OnPaint. [Fixes bug #375300]
7707 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7709 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
7710 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
7711 hookup the remaining events related to CurrencyManager, and fire
7712 OnListChanged also for the Clear () method.
7714 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7716 * BindingSource.cs: Use Current and Position implementations in
7717 CurrencyManager instead of using our own routines, since we need
7718 to be in synch with it. Count should NEVER return a -1 value, and
7719 also report ListChanged events for both simple IList data
7720 sources (manually) as well for IBindingList ones (by hooking up an
7721 event handler for it).
7723 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7725 * BindingSource.cs: Make one .ctor call the another, to avoid
7726 duplicate code. Add the CurrencyManager property, and also for AddNew
7727 throw the proper exceptions and show better error messages.
7729 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
7731 * ComboBox.cs: Only adjust selectedindex if Handle has been
7732 created. Fixes failing test.
7734 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
7736 * ComboBox.cs: Adjust selectedindex if we insert a new item
7737 above the current selectedindex in a sorted ComboBox.
7740 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
7742 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
7745 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
7747 * DataGridViewTextBoxCell.cs: Implement stuffs.
7749 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7751 * TreeView.cs: Create the scrollbars even earlier to be
7752 double dog certain they are created before they are accessed.
7754 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7756 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
7758 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7760 * ScrollBar.cs: Create an internal safe Value setter so we
7761 won't crash if we try to set a value outside the min and max.
7762 * TextBoxBase.cs: Use safe value setter to guard against a
7763 potential NRE that is being reported by Reflector.
7765 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7767 * TreeView.cs: Create the scrollbars earlier in the constructor
7768 to attempt to guard against an NRE in SetTop in Reflector.
7770 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7772 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
7773 DataGridViewRowCollection.cs: Do not scroll column and row headers,
7774 show messagebox on data format error, use column display index
7775 correctly, make sure HitTest supports new layout stuff,
7776 make sure scrollbars support new layout stuff.
7778 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
7780 * XplatUIX11.cs : Patch by Doug Rintoul.
7781 For some IM engines, keypress events need to delay call
7782 to XPending() and XNextEvent() in the loop so that it
7783 does not mess the orders in XIM commit callback.
7784 Some KeyRelease events such as shift keys need to be
7785 processed both in the IM engine and winforms driver
7786 itself since winforms holds its own state check.
7788 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
7790 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
7792 * X11Keyboard.cs, XplatUIX11.cs :
7793 add primitive support for XIM input support (preedit-
7794 nothing and status-nothing). It requires precise event
7795 capturing (XSelectInput/"filterEvents") and different
7796 call to XFilterEvent against root window.
7797 Get composed string and send dummy WM_IME_COMPOSITION.
7798 Free XIM and XIC instances in finalizer.
7800 (This first patch does not include suggested changes
7801 by Doug Rintoul. It will follow.)
7803 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
7805 * DataGridView.cs: When binding to a property, if the property
7806 doesn't have a setter, set the column to readonly.
7809 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
7811 * ComboBox.cs: Guard against NRE if an arrow key is hit while
7812 we aren't dropped down. Support Home/End in DropDownList mode.
7815 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
7817 * TreeNodeCollection.cs: Don't increment count until we've
7818 saved our index to return.
7821 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7823 * Label.cs: Add padding to the label's AutoSize calculation.
7826 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7828 * ListBindingHelper.cs: Actually implement GetListName method.
7830 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7832 * BindingSource.cs: Throw the propert expceptions for some methods, as
7833 well as detect the list item type for Add method if DataSource is null.
7835 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7837 * DataGridViewCell.cs: I don't know why I commented this out,
7838 putting it back for now.
7840 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7842 * DataGridViewCell.cs: Remove storage for owning column, just
7844 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
7845 * DataGridViewColumnHeaderCell.cs: If the header text has been
7846 explicitly set, return it.
7849 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7851 * DataGridViewRowCollection.cs: Disable row sharing when
7852 using data binding. Its a great feature, but lets work on
7853 getting DGV usable first before we worry about optimizations.
7855 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7857 * BindingSource.cs: When resetting our internal list, compute list
7858 item type information to be used for indirect list access. Also
7859 implement/tune some properties and methods related to the list access
7861 * ListBindingHelper.cs: Add a stub for GetListName method, used from
7864 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7866 * DataGridView.cs: If RowCount is increased while ColumnCount
7867 is zero, add a column. [Fixes bug #331649]
7869 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7871 * DataGridViewRowCollection.cs: When adding new rows for
7872 databinding, make sure they are place before the add row.
7875 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7877 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
7878 instead of Index order.
7880 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7882 * DataGridView.cs: If columns are added by increasing ColumnCount,
7883 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
7886 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7888 * DataGridView.cs: Turn off and on the "new row" when
7889 AllowUserToAddRows is toggled. When the handle is created,
7890 set current cell and selected cell/row/col.
7892 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7894 * ComboBox.cs: When navigating the drop down by keyboard, we
7895 need to scroll the list box if our selection moves out of the
7896 currently shown items. [Fixes bug #371990]
7898 2008-03-24 Luke Page <luke.a.page@gmail.com>
7900 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
7901 on the control. Also now handles unicode compatibility characters and
7902 stores the unicode compatibility length on the stack. Fixes Bugs
7903 #355198 and #366436.
7905 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7907 * BindingSource..cs: Take into account DataMember when re-creating the
7908 List property, and also create a specific kind of list as needed.
7910 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7912 * ListBindingHelper.cs: Add a new case for GetList () method - when we
7913 get an empty IEnumerable, try to detect whether the datamember is
7914 valid or not for that type, if true, return null, and throw exception
7917 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
7919 * ComboBox.cs: Alt-Down should drop down the list, Esc should
7920 retract it. [Fixes bug #371989]
7922 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
7924 * PropertyGrid.cs: Initialize the sorting button as pushed.
7926 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
7929 - Visually select the PropertyTab.
7930 - Filter Properties by Attributes properly.
7932 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
7934 * MenuItem.cs: Remove menu item from parent when disposed.
7937 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
7939 * ToolBar.cs: Don't reset layout_type if Dock = None.
7941 2008-03-21 Andreia Gaita <avidigal@novell.com>
7943 * UserControl.cs: Select the first available control when we get focus.
7946 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
7948 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
7949 the content if we are in edit mode. [Fixes bug #343964]
7951 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
7953 * DataGridViewCell.cs: Fix border painting for column headers.
7955 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7957 * BindingSource.cs: When setting or resetting data source,
7958 use ListBindingHelper.GetList () method, since it will get the list in
7959 case datasource is IListSource.
7961 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
7963 * DataGridViewCell.cs: Implement lots more stuffs.
7965 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
7967 * PropertyGridView.cs, GridEntry.cs: Implement support for
7968 UITypeEditor.IsDropDownResizable.
7970 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
7972 * DataGridViewCell.cs: Remove unused variables, improve how
7973 several of the property getters work.
7974 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
7975 get its size from the parent row/col.
7977 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
7979 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
7980 user alters manually the PropertyTabs collection via the
7981 PropertyTabs property.
7983 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7985 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7986 new tests for them to be sure to be compatible with .net.
7988 2008-03-20 Andreia Gaita <avidigal@novell.com>
7990 * WebBrowserBase.cs: Fix attributes, add events
7991 * WebBrowser.cs: Fix Padding signature
7993 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
7995 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7997 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
7999 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
8000 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
8001 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
8002 passes the new suite of tests for it.
8004 2008-03-18 Andreia Gaita <avidigal@novell.com>
8006 * WebBrowser.cs: Add missing attributes, missing Padding and
8007 DefaultSize properties, remove extraneous getters
8009 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8011 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
8014 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
8016 * ComboBox.cs: Move resetting the selected index to keypress
8017 instead of textchanged. Changing the text programmatically
8018 should not trigger resetting the selected index. Fixes test.
8020 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
8022 * ComboBox.cs: When the user types into the textbox, reset
8023 the selected index to -1. [Fixes bug #371672]
8025 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
8027 * FileDialog.cs: Support Control-A for selecting everything
8028 in an OpenFileDialog. [Fixes bug #371564]
8030 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
8032 * DataGridView.cs: When row/column visible/height properties
8033 change, invalidate. Take the NIEX out of InvalidateRow/Column
8034 etc. We don't support them yet, but we can just invalidate
8035 everything until we do support them. (Added MonoTODO). Set
8036 proper control styles.
8037 * DataGridViewRow.cs: Don't call PaintHeader if row headers
8040 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8042 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
8044 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
8046 * DataGridViewRow.cs: Only paint the white background in
8047 cell bounds, the row bounds extends past the cells if the
8048 grid width isn't as wide as the DGV.
8050 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
8052 * DataGridView*: Completely revamp the drawing to match the
8053 public API. Our grids now look better, and call all the
8054 appropriate methods and event to allow users to override
8055 the painting and do their own.
8057 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8059 * ListBindingHelper.cs: Implement 2.0 GetList methods.
8061 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
8063 * DataGridView.cs: Implement BorderStyle.
8065 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
8067 * FileDialog.cs: Apply patch from Andy Hume: Any time we
8068 are comparing attributes, make sure we only look at the
8069 one we are interested. These calls were failing if there
8070 were more than one attribute.
8073 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
8075 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
8077 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
8079 * PageSetupDialog.cs: Stub EnableMetric.
8080 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
8081 * PrintPreviewDialog.cs: Add ProcessDialogKey,
8084 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
8086 * MonthCalendar.cs: Remove unused variable.
8088 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
8090 * DataGridView*.cs: corcompare stuffs.
8092 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
8094 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
8095 The savings aren't worth the extra code to fix the optimization.
8098 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
8100 * ToolBar.cs: Always call base.Dock in the Dock override so that
8101 Control's layout_type gets reset correctly.
8104 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
8106 * X11Dnd.cs: End DnD operation also for the middle mouse button.
8108 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
8110 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
8111 at the same time we do explicit ones, because we have to give all
8112 other controls on the container a chance to handle explicit ones
8113 first. If no one has an explicit mnemonic, then we can let the
8114 MenuStrip have a shot at implicit mnemonics.
8115 * MenuStrip.cs: Create an implicit mnemonic function.
8116 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
8117 mnemonics for MenuStrips.
8120 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
8122 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
8123 DataGridColumnStyle.cs: corcompare stuffs.
8125 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8127 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
8128 Details - This is needed after we added the bits to use any available
8129 column also for List and SmallIcon view.
8131 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8133 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
8134 at the proper place, not only when changing SelectedIndex and changing
8135 the selection using keys/mouse, as .net does.
8137 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8139 * ControlBindingsCollection.cs: Implement last 2.0
8140 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
8141 in the new 2.0 Add methods.
8143 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8145 * ListBox.cs: When calling SelectedIndexCollection.Clear,
8146 return if no items are previously selected - this is done to avoid
8147 firing OnSelectedIndexChanged without need to do so. Also,
8148 when creating handle ensure that the focused item is visible (as
8151 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8153 * ListBox.cs: Rewrote/refactored most of selection code. We require
8154 the following things in selection: a) keep selection sorted (both
8155 indices and items), b) SelectedIndices automatically detect the
8156 selection mode, c) SelectedIndex should be the first selected item
8157 index, d) Need to Focus/adjust scroll bar when selecting a new item,
8158 not only for SelectedIndex, which is specially important in Multi*
8159 selection modes. To achieve this we are moving the selection core to
8160 SelectedIndexCollection and make depend all selection modifications on
8164 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8166 * ToolStrip.cs: Enable implicit mnemonics for drop down
8167 menu strips. [Fixes part of bug #367692]
8169 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8171 corcompare - fix parameter names [stragglers].
8172 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
8173 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
8176 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8178 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
8179 was a mnemonic pressed as well as Alt. Also, if nothing handles a
8180 mnemonic, let the ToolStripManager have it even if it doesn't
8181 have a matching mnemonic.
8184 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8186 corcompare - fix warning about implicit implementation
8187 * ToolStrip.cs: Add IToolStripData interface.
8188 * IToolStripData.cs: Add.
8190 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8192 corcompare - fix warning about implicit implementation
8193 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
8196 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
8198 corcompare - fix parameter names [N-Z].
8199 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
8200 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
8201 PropertyManager.cs, RichTextBox.cs,
8202 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
8203 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
8204 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
8205 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
8206 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
8207 ToolStripContentPanel.cs, ToolStripDropDown.cs,
8208 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
8209 ToolStripPanel.cs, ToolStripSeparator.cs,
8210 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
8211 UICuesEventHandler.cs, UpDownBase.cs.
8213 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
8215 corcompare - fix parameter names [G-M].
8216 GridColumnStylesCollection.cs, GridItemCollection.cs,
8217 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
8218 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
8219 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
8220 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
8221 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
8223 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
8225 corcompare - fix parameter names [A-F].
8226 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
8227 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
8228 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
8229 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
8230 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
8231 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
8232 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
8234 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
8236 * GridEntry.cs: Do not convert not only if the types match,
8237 but also if the property type is assigneable from the value's
8241 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
8243 * PropertyGridView.cs:
8244 - Subscribe to the listbox only once and not everytime.
8245 - Update the textbox even if SetValue fails.
8246 - Close the listbox before calling TrySetValue just in case.
8249 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
8251 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
8253 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8255 * ListView.cs: Implement support for custom column width based on
8256 Columns collection (we were previously using this collection only
8260 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8262 * ListViewItem.cs: For Tile view, always set bounds for the first
8263 subitem (which is the main one), and also don't let Width be larger
8264 than ListView.TileSize.Width. Improve code readibility also.
8265 * ThemeWin32Classic.cs: When painting the ListViewItem instances
8266 in Tile view, _always_ use the NoWrap flag.
8269 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
8271 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
8273 * GridEntry.cs: For MS compitability make all child properties
8274 readonly if the parent is readonly. Ugh.
8275 [Fixes bug #365945 and #365944]
8277 2008-02-29 Andreia Gaita <avidigal@novell.com>
8279 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
8280 relative to the history
8282 2008-02-29 Andreia Gaita <avidigal@novell.com>
8284 * HtmlElement.cs: More handlers for mouse and key events
8286 2008-02-28 Andreia Gaita <avidigal@novell.com>
8288 * WebBrowserBase.cs: MouseClick sig changed.
8289 * HtmlHistory.cs: Implement history navigation
8290 * HtmlElement.cs: Add event handlers, and connect them.
8292 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
8295 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
8296 so that DisplayNameAttribute doesn't get ignored.
8297 - Check for ParenthesizeNameAttribute and parenthesize the Label.
8298 - Add support for PasswordPropertyTextAttribute
8299 * PropertyGridView.cs: Check if an entry is a password.
8300 [Fixes bugs #365589, #365586, #365588]
8302 2008-02-28 Andreia Gaita <avidigal@novell.com>
8304 * PropertyGridView.cs: Revert the message filtering change, as we
8305 need it to block after all. Remove block parameter, unnecessary.
8307 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
8309 * UserControl.cs: Better implementation of GetPreferredSize.
8310 First step to fixing bug #361441.
8312 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8314 * Binding.cs: Actually implement data binding support for
8315 classes implementing IBindableComponent.
8316 * ControlBindingsCollection.cs: Likewise.
8318 2008-02-26 Andreia Gaita <avidigal@novell.com>
8320 * PropertyGridView.cs: Use a message filter to check when to
8323 2008-02-26 Andreia Gaita <avidigal@novell.com>
8325 * Application.cs: Change the message_filters loop so a filter
8326 can be removed while looping.
8328 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
8330 * GridEntry.cs: Optimization in ToggleValue so that it caches
8332 * PropertyGridView.cs: An optimization so that the property isn't
8333 re-read twice for each StandardValue added to the drop-down menu.
8334 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
8338 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
8340 * Application.cs: Apply patch from Justin Cherniak to match
8341 MS better for ProductName, ProductVersion, and CompanyName.
8344 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8346 * Binding.cs: Actually implement 2.0 NullValue property. Also
8347 when changing the formatting related properties, only update the state
8348 if formatting_enabled is true (we don't mind otherwise).
8350 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
8352 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
8355 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
8357 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
8358 of GetType on the current value as it uses reflection to
8359 determine the type. This fixes the case where the new value is
8362 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
8364 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
8367 2008-02-24 Luke Page <luke.a.page@gmail.com>
8369 * Line.cs, TextControl.cs: Implement offset x and y so that a
8370 document doesn't have to begin at (0,0) on the viewpoint.
8371 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
8372 bars and switches the text alignment (and therefore is now
8373 implemented for textbox). Fixes #321383.
8375 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8377 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
8378 properties. Also when changing FormattingEnabled update the control
8379 property -as .Net does-.
8381 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
8383 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
8384 * Binding.cs: Add stubs for the overloads of the Add method in
8387 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8389 * Binding.cs: PullData () returns a false value if we got an exception.
8390 Also when validating the control and we get an error, instead of
8391 setting the value of the previous one, cancel the event (tested in 1.1
8394 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
8396 * TreeView.cs: Make selected_node and highlighted_node internal.
8397 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
8398 to null when Nodes.Clear is called.
8401 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8403 * FontDialog.cs: Ensure that when the Font is set in code,
8404 all the gui pieces are updated accordingly.
8407 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8409 * TextRenderer.cs: Respect proposed size for MeasureString.
8410 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
8411 autosize, use a proposed width to force wrapping for long text.
8414 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8416 * TreeView.cs: Factor in checkboxes = false and state images in
8417 to HitTest. [Fixes bug #363360]
8419 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8421 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
8422 when drawing the selected range.
8425 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8427 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
8428 ResizeRedraw control styles.
8431 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8433 * TreeView.cs: StateImages are basically custom checkboxes, so
8434 factor their size the same as real checkboxes when determining
8438 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8440 * MessageBox.cs: Make the message box wider if the form caption
8441 is longer than the text in the form.
8444 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
8446 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
8448 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8450 * TreeNode.cs: Guard against an NRE when the parent's
8451 StateImageList hasn't been set.
8454 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8456 * SplitContainer.cs: Add SupportsTransparentBackColor and
8457 OptimizedDoubleBuffering control styles.
8460 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8462 * Application.cs: For the app data paths and the registry key paths,
8463 ensure they are created before returning them to the user.
8466 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8468 * Application.cs: Guard against an NRE in CompanyName and
8471 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8473 * Application.cs: For CompanyName, ProductName, and ProductVersion,
8474 make sure we handle all three cases correctly: attribute is present,
8475 attribute is present but is an empty string, and attribute is not
8478 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
8480 * PropertyGridView.cs:
8481 - Fix a NRE that caused a test failure
8482 - Another performance improvement - cache the standard values
8485 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
8487 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
8490 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
8492 * PropertyGridView.cs: Fix a big performance bug.
8494 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
8496 * SelectionRange.cs: Apply patch from Andy Hume to make
8497 constructor behavior more accurate. [Fixes bug #362117]
8499 2008-02-19 Andreia Gaita <avidigal@novell.com>
8501 * Control.cs: Added a new flag is_disposing to track if the
8502 window is currently in the process of being disposed of.
8503 This is used so that, when firing visibility changes triggered
8504 by unparenting controls during Dispose, the control doesn't
8507 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
8509 * ComboBox.cs: Set height to preferred height when the handle
8510 is created. [Fixes bug #360862]
8512 2008-02-18 Andreia Gaita <avidigal@novell.com>
8514 * XplatUIX11.cs: Create FosterParent with border width at 0.
8515 With the previous value of 4, everytime a control got reparented
8516 from parent = null, it's location would be shifted right and
8517 down by 4, since these coordinates would be offset by the
8518 FosterParent's border width.
8520 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
8522 * Control.cs: During diposing firstly remove ourselfes from
8523 the parent and *then* destroy our handle, because removing
8524 ourselfes from the parent controls collection causes
8525 VisibilityChange, etc events, which require a handle and end
8526 up recreating the control.
8528 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
8530 * GridEntry.cs: Set expanded state before notifying that the
8531 expansion has taken place.
8532 * PropertyGridView.cs:
8533 - Set the propertygridtextbox text to the selected
8534 StandardValue before proceeding to setting it.
8535 - Scrolling bugfixes.
8537 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
8540 - Fix ValueText to not return null.
8541 - Fix conversion error reporting to actually happen.
8542 * PropertyGridView.cs: Set entry only if the text has changed.
8545 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
8548 - Fix handling of a null current value.
8549 - Swallow editor exceptions.
8552 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
8554 * PropertyGrid.cs: Clear current items first thing before
8555 repopulating subitems.
8557 - Handle null StandardValuesCollection.
8558 - Mark as not editable if there is no PropertyDescriptor and
8559 if the Converter cannot convert from string.
8560 [Part of fix for bugs #360666 and #358332]
8562 2008-02-15 Luke Page <luke.a.page@gmail.com>
8563 * MaskedTextBox.cs: Now skips non editable characters after a
8564 character has been entered and we are progressing to the next
8565 position in the MaskedTextBox.
8567 2008-02-15 Luke Page <luke.a.page@gmail.com>
8568 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
8569 that it changes the selection rather than just repositioning the
8570 cursor. Fixes Bug #360873.
8572 2008-02-15 Luke Page <luke.a.page@gmail.com>
8573 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
8574 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
8575 correctly. See #359330
8577 2008-02-15 Andreia Gaita <avidigal@novell.com>
8579 * XplatUIX11.cs: If the handle is null when posting a message, use the
8580 current thread queue to post instead. Fixes #332409
8582 * SendKeys.cs: Slight optimization
8584 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
8586 * PropertyGrid.cs, PropertyGridView.cs:
8587 Fix multiple scrolling and sizing issues.
8590 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
8592 * PropertyGridView.cs: Ensure that drop down editors are shown
8593 in the WorkingArea of the screen.
8596 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
8598 * GridEntry.cs: Fail silently when UITypeEditor is missing.
8601 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8603 * Binding.cs: Implement 2.0 DataSourceNullValue property.
8605 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
8607 * PropertyGridView.cs:
8608 - Clear the controls in the drop down form after it is hidden.
8609 - Fix Width sizing of the dropdown editors to match MSFT.
8611 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
8613 * PropertyGridView.cs:
8614 - Fix height for drawing the grid entry
8615 text value, so that it clips multiline text properly.
8616 - Fix unfocusing to match MSFT.
8618 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
8620 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
8621 Fixes a bug where on repopulation after value changed items become
8624 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8626 * Binding.cs: For the 2.0 profile, look for a
8627 'PropertyChanged' event in the target control, and add checks for
8628 DataSourceUpdateMode property to change -or not- the data source
8629 from validation/control property change.
8631 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
8633 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
8634 not compare struct with null in 2.0).
8636 2008-02-10 Luke Page <luke.a.page@gmail.com>
8638 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
8639 updates the provider and if not using a provider, uses the internal document
8640 class implementation of password char. Also when showing text, uses display string
8641 from the provider, instead of the actual text.
8643 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8645 * Binding.cs: Ooooops, forgot to take into account the data_source
8646 and binding_member_info null case (it was breaking the Binding tests).
8648 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8650 * Binding.cs: Implement support for data source changes exposed by
8651 'PropertyNameChanged' events, and update the control property as
8654 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8656 * Binding.cs: Implement 2.0 WriteValue method.
8658 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
8660 Commit patch from James Purcell for better AutoScale implementation:
8662 * ScaleControl should call GetScaledBounds with the control's total size rather
8663 than client size. GetScaledBounds should handle ignoring the borders in its
8664 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
8665 (for the most part they just call the base code now since that is fixed).
8666 * Added ScaleChildrenInternal to allow controls to disable scaling of children
8667 without having to override ScaleChildren (since none of .NET's controls do).
8668 This is required for most controls in Mono that have scrollbars to prevent the
8669 scrollbars from being moved/resized.
8670 * Nested ContainerControls can have a different scale mode than their parent.
8671 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
8672 designer produce different results both of which look incorrect).
8673 * Default AutoScaleMode for ContainerControl should be Inherit.
8674 * Simplified workaround for ComboBox scaling issue.
8675 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
8676 1.0 style auto scaling should scale the whole control's size instead of
8677 ignoring the borders (except for Form) and the rounding is done differently to
8678 preserve control alignment.
8679 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
8681 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
8682 * CurrentAutoScaleDimensions should round the estimated character width instead
8684 * ListBox's GetScaledBounds should always use the height it was set to instead
8685 of the height that was passed in. This prevents rounding errors from
8686 accumulating quickly with IntegralHeight.
8689 2008-02-08 Andreia Gaita <avidigal@novell.com>
8691 * Form.cs: Add a null check (darn it).
8693 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
8695 * MdiClient.cs: Make sure the requesting form actually owns the
8696 control menu items before removing them. Also, use
8697 Suspend/ResumeLayout when adding or removing items so we only
8701 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
8703 * Control.cs: Guard against an NRE in ShowFocusCues.
8706 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8708 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
8709 property, as well as stubbing DataSourceUpdateMode.
8711 2008-02-08 Andreia Gaita <avidigal@novell.com>
8713 * Form.cs: When closing forms, get focus back to the active control of the
8714 active form. [Fixes #341314, corner case]
8716 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8718 * MdiClient.cs: After we move the scrollbars, invalidate the NC
8719 area, so any old scrollbar artifacts are cleaned up.
8722 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8724 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
8725 for our menus, display that control box menu instead of the 1.1
8728 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8730 * MdiControlStrip.cs: Add property to access the mdi form tied to
8732 * MdiClient.cs: Be smarter about removing and adding toolstripitems
8733 to the implicitly merged menu. Every time we clicked the form, items
8734 were getting removed and the re-added, causing the form to jump around
8735 as the menu resized.
8737 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8739 * MdiClient.cs: Make sure the NormalBounds always gets set. It
8740 was being reset by the implicit menu merge for menustrips.
8743 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8745 * Form.cs: Don't do the previous change when WindowState = Normal,
8746 or it messes up where the window is placed. Fixes test failure.
8748 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8750 * Form.cs: When becoming visible, if we are an MDI child, call
8751 SetWindowState with a dummy old_state so that changes will actually
8753 [Fixes the 2nd part of bug #325473]
8755 2008-02-07 Andreia Gaita <avidigal@novell.com>
8757 * Control.cs: Reset properties to their pre parent-change values in case
8758 the new parent == null (in which case we're basically removing the control,
8759 and don't want any events fired due to fake property changes)
8762 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
8764 * PropertyGridView.cs:
8765 - Refactor SetValue to allow setting the value
8766 when a custom editor is used, but the entry is not editable.
8767 - Remove the custom editor control on CloseDropDown.
8770 2008-02-06 Andreia Gaita <avidigal@novell.com>
8772 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
8773 reflection only on 1.1, this property is public on system.drawing on 2.0.
8776 2008-02-06 Andreia Gaita <avidigal@novell.com>
8778 * WebBrowser.cs: Do a normal page refresh by default.
8780 2008-02-05 Andreia Gaita <avidigal@novell.com>
8782 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
8783 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
8784 platforms. Fixes #359036
8786 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
8787 platform-specific flags.
8789 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8791 * Binding.cs: Add 2.0 BindableComponent property - just return control
8794 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
8796 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
8797 Jonathan for this patch. Fixes #358442.
8799 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
8801 * Form.cs: If we change the active MDI child form, let the others
8802 know they need to repaint their title bar so it will appear inactive.
8803 [Fixes part 1 of bug #325473]
8805 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
8807 * PropertyGridView.cs: Do not trucate custom editors' width
8808 and align them to the left.
8809 [Fixes #358353 and #358349]
8811 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8813 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
8814 Also fix the arguments passed to CollectionChangeEventArgs in the
8817 2008-02-04 Geoff Norton <gnorton@novell.com>
8819 * Hwnd.cs: The conversion to Quartz coordinates happens in
8820 System.Drawing. Removing this translation from here.
8822 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
8824 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
8825 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
8826 GridItemCollection.cs:
8827 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
8829 2008-02-04 Geoff Norton <gnorton@novell.com>
8831 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
8832 SYSKEYUP if any other key has been pressed in the mean time.
8835 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8837 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
8838 when the item in current position is different than 0. Also, save the
8839 item index in the beginning of the operation, instead of getting the
8840 index of the item when the event is actually performed. Lastly clean
8841 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
8845 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8847 * Form.cs: Alt-Minus for MDI children system menu should work
8848 with both the minus keys on the keyboard.
8851 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8853 * Control.cs: Don't invalidate on region change. The WM should
8854 take care of this automagically. Keeps us out of an infinite
8855 paint loop if someone changes the Region in the OnPaint.
8858 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
8860 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
8862 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8864 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
8865 down the MonthCalendar only on F4, not Alt+F4.
8866 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
8869 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8871 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
8872 if its part of a DateTimePicker, else, use the back color.
8875 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8877 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
8880 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8882 * CurrencyManager.cs: When we get a ListChanged event from our source,
8883 always fire our own ListChanged event, as .Net does.
8885 2008-02-03 Luke Page <luke.a.page@gmail.com>
8887 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
8890 2008-02-03 Luke Page <luke.a.page@gmail.com>
8892 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
8893 property. Removed if for richtext property that was always true.
8894 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
8896 2008-02-03 Luke Page <luke.a.page@gmail.com>
8898 * TextBoxBase.cs - commited patch from James Purcell that
8899 correctly sets the FixedHeight control style when the MultiLine
8900 property is changed on a TextBox control. Fixes bug 358229.
8902 2008-02-02 Luke Page <luke.a.page@gmail.com>
8904 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
8905 Fixes bug 351938 - caret is positioned correctly when drawn
8906 and when calculating textual position of caret, no longer
8907 has a NRE in certain situations.
8909 2008-02-01 Geoff Norton <gnorton@novell.com>
8911 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
8912 get that region removed from the paint event.
8913 * XplatUICarbon.cs: Remove the window mapping after disposing of
8914 window. Prevents a crash with handle reuse. Optimize exposes
8915 only onto visible windows (rare; but possible).
8917 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8919 * UpDownBase.cs: Make sure the internal textbox calls the base's
8920 OnMouseDown and OnMouseUp so the textbox will function correctly.
8921 There were notes saying it doesn't chain up, but its an internal
8922 class, so our implementation may differ.
8925 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8927 * ListBox.cs: Fix a logic error and don't process MouseDown
8928 for mouse buttons other than Left.
8930 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8932 * Control.cs: Remove HeightInternal.
8933 * ListBox.cs: Commit patch from James Purcell that correctly
8934 calculates heights for ListBoxen.
8937 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8939 * Label.cs: Apply patch from James Purcell that corrects the
8940 signature of the AutoSize property.
8943 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8945 * ListBox.cs: Don't throw [Mouse]Click events for buttons
8946 other than the left mouse button.
8948 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
8950 * Control.cs: Remove my awesome optimization as it caused some
8951 regressions with control ordering. :(
8954 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
8956 * PropertyGridView.cs: Fix a NRE on double click when there is no
8959 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8961 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
8963 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
8965 * ListBox.cs: Call MouseClick and MouseDoubleClick.
8968 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8970 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
8971 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
8972 instead of Hwnd.bmp_g.
8974 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8976 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
8977 Use the Hwnd one instead.
8979 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8981 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
8983 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8985 * Form.cs: corcompare for RestoreBounds.
8987 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8989 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8991 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8993 * Form.cs: Handle Alt-Minus for MDI children forms.
8994 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8995 Add mnemonics to the control menu.
8998 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9000 * Binding.cs: Initial implementation bits of FormattingEnabled
9001 property and BindingComplete event (2.0).
9002 * BindingCompleteEventArgs.cs: Internal methods for setting error text
9005 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
9007 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
9008 table.Location. [Fixes bug #354672]
9010 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
9012 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
9013 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
9015 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9017 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
9018 of doing all the re-bound work, just invalidate and call SetControlText
9019 to set the updated text of selected item to our textbox.
9022 2008-01-28 Andreia Gaita <avidigal@novell.com>
9024 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
9025 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
9026 missing properties and methods. Add Load, Unload, Error, GotFocus,
9027 LostFocus, Resize, Scroll events (only load and unload are connected)
9029 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
9031 * AccessibleObject.cs: Modified argument names to match MS.
9032 * Button.cs: Modified argument names to match MS.
9033 * BindingContext.cs: Modified argument names to match MS.
9034 * BindingMemberInfo.cs: Modified argument names to match MS.
9035 * ButtonBase.cs: Modified argument names to match MS.
9036 * ComboBox.cs: Modified argument names to match MS.
9037 * Control.cs: Modified argument names to match MS.
9038 * CheckedListBox.cs: Modified argument names to match MS.
9039 * CommonDialog.cs: Modified argument names to match MS.
9040 * DataGrid.cs: Modified argument names to match MS.
9041 * CursorConverter.cs: Modified argument names to match MS.
9042 * ControlPaint.cs: Modified argument names to match MS.
9043 * CheckBox.cs: Modified argument names to match MS.
9044 * ControlBindingsCollection.cs: Modified argument names to match MS.
9045 * BindingSource.cs: Modified argument names to match MS.
9046 * DataFormats.cs: Modified argument names to match MS.
9047 * ContainerControl.cs: Modified argument names to match MS.
9048 * CurrencyManager.cs: Modified argument names to match MS.
9049 * Application.cs: Modified argument names to match MS.
9050 * ContextMenuStrip.cs: Modified argument names to match MS.
9051 * ContextMenu.cs: Modified argument names to match MS.
9052 * BindingManagerBase.cs: Modified argument names to match MS.
9053 * WindowsFormsSection.cs: Fixed line ending.
9055 2008-01-27 Andreia Gaita <avidigal@novell.com>
9057 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
9058 detecting that the dropdown toolwindow is hidden. EndLoop outside the
9061 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
9063 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
9064 MS. Code formatting.
9066 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9068 * Binding.cs: Don't avoid the Format event if the control
9069 property type is object. Also, if the value retrieved by
9070 the data source is null _and_ the control proeprty type
9071 is object, return Convert.DBNull (match .Net).
9072 Fixes part of #324286.
9074 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9076 * ListControl.cs: Since we are getting two BinginContextChanged events
9077 for the same binding context instance (when the control is added to
9078 form, and when the form is actually shown), take it into account only the
9079 first time for a given binding context instance.
9080 Fixes part of #324286.
9082 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
9084 * PropertryGridView.cs: Ops.
9086 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
9088 * PropertyGridView.cs: Close dropdown form if the owner form is
9092 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
9094 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
9095 RootGridEntry.cs, CategoryGridEntry.cs:
9096 PropertyGrid rewrite.
9097 - Rewrite all of the control logic in PropertyGrid.
9098 - Rewrite all of the ComponentModel logic in GridEntry.
9099 - Rewrite all UI work in PropertyGridView.
9100 - Many bugfixes, etc.
9102 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
9104 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
9105 when all contained controls are autosize or dock-fill. Also take into
9106 account when the total percentage of column/row sizes is not 100%.
9109 2008-01-24 Andreia Gaita <avidigal@novell.com>
9112 - Save a reference to the IDocument in the instance and
9113 use that one instead of going to WebHost.Document; the document that the
9114 WebHost returns might not be the right one (in case of frames).
9115 - Use the hashcode returned from the IDocument interface.
9116 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
9117 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
9118 LinkColor, Url, VisitedColor, Window
9121 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
9122 set_Attribute, NextSibling, Parent, TagName, AppendChild,
9123 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
9124 SetAttribute, Equals, equality operators.
9125 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
9126 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
9128 * HtmlElementCollection.cs: Change implementation to use a generic
9129 collection. Implemented Enumerator and CopyTo
9131 * HtmlHistory.cs: Add constructor, no implementation yet.
9133 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
9134 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
9135 Equals, equality operators.
9137 * HtmlWindowCollection.cs: Implemented.
9139 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
9140 has been deprecated).
9142 * WebBrowserBase.cs: Use Completed event to track document loading
9143 (Navigated has been deprecated)
9145 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
9147 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
9148 level MenuItems do not respect tabs.
9151 2008-01-23 Geoff Norton <gnorton@novell.com>
9153 * XplatUICarbon.cs: Ensure that windows are created in their initial
9154 FormWindowState. Finished fixing Fullscreen windows on Carbon
9156 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9158 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
9159 be used as grab_control. Also save status of capture before show ContextMenu
9160 and restore it after close.
9162 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9164 * Control.cs: Internal FindRootParent method added to return high control
9167 2008-01-23 Geoff Norton <gnorton@novell.com>
9169 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
9170 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
9171 it work again. Handle HITTEST events.
9173 2008-01-23 Geoff Norton <gnorton@novell.com>
9175 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
9176 a crash in certain cases. Support for fullscreen windows in certain cases.
9178 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
9180 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
9183 2008-01-23 Geoff Norton <gnorton@novell.com>
9185 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
9187 2008-01-23 Geoff Norton <gnorton@novell.com>
9189 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
9191 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9193 * SplitContainer.cs: Remove unused declarations.
9194 * Binding.cs: Remove unused declarations.
9196 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9198 * Form.cs: Remove unused declaration of 'active' in Activate method.
9199 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
9200 prevent compilation warnings.
9201 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
9202 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
9203 * Bindings.cs: Remove unused formatting_enabled declaration.
9204 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
9206 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
9208 * PropertyGridView.cs: Remove usused 'ex' declaration.
9209 * DataGridView.cs: Remove unused declarations.
9211 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9213 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
9215 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
9216 to Control class, it makes possible to grab menu to controls that can't
9217 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
9218 WmMouseMove removed since it was used only to track menu events.
9221 - Moved all active_tracker stuff from Form.
9222 - ProcessActiveTracker added to prevent code duplicity, now mouse events
9223 can call this method instead of reimplement all necessary code handle for
9225 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
9229 - Remove special handle to ToolStripOverflow, now we can grab menu to
9230 controls that can't reach Form using parent tree.
9231 - Change type of grab_control from Form to Control.
9233 2008-01-22 Geoff Norton <gnorton@novell.com>
9235 * TextBoxBase.cs: Split up the sizing of controls and placing of
9236 controls. Fixes a bug where scrollbars in Reflector could be sized
9237 wrong and have non-working thumbers.
9239 2008-01-23 Geoff Norton <gnorton@novell.com>
9241 * XplatUI.cs: Refactor environment variables to default support to the
9242 Carbon driver on the Mac.
9244 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9246 * Label.cs: Uses new LabelPainter for drawing operations.
9247 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
9248 * Theme.cs: DrawLabel and LabelDefaultSize removed.
9250 2008-01-22 Geoff Norton <gnorton@novell.com>
9252 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
9254 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
9256 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
9257 through the normal flat button code and don't draw the checkbox glyph.
9258 * Theme.cs: Button->ButtonBase signature change.
9261 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
9263 * LinkLabel.cs: Uses new class LinkLabelPainter.
9265 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
9267 * MessageBox.cs: Adjust right border space, we don't need to add
9268 "space_border*2" two times.
9270 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
9272 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
9273 becomes a wrapper around Padding.
9274 [Fixes a part of bug #354676]
9276 2008-01-22 Geoff Norton <gnorton@novell.com>
9278 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
9279 acquired. Also ensure the buffer is large enough to grab the header
9280 we need on linux boxes.
9282 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
9284 * Control.cs: Implement a custom enumerator so people can delete
9285 from the Controls collection while in a foreach.
9288 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
9290 * PropertyGridView.cs: Fix focusing behavior:
9291 - Tab should focus the grid text box.
9292 - Clicking on the labels shouldn't focus the grid text box.
9294 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
9296 * PropertyGridView.cs: IsValueTypeGridItem should return true
9299 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
9301 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
9302 - Renamed GridEntry.SelectedObjects to TargetObjects to better
9303 reflect the property name role.
9304 - PropertyGrid.GetTarget is not required as the target is known
9306 - Setting values will handle value types as a special case now and
9307 populate them up in the chain.
9310 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
9312 * Hwnd.cs: Create a public property for the Graphics we keep around.
9314 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
9316 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
9317 when the current object selection changes.
9318 Fixes failing test SelectedObject_Null2.B5.
9320 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
9322 * PropertyGrid.cs: Process Browsable properties with
9323 DesignerSerializationVisibilityAttribute.Content as being expandable.
9324 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
9325 will not be expandable. We should be nested components-friendly now.
9327 2008-01-21 Andreia Gaita <avidigal@novell.com>
9329 * WebBrowserBase.cs: Check if control was loaded properly,
9330 don't bind if it wasn't.
9332 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
9333 GetElementFromPoint, equality operators, OpenNew, Write.
9334 Remove extra set_Body
9336 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
9338 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
9339 that makes our AutoScale* stuff more tolerant to different orders
9340 of being set. [Fixes bug #354669]
9342 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
9344 * PropertyGridView.cs, PropertyGridTextBox.cs:
9345 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
9346 [Fixes #339005 and #348209]
9348 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
9350 * PropertyGridView.cs: Hide the grid text box before adjusting it
9351 for the newly selected GridItem.
9354 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
9356 * Form.cs: Give MDI children the opportunity to cancel the parent form
9357 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
9358 properly for both the parent and child.
9359 * Application.cs: Signature of internal method changed, pass the previous
9363 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
9365 * PropertyGridView.cs: Set the property value only if it has changed.
9368 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
9370 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
9371 If the mouse hasn't actually moved, ignore these messages so the currently
9372 highlighted menuitem isn't reset to the one under the mouse.
9375 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
9377 * PropertyGridView.cs: When the property changes Invalidate the GridItem
9378 in order for the properties with UITypeEditor.GetPaintValueSupported == true
9379 to reflect the change visually.
9382 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
9384 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
9385 to 2.0 button drawing.
9386 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
9387 the button text is tall enough for one line. LineLimit says it will
9388 always draw at least one line, but it is a lie.
9391 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
9393 * XplatUIStructs.cs, X11Keyboard.cs :
9394 added some more VK_* keys to be handled.
9396 2008-01-16 Andreia Gaita <avidigal@novell.com>
9398 * Control.cs: Check if there is a container before setting or getting
9399 the validation flag.
9401 2008-01-16 Andreia Gaita <avidigal@novell.com>
9403 * ContainerControl.cs: Add flag to track if a control cancels validation,
9404 so we don't fire click events.
9407 - (HandleClick) Check if validation was cancelled before firing the click
9408 events (doubleclicks are fired, but not clicks)
9409 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
9410 ContainerControl.set_ActiveControl, but in the case of non-selectable
9411 controls, like a Label, activecontrol is not set.
9413 * ButtonBase.cs: Only fire clicks if validation passes.
9417 2008-01-16 Geoff Norton <gnorton@novell.com>
9419 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
9422 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
9424 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
9425 SelectedPath, just display the default dialog instead of crashing.
9428 2008-01-16 Geoff Norton <gnorton@novell.com>
9430 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
9431 AddExpose instead of trusting apples compositing manager which doesn't
9432 work for our use case. Remove some dead code causing warnings and
9433 redecorate some other code to prevent warnings.
9435 2008-01-16 Geoff Norton <gnorton@novell.com>
9437 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
9438 carbon signals us to redraw. Fixes another portion of the flickering bug
9440 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
9442 * Form.cs: Prevent the MdiParent property to be set when value is the same
9443 as value already set. Fixes bug #328019.
9445 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
9447 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
9448 it prevents NRE when closing mdi child windows. Fixes bug #325211.
9450 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
9452 * InternalWindowManager.cs: Invalidade close button after mouse up when
9453 mdi form is prevented to close.
9455 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
9457 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
9458 thanks to Andy Hume. Fixes bug #325433.
9460 2008-01-16 Andreia Gaita <avidigal@novell.com>
9462 * LinkLabel.cs: Reset focused_index when resellecting the control.
9465 2008-01-15 Geoff Norton <gnorton@novell.com>
9467 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
9470 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
9472 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
9475 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
9477 * ContainerControl.cs: Setting AutoScaleMode to anything should set
9478 Form.AutoScale to false.
9479 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
9480 AutoScaleBaseSize should be changed on Font change unless it has been
9484 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
9486 * MenuAPI.cs: On instance of MenuTracker check if source control is
9487 ToolStripOverflow and use properly method to find form.
9490 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
9492 [Fixes bug #323241 Transparent toolbar support]
9494 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
9497 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
9498 defined in control style to mimic win32 behavior.
9500 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
9501 it will be transparent.
9503 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
9505 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
9506 CreateParams for ToolBar controls.
9508 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
9510 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
9511 FixedToolWindow, SizeableToolWindow, or None for border styles have
9512 different minimum sizes than regular forms. Implemented to fix
9513 regression in PDN with toolbox being too wide.
9515 2008-01-14 Andreia Gaita <avidigal@novell.com>
9517 * HtmlElementCollection.cs: Implemented
9519 * HtmlElement.cs: Implemented:
9527 * HtmlDocument.cs: Implemented GetElementsByTagName.
9529 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
9531 * Screen.cs: Stub BitsPerPixel to always return 32.
9533 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
9535 * Form.cs: Implement RestoreBounds.
9537 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
9539 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
9540 Sebastien and his fabulous magical problem-finding machine:
9541 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
9542 respect the value set.
9544 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
9546 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
9547 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
9549 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9551 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
9552 messages (to match .Net), we need to remove the capture ourselves.
9554 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
9556 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
9557 will process the message and close our window.
9560 2008-01-10 Geoff Norton <gnorton@novell.com>
9562 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
9563 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
9566 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
9568 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
9571 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
9573 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
9574 Linux doesn't care, having a minimum matches MS and keeps the window
9575 from becoming too small to use window decorations.
9578 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
9580 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
9581 ShowFocusCues. Make focus rectangles fit the text instead of the whole
9582 control. [Fixes bug #325419]
9584 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
9586 * ComboBox.cs: Guard against an NRE if the user open a new form from a
9587 SelectedIndexChanged event. This closes the combobox dropdown, and we
9588 were trying to dispose it. [Fixes bug #352830]
9590 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
9592 * Control.cs, Form.cs: Implement the necessary semantics for
9593 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
9594 to determine if a focus rectangle should be drawn.
9595 * PropertyGrid.cs: Fix property visibility to match override.
9596 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
9598 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
9600 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
9603 2008-01-09 Geoff Norton <gnorton@novell.com>
9605 * XplatUICarbon.cs: Scroll windows in the correct direction.
9607 2008-01-09 Geoff Norton <gnorton@novell.com>
9609 * XplatUICarbon.cs: Track all created utility windows so we can hide them
9610 when the app is deactivated or spaces is enabled.
9612 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9614 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
9615 extra separation pixel for the label rect origin if SmallImageList is
9616 null, and thus we don't need that separation between icon and label
9618 Patch by Ernesto Carrea.
9621 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
9623 * StatusStrip.cs: Invalidate after completing a layout. The base
9624 OnLayout does this, but we don't call the base.
9625 * ToolStripItem.cs: Revert the previous change to invalidate after
9627 [Fixes bug #351341 better.]
9629 2008-01-07 Geoff Norton <gnorton@novell.com>
9631 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
9632 not a notification to exit the application. Listen for WM_QUIT
9635 2008-01-07 Andreia Gaita <avidigal@novell.com>
9637 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
9639 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
9641 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
9642 so it can repaint at the correct location.
9645 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9647 * ListControl.cs: SelectedValue should return a null value if
9648 SelectedIndex is -1. Also, when setting it, it should throw an
9649 ArgumentNullException if the value is null, as well as taking
9650 into account the String.Empty value, instead of ignoring it (we have
9651 tests for that now).
9652 Fixes part of #324286.
9654 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
9656 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
9657 SelectionStart is updated after pressing enter. Fixes bug #351918.
9659 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9661 * TextControl.cs: Revert a piece r92316 that prevented the fix
9662 from working when there were multiple tags in the text box.
9665 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9667 * TextControl.cs: Apply patch from Luke Page that prevents an
9668 NRE when determining the beginning of a paragraph.
9671 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9673 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
9674 caret gets moved with clicking away from a selected block of
9675 text. Fixes bug #351885.
9677 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9679 * TextControl.cs: Apply patch from Luke Page that takes line
9680 alignment into account for mouse selection, so that center and
9681 right aligned text can be selected.
9684 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9686 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
9687 issues after loading an RTF file by using the correct line feeds.
9690 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9692 * TextControl.cs: When deleting multiple line selections, we need
9693 to invalidate every line beginning at the first line of the selection.
9694 Patch from Luke Page fixes bug #351791.
9696 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9698 * ListControl.cs: When getting a CurrencyManager.PositionChanged
9699 event, don't set SelectedIndex if the number of items is 1. This is
9700 because, for the first item, PositionChanged is fired _before_
9701 ItemChanged (the place where we actually populate the items), and
9702 leave us in a temporary invalid state (since items collection is
9706 2008-01-04 Geoff Norton <gnorton@novell.com>
9708 * XplatUICarbon.cs: Create native toolwindows instead of
9709 the managed drawing ones.
9711 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
9713 * LineTag.cs: If the line doesn't have any characters, return
9714 0 for GetCharIndex. Fixes an AOORE exception after certain
9715 caret movements. Fixes bug #351683. Patch by Luke Page.
9717 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
9719 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
9720 is hit when there is selected text, only the selected text gets
9721 deleted, not the character in front of the selection as well.
9724 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9726 * ComboBox.cs: When the values are displayed, calculate the
9727 ComboListBox scrollbar's LargeChange based on the visible area's
9728 height and the actuall ItemHeight, instead of calculating it
9729 based on MaxDropItems value, since it's not used by our _current_
9733 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
9735 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9736 Patch from Luke Page that fixes issues with font colors and styles
9737 not showing up in a readonly RichTextBox. Fixes bug #324354.
9739 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
9741 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
9742 from Luke Page. This one fixes bug #349926.
9744 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9746 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
9747 an item in the IBindingList source changes with
9748 ListChangedType.ItemAdded. Ignore for now firing the event for other
9749 changes, since we want to have tests for those cases as well.
9751 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
9753 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
9756 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
9758 * TextBoxTextRenderer.cs: Implement a cache for measuring each
9759 character. This is effective because the typical usage of a
9760 TextBox is with a limited amount of fonts and characters, and
9761 the current implementation of TextBox measures everything one
9762 character at a time. Another second or two speedup for bug #347238.
9764 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
9766 * Control.cs: Rewrite the Font getter to only query the parent's
9767 Font property once instead of twice. Since this operation is
9768 recursive, the queries were growing exponentially as the control
9769 tree got deeper. Another second or two speedup for bug #347238.
9771 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
9773 * Control.cs: Avoid setting a parent (and more importantly, updating
9774 the zorder of all its children) if the parent is already correct in
9775 WmShowWindow. Decreases the startup time of the test case on bug
9776 #347238 from 35 seconds to 11 seconds.
9778 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9780 * X11Dnd.cs: When the dnd operation has started and we are
9781 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
9782 This is done to match .Net, which doesn't send those messages after
9783 dnd operation was completed/cancelled.
9786 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
9788 * ToolStrip.cs: Previous change should be != null, not == null.
9791 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
9793 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
9794 user may have moved the mouse off the current item during the event.
9796 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9798 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
9799 calling GetItemAt for every MouseMove event by also taking into
9800 account whether any mouse button is pressed (probably dragging);
9801 if so, we can call GetItemAt, and if not, try to not call it
9802 (GetItemAt can be quite expensive when used with a large number of items).
9804 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9806 * ListView.cs: Implement -finally- support for dnd, by calling
9807 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
9809 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
9810 simple calculation of distances for all the items in the owner
9813 2007-12-21 Geoff Norton <gnorton@novell.com>
9815 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
9816 for windows that are originally created as invisible. Fixes missing
9817 main window in paint-mono.
9819 2007-12-21 Geoff Norton <gnorton@novell.com>
9821 * XplatUICarbon.cs: Register our D&D handler. Register our custom
9822 subclass handler for com.novell.mwfview subclassing HIView. Implement
9823 Pasteboard and Dnd methods.
9825 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9827 * ListBox.cs: When we got focus, give focus to first item if there
9828 wasn't any pervious focused item. Also update navigation to depend on
9829 SelectedIndex rather than FocusedItem, just as .Net does.
9832 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9834 * ListBox.cs: Both FindString and FindStringExact methods must do an
9835 case insensitive search, should allow the last valid index to be
9836 passed in the overload taking an initial index, and should also
9837 continue searching from the top back to the specified index when it
9840 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9842 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
9843 redraw issue, and allows RichTextBox to draw colored text even while
9844 disabled or readonly.
9846 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9848 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
9849 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
9850 and doesn't grey text in a disabled RichTextBox.
9852 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9854 * RichTextBox.cs: Apply patch from Luke Page that adds better support
9855 for many RTF commands: quad alignment, separate formatting for blocks
9856 inside groups, and ParDef support. Makes the test case from bug #324589
9859 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9861 * LineTag.cs: Fix an error in the new Draw method that caused
9862 a crash when rendering the document on bug #324589.
9864 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9866 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
9867 TextControl.cs: Apply patch from Luke Page that adds support
9868 for URL links in RichTextBox.
9869 [Fixes enhancement #342516]
9871 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
9873 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
9874 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
9876 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9878 * ListBox.cs: When a key gets pressed, try to find a string
9879 if the key is a character or a digit.
9882 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
9884 * TableLayoutPanel.cs: Remove some unused variables.
9886 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
9888 * DateTimePicker.cs: Commit patch from Luke Page that ensures
9889 we don't end up at an invalid date when we click the up/down
9890 spinner to change the month or year. Fixes bug #348682.
9892 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
9894 * Application.cs: Calling Exit in 2.0 should chain to the
9895 Exit (CancelEventArgs) version so it can be cancelled.
9896 * Form.cs: Create a flag to allow raising the Closing
9897 events to be skipped. We raise them once in Application.Exit
9898 and don't want to raise them again when the Form is actually
9899 closed. [Fixes bug #349073]
9901 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
9903 * ToolStripDropDown.cs: Guard against an NRE when there
9904 hasn't been a mainform set in the application context.
9907 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9909 * ListBox.cs: When SetBoundsCore gets called, besides
9910 calling UpdateScrollBars, update the value of
9911 last_visible_index, since we could need to show more items
9912 than before, and we need to let the paint routines know that.
9915 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9917 * ListView.cs: Add DesignerSerializationVisibility attribute to
9918 InsertionMark property.
9919 * ListViewItem.cs: Add same attribute to Position property.
9921 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9923 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
9926 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
9928 * ThemeWin32Classic.cs: Don't draw the background on a
9929 flat button if there is a background image.
9932 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9934 * ListBox.cs: If we remove the item currently selected,
9935 remove it not only from SelectedItems, but also
9936 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
9937 the items count decreased and focused_item has bigger value than that.
9939 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
9941 * Control.cs: Perform our layout after we resize ourselves
9942 if we had to adjust our AutoSize. Missed commit for bug
9945 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
9947 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
9948 we can provide an implementation of AutoSize.
9951 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9953 * ListBox.cs: Add the internal overload Sort (bool paint),
9954 to indicate whether we actually need a paint or we will
9955 call Refresh ourselves. This way we don't request a paint
9956 _before_ having an updated and valid layout.
9959 2007-12-12 Andreia Gaita <avidigal@novell.com>
9961 * XPlatUIX11.cs: Send paint messages when updating a systray icon
9962 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
9963 properly invalidated.
9966 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9968 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
9969 don't simply assign it to our internal group field, but instead
9970 use our Group property, which should do all the neccessary work
9971 required to support groups. Fixes an issue reported to me (mail) by a
9972 guy using this new feature.
9974 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
9976 * Control.cs: Use Scale instead of ScaleControl to ensure the
9977 whole hierarchy gets scaled.
9980 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
9982 * DateTimePicker.cs: Don't set the internal MonthCalendar's
9983 Parent property. Doing this causes the control to be hosted by
9984 the Form instead of being a popup window.
9987 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
9989 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9990 at an index higher than Count, just use Add instead of Insert.
9993 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
9995 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9996 DrawPictureBox, this is handled by Control.PaintBackground.
9999 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
10001 * MenuAPI.cs: When process menu keys return true by default only if menu is
10002 active. Fixes bug #342892.
10004 2007-12-09 Andreia Gaita <avidigal@novell.com>
10006 * Control.cs: check if windows are actually mapped before
10007 trying to zorder. Fixes #342509, #346955
10009 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10012 * ListViewInsertionMark.cs:
10013 * ThemeWin32Classic.cs: Implement the drawing side of the
10014 new 2.0 ListView.InsertionMark property.
10016 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
10018 * CurrencyManager.cs: Silence some debug spew.
10020 2007-12-07 Geoff Norton <gnorton@novell.com>
10022 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
10023 masks for our children as well as siblings to avoid having to query
10024 Quartz for this information.
10025 * XplatUICarbon.cs: Implement a delegate based system to pass
10026 information to System.Drawing. Implement Async methods. Remove
10027 the hack for the resize thumb and imlpement a transparent Grow Box.
10028 Rework the messaging system to proplery create window's and messages,
10031 2007-12-06 Andreia Gaita <avidigal@novell.com>
10033 * X11Keyboard.cs: Use Xutf8LookupString to support international
10034 characters under alternate codepages. Patch from #340878
10036 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10038 * ListView.cs: When doing layout computations, set position in the
10039 ListView instances (we cache the position just as .Net does).
10040 * ListViewItem.cs: New internal setter method for Position. Also set
10041 position field as also available in 1.1, since we are going to use it
10042 now in the common case.
10044 2007-12-06 Andreia Gaita <avidigal@novell.com>
10046 * Control.cs: When removing controls, get the actual container
10047 to notify about active control changes. Fixes 341314.
10049 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10051 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
10053 2007-12-05 Andreia Gaita <avidigal@novell.com>
10055 * Control.cs: When updating the zorder, ignore windows that are not
10056 mapped. Fixes #342509
10058 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10060 * ListViewItem.cs: Actually implement serialization on this class.
10062 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
10064 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
10065 LinkCollection. Spaces to tabs, and removed extra tabs.
10067 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10069 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
10070 tests to fail (hopefully).
10072 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
10074 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
10075 the image margin so custom renderers can correctly place it.
10077 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
10079 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
10080 so custom renderers can correctly place it.
10082 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
10084 * Application.cs: Let WM_CHAR messages flow through to controls
10085 hosted in Strips. [Fixes bug #343972]
10087 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
10089 * ToolStripManager.cs: Guard against an NRE I ran into.
10091 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
10093 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
10094 a Link is manually added to the Links collection, we need to set
10095 its owner, so it can invalidate properly.
10096 [Fixes bug #344012]
10098 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10100 * ListView.cs: When changing ListViewItem.Position (which calls
10101 ListView.ChangeItemLocation), invalidate not only the area
10102 corresponding to the main item, but also to the area occupied
10103 by the items being moved.
10105 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10107 * ListView.cs: When changing the position of a given item,
10108 don't use item bounds, but item areas (which includes the item spacing
10109 between them). Also, use first/last position if the requested
10110 position is outside bounds (as .Net does). Invalidate the previous and
10111 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
10112 in a specific position, instead of directly accessing Items collection
10113 (this is done to get the right item - remember an Item can have a
10114 different position in the grid than in the Items collection).
10116 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
10118 * MessageBox.cs: Calculate text area instead of just top left, this rect
10119 area will be used in DrawString. Fixes bug #343364.
10121 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
10123 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
10124 screen width. Partially fixes bug #343364.
10126 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
10128 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
10129 code inside recalculate, it makes code more simple.
10131 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
10133 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
10134 between update or add icon. Fixes bug #324344.
10136 2007-11-21 Andreia Gaita <avidigal@novell.com>
10138 * XPlatUIX11.cs: Do not treat tool windows as if they have no
10139 window manager, since that stretches the drawing area to include
10140 the window decorations, and they get hidden. Reverts r84444 and fixes
10141 #335849 and #342790 (mdi and pdn3 regression)
10143 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10145 * ListView.cs: When setting focused item, try to give focus to the
10146 previous one _only_ if the previous one remains valid.
10149 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
10151 * Application.cs: Revert r89650, as it broke a common case to fix
10152 an obscure case. Fixes bug #342606.
10154 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
10156 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
10158 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
10160 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
10161 alignment. [Fixes #324228]
10163 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
10165 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
10166 [Fixes bug #342123]
10168 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
10170 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
10171 it prevent problems when empty captions. [Fixes #342141]
10173 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
10175 * Label.cs: Use Size instead of None. Fixes bug #342077.
10177 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10179 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
10181 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
10183 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
10184 but there isn't a MdiContainer.
10185 [Fixes bug #342358]
10187 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
10189 * TextControl.cs: Don't recalculate document if the recalc_start and
10190 recalc_end hasn't changed.
10191 [Fixes bug #342505]
10193 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
10195 * DataGridViewTextBoxCell.cs: Removed CWL.
10197 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10199 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
10201 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
10203 * TextControl.cs: Missed some code for bug 341534 to trigger a
10204 recalculation when the font changes.
10206 2007-11-16 Andreia Gaita <avidigal@novell.com>
10208 * Control.cs: When updating the zorder, check if the child to update is
10209 the same control that is set to always be on top (i.e., scrollbars), and
10210 just put it on top directly. Fixes BadMatch error on pdn3
10212 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10214 * ListView.cs: Throw the needed exceptions for FindNearestItem.
10216 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
10218 * Control.cs: Don't perform a new layout when a label changes its text,
10219 cause label handles its own autosizing.
10220 [Fixes bug #342077]
10222 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10224 * ListView.cs: Implement 2.0 FindNearestItem methods.
10226 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
10228 * ToolStripPanel.cs: Make Join at least add the control to the panel,
10229 even if the rest of what Join does isn't supported. Add some more
10230 support for vertical toolbars.
10231 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
10232 [Fixes the application breaking parts of bug #341998]
10234 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
10236 * ToolStripItem.cs: When determining if we have a check/image margin,
10237 we need to look at ShowCheckMargin as well as ShowImageMargin.
10239 2007-11-15 Geoff Norton <gnorton@novell.com>
10241 * XplatUIOSX.cs: Rename to...
10242 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
10243 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
10245 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
10247 * KeysConverter.cs: The default values should be an array of Keys, not
10248 strings. Also, the array has more values for 2.0.
10249 [Fixes bug #341851]
10251 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
10253 * Application.cs: Change ExecutablePath to use
10254 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
10255 [Fixes bug #323552]
10257 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
10259 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
10260 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
10261 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
10262 be ignored. Create a new GetLineEnding that can specify which types of
10263 line endings to look for. On Insert, only create new lines for \n and \r\n.
10264 [Fixes bug #324274]
10266 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
10268 * TextBoxBase.cs: As we loop through each line changing the font, tell
10269 the document that the line needs to be recalculated. Fixes bug #341534.
10271 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
10272 [Another round of refactoring]
10273 * Line.cs: Add DeleteCharacters.
10274 * LineTag.cs: Add Delete.
10275 * TextBoxBase.cs: Update to use new methods.
10276 * TextControl.cs: Refactor the Delete* methods.
10278 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
10280 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
10281 the patch. [Fixes #324856]
10283 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10286 * ListViewItem.cs: Add an initial implementation of
10287 2.0 ListViewItem.Position getter.
10289 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10291 * ListView.cs: Add a reordered_items_indices array, to allow us
10292 to have a different sorting than that of Items (the sorting in Items
10293 could not match the actual sorting in screen). This is needed to
10294 implement a pair of 2.0 features.
10295 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
10296 actual position in the ListView grid, since it could have a position
10297 different than its Index (position in ListViewItemCollection).
10299 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
10301 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
10302 not draw partial lines.
10303 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
10304 LineLimit flag from the base is preserved.
10305 Fixes the windows part of bug #338965.
10307 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
10309 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
10310 so that it can be canceled in KeyPress.
10313 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10315 * ListView.cs: In ItemControl, reset mouse-handling related
10316 fields even if we dont' have items (we still should reset them when
10317 we had items but then called Items.Clear). Partially based in a patch
10321 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
10323 * Application.cs: In ProductVersion first try AssemblyFileVersion
10324 before falling back to assembly version. Fixes bug #339787.
10326 2007-11-08 Andreia Gaita <avidigal@novell.com>
10328 * HtmlElement.cs: Implement InnerText setter.
10329 * WebBrowserBase.cs: Implement Navigated event support.
10330 Add flag to track when the browser "document" is ready to be retrieved.
10331 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
10332 Make sure browser document is ready before retrieving it.
10333 Clean up cached objects (document) when moving to a new page through
10334 any of the navigation methods.
10335 Use the new Mono.WebBrowser.INavigation interface to control navigation.
10336 Implement OnNavigated event.
10338 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
10340 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
10341 DrawLinkLabel, this is handled by OnPaintBackground.
10342 Fixes bug #339565, part II.
10344 2007-11-07 Andreia Gaita <avidigal@novell.com>
10346 * Control.cs: Revert r88915. Selecting text on a textbox depends on
10347 getting a Select call on click, so this call needs to be here for now.
10350 2007-11-07 Geoff Norton <gnorton@novell.com>
10352 * OSXStructs.cs: Add the kEventClassApplication constants.
10353 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
10354 application is deactivated otherwise Menu overlays linger on top of
10355 other application windows.
10357 2007-11-07 Geoff Norton <gnorton@novell.com>
10359 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
10360 dont support cursors yet anyways. This allows Reflector to run.
10362 2007-11-07 Geoff Norton <gnorton@novell.com>
10364 * XplatUIOSX.cs: Implement DragSize.
10366 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10368 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
10369 ItemControl, request the focus, as .Net does. This is needed after
10370 Control does not request focus anymore when it receives a
10373 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
10375 * Label.cs: Make DrawImage internal so it can be called from Theme code.
10376 Remove the DrawImage call from OnPaint.
10377 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
10378 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
10379 but before we draw the text for DrawLabel and DrawLinkLabel.
10382 2007-11-05 Andreia Gaita <avidigal@novell.com>
10384 * Control.cs: Remove select call on click. Fixes #325809
10386 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10388 * ListViewItem.cs: Add 2.0 Position property getter.
10390 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10392 * ListView.cs: Add 2.0 BackgroundImageTiled property.
10393 Also, to make it work properly, change item's BackColor and
10394 BackgroundImageLayout as needed.
10395 * ThemeWin32Classic.cs: Don't fill any background rectangle
10396 in ListView.ItemControl when drawing items; just let the Control
10397 base implementation fill it.
10399 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10401 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
10402 as well as adding a custom 'dummy' Converter, as .net does.
10404 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10406 * PropertyGridView.cs: When clicking drop-down button,
10407 select an index in the listbox only if our standard values collection
10408 has one or more items.
10410 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10412 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
10415 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
10417 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
10418 the value is not changed. This ensure a pushed button remains in that
10419 state when clicked again. When switching the value of PropertySort
10420 between Categorized and CategorizedAlphabetical, do not update the
10421 grid items and do not fire a PropertyChangedEvent. When clicking the
10422 sorting buttons, do not modify the PropertySort value when switching
10423 between Categorized and CategorizedAlphabetical but only update the
10426 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
10428 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
10430 * PropertyGrid.cs: Also put Categorized button in pushed state when
10431 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
10432 for help description label.
10434 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10436 * ListView.cs: When calculating the biggest item for a given column,
10437 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
10440 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
10442 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
10443 value for PropertySort on 1.0 profile. PropertySortChanged event
10444 should only be fired on 2.0 profile. Fixed NullReferenceException
10445 in UpdateSortLayout when PropertyGrid contains no items.
10447 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
10449 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
10450 [Fixes bug #338554]
10452 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10454 * ListViewItem.cs: Implement 2.0 IndentCount property.
10456 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10458 * X11Dnd.cs: When sending status in a dnd operation, compare current
10459 effect with the 'allowed' field instead of 'drag_data.Allowed', since
10460 the later is only created when a Winforms application is both the
10461 source and the target, but not when we are the target only.
10462 Fixes part of #324251.
10464 2007-11-01 Geoff Norton <gnorton@novell.com>
10466 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
10468 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
10469 children out of the drawing view on mac.
10470 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
10471 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
10473 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
10475 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
10476 on the non-hosted-control part of it shouldn't do anything.
10477 Fixes part of bug #327498.
10479 2007-11-01 Andreia Gaita <avidigal@novell.com>
10481 * WebBrowserBase.cs: revert previous change, resize can be called anytime
10483 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
10485 * Application.cs: When a toolstrip has the keyboard input loop, let messages
10486 it does not use flow through to controls that are hosted in menus.
10487 Same with mouse clicks.
10488 * Form.cs: Don't close all menus on click if the click is on a
10489 control hosted in a menu.
10490 Fixes part of bug #327498, and part of bug #325969.
10492 2007-10-31 Andreia Gaita <avidigal@novell.com>
10494 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
10496 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
10498 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
10499 Addresses an issue raised in bug #336218.
10501 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
10503 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
10504 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
10506 2007-10-30 Andreia Gaita <avidigal@novell.com>
10508 * ContainerControl.cs: Check if the active control is a
10509 child of a removed control and update active_control accordingly.
10512 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
10514 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
10515 or the MaxDate. Fixed bug #337693.
10517 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
10519 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
10520 after calling SetWindowLong for a form, to force an immediate NC refresh.
10521 Fixes first part of bug #325150.
10523 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
10525 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
10526 simple. Fixes the last part of bug #322668.
10528 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
10530 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
10531 needs to be TopMost as well, or else the MessageBox is under the form.
10532 Patch by George fixes bug #325300.
10534 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10536 * X11Dnd.cs: When starting a new drag operation, reset the static
10537 'dropped' field to false (previously the implementation didn't reset
10538 it and got confused after the first drag).
10541 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10543 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
10544 items instead of re-creating them all. For this purpose we now cache
10545 both CategoryGridEntry items and the GridEntries for the main object's
10547 * GridItem.cs: Make SetParent method abstract.
10548 * GridEntry.cs: Override the SetParent method (already there, but now
10552 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10554 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
10555 depending on its depth (as .Net does). Update the needed values in
10556 MouseDown handler. Also draw the plus/minus rect after the label,
10557 so we don't draw on top of it.
10559 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
10561 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
10562 processed by forms or controls when menu is active. [Fixes #333548]
10564 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
10566 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
10567 parent doesn't have focus. This was causing ToolStripTextBoxes to take
10568 focus on mouse over.
10570 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
10572 * TextControl.cs: Code cleaning, simplifying.
10574 2007-10-24 Geoff Norton <gnorton@novell.com>
10576 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
10577 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
10579 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
10581 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
10582 the cap is maxvalue, not actually 0. [Fixes bug #336218]
10584 2007-10-24 Andreia Gaita <avidigal@novell.com>
10586 * SendKeys.cs: apply jpobst's patch to bug #332409
10588 2007-10-23 Andreia Gaita <avidigal@novell.com>
10590 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
10591 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
10594 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10596 * PropertyGridView.cs: If a property has an UIEditor available,
10597 make the drop-down/editor button available only if the property
10598 is _not_ read only.
10600 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10602 * PropertyGridView.cs: Don't make the grid item textbox
10603 editable when a drop-down control is available, but
10604 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
10605 true. The same bur the color of the grid item value's label.
10607 2007-10-22 Geoff Norton <gnorton@novell.com>
10609 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
10610 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
10611 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
10612 driver. Padd the bottom of all real windows so the resize thumb doesn't
10613 obscure scroll/status bars.
10615 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
10617 * WindowsFormsSection.cs: Implement.
10619 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
10621 * MdiClient.cs: Maximize new active mdi child when a maximized child is
10622 closed see #325434 patch.
10624 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
10626 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
10629 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10631 * PropertyGridView.cs: When showing the textbox for a grid item,
10632 have two local variables to store the read-only and non-editable
10633 status of a grid item (we were previously using just one variable
10634 to do this, when actually they are slightly different).
10635 Fixes part of #325023.
10637 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10639 * PropertyGridView.cs: When showing a drop-down list, try to get the
10640 values using TypeConverter.ConvertTo (to convert to a string). Fixes
10643 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10645 * PropertyGrid.cs: When updating a property and populating sub grid
10646 items, remove the previous ones, and invalidate the specific area.
10647 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
10648 area behind a grid item.
10649 * GridItemCollection.cs: Add an internal Clear method, to allow us to
10650 clean the items if needed (specially for controls implementing
10651 ICustomTypeDescriptor and returning a variable number of properties).
10654 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
10656 * TextControl.cs: Clean up and document the Insert function.
10658 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
10660 * TextControl.cs: Make sure we know our start point for updating the view
10661 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
10664 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
10666 * ListView: Couple of corcompare fixes.
10668 2007-10-17 Geoff Norton <gnorton@novell.com>
10670 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
10671 the title caption of real window.
10673 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
10675 * ErrorProvider.cs: Add the error provider's internal window to a
10676 containercontrol when the parent changes. [Fixes bug #329714]
10678 2007-10-17 Geoff Norton <gnorton@novell.com>
10680 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
10681 When we make a new window; restore the old active window - fixes dialogs.
10683 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10685 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
10686 when modifying a property, and if found then invalidate as
10688 Fixes part of #324865.
10690 2007-10-17 Geoff Norton <gnorton@novell.com>
10692 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
10693 highly experimental. Fixed coordinate translation. Fixed window locations.
10694 Initial support for clipping. Implemented NC areas and menus. Support for
10695 launching from command line from Will Johansson (wjohansson@atacomm.com).
10696 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
10697 wjohansson@atacomm.com)
10698 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
10699 Hwnds now track the existence of all of their children for Mac clipping.
10700 * XplatUI.cs: Re-enabled the native driver on the Mac.
10702 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
10704 * Line.cs: Move the InsertString function to here.
10705 * TextControl.cs: Cleanup some duplicate code, move some InsertString
10706 functionality to Line.
10708 2007-10-17 Geoff Norton <gnorton@novell.com>
10710 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
10712 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
10714 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
10715 always setting value to true.
10716 * Form.cs: When changing AcceptButton, notify new and original button.
10718 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
10720 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
10721 a custom control that implements IButtonControl instead of an actual
10722 button. [Fixes bug #334244]
10724 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
10726 * Form.cs: Change SelectActiveControl to internal, we need to call it in
10729 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
10730 active control when activate a new mdi window.
10732 [Fixes bug #330495]
10734 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
10736 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
10738 [Fixes bug #333617]
10740 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
10742 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
10743 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
10744 so we always recalculate the whole document instead of just the new part.
10745 [Fixes bug #325082]
10747 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
10749 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
10750 when the mouse was to the left of the first character in the line.
10752 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
10754 * TextBox.cs, TextBoxBase.cs: When setting the document's password
10755 character, use the property instead of the variable so that the
10756 UseSystemPasswordChar property is taken into account.
10757 [Fixes bug #333748]
10759 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10761 * FolderBrowserDialog.cs: When a node is right clicked and the "New
10762 folder" contex menu appears, actually add the new folder to it, even
10763 if the node is not currently selected. Still use SelectedNode in case
10764 there wasn't found a node under the pointer.
10767 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10769 * ListViewItem.cs: When retrieving the focused state, the index check
10770 should be done only when ListView is in virtualmode, as it is an
10771 expensive check for normal mode.
10773 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10775 * ListViewItem.cs: Make the focus state information be stored
10776 in the ListView, not in the items. This is done to match the MS
10777 behaviour for items that are not yet part of a ListView control;
10778 besides that, since just one item can be focused at the same time,
10779 we save a little space in our items.
10780 Fixes part of #331643.
10782 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
10784 * ComboBox.cs: When focus is lost, deselect the text. When setting
10785 text of control, select all text. Do not hide selection when control
10786 does not have focus. Fixes bug #333663.
10788 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
10790 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
10791 instead of ArgumentException when SelectionLength is set to negative
10792 value. Added same check to SelectionStart. Code formatting.
10794 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
10796 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
10797 or SelectionStart. Code formatting.
10799 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10801 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
10802 indicating that there was not a previous drag-and-drop operation going
10804 Fixes part of #325071.
10806 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10808 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
10809 AllowedEffect, don't let the drop operation happen.
10812 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
10814 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
10816 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
10818 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
10821 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
10823 * Line.cs: Add a method that finds the tag that contains an x-coord.
10824 * LineTag.cs: Add a method that finds the character at an x-coord using
10825 a binary search, the old way was a linear search.
10826 * TextControl.cs: Change FindCursor to use the above new methods.
10828 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10830 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
10831 value different than AllowedEffect). This should be possible to
10832 indicate that dragging is not possible in some control/area.
10834 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
10836 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
10837 descent internally when font changes instead of outside code being responsible
10839 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
10840 instead of accessing internal variables.
10842 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
10844 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
10845 remove special treatment for ArrangeIcons since it is already arranged.
10847 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10849 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
10850 the Win32 backend uses Color.
10851 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
10852 Refactor to store a Color instead of a Brush for Color.
10854 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10856 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
10857 away. I didn't realize I needed this when I refactored these earlier.
10859 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10861 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
10862 store a Color structure and use the ResPool for back color instead of
10863 holding onto brushes.
10865 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10867 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
10868 [Fixes bug #325592]
10870 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10872 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
10873 to recalculate its size. Fixes a part of bug #331052.
10875 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10877 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
10878 button. Fixes a part of bug #331052.
10880 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10882 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
10884 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
10886 [Fixes bug #330986]
10888 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10890 * TextBoxTextRenderer.cs: Don't make this a static class, as static
10891 doesn't exist in 1.1. (Thanks jb!)
10893 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10895 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
10896 class to allow us to use different backends on different platforms.
10897 Linux uses the current [Draw|Measure]String backend. Windows uses
10898 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
10899 of GDI+. This leads to better looking text and more accurate measurements
10900 on Windows, fixing many of the reported issues.
10901 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
10903 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10905 * FolderBrowserDialog.cs: When running on Windows,
10906 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
10907 since we must match both "C:" and "C:\" forms. A little hackish, but
10911 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10913 * ListView.cs: When calling EndEdit (after editing an item),
10914 create a new instance of LabelEditEventArgs to keep clean the fields
10915 in case we get a new call to BeginEdit; also do Application.DoEvents
10916 to have focus in synch. This is a fix similar to TreeView's #325244.
10918 2007-10-07 Andreia Gaita <avidigal@novell.com>
10920 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
10921 * WebBrowserBase.cs: Added dialog support, calling the
10922 WebBrowserDialogs classes for each specific dialog type.
10924 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10926 * ListView.cs: When the last item is focused and is removed,
10927 move the focus to the previous item (in Items order). This is what MS
10931 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10933 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
10934 instead of the opposite (RemoveAt call Remove). This is a better
10935 approach since we don't need to to a pair of traversals when using
10938 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10940 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
10941 check that the node actually has nodes, and if not, move to the
10942 parent node instead.
10945 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10947 * TreeView.cs: Move the previous change to the general case (to
10948 call Application.DoEvents in cases where the method was called by
10951 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10953 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
10954 call Application.DoEvents. This is neccessary when we get a call to
10955 BeginEdit from an AfterLabelEdit handler, because the focus always
10956 goes to the TreeView, even if we try to give it to our
10957 LabelEditTextBox. The call do Application.DoEvents seems to
10958 synchronize the focus, basically.
10961 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10963 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
10964 should be false. This also removes some nasty recursive paths. Fixes
10967 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
10969 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
10970 state to normal. Also resize window when cascading. Fixes #325433.
10972 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
10974 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
10975 DefaultForeColor, as drawing empty colored lines isn't very useful.
10976 [Fixes the not drawn lines part of bug #324358]
10978 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
10980 * TextControl.cs: Move Line and LineTag classes into separate files to
10981 make things easier to find.
10982 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10983 * RichTextBox.cs: Capitalize LineTag.Length property access.
10984 - This is purely an organizational/formatting change, no logic changed. -
10986 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
10988 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10991 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
10993 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10996 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
10998 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10999 prevent calling of OnBackColorChanged. Fixes #325321.
11001 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
11003 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
11004 because control can be disabled because owner is disabled.
11006 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
11008 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
11009 string.Empty, test failed from previous change.
11011 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
11013 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
11014 is null, not String.Empty. See bug #323038.
11016 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
11018 * TextControl.cs: Change the margins to match MS a little better.
11019 Still not perfect for X11 due to some DrawString differences, but
11020 is still an improvement over the old stuff.
11021 Partially fixes #324467.
11023 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11025 * FolderBrowserDialog.cs: When using MyComputer as
11026 RootFolder, let absolute paths be considered as valid ones. Also, use
11027 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
11028 for Windows compatibility.
11029 Partially fixes #325247.
11031 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11033 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
11034 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
11035 method, since it causes the dialog to not select folders directly
11036 under the root path (when setting SelectedPath property).
11038 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11040 * TreeNode.cs: When calling Expand/Collapse and need to call
11041 ExpandBelow/CollapseBelow respectively, take into account
11042 partially visible nodes (previously Expanding/Collapsing
11043 a partially visible node in the bottom was not updating its +- sign).
11045 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11047 * TreeView.cs: When calling Expand on a TreeNode, and we need to
11048 expand nodes below (ExpandBelow), scroll the entire Viewport
11049 area if the node is above it and not visible (instead of scrolling
11050 the area from node's Bottom, which applies only when the node is
11054 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11056 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
11057 node in the bottom area (as .Net does). This is done to preserve the
11058 scroll position when ExpandAll is called before handle is created for
11059 the 1.1 profile (bottom area, as opposed to top area in 2.0).
11062 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11064 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
11065 bottom area if we are in fact not using the vertical scroll bar.
11068 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
11070 * Control.cs: Comment out a double buffering optimization that doesn't
11071 take into account invalidates created in OnPaint, causing the control
11072 to never be redrawn. It would take quite a bit of work to work around
11073 this, but I left it commented with an explanation for later possible
11075 [Fixes bug #328681]
11077 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
11079 * Control.cs: Ask parent to perform a layout if control is AutoSize and
11081 * RadioButton.cs: Implement GetPreferredSizeCore.
11082 [Fixes bug #328672]
11084 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
11086 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
11089 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
11091 * Application.cs: Move the sync context stuff to Run instead of RunLoop
11092 so that it doesn't get uninstalled on modal forms.
11093 * Control.cs: Install a sync context when a control is created.
11094 * WindowsFormsSyncronizationContext.cs: Create a private static control
11095 to invoke on. This is easier than trying to find a created control we
11097 [Fixes bug #327608]
11099 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
11101 * Application.cs: Install a WindowsFormsSynchronizationContext in the
11102 run loop, and uninstall it when done.
11103 * WindowsFormsSynchronizationContext.cs: Implement.
11104 [Fixes the common case in bug #327608]
11106 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
11108 * DataGridViewCellCollection.cs: Added argument checks for indexers.
11109 Use case-insensitive lookup of column name in indexer. Code
11112 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11114 * TreeNode.cs: When collapsing or expanding a node, check whether its
11115 change will affect the visible area (we were previously doing a
11116 IsVisible check, but that check is not enough since children nodes
11117 could be still visible). Fixes part of #325266.
11119 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
11121 * TreeView.cs: Always select the first node when the TreeView gets
11122 focus if there is no currently selected node.
11123 [Fixes bug #324279]
11125 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
11127 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
11128 node being selected is null.
11129 [Patch from Yves Bastide fixes bug #326858]
11131 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11133 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
11134 whether all the parent nodes are expanded.
11135 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
11136 call RecalculateVisibleOrder if all previous nodes are expanded.
11137 Before that we were doing a IsVisible check, but sometimes the node
11138 is not in the visible area, but _should_already be ready, because of
11139 all previous nodes are expanded. Fixes #325259.
11141 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
11143 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
11144 portion of the item is clicked.
11146 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
11148 * TextControl.cs: Do not tell the system to move the cursor if the
11149 textbox isn't focused. Fixes part of bug #322668.
11151 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
11153 * ComboBox.cs: When there are no items, do not show the dropdown if
11154 the down arrow is clicked. Fixes part of bug #322668.
11156 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
11158 * ToolStripComboBox.cs: Manually set the size of this control in the
11159 constructor, as it doesn't seem to be the same as DefaultSize.
11160 Fixes a failing monobuild test.
11162 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
11164 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
11165 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
11167 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
11169 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
11170 Desktop. This lets it work for people who have moved their desktops
11171 from the default location on windows. For people who have not, both
11172 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
11174 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11176 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
11177 but when the base constructor sets this, the control is null. Set it
11178 again in the constructor. Fixes a failing monobuild test.
11180 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11182 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
11184 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
11187 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11189 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
11190 will handle it themselves.
11191 * ToolStripItem.cs: When deciding what the text of a tooltip should
11192 be, use the Text property instead of the text field.
11193 * ToolStripTextBox.cs: Handle tooltips.
11194 [Fixes bugs #325417 and #325973]
11196 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11198 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
11199 left click. Fixes the easy part of bug #325969.
11201 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11203 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
11204 bug #325406, but set a minimum for StatusStrip to 22 to keep
11205 bug #325390 fixed. I think this minimum would have been figured
11206 up automatically if the grip was actually a ToolStripItem, but it
11209 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11211 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
11212 as this is apparently the actual value used by .Net. Also apply
11213 ItemPadding in Details view only, and decrease the general width padding,
11214 to have only the needed. This should fix #324340 in Windows too.
11216 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11218 * ListViewItem.cs: Don't Invalidate item if parent is inside
11219 a BeginUpdate/EndUpdate block. This prevents to have differences
11220 between the ListView and items state, as well as avoid some exceptions
11222 * ListView.cs: Make 'updating' field internal.
11224 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
11226 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
11227 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
11228 size if appropriate.
11229 Fixes reopened bug #325414.
11231 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
11233 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
11234 * ToolStripItem.cs: Invalidate before and after our new autosize when
11236 Fixes reopened bug #325390.
11238 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
11240 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
11241 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
11244 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
11246 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
11248 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11250 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
11251 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
11254 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
11256 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
11257 item to select when the ToolStrip is selected.
11258 * ToolStripControlHost: Realign the control when the bounds or visibility
11260 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
11261 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
11263 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
11264 base.OnPaint. Was causing text not to be drawn.
11266 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
11268 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
11270 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11272 * TreeView.cs: When creating the label edit text box,
11273 set is initially to Visible = false. This is done to
11274 prevent a confusion in the layout which makes it to lose
11275 focus when shown the first time. Fixes part of #82592.
11277 2007-09-13 Andreia Gaita <avidigal@novell.com>
11279 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
11281 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11283 * ToolStrip.cs: Take Margin into account when calculating preferred
11284 size. Also, allow preferred size to get smaller than the explicit
11286 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
11287 First step towards fixing bug #82747.
11289 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11291 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
11292 full row select background over the plus/minus glyph. Also, turn
11293 off the focus rectangle for full row select since MS doesn't seem
11294 to ever paint it. [Fixes bug #81839]
11296 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11298 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
11299 This was causing keyboard opened dropdowns to lose focus.
11302 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11304 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
11305 ClientRectangle instead. [Fixes bug #82838]
11307 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11309 * SplitContainer.cs: We can't reset Visible on every layout because
11310 someone may have set Visible = false explicitly on a SplitterPanel.
11311 Make sure when we switch orientation the SplitterDistance does not
11312 change. Fixes two failing tests.
11314 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11316 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
11317 TextRenderer, since the latter is only available in 2.0.
11319 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
11321 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
11322 * SplitContainer.cs: Implement FixedPanel layouting.
11324 2007-09-12 Andreia Gaita <avidigal@novell.com>
11326 * WebBrowserBase.cs: setup shutdown routine
11328 2007-09-12 Andreia Gaita <avidigal@novell.com>
11330 * Application.cs: Let keyboard events that are targetted
11331 to non-mwf windows hosted inside mwf (as in, webbrowser),
11332 propagate properly. Fixes keyboard handling on the webbrowser.
11334 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11336 * ListView.cs: When handling MouseUp event and we are
11337 highligting a node with the mouse right button, don't trigger
11338 Before/AfterSelecting event, since we are not actually selecting
11341 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11343 * TreeView.cs: When editing a node, modify the edit text box
11344 depending on the text length (as you are typing), like MS does.
11346 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
11348 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
11349 Override GetPreferredSizeCore to perform calculations. Remove custom
11350 autosize logic. [Fixes bug #82739]
11352 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
11354 * TextBoxBase.cs: Modified should default to false.
11356 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11358 * Control.cs: Update the anchoring distances even when layout is supspended.
11359 Patch provided by George fixes bug #82805.
11361 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11363 * Control.cs: Provide a setter for ExplicitHeight.
11364 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
11365 remove the hacks in here for requested_height.
11368 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11370 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
11371 Maximum to lower that its current Value caused an ArgumentException by setting
11372 the Value to the new Maximum.
11374 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11376 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
11377 handle moves to the closest tick when it is being dragged.
11380 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11382 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
11383 can't let them count as real items when calculating where to merge in the
11384 user's items. [Fixed bug #82786]
11386 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
11388 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
11389 who want to add a menu item directly onto a toolstrip.
11390 [Fixes bug #82775, part II]
11392 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
11394 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
11395 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
11396 don't set it to available.
11397 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
11398 [Fixes bug #82727, part II]
11400 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
11402 * StatusStrip.cs: Change item placement to None if not visible.
11403 * ToolStripItem.cs: Invalidate when InternalVisible changes.
11404 These should have been committed to fix 82723, but I missed them.
11406 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
11408 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
11409 Click, and that it is only called once.
11410 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
11411 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
11415 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11417 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
11419 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
11420 instead of 8, just like above. Partially fixes #82734.
11422 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11424 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
11427 * ListView.cs: Remove extra space between rows in Details view (match
11429 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
11432 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
11434 * Application.cs: Modified ProductVersion to return value of
11435 AssemblyInformationVersion if available, and fallback to assembly
11436 version. Fixes bug #82746. Code formatting.
11437 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
11440 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11442 * Control.cs: When updating ZOrder for a child control,
11443 take into account the implicit ones (we need it in our controls
11444 using them). Fixes #82642.
11446 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
11448 * ToolStripItem.cs: Add support for animated images.
11451 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
11453 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
11454 visible. [Fixes bug #82727]
11456 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11458 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
11459 so we repaint using the new size. [Fixes bug #82723]
11461 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11463 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
11464 option. [Fixes bug #81779]
11466 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11468 * TreeView.cs: Override HandleClick because the StandardClick style is
11469 set to false. According to MSDN (and testing), the click events should
11470 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
11472 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11474 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
11475 the border will disappear. Fixes reopened #82653.
11477 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11479 * Control.cs: If the control is autosize, and its preferred size changes
11480 when it lays out its children, tell its parent so it can be re-layed out.
11481 Fixing some of the fallout from r85433.
11483 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11485 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
11486 and CheckBox share some code.
11488 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11490 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
11491 the TrackBar, not every mouse move. [Fixed bug #82718]
11493 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11495 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
11496 under 2.0 rendering. [Fixes bug #82657]
11498 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11500 * TreeView.cs: If we found a TreeNode to display a context menu, but
11501 it doesn't have one to show, let the TreeView display its menu
11502 instead. [Fixes bug #82680]
11504 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11506 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
11507 OnPaintInternal instead. Give the internal TextBox a Border property
11508 so it can draw itself more correctly. [Fixes bug #82653]
11510 2007-09-06 Zoltan Varga <vargaz@gmail.com>
11512 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
11514 2007-09-05 Everaldo Canuto <everaldo@simios.org>
11516 * ComboBox.cs: Adjust combobox button state to reflect current state when
11517 back to enabled = true. Fixes first issue of #82654.
11519 2007-09-05 Everaldo Canuto <everaldo@simios.org>
11521 * Control.cs: Fix last patch regression, prevent forms to update zorder when
11522 setting visible property.
11524 2007-09-05 Everaldo Canuto <everaldo@simios.org>
11526 * Control.cs: Update zorder after control creation in SetVisibleCore, it
11527 fix zorder for controls initially created as non visible. Fixes #82667.
11529 2007-09-04 Everaldo Canuto <everaldo@simios.org>
11531 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
11532 mimic win32 look. Fixes #82656.
11534 2007-09-01 Zoltan Varga <vargaz@gmail.com>
11536 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
11537 Stubs for new net 3.5 classes.
11539 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11541 * ListViewItem.cs: In ListViewItemCollection operations calculate
11542 Layout for owner as well as invalidate it. Fixes part of #82642.
11544 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
11546 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
11547 when returning Enabled. [Fixes bug #82651]
11549 2007-08-30 Everaldo Canuto <everaldo@simios.org>
11551 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
11553 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11555 * ListView.cs: Put item padding info in a single place
11556 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
11558 * ThemeWin32Classic.cs:
11559 * Theme.cs: Likewise.
11561 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11563 * ListView.cs: When a ListViewSubItem instance is invalidated,
11564 invoke Invalidate on parent ListViewItem, not parent ListView.
11567 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
11569 * ListView.cs, ListViewItem.cs: corcompare stuffs.
11571 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
11573 * BindingMemberInfo.cs: Implement == and != operators.
11575 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
11577 * HtmlElementEventArgs.cs: Implement properties.
11579 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
11581 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
11583 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
11585 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
11586 Add (string,string,string) to implement the imagekey. It turns out, we
11587 use the requested imagekey whereas .Net does not. So I broke ours to match
11590 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
11592 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
11594 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
11596 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
11598 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
11600 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
11601 up-to-date. Fixes bug #82618.
11603 2007-08-29 Everaldo Canuto <everaldo@simios.org>
11605 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
11606 reflect document changes. Fixes #82367.
11608 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11610 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
11611 as well as add new ones. This should make work the BackgroundImage
11612 property for ListView again.
11614 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
11616 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
11617 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
11618 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
11620 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
11622 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
11625 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
11627 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
11628 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
11630 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
11632 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
11633 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
11635 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
11637 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
11639 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
11641 * GridEntry.cs: Implement GetService.
11643 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
11645 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
11646 for label editting, make sure we focus back on the TreeView.
11649 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11651 * ListView.cs: Add some 2.0 overrides.
11653 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
11655 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
11656 because getter dont returns right value before handle creation. Thanks
11657 to George. Fixes #82569.
11659 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
11661 * Theme.cs: Revert last patch, it causes error under win32.
11663 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
11665 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
11666 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
11667 logical Desktop rather than the physical file system location. Fixes #82603.
11669 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
11671 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
11672 for the patch. Fixes #82568.
11674 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11676 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
11679 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11681 * ListViewInsertionMark.cs: New stubbed class.
11683 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
11685 * FolderBrowserDialog.cs: When adding folder, immediately create the
11686 directory with temporary name and rename the directory when editing
11687 finishes. This matches MS. Ensure the node for the new folder is
11688 selected and LabelEdit is disabled, when editing is either finished
11691 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
11693 * TreeView.cs: When editing label of node, ensure node is visible.
11695 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
11697 * PropertyGridView.cs: Set the value only if it has changed.
11699 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11701 * ListView.cs: Some more code refactoring to add support sorting
11702 with groups (now for Details view). Remove unused code also.
11704 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
11706 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
11707 Not a big fan of reacting immediately to a field in an EventArg, but that's
11708 the way it's done. (This is part of the previous commit that got left out.)
11710 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
11712 * FolderBrowserDialog.cs: Removed need for separate description field.
11713 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
11714 has focus when dialog box is displayed again, regardless of what
11715 button was pressed the previous time. Set RootFolder and SelectedPath
11716 each time dialog box is displayed. This ensures the treeview is
11717 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
11718 when it does not have focus. Added support for more special folders.
11720 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
11722 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
11723 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
11724 it resets the edit_args.
11725 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
11728 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
11730 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
11731 button to match MS. Provide more meaningful exception message for
11732 invalid RootFolder value. Use zero-length string when SelectedPath
11733 is set to null. Allow non-rooted paths in SelectedPath, but ignore
11734 them in FolderBrowserTreeView. Allow folders to be created in
11735 RootFolder. Fixes bug #82576.
11737 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11739 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
11740 since we need to take into account the group headers and the margin
11742 * ListViewGroup.cs: Add a rows field to store the number of rows per
11745 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11747 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
11748 Anyways, let's just follow the lead.
11750 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
11752 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
11753 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
11754 controls in GetPreferredSizeCore.
11755 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
11758 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
11760 * PrintDialog.cs: Need to instantiate the form variable here too.
11762 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11764 * ListView.cs: Do some reorganization to support sorting in groups,
11765 by doing the layout sequentially in ListView.Items. Also add support
11766 for the Default Group, which should be available for items with no
11768 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
11769 for storing layout info also.
11770 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
11771 collection, as well as providing internal members to do a traversal
11772 including the default group (needed when doing layout/drawing).
11773 * ThemeWin32Classic.cs: When drawing group headers use internal
11774 ListViewGroupCollection members to take into account the default
11777 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
11779 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
11781 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11783 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
11784 been created. If handle is created, we want arror keys. If we are editing
11785 a node, we want things like enter, esc, home, end, page up, page down.
11786 Allows Esc to work for FolderBrowserDialog.
11788 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11790 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
11791 they close when ESC is pressed. Thanks Andy!
11793 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11795 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
11796 This way we can tell if this is a CommonDialog provided with mono, or one
11797 that is being implemented outside by a developer. If it is an external one,
11798 the developer is responsible for showing their own form. We were showing
11799 our blank form after the developer showed his.
11800 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
11801 PageSetupDialog.cs: Instantiate form variable in our constructor.
11804 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11806 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
11807 and always return true. [Fixes bug #81616]
11809 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11811 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
11812 TextBox. [Fixes bug #82549]
11814 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
11816 * FileDialog.cs: When Save/Open is clicked and no filename is selected
11817 or entered then do not close the dialog. Fixes bug #82539. Removed
11820 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
11822 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
11823 code to this method. It is calling every time filter changes. This method
11824 will help to fix the bug #80887.
11826 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
11828 * CheckBox.cs: Implement AutoSize calculation.
11830 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
11832 * CheckBox.cs: Use new 2.0 rendering for 2.0.
11833 * Theme.cs: Method declarations for 2.0 rendering path.
11834 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
11836 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11838 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
11840 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11842 * ListViewGroupCollection.cs: Implement AddRange the right way, to
11843 only call Redraw on the parent one time.
11845 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11847 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
11848 GetClipboardContent.
11849 * DataGridViewCell.cs: Implemented GetClipboardContent,
11850 GetEditedFormattedValue, GetFormattedValue.
11851 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
11853 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
11855 * TableLayoutStyleCollection.cs: corcompare fix.
11857 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11859 * DataObject.cs: Implemented retrieval of convertible / not convertible
11862 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
11864 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
11865 ourselves. This ensures the entire old bounds are repainted, in case our new
11866 size is smaller. [Fixes bug #82518]
11868 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
11870 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
11871 flag to make fast handle of mouse events, without this the mouse move is
11872 handled in some manner, whether it is a mouse move or not. Fixes #81588.
11874 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11876 * ListView.cs: When doing layout calculations don't use a ref
11877 param to keep the current item; instead use its Index value (this
11878 is specially important when doing the layout with Groups
11879 and Items being sparse). Also don't take into account items added to
11880 the Group but not yet added to the main ListView.Items collection.
11882 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11884 * ListViewGroupCollection.cs: Forgot to mimic an issue
11885 in the indexer (don't assign the ListView owner for new values).
11887 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11889 * ListViewGroupCollection.cs: Make the string indexer use
11890 the int based indexer to re-use code, instead of duplicate the code.
11891 Also Redraw as needed and take into account null values.
11893 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
11895 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
11898 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
11900 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
11901 when other buttons are clicked or navigated to.
11903 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11905 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
11906 it's XplatUIX11 that attaches them.
11908 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11910 * DataGridView.cs: If a column has been added, recreate the editing row.
11913 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11915 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
11916 of the tag to draw. Makes disappearing text show up again.
11918 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11920 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
11921 Contents. Fixes #82487.
11923 2007-08-19 Andreia Gaita <avidigal@novell.com>
11925 * Added HtmlElement.cs, HtmlElementCollection.cs,
11926 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
11928 2007-08-19 Andreia Gaita <avidigal@novell.com>
11930 * BindingSource.cs: Implement this, dispose and getenumerator.
11931 * DataGridViewRowCollection.cs: Move the InvalidOperationException
11932 out of AddInternal, throw it only on public Add calls. The
11933 UsingWebBrowser sample was blowing up with this when setting the
11934 DataSource after adding DataBindings, so it's likely that .net
11935 only throws this exception when Add is called directly.
11937 * ToolStripControlHost.cs: Return the hosted control's text
11938 property, and not the ToolStripItem one (it would always return
11939 the initial value).
11941 * HtmlDocument.cs: Implement GetElementById and All
11942 * WebBrowser.cs: Remove exception on set_DocumentStream.
11944 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11946 * Form.cs: Fix the max and min value for opacity (0~1).
11948 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11951 * DataGridTableStyle.cs: Default header font is now null, on getter it
11952 returns datagrid font when is null. On setter permits null.
11955 - When ResetHeaderFont set header font to null.
11956 - On EndInit set grid_style.DataGrid.
11958 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11960 * TabControl.cs: Fix regression in default padding x.
11962 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11964 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
11966 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11968 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
11969 not 2. Fixes #82229.
11971 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11973 * TabControl.cs: Fix tab size when image height is less than text height.
11974 Partially fixes #81837.
11976 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11978 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
11979 "alt + tab". It works only for Win32, for X11 theres no way to remove window
11980 from taskbar and keep it on "alt_tab". Fixes #81722.
11982 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11984 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11985 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
11986 Fixes #80877 and #79418.
11988 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11990 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
11991 between position and one of the screen borders. Fixes #82349.
11993 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11995 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11996 the MessageBox in the taskbar. Fixes #82457.
11998 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
12000 * MessageBox.cs: Fix form size when icon is set and text height is bigger
12001 than icon. Fixes #82468.
12003 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12005 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
12006 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
12007 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
12008 Refactored HandleNCCalcSize somewhat to avoid code duplication.
12009 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
12010 FormBorderStyle to decide if we're calculating a new size from the
12011 client size or not. CreateParams: Don't fake tool windows, only the X11
12012 backend manages toolwindows manually.
12014 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
12016 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
12017 ObjectDisposedException.
12019 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
12021 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
12022 in OnLoad should not have any effect. [Fixes bug #82470]
12024 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
12026 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
12027 paint for controls that create their own ToolTipWindow instead of
12028 going through ToolTip.
12030 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
12032 * ToolTip.cs: Make Hide internal instead of public to match MS API.
12034 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12036 * ListViewGroupCollection.cs: Use generic List instead of an
12037 ArrayList, since this collection is 2.0 only.
12039 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
12041 * ToolTip.cs (Hide): Made public to make the build work (should
12042 this not be public?).
12044 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
12046 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
12048 * ToolTip.cs: Add an internal Visible property to facilitate transition.
12050 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
12052 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
12053 PopupEventHandler.cs: Make these internal for 1.1.
12054 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
12055 use ToolTipWindow internals.
12056 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
12057 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
12059 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12061 * X11Dnd.cs: Add a null check.
12063 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12065 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
12066 nothing else succeeds. Fixes #82453.
12068 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12070 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
12071 rectangle if we're painting to another window than the one the paint
12072 message was generated on. Simplify the code somewhat, which makes
12073 PaintEventEnd also simpler.
12075 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12077 * Control.cs: When changing parent of a form, let the form decide whether
12078 XplatUI.SetParent should be called or not.
12079 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
12080 recreating the handle. If the new parent's handle isn't created, don't
12081 recreate our handle, just destroy it. CreateParams: Check if the
12082 parent's handle is created before fetching it.
12084 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12086 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
12087 Update calls to PaintEventStart/End to take a Message argument.
12088 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
12089 take a Message argument.
12090 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
12091 Message argument, and handle the case where we don't paint to the window
12092 for which the paint message was generated.
12094 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12096 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
12097 Marshal.GetLastWin32Error. Plug nasty memory leak in
12098 PaintEventStart/End, we were creating a DC we weren't releasing.
12100 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12102 * ListView.cs: Add Groups support in Details view. Also have a small
12103 method to do the layout of the group header. Don't use a separate
12104 method to do the groups calculation in Icons view, since our methods
12105 are now a little simpler.
12106 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
12108 * ThemeWin32Classic.cs: Likewise.
12110 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
12112 * Application.cs: Add FilterMessage method and rework our message loop
12115 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
12117 * Application.cs: Add some methods and stub a few methods that are
12118 pretty much never used.
12120 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
12122 * TreeNode.cs: Add some serialization methods.
12124 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12126 * ListView.cs: In ListViewItemCollection have a
12127 'is_main_collection' field to not modify ListViewItem.ListView
12128 when using it as ListViewGroup.Items (and not ListView.Items)
12129 and also don't modify selection state (.Net behaviour).
12130 Instead, set group for items contained in a ListViewGroup.Items collection.
12131 * ListViewItem.cs: Simplify some code in Group setter.
12132 * ListViewGroup.cs: use the new .ctor to pass the current instance
12133 to the ItemsCollection.
12134 * ListViewGroup.cs: Set the ListView property for ListViewGroup
12135 instances when adding/removing. Also make Remove use RemoveAt, which
12136 should perform better.
12138 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
12140 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
12141 that crept into the 1.1 profile.
12143 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
12145 * ToolBarButton.cs: Implement ImageKey.
12147 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
12149 * ToolBar.cs: Implement ScaleControl/ScaleCore.
12151 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12153 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
12154 created, it might have gotten destroyed since we last checked. Fixes
12157 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
12159 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
12160 tooltip will hide when mouse is moved off the control.
12163 2007-08-11 Andreia Gaita <avidigal@novell.com>
12165 * WebBrowserBase.cs, WebBrowser.cs: add implementation
12166 using Mono.Mozilla for loading and navigating webcontrol
12168 The initial implementation was done on
12169 /trunk/mozembed/tests/browser , and copied here.
12171 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
12173 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
12174 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
12176 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12178 * DataGridView.cs: Add support for an editing row. Fixes #82226.
12179 RowTemplateFull: throw an exception if a column doesn't have a template.
12180 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
12181 add the row just before it.
12182 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
12184 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
12185 DataGridView field to be able to reach the grid's editing row.
12187 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
12189 * ToolTip.cs: If the control's handle hasn't been created when it has a
12190 tooltip set on it, don't check to see if we need to show the tooltip. This
12191 check was causing the control's handle to be created.
12194 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
12196 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
12198 Handle Not Created -1 0
12202 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
12204 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
12207 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
12209 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
12210 * ToolTip.cs: Implement some properties and owner draw.
12212 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12214 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
12215 show them again, since setting visibility causes a paint, causing an
12216 endless loop (instead use a temporary and set it all when it's known if
12217 they should be shown or not). Fixes #79265.
12219 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12221 * DataGridView.cs: Only do a full column/row selection if a header was
12222 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
12223 isn't pressed, deselect everything before selecting something.
12225 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12227 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
12228 behaviour according to bug #81075 - they are returned in the order they
12229 are selected. Fix HitTest to check if the point is within any of the
12230 headers. Allow for row/column selection when in ColumnHeader or
12231 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
12232 the row and column to call when their selected state changes, and
12233 updated selected_[rows|columns] whenever SetSelected* is called.
12234 * DataGridViewBand.cs: Initialize isRow correctly. Call
12235 SetSelected[Row|Column]CoreInternal when the selected state changes, and
12236 add a SelectedInternal to avoid StackOverflows.
12237 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
12238 ReadOnly no matter what.
12239 * DataGridViewSelectedColumnCollection.cs,
12240 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
12241 the items in reverse order (just as MS does...)
12243 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
12245 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
12246 itself, not part of a mnemonic. [Fixes bug #82378]
12248 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12250 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
12251 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
12252 the DGV, the column, the row, or the cell itself is readonly.
12254 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
12256 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
12257 OSVersion.Platform.
12258 * FileDialog.cs: Same.
12259 * TextRendered.cs: Same.
12260 * FolderBrowserDialog.cs: Same.
12261 * TextBoxBase.cs: Same.
12262 * Application.cs: Same.
12263 * Cursors.cs: Same.
12264 * ThemeClearLooks.cs: Same.
12266 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
12268 * XplatUI.cs: Added RunningOnUnix property to be used by controls
12269 instead of duplicating these checks everywhere.
12270 * FileDialog.cs: Use case-insensitive comparison for populating the
12271 DirComboBox when not running on unix. Fixes bug #82385.
12272 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
12275 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12277 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
12278 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
12279 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
12280 cell and column selection with ctrl and shift pressed. Call the correct
12281 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
12282 the corresponding virtual method (PaintBackground to paint background,
12284 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
12285 either the column, row or the cell itself is selected.
12286 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
12288 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
12289 here. When the row is selected, don't select all cells. Each cell now
12290 queries the row to see if the row is selected.
12292 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12294 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
12297 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12299 * ListView.cs: In ListViewItemsCollection check that owner is
12300 not null before trying to access it (this happens quite often
12301 using Groups). Also don't duplicate calls by calling CollectionChanged
12304 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
12306 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
12307 when we are dismissed to clear keyboard mnemonics.
12308 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
12309 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
12310 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
12311 was activated by keyboard or the OS tells us to always draw them.
12312 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
12313 [Fixes bugs #82376, #82377]
12315 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
12317 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
12318 shot at having it because Alt was pressed.
12319 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
12320 the first real menu item.
12321 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
12322 a mnemonic if Text is null.
12325 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12327 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
12328 search do check whether the item is already contained in the
12329 collection or not; instead check if the owner of the item is the same
12330 as ours. Also, remove a redundant check in the same method.
12332 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
12334 * Control.cs: Allow the clip region to be set back to null.
12335 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
12336 [Fixes button still showing up in bug #82370 when Show Through is turned off]
12338 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12340 * GridEntry.cs: Add a null check.
12341 * PropertyGrid.cs: When checking for existing grid entries, ignore category
12342 entries. Fixes #82297.
12344 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
12346 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
12349 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
12351 * ListBox.cs: Implement ScaleControl.
12353 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12355 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
12357 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
12358 parent has a menu strip. Fixes #81689.
12360 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12362 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
12363 moments, so apply some fuzzy logic to determine if the mouse is still
12364 inside a control or not. Fixes #82288 (for the third time).
12366 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12368 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
12369 Don't create the child if it has been disposed already (may happen if
12370 the user closes the form the Load event).
12372 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12374 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
12377 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12379 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
12380 might call us after we've been destroyed, in which case our own private
12381 parent field is null. Fixes #82326.
12383 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
12385 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
12386 check for setting the dropdown's owner.
12388 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
12390 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
12391 before removing system menu items.
12393 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
12395 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
12397 * MdiControlStrip.cs: Added. These are the menu items used in mdi
12399 * ToolStrip.cs: Add a null check to mnemonics.
12400 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
12402 [Fixes most of bug #81689]
12404 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12406 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
12408 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12410 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
12412 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
12414 * DataGridViewCell.cs: EditType: returns
12415 DataGridViewTextBoxEditingControl always.
12417 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
12419 * TextRenderer.cs: Remove the LineLimit string format flag from the
12420 DrawString fallback method so that things like buttons that aren't
12421 tall enough to draw a full line will still draw part of the text.
12422 [Fixes part of bug #82272]
12424 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
12426 * DataGridView.cs: Implemented AutoResizeColumn(s).
12427 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
12428 according to the Alignment.
12429 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
12430 Implement alignment and padding when painting.
12431 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
12433 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
12435 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
12438 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
12440 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
12443 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
12445 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
12446 hide GetPreferredSize from public API.
12447 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
12448 * ToolStripItem.cs: Stub out drag and drop methods and events.
12449 * ToolStripManager.cs: Stub out Save/LoadSettings.
12450 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
12451 * ToolStripPanel.cs: Fix corcompare error.
12452 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
12453 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
12454 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
12456 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
12458 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
12459 bounds height instead of PreferredHeight. Puts things back the way
12460 they were for height while still fixing the width. Fixes broken unit
12463 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12465 * Binding.cs: Implement 2.0 constructors and add a null check.
12467 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12469 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
12470 and fix row index (off by one).
12472 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12474 * PropertyGridView.cs: Remove debug output.
12476 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12478 * Control.cs: We need to reset the is_created flags when the handle is
12479 destroyed. Fixes #82187.
12480 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
12481 client coordinates if the window doesn't have a parent.
12482 Win32GetParent returns the parent or the owner, and for top-level
12483 windows with no parent (but with an owner) we were calculating the
12484 location from the location of the owner.
12485 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
12486 form has been disposed.
12487 * MdiClient.cs: Add a null-check.
12489 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
12491 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
12492 actually do auto-sizing. Override the internal GetPreferredSizeCore
12493 so we can provide an implementation that returns the current width
12494 and preferred height. Allows anchor = right to work with TextBox 2.0.
12497 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12499 * ListView.cs: Add support for navigating items in Groups mode, by
12500 creating a big matrix containing all rows and cols of all groups. When
12501 are in other mode than Details, pressing Up should have a similar
12502 behaviour as that one of Down (moving to the next available column if
12503 current one doesn't have an item in the requested row). Also, don't
12504 proceed to use groups if ShowGroups is false.
12505 * ListViewGroup.cs: Add an internal int field to store the starting
12506 row of the group (used by the big matrix used for navigating the
12508 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
12511 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
12513 * ToolStripDropDown.cs: When we do Show, start with the
12514 DefaultDropDownDirection, but if our popup menu is going to off-screen,
12515 modify the direction to keep it on screen. [Fixes bug #82210]
12517 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
12519 * FileDialog.cs: Accept any FilterIndex value, and store it
12520 unmodified. When FilterIndex is less than 1, or greater than number
12521 of filters, then default to first filter. Only add filter extension to
12522 file if user did not specifiy an extension. When type of dialog is
12523 OpenFileDialog and DefaultExt is set, then only use filter extension
12524 if: CheckFileExists is true and no file wih the default extension
12525 exists, or CheckFileExists is false, and user specified file does not
12526 exist. When CheckFileExists is true, then add first extension of
12527 selected filter that matches existing file. Perform checks for
12528 existing file, overwrite and create after extension has been added to
12529 file name. When CheckFileExists is true and type is SaveFileDialog,
12530 then only consider first filter extension if DefaultExt is set.
12531 When CheckFileExists is true, then ignore DefaultExt if file with that
12532 extension does not exist. Also perform check for existing file when
12533 type is SaveFileDialog. Changed some field to constants.
12535 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12537 * ListView.cs: Take into account the region used by header
12538 control when doing the vertical scroll (this way we invalidate
12539 the precise area, and don't get any dirty one).
12541 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
12543 * FileDialog.cs: Check for valid filterIndex on button open/save.
12546 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12548 * ListView.cs: Update some layout calculations in details view
12549 and clean the code in a pair of assignations.
12551 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
12553 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
12554 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
12555 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
12556 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
12558 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
12560 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
12561 performance of thread-safe Graphic methods. (Thanks rolf!)
12563 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12565 * ListView.cs: When doing the layout calculations, don't calculate
12566 scroll bars before handle is created. This is unnecessary and also
12567 calculating them before handle creation item causes a number of random
12568 bugs (which begin to appear after Chris' big patch for handle creation
12571 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
12573 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
12574 for things that don't have a Graphics object. Currently, things just use
12575 the static Hwnd.bmp_g which is not thread safe.
12577 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12579 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
12580 dialog. Fixes #82187.
12582 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12584 * DataGridViewElement.cs: Initialize state.
12585 * DataGridView.cs: Forward a few Mouse events to cells. Add
12586 GetRowInternal and GetCellInternal that doesn't unshare rows.
12587 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
12588 don't use the index, but look it up. Add
12589 DataGridViewControlCollection.RemoveInternal to remove controls
12590 that Remove won't remove (scrollbars, edit control).
12591 * DataGridViewColumn.cs: Initialize State correctly.
12592 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
12593 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
12595 * DataGridViewRowCollection.cs: Implemented shared rows.
12596 * DataGridViewRow.cs: Throw exceptions as MS do.
12597 * DataGridViewCell.cs: A few properties are implemented by a
12598 Get<Property> method, so move implementation there and remove the
12599 NIEX in the method. Add a bunch of OnXInternal that DataGridView
12600 calls when necessary.
12601 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
12602 complicates matters.
12603 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
12606 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
12608 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
12609 the children controls. Instead, we will just set up the proper docking for the
12610 children controls so we don't have to worry about it. [Fixes bug #82188]
12612 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
12614 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
12615 canceling and correct Before/AfterLabelEdit properties as layed out in bug
12616 81847. [Fixes bug #81847]
12618 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
12620 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
12621 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
12622 an explicit size based on the design-time size of the text. Since our fonts
12623 may not match this explicit size, we tend to cut off the ends of people's labels.
12625 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
12627 * Menu.cs: Add some missing methods to MenuItemCollection.
12629 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12631 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
12632 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
12633 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
12634 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
12635 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
12636 * DataGridViewElement.cs: State defaults to Visible.
12637 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
12638 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
12640 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12642 * Control.cs: Minor 1.1 corcompare fix.
12644 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
12646 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
12647 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
12649 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12651 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
12652 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
12653 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
12654 DataGridViewSelectedColumnCollection.cs,
12655 DataGridViewSelectedRowCollection.cs: Corcompare work.
12657 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
12659 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
12660 it is autoset by VS2005 designer and the effect is barely noticeable.
12662 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
12664 * TreeView.cs: Implement HitTest.
12666 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12668 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
12669 manually adding and removing the control from the Controls
12671 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
12672 EditingControlInternal property that tracks the editing control.
12673 Always keeping the scrollbars in the Controls collection, as MS
12674 testing confirms is the right behaviour.
12676 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12678 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
12679 according to MSDN and new test.
12681 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
12683 * TreeNode.cs: Implement ToolTipText.
12684 * TreeView.cs: Implement tooltips, NodeMouse* events.
12686 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
12688 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
12690 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
12692 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
12693 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
12695 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
12697 * Control.cs, Form.cs, ContainerControl.cs,
12698 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
12699 for misc properties.
12701 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
12703 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
12704 * TreeView.cs: Implement StateImageList.
12706 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12708 * Form.cs: Don't check if the current form is the active form before
12709 activating it. Fixes #81904.
12711 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12713 * Form.cs: Don't check if the current form is the active form before
12714 activating it. Fixes #81904.
12716 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12718 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
12720 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12722 * Form.cs: Don't try to position the form after loading if the form was
12723 disposed. Fixes #81969.
12725 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12727 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
12728 properties. Had to change ToolBar into ToolStrip, which required a
12731 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12733 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
12734 resized, fixes part of #79829 (vertical lines in toolbar).
12735 PropertyGrid: Refactored Populate* to something that's easier to
12736 follow at least for me, as well as splitting it up into several new
12737 methods, required to update only subitems when something has
12738 changed by a popup editor or listbox. Don't use events to check
12739 when any values are changed, since the events are unreliable (we're
12740 changing the objects the events are registered with, and if the
12741 event handling requires the objects to be immutable (objects stored
12742 in hashtables for instance), the events will never be raised).
12743 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
12744 everytime we change a value, since events are unreliable.
12745 DropDownButtonClicked: For the same reason don't compare objects to
12746 check if it has changed or not, it would require all objects to
12747 derive Equals. Fix dialog location on windows, MS is doing weird
12748 things when creating parented forms.
12749 * GridEntry.cs: Add a SelectedObject setter.
12751 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
12753 * TreeNode.cs: Add some corcompare attributes.
12754 * TreeNodeCollection.cs: Implement 2.0 stuffs.
12755 * TreeView.cs: Implement some 2.0 stuffs.
12757 2007-07-18 Andreia Gaita <avidigal@novell.com>
12759 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
12762 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
12764 * ListBox.cs: Implement custom tab offsets.
12766 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12768 * ToolStripContentPanel.cs: Support System renderer.
12769 * ToolStripControlHost.cs: Set RightToLeft to default to No.
12771 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12773 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
12775 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12777 * CheckBox.cs: Chain TextAlign to base implementation instead of
12778 maintaining another one.
12780 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12782 * ButtonBase.cs: Fix an incorrect string constant.
12784 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12786 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
12787 of creating one for measuring strings.
12789 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12791 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
12792 Implement MaxItemSize.
12794 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
12796 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
12797 for DeviceContext. Instead, use the static one available in Hwnd.
12798 Informal tests show this saves about 500k on formtest.exe.
12800 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
12802 * ContainerControl.cs: Implement 2.0 AutoScaling.
12804 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12806 * ComboBox.cs: Work around bug #82120 (bug in mcs).
12808 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
12810 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
12811 Darken the focus color.
12813 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
12815 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
12817 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
12818 X, Y instead of a rect for drawing text.
12819 - For ControlPaint.DrawCheckBox, center the check a little better when the
12820 checkbox is odd width. When drawing a flat checkbox, use a white background
12821 when state != inactive.
12822 [Fixes bugs #82097, 82100]
12824 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
12826 * ListControl.cs: When changing CurrencyManager, disconnect event
12827 handlers from previous one. Fixes bug #81771. Code formatting.
12829 2007-07-15 Andreia Gaita <avidigal@novell.com>
12831 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
12832 full preview invalidation from layout invalidation, and only invalidate
12833 the layout when setting zoom or other properties. Invalidation should
12834 always be done even when resetting properties with the same values as
12835 what is there. Fixes #81744 and #79830.
12837 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12839 * ListView.cs: Implement initial support for Groups. Split some of the
12840 LayoutIcons code to render a partial list of the items (needed by
12841 items contained in ListViewGroup instances). Let the
12842 ListViewItemsCollection.ListView property be modifiable (needed when
12843 using Groups, too).
12844 * ListViewGroup.cs: Use a Bounds property rather than a Location
12845 one. Also invalidate the bounds when they get changed.
12846 * ThemeWin32Classic.cs: When drawing items, also draw the group header
12847 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
12850 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12852 * ListView.cs: When space gets pressed and CheckBoxes is true,
12853 don't invoke the Begin and EndUpdate methods. We are generating
12854 a redraw of the entire control without need to do so.
12856 2007-07-13 William Holmes <billholmes54@gmail.com>
12858 * Control.cs: Changing logic in FindFlatForward and
12859 FindFlatBackward to handle multiple Controls with
12861 This fixes bug 81687.
12863 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
12865 * OSFeature.cs: Enable IsPresent.
12867 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12869 * Control.cs: Don't do anything in WmShowWindow if the control has been
12870 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
12871 control is created, put on a form, the control is disposed (the
12872 form is never shown), and then we get a MapNotify, triggering a
12874 * Form.cs: Exclude the current form when sending Deactivate to all
12876 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
12877 there was a race condition because assigning the handle raises
12878 events, we can get more messages, therefore trying to assign the
12879 handle again, which would fail if any of those event handlers
12880 closed/disposed the control.
12882 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12884 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
12886 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
12888 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
12889 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
12891 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
12893 * DateTimePicker.cs: If there's no part format specifier, return an
12896 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
12898 * FlatButtonAppearance.cs: Throw NotSupportedException for a
12899 Transparent BorderColor.
12901 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
12903 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
12904 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
12905 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
12906 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
12907 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
12908 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
12909 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
12911 * X11Structs.cs: Remove warnings, add ToString implementations.
12913 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12915 * XplatUIX11.cs: Translate min/max size according to the actual min/max
12916 size, and not the current size. Fixes #81798.
12918 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12920 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
12921 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
12922 to the control yet).
12924 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12926 * PropertyGridTextBox.cs: Add a method that sends any forwarded
12927 mousedowns to the contained textbox.
12928 * X11Structs.cs: More ToString implementation.
12929 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
12932 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12934 * PropertyGridView.cs: Add a null-check, fixes a few tests.
12936 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
12938 * TableLayoutPanelCellPosition.cs: TypeConverter.
12940 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12944 * PropertyGridTextBox.cs: Propagate any color changes to all contained
12946 * PropertyGridView.cs: A few color fixes.
12948 2007-07-10 Jackson Harper <jackson@ximian.com>
12950 * TextControl.cs: Remove some old unused text formatting stuff.
12952 2007-07-10 Jackson Harper <jackson@ximian.com>
12954 * TreeView.cs: Update full row select invalidation to match the
12955 newer DrawSelection... method.
12956 - Make sure to invalidate the entire width when selecting a new
12957 node, if we have full row selection enabled.
12959 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12961 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
12962 display of properties again.
12964 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
12966 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
12967 to existing collections.
12969 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12971 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
12972 that changed between 1.1 and 2.0.
12974 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12976 * PowerStatus.cs: Added. This is just a data class, it is filled
12977 in by SystemInformation.
12979 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12981 * Message.cs: Add op_Equality and op_Inequality.
12983 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12985 * MenuStrip.cs: Finish corcompare work.
12987 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12989 * LinkArea.cs: Add op_Equality and op_Inequality.
12991 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12993 * Application.cs: Add MessageLoopCallback delegate.
12995 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12997 * ListBox.cs: First set of 2.0 stuffs.
12999 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
13001 * Control.cs: Make an internal Height property we can override
13002 without messing up the public API.
13003 * ListBox.cs: Override HeightInternal to always return the size
13004 the user set. [Fixes bug #80466]
13006 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
13008 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
13009 paint cell borders if we haven't calculated where they go yet.
13010 [Fixes bugs #82040 and #82041]
13012 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13014 * ListView.cs: In Details view, set the location of item_control
13015 in the (0,0) position (and the header_control is thus on the
13016 item_control). This way the Bounds of the Items are relative to the
13017 ListView control (before this, they had a Bounds value without the
13018 header_control offset, which wasn't matching .Net). Fixes #82004.
13020 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13022 * ListControl.cs: When DataSource is set to null, pass an empty
13023 array of object to SetItemsCore. This is done to clean the items
13024 in the ListContol children. Fixes #81788.
13026 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
13028 * ListControl.cs: Add 2.0 stuffs.
13030 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
13032 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
13033 Refresh is overkill for just about every repaint request.
13035 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
13037 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
13038 so remove my custom Get method and fix the property getter.
13040 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
13042 * Label.cs: DefaultMargin for 2.0.
13044 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
13046 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
13047 reported issue where other controls with mnemonics would steal strokes
13048 from a selected ComboBox.
13050 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
13052 * ScrollOrientation.cs: Make internal for 1.1.
13053 * ScrollEventArgs.cs: Add 2.0 stuffs.
13055 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
13057 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13058 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
13059 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
13061 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13063 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
13065 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13067 * ListView.cs: Implement the so-incredibly broken 2.0
13068 VirtualItemsSelectionRangeChanged event.
13070 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13072 * ListView.cs: When enter is pressed and selection is non empty,
13073 an OnItemActivate event must be fired.
13075 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13077 * ListView.cs: Store the FocusedItem information as an
13078 int instead of a ListViewItem (needed by VirtualMode).
13079 Update the calls to SetFocusedItem to pass an index instead of
13081 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
13082 the Focused state from the owner ListView.
13084 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13086 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
13087 property. Also, invalidate previous focused item in the mentioned
13088 property (match .Net).
13090 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13092 * ListView.cs: Implement 2.0 FocusedItem property setter.
13094 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13096 * ListView.cs: Implement 2.0 TopItem property setter.
13098 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
13100 * StatusStrip.cs: The default renderer is System.
13101 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
13102 if the user specifies it.
13103 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
13104 if we are ManagerRenderMode.
13105 * ToolStripMenuItem.cs: Calculate our text color better.
13106 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
13107 from Professional to the base class based off working with the System renderer.
13108 * ToolStripSystemRenderer.cs: Added.
13110 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13112 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
13114 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
13116 * ToolTip.cs: Implement 2.0 Tag property.
13118 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13120 * ListView.cs: Implement 2.0 HitTest methods.
13122 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13124 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
13125 item is under the pointer or not (sugar). Also remove the TODO
13126 regarding to the cursor changes in OneClick activation.
13127 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
13128 the subitems use the parent's HotFont if UseItemStyleForSubItems is
13129 true; otherwise don't show the underline style.
13131 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13133 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
13134 the code to retrieve the item at position only one time. Also
13135 change cursor when Activation is ItemActivation.OneClick as well
13136 as invalidate the item if HotTracking is true (to show/hide the
13137 underline style). Add an internal HotItemIndex property to retrieve
13138 the current hot item's index.
13139 * ListViewItem.cs: Add an internal HotFont property to cache the
13140 font used when HotTracking is true and the pointer moves within the
13142 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
13143 HotFont depending on the hot state of the item.
13145 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13147 * ListView.cs: Implement 2.0 HotTracking property.
13149 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
13151 * ToolStripControlHost.cs: If our hosted control never got created,
13152 don't try to dispose it. [Fixes bug #81909]
13154 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
13156 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
13158 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
13160 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
13162 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13164 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
13166 * DrawListViewColumnHeaderEventArgs.cs:
13167 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
13168 using the DrawText () methods.
13170 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
13172 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
13173 background which got erased in my changes yesterday.
13175 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13177 * ListViewItem.cs: Actually set bounds for subitems in Details view
13179 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
13180 can invoke from the owner draw routines if we need it. Also, add
13181 support for Owner draw in Details view.
13183 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
13185 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
13186 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
13187 ShowImageMargin setting, properly align text in a ToolStripLabel
13188 hosted on a ToolStripDropDown.
13190 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
13192 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
13193 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
13195 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13197 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
13199 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
13201 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
13202 location to match ToolStripMenuItems.
13204 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13206 * DrawListViewColumnHeaderEventArgs.cs:
13207 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
13208 column headers in ListView.
13210 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
13212 * UserControl.cs: Implement AutoSize.
13214 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13216 * DrawListViewItemEventArgs.cs:
13218 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
13221 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
13223 * ToolStripDropDownItemAccessibleObject.cs: Added.
13224 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
13225 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
13226 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
13227 ToolStripTextBox.cs: corcompare work.
13229 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
13231 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
13232 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
13233 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
13236 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
13238 * OSFeature.cs: Add IsPresent.
13239 * PrintPreviewControl.cs: Add RightToLeft.
13240 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
13241 * SplitterPanel.cs: Add AutoSizeMode.
13243 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
13245 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
13246 * MdiClient.cs: Add 2.0 ScaleControl.
13247 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
13248 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
13250 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
13252 * Form.cs: Implement some scaling methods, stub some RTL methods,
13255 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
13257 * Control.cs: corcompare work.
13258 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
13260 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
13262 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
13263 ControlPaint 2.0 stuffs.
13265 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13267 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
13269 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13271 * UpDownBase.cs: Add 2.0 stuffs.
13273 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13275 * NumericUpDown.cs: Add 2.0 stuffs.
13277 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13279 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
13281 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13283 * ErrorProvider.cs: Implement 2.0 stuffs.
13285 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13287 * DomainUpDown.cs: Implement 2.0 stuffs.
13289 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13291 * CheckedListBox.cs: Fix RefreshItems signature.
13293 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13295 * PictureBox.cs: Implement 2.0 stuffs.
13297 2007-06-12 Andreia Gaita <avidigal@novell.com>
13299 * TabControl.cs: Check if there are tabpages before checking
13300 the selected index - fix #81802 (font changes raise a ResizeTabs
13301 call on controls.add, which blew up nicely with no tabpages)
13303 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13306 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
13308 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13311 * ListViewItem.cs: In VirtualMode the selection information
13312 resides in the ListView, rather than in the Items. Also, throw
13313 InvalidOperationExceptions when VirtualMode is being used and
13314 CheckedItemCollection is accessed.
13316 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
13318 * ComboBox.cs: Add ScaleControl.
13320 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
13322 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
13324 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
13326 * GroupBox.cs: Add 2.0 stuffs.
13328 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
13330 * Panel.cs: Add autosize properties/event.
13332 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
13335 - When we remove a control, remove it from the collection before performing the layout.
13336 - Setup an internal property for explicit_bounds.
13337 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
13338 - Perform a layout when we set a new AutoSizeMode.
13340 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
13342 * ScrollableControl.cs: Add 2.0 stuffs.
13344 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13346 * ScrollBar.cs: Add 2.0 stuffs.
13348 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13350 * Splitter.cs: Add 2.0 stuffs.
13352 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13354 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
13355 to have BindingContext simply use base implementation.
13357 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13359 * ColumnHeader.cs: corcompare fix.
13361 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13363 * Button.cs: corcompare fixes.
13364 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
13366 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13368 * Button.cs: Override GetPreferredSizeCore.
13369 * ButtonBase.cs: PerformLayout after changing properties that can affect
13370 AutoSize. Simplify some mouse/keyboard code.
13371 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
13372 * MouseEventArgs.cs: Make Location internal for 1.1.
13373 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
13374 * Theme.cs: Add CalculateButtonAutoSize.
13375 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
13377 2007-06-05 Miguel de Icaza <miguel@novell.com>
13379 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
13381 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13383 * ListViewItem.cs: We can't cache Bounds in VirtualMode
13384 since we can get different item instances every time we retrieve it.
13386 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13388 * ListView.cs: Work around for #81602, since an unkown an pretty
13389 infrequent condition appears only in some systems (old linux boxes, it
13392 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
13394 * Button.cs: Completely reformat and a little refactor to bring
13395 this closer to Mono circa 2007.
13397 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
13399 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
13400 to be ButtonBase.Invalidate.
13402 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
13404 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
13406 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
13408 * ButtonBase.cs: Completely reformat and a little refactor to bring
13409 this closer to Mono circa 2007.
13411 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
13413 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
13414 values for autosize. Fixes #80137.
13416 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
13418 * Control.cs: Don't perform layout when AutoSize changes.
13419 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
13420 directly when autosizing, use SetBounds with BoundsSpecified.None.
13421 Fixes unit tests my last commit broke.
13423 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
13425 * Control.cs: Perform layout when AutoSize changes.
13426 * Form.cs: Implement AutoSizing.
13428 2007-06-01 Chris Toshok <toshok@ximian.com>
13430 * DataGrid.cs: remove the XXX'ed check at the top of
13431 ProcessGridKey. fixes #80464.
13433 2007-06-01 Chris Toshok <toshok@ximian.com>
13435 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
13436 adding idempotent (add/remove in Edit()), and also make sure we
13437 don't add it until after we set the text, so it's not tripped in
13438 Edit(). Fixes unit test regression.
13440 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
13442 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
13443 change is user explicit, not when the layout engine moves stuff. Fixes
13444 anchoring to bottom and right. [Fixes bug #81790]
13446 2007-06-01 Andreia Gaita <avidigal@novell.com>
13448 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
13450 2007-06-01 Andreia Gaita <avidigal@novell.com>
13452 * ContainerControl.cs:
13453 Fire enter event for common ancestor if it is not a ContainerControl.
13454 Send focus to the active_control and not the 'value', the active
13455 control might have been changed in one of the events fired.
13456 Definitely fixes #80159.
13458 2007-06-01 Andreia Gaita <avidigal@novell.com>
13460 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
13462 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
13464 * PropertyGrid.cs: Anchor the help description to the bottom of the
13465 help panel and refactor SelectGridItem into a
13466 SelectGridItemInternal that can be set to null (and update it to
13467 clear the help texts when it is set to null). Set root item to null
13468 when there's no SelectedObject. Fixes #80438.
13469 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
13470 when we're recalculating after a resize (only).
13472 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13474 * ListView.cs: Implement 2.0 RedrawItems method.
13476 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13478 * ListControl.cs: Disconnect PositionChanged and ItemChanged
13479 handlers from previous data manager when DataSource is set to
13480 null. Fixes #81771.
13482 2007-05-31 Jackson Harper <jackson@ximian.com>
13484 * TextBoxBase.cs: These seem to be the correct values.
13486 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
13488 * FileDialog.cs: When close dialog with ok set filterindex using combobox
13489 value. Fixes #81784.
13491 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
13493 * Control.cs: Implement 2.0 scaling methods.
13495 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13497 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
13498 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
13501 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13503 * ProgressBar.cs: Implemented missing 2.0 members.
13505 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13507 * Control.cs: Corcompare issues.
13508 * MessageBox.cs: Implemented missing 2.0 functions.
13510 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13512 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
13513 Implemented more 2.0 members.
13515 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13517 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
13518 null (strange, but it seems to happen when running unit tests).
13520 2007-05-30 Andreia Gaita <avidigal@novell.com>
13522 * ContainerControl.cs: Set active_control even earlier, before
13523 firing any events, and undo it if validation returns false.
13525 2007-05-30 Andreia Gaita <avidigal@novell.com>
13527 * ContainerControl.cs: Raise Validation and Enter/Leave events
13528 even if there is no Form and set active_control earlier, just
13529 before firing Enter events (toshok's patches). Fixes #80647.
13531 2007-05-30 Jackson Harper <jackson@ximian.com>
13533 * TextControl.cs: Redid the pageup/pagedown a little to simplify
13534 things and fix bug #81311.
13536 2007-05-30 Jackson Harper <jackson@ximian.com>
13538 * X11Dnd.cs: Now that we have our own event loop, we need to
13539 cancel when we get a mouseup but it won't be accepted.
13541 2007-05-30 Chris Toshok <toshok@ximian.com>
13543 * DataGrid.cs (set_CurrentCell): guard against negative
13546 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
13547 array index syntax instead of looping over the property names.
13549 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
13550 and set IsInEditOrNavigateMode to false there.
13552 2007-05-30 Jackson Harper <jackson@ximian.com>
13554 * TreeView.cs: Make sure we don't get a bad visible order when
13555 setting to the top node. Fixes some misc crashing in
13558 2007-05-30 Andreia Gaita <avidigal@novell.com>
13560 * UserControl.cs: Add 2.0 AutoSizeMode
13562 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
13564 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
13566 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
13568 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
13569 lines. Fixes #80285.
13571 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
13573 * DataGridColumnStyle.cs: Add char trimming column header text format.
13575 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
13577 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
13580 2007-05-29 Jackson Harper <jackson@ximian.com>
13582 * TreeNode.cs: Fix off by one on calculating whether or not a node
13585 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
13587 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
13588 * ScrollableControl.cs: Force an UpdateDistances when we move the
13592 2007-05-29 Andreia Gaita <avidigal@novell.com>
13594 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
13595 update the page setup screen.
13597 2007-05-29 Andreia Gaita <avidigal@novell.com>
13599 * PageSetupDialog.cs: Fix landscape mode.
13601 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13603 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
13604 IconSizeHorizontalSpacing.
13606 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13608 * ListView.cs: The declaration of prev_tooltip_item should be inside
13609 a NET_2_0 conditional (avoid a warning).
13611 2007-05-28 Andreia Gaita <avidigal@novell.com>
13613 * PageSetupDialog.cs: Implement PrintPreview control to display
13614 the preview thumbnail. Change unit conversion to use
13615 PrinterUnitConvert methods.
13617 Note: there is a huge bug in ms.net where the default margins are
13618 interpreted as centimeters (?), when in fact they are set in inches. When
13619 loading the page setup dialog initially (ms.net), the default margins
13620 are set to 1 inch, and the dialog shows them with value 10, when in fact
13621 it should be 25 (properly converted). Our dialog doesn't have this bug.
13623 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
13625 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
13627 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13630 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
13633 2007-05-28 Andreia Gaita <avidigal@novell.com>
13635 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
13636 an IntPtr on csc (it builds fine on mcs, could it be a compiler
13637 bug?), convert the ptr to Int32 first.
13639 2007-05-28 Jackson Harper <jackson@ximian.com>
13641 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
13642 recieved, we will exit the dnd tracking loop.
13644 2007-05-28 Jackson Harper <jackson@ximian.com>
13646 * X11Dnd.cs: Keep tracking until the xdnd finished event is
13647 recieved. TODO: I should probably stick a timer on the dropped
13648 event, and finish the drag if the XDND Finished event never shows
13649 (because some apps don't seem to send it).
13651 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
13653 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
13656 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13658 * MonthCalendar.cs: Only mark the keypresses we actually handle as
13661 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13663 * MonthCalendar.cs: Set the size after initializing all the relevant
13664 variables. Fixes #81742.
13666 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13668 * KeyEventArgs.cs: Fix typo.
13670 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
13672 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
13673 to match MS. Fixed MinDate to only accept value less than or equal
13674 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
13675 Removed TODO's that are now verified by unit tests.
13677 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
13679 * TreeNodeCollection.cs: Minor corrections to exceptions to match
13682 2007-05-25 Jackson Harper <jackson@ximian.com>
13684 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
13685 it's own message loop.
13686 * XplatUIX11.cs: Remove some of the dnd hooks
13688 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
13690 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
13691 instead of MinimizedWindowSize.
13693 2007-05-25 Jackson Harper <jackson@ximian.com>
13695 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
13697 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13699 * KeyEventArgs.cs: Added SuppressKeyPress.
13700 * Control.cs: Added support for SuppressKeyPress.
13702 2007-05-24 Andreia Gaita <avidigal@novell.com>
13704 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
13705 problems with PieChart. suppress_validation should not be a counter,
13706 if there are several BeginInit calls, the first EndInit will
13707 activate validation. Fix exceptions thrown by set_Value.
13708 * UpDownBase.cs: ValidateText only if it's the user editing it.
13710 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13712 * ListControl.cs: FilterItemOnProperty should return the filtered
13713 item proeprty even if DataSource is null. The same applies for
13714 GetItemText. Fixes #80427.
13716 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
13718 * Control.cs: If a control doesn't have a parent when it's Dock is
13719 set, but it has children, it needs to do a layout. Fixes some nested
13720 controls issues. [Fixes bug #81199]
13722 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13724 * ComboBox.cs: If there are few items in the drop down list, make it
13725 the exact size the items need, no bigger. Fixes #81612.
13727 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
13729 * Application.cs: When we have captured the keyboard for a menu,
13730 check for mouse down events in case we need to close the menu.
13731 * Control.cs, Form.cs: Remove mouse down checks for menus.
13733 2007-05-24 Jackson Harper <jackson@ximian.com>
13735 * TextControl.cs: Handle tabs in non multiline mode a little
13738 2007-05-24 Jackson Harper <jackson@ximian.com>
13740 * TextControl.cs: We need to manually break apart tabbed text and
13741 move the tabs, since the system.drawing tabbing mechanism relies
13743 * TextBoxBase.cs: Move the caret properly when the user enters a
13746 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
13748 * ContainerControl.cs: Don't check CanSelect before calling
13750 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
13751 release a KeyboardActive on click if it's not ours.
13753 2007-05-23 Andreia Gaita <avidigal@novell.com>
13755 * ColumnHeader.cs: Add TypeConverter
13757 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13759 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
13761 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13763 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
13765 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13767 * LinkLabel.cs: Implement public Padding property.
13769 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13771 * LinkLabel.cs: Implement public FlatStyle.
13773 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
13775 * Control.cs: Apply patch from George to call parent.PerformLayout
13776 when Visible is changed. [Fixes bugs #81118, 81718]
13778 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13780 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
13782 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13784 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
13786 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13788 * ContextMenu.cs: Implement Collapse.
13790 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
13792 * ToolBarButton.cs: Implement Name.
13794 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
13796 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
13797 use current_item, it prevents some NRE. Fixes #81675.
13799 2007-05-22 Andreia Gaita <avidigal@novell.com>
13801 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
13802 without updating the text.
13804 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
13806 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
13807 without calling DeleteObject. [Should fix bug #81709]
13809 2007-05-22 Jackson Harper <jackson@ximian.com>
13811 * RichTextBox.cs: Set the line endings correctly, when flushing
13814 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
13816 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
13817 {Width=0,Height=0}.
13819 2007-05-22 Jackson Harper <jackson@ximian.com>
13821 * TreeView.cs: Setting top with a null node should set to the very
13824 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13826 * Form.cs: ShowDialog: destroy the handle when message loop is
13827 finished, matches MS behaviour. Refactor parts of WmClose into
13828 RaiseCloseEvents, that only raises events if they haven't already
13829 been raised. Fixes #81688 and #81521.
13830 * Application.cs: Don't call close on the form when exiting a modal
13831 loop, it will raise all the (Form)Closed/Closing events again if
13832 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
13833 which doesn'r raise any events it they have been raised before.
13835 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
13837 * Control.cs: Add OnPrint.
13838 * ToolStrip.cs: Add GetChildAtPoint.
13839 * ToolStripContainer.cs: Add OnRightToLeftChanged.
13840 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
13842 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
13844 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
13846 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13848 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
13849 isn't visible anymore. Fixes #81651.
13851 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13853 * Control.cs: WmShowWindow: Update children's z-order after setting
13854 their parent. SetParent may show the window, thereby corrupting
13855 z-order, since the window will be shown on top.
13856 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
13857 multiple (and redundant) WM_SHOWWINDOW messages.
13858 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
13859 event has already been raised.
13860 * Form.cs: Change is_changing_visible_state to a counter, since
13861 SetVisibleCore can be called recursively. CreateHandle: when
13862 creating mdi children, send (De)Activated events.
13863 * MdiClient.cs: Update use of is_changing_visible_state.
13864 * Application.cs: OnThreadException: Surround exception handling with
13865 try/finally to ensure we always reset the error-handling state
13868 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13870 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
13873 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13875 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
13876 SmallIcon views, now that we have a standarized horizontal spacing.
13878 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
13879 4, just like the other views (Match .Net).
13881 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
13883 * Control.cs: Delay calculating anchor distances until we actually layout.
13884 Always query the WM for the actual size and location it put us at instead of
13885 only when we send negative values.
13886 [Fixes bugs #81694, 81695]
13888 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
13890 * Application.cs: Avoid a possible stack overflow when trying to exit
13893 2007-05-19 Marek Safar <marek.safar@gmail.com>
13895 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
13898 2007-05-19 Andreia Gaita <avidigal@novell.com>
13900 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
13901 * NumericUpDownAcceleration.cs,
13902 NumericUpDownAccelerationCollection.cs: Added 2.0
13905 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
13907 * RichTextBox.cs: Recalculate the document after the ScrollBars
13908 property is changed. Fixes bug #81681.
13910 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
13912 * DataObject.cs: Implement 2.0 methods.
13914 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13916 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
13917 in the center of the checkbox, not in the left-top corner.
13920 2007-05-18 Jackson Harper <jackson@ximian.com>
13922 * RichTextBox.cs: Recalculate the document after the scrollbars
13923 property is changed.
13924 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
13927 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13929 * CreateParams.cs: Make HasWindowManager marginally faster.
13930 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
13931 into Hwnd so that other drivers can use it as well.
13932 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
13933 the default location from Hwnd. Fixes MDI client windows always
13934 showing up at (0,0) in Windows (Win32 won't set the default
13935 location since the window styles aren't correct).
13937 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
13939 * TreeView.cs: Modified DoubleBuffered to just use the base
13942 2007-05-18 Jackson Harper <jackson@ximian.com>
13944 * TreeView.cs: Set the top node to the last child node when
13946 - When we get focus, if there is no selected node, use the top
13949 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
13951 * KeysConverter.cs: Add CanConvertTo.
13952 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
13953 * LinkConverter.cs: Added.
13955 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13957 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
13958 it prevents error when file dont have write access. Fixes #81669 and #81667.
13960 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13962 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
13963 button text. Fixes #79640.
13965 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13967 * Control.cs: According to MSDN controls created in the designer theres
13968 keyboard accelerators visible by default. So included check for design
13969 in ShowKeyboardCuesInternal.
13971 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13973 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
13974 text. Fixes #81621.
13976 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13978 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
13979 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
13981 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
13983 * Control.cs: Finish implementation of UI State using WmChangeUIState
13984 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13985 in some controls to check for show_keyboard_cues to draw accell keys "_".
13987 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13989 * ListBox.cs: When calculating the horizontal scrollbar
13990 in single column mode, don't use values less than 0 for
13991 Maximum. Fixes #81474.
13993 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13995 * ListBox.cs: Throw the some missing exceptions in
13996 ListBox.ObjectCollection methods.
13998 2007-05-17 Jackson Harper <jackson@ximian.com>
14000 * TextBoxBase.cs: Recalculate the document when the word wrap
14001 value has changed. This fixes 81488.
14003 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
14005 * Clipboard.cs: Implement missing GetText overload.
14007 2007-05-17 Chris Toshok <toshok@ximian.com>
14009 * Control.cs (CheckDataBindings): remove the binding_context arg
14012 * CurrencyManager.cs (OnItemChanged): fix this now that
14013 BindingManagerBase is fixed. also remove the comment telling where
14014 the fix should go. We set transfering_data to true/false around
14015 the call to PushData to keep UpdateIsBinding from being called.
14016 (ListChangedHandler): remove the extra OnMetaDataChanged call for
14017 PropertyDescriptorAdded in the 1.1 case. The extra call is
14018 actually generated by System.Data generating 2 metadata changed
14019 events of its own per column add. The fix should go there. Add a
14020 comment to that affect in our test's Assert.Ignore.
14022 * BindingManagerBase.cs: Rework PullData and PushData slightly.
14023 we keep a boolean flag (transfering_data) that keeps us from
14024 calling UpdateIsBinding multiple times if we re-enter either of
14027 * ControlBindingsCollection.cs (AddCore): remove the
14028 binding_context arg to binding.Check.
14030 * Binding.cs (IsBinding): don't check if we're binding here, just
14031 return our cached value. we update it in UpdateIsBinding.
14032 (Check): don't take the binding_context arg, we'll just use our
14033 control's. Also, for some reason MS doesn't use the data member
14034 field when getting the bindingmanager for this binding. it just
14035 uses the datasource. Make this method callable multiple times,
14036 and only do the is_null_desc stuff if manager.Position != -1 (so
14037 we don't get an exception accessing manager.Current).
14038 (UpdateIsBinding): move the code from IsBinding here.
14039 (PositionChangedHandler): call Check here to we can initialize
14040 things that require a non- -1 position.
14042 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
14044 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
14047 2007-05-17 Andreia Gaita <avidigal@novell.com>
14049 * TabControl.cs: Add 2.0 methods and events, including
14050 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
14051 * TabPage.cs: Add 2.0 methods
14053 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
14055 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
14056 keyboard_cues is properly handled by message method.
14058 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
14060 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
14062 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
14064 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
14066 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
14069 - WmUpdateUIState added to handle state changes, it make call to
14070 OnChangeUICues event.
14071 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
14074 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
14076 * ImageKeyConverter.cs: Added.
14077 * TreeViewImageKeyConverter.cs: Added.
14079 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14081 * ToolTips.cs: Update Text if SetToolTip is called for a control
14082 already showing the tooltip, as well as restarting its timer; show
14083 tooltip if we are inside the control bounds by the time of calling
14084 SetToolTip. Inside ShowTooltip remove the check to not show the
14085 tooltip again for the active control (it is allowed by .Net to
14086 show the tooltip on the same control multiple times).
14088 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14090 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
14092 2007-05-16 Andreia Gaita <avidigal@novell.com>
14094 * ContainerControl.cs: only process tab key if there are no
14095 modifier keys present, otherwise the control does the
14096 tab processing, if it needs to. Fixes #81622
14097 * TabControl.cs: Fixes calculation for which tab to select on
14100 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14102 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
14104 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
14106 * Control.cs: Make IsInputCharInternal to allow controls to
14107 override it and still match MS API.
14108 * TextBoxBase.cs: Override IsInputCharInternal and always
14112 2007-05-15 Jackson Harper <jackson@ximian.com>
14114 * TextBox.cs: Disable some of the menu options when using a
14117 2007-05-15 Jackson Harper <jackson@ximian.com>
14121 * RichTextBox.cs: Some new 2.0 methods
14123 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
14125 * FileDialog.cs: On 1.0 profile, do not support multidotted
14128 2007-05-14 Jackson Harper <jackson@ximian.com>
14130 * TextBoxBase.cs: Implement some of the new 2.0 methods.
14131 * RichTextBox.cs: We need to override these methods on 2.0.
14132 * MaskedTextBox.cs: These are implemented now
14133 * TextControl.cs: This was off by one.
14135 2007-05-14 Jackson Harper <jackson@ximian.com>
14137 * TextControl.cs: Because the line endings are including in the
14138 text, we don't need to add them in anymore.
14140 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14142 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
14143 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
14145 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14147 * ToolBar.cs: Adjust size to default size when button theres no text and
14148 image, it fixes remaining issues from #81524.
14150 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14153 - When not flat call redraw to recalculate sizes on creare handle to match
14155 - Revert 77220 because it causes some regressions in toobar
14158 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
14160 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
14161 now actually enters a usable state.
14163 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14165 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
14166 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
14169 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14171 * ToolBar.cs: Save default_size on create handle to use later for buttons
14172 without text, needed to mimic win32 behavior.
14174 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14176 * ToolBar.cs: Fix button layour to best fit width or height according to
14177 vertical or not. Fixes #81524.
14179 2007-05-10 Everaldo Canuto <everaldo@simios.org>
14181 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
14182 toolbar size info because different styles theres different sizes.
14185 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14187 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
14188 if we are using checkboxes, checked is true, and we have less
14189 than two images in StateImageList; for the 1.1 in the same scenario
14190 draw the first image if we have at least one image in StateImageList.
14191 Fixes part of #81191.
14193 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
14195 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
14196 the owner's Items collection on merge.
14198 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
14200 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
14201 * ToolStripItemCollection.cs: Lots of fixes to when events get called
14202 and parent/owner gets changed based on gert's unit tests.
14204 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
14206 * MaskedTextBox.cs: Started implementing parts of it.
14208 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14210 * ListView.cs: When clicking the checkbox on the items
14211 take into account the double clicks even if we have only
14212 one image in StateImageList (only for 1.0/1.1). Also
14213 generate an extra change of checked state when we receive
14214 the second click on checkbox (match .Net behaviour).
14215 Fixes part of #81191.
14217 2007-05-10 Everaldo Canuto <everaldo@simios.org>
14219 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
14221 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
14223 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
14224 even if OnLoad is overriden and base.OnLoad is not called.
14227 2007-05-10 Andreia Gaita <avidigal@novell.com>
14229 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
14230 shame. (I blame my ever-persisting and annoying cold)
14232 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
14234 * ListView.cs: Don't eat navigation keys. Let them flow through to
14235 KeyDown/KeyPress routines. [Fixes bug #81569]
14237 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
14239 * ListView.cs: When handling keys for selecting the item based off
14240 keyboard input, do not consider keys pressed with Alt or Control. Also,
14241 correctly handle keys when the Shift key is down. [Fixes bug #81578]
14243 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
14245 * Control.cs: When using UseWaitCursor, we have to store the requested
14246 Cursor to use when UseWaitCursor is turned off.
14248 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
14250 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
14252 * Application.cs: Use PreProcessControlMessage instead of
14254 * PreProcessControlMessage.cs: Make internal for 1.1.
14256 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14258 * Control.cs: Add InternalContains focus property, which hast the same
14259 functionality of ContainsFocus, but also including implicit controls.
14260 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
14261 since we need to know if the focus is contained in our implicit
14262 ItemControl when calculating Layout. Fixes part of #80888.
14264 2007-05-08 Everaldo Canuto <everaldo@simios.org>
14266 * ToolTip.cs: Remove center form string alignment as it must be align to
14269 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
14271 * ToolStripItemCollection.cs: Set the new item's parent and owner
14272 in Insert like we do in Add. [Fixes bug #81568]
14274 2007-05-08 Jackson Harper <jackson@ximian.com>
14276 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
14277 - Off by one error in SetTop
14278 - Disable DoubeBuffering
14280 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14282 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
14283 control as much as necessary in order to make it entirely visible,
14284 instead of centering the control in the container (matches MS
14285 behaviour). CalculateCanvasSize: we need to take the current scroll
14286 position into account when calculating the maximum canvas,
14287 otherwise the following scenario will fail: resize so that the
14288 scrollbars appear, use the scrollbars to scroll, resize again
14289 smaller, and now the canvas size is too small. Recalculate: when
14290 showing scrollbars make sure they start off at 0, and try to scroll
14291 the active control into view. Fixes #79540. HandleScrollBar: don't
14292 scroll anywhere if the scrollbar isn't visible.
14294 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14296 * ListView.cs: When focus changed, call Layout/Invalidate
14297 in the focused item to update the selected state (should show
14298 entire label when ListView is focused, and a part of it if is not).
14299 * ListViewItem.cs: When doing layout for LargeIcon, take into account
14300 for displaying the entire label not only the Focused state of the
14301 item, but also the Focused state of the ListView (match .Net
14304 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14306 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
14307 Implement UseWaitCursor.
14309 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14310 Applying contributed patch from Sergey Volk.
14312 * Clipboard.cs: Implement SetDataObject retry logic and new overload
14314 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
14316 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14318 * Control.cs: Implement DrawToBitmap.
14320 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14321 Applying contributed patch from Stefan Noack.
14323 * Control.cs: Add [Get|Set]AutoSizeMode.
14325 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14327 * MdiClient.cs: Unmerge menus when the last child is closed.
14329 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14331 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
14332 * ToolStripManager.cs: Call Merge on DropDowns.
14335 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
14337 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
14339 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
14340 visibility. We can't create forms visible, since we have to set the
14341 owner before making the form visible (otherwise Win32 will do
14342 strange things with task bar icons). The problem is that we set the
14343 internal is_visible to true before creating the control, so
14344 is_changing_visible_state is the only way of determining if we're
14345 in the process of creating the form due to setting Visible=true -
14346 this works because SetVisibleCore explicitly makes the form
14347 visibile afterwards anyways. Fixes #80775.
14349 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14351 * ThemeWin32Classic.cs: When drawing ListViewItems,
14352 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
14353 or LargeIcon _and_ item is not focused (match .Net behaviour).
14355 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
14357 * Control.cs, Form.cs: Fix some obsolete method warnings.
14359 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
14361 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
14362 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
14364 2007-05-04 Andreia Gaita <avidigal@novell.com>
14366 * ContainerControl.cs: Fix active_control attribution when going
14367 up the parent chain so that the first parent container gets the control
14368 and the rest of the parent containers get the child containers (skips
14369 non-containers). Fixes #80729
14371 2007-05-04 Randolph Chung <tausq@debian.org>
14373 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
14376 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14378 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
14379 takes a size parameter, since the CreateParam's size isn't true for
14380 minimized forms. Fixes #81518,
14382 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14384 * Form.cs: Add OnDeactivateInternal.
14385 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
14387 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14389 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
14390 accessing the parent. Fixes #81508.
14392 2007-05-03 Chris Toshok <toshok@ximian.com>
14394 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
14395 2.0 block, pass listposition + 1 to ChangeRecordState when a row
14396 was added before the current listposition. Fixes the
14397 TestInsertRowBeforeCurrent unit test.
14399 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
14401 * Application.cs: Add RaiseIdle.
14402 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
14403 XplatUIX11.cs: Implement RaiseIdle.
14405 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
14406 corcompare work: N - Z
14410 * ScrollableControl.cs
14411 * SplitContainer.cs
14414 * SystemInformation.cs
14416 * TableLayoutControlCollection.cs
14417 * TableLayoutPanel.cs
14422 * ToolStripComboBox.cs
14423 * ToolStripContainer.cs
14424 * ToolStripContentPanel.cs
14425 * ToolStripDropDown.cs
14426 * ToolStripDropDownItem.cs
14427 * ToolStripDropDownMenu.cs
14429 * ToolStripItemCollection.cs
14430 * ToolStripMenuItem.cs
14431 * ToolStripPanel.cs
14432 * ToolStripSplitButton.cs
14435 * TreeNodeCollection.cs
14436 * TreeNodeMouseHoverEventArgs.cs
14439 2007-05-01 Everaldo Canuto <everaldo@simios.org>
14441 * ContextMenu.cs: Add public method Show with alignment property to 2.0
14442 stuff. Thanks aatdark for the patch.
14444 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
14446 * GridItem.cs: Implement 2.0 Tag property.
14448 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
14450 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
14451 count instead of Nodes.Length. [Fixes bug #81448]
14453 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
14455 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
14458 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
14459 corcompare work: A - M
14460 * BindingNavigator.cs
14465 * FlowLayoutPanel.cs
14471 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
14473 * Application.cs: Give toolstrips a chance to process mnemonics.
14474 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
14475 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
14476 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
14478 2007-05-01 Jackson Harper <jackson@ximian.com>
14480 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
14482 - Don't set the BoundsSpecified
14484 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
14486 * Application.cs: When using the toolstrip shortcut mechanism, allow the
14487 message to pass through to a regular control if it hosted by a toolstrip.
14488 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
14489 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
14491 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
14493 * TextRenderer.cs: Use the flags argument when using the MeasureString
14494 fallback algorithm.
14496 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
14498 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
14499 the MDI menu item. [Fixes bug #81483]
14501 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
14503 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
14504 string. When setting Name to null, use zero-length string instead.
14506 2007-04-29 Andreia Gaita <avidigal@novell.com>
14508 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
14509 DeselectTab). Implement missing 2.0 TabPageCollection methods
14510 (Add, ContainsKey, RemoveByKey, IndexOfKey)
14512 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
14514 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
14516 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
14518 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
14519 Fixes bug #81479. Include details of exception when LoadFile fails.
14521 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
14523 * DrawListViewSubItemEventArgs.cs: Added missing setter
14525 2007-04-27 Andreia Gaita <avidigal@novell.com>
14527 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
14528 Hide methods (not complete). Implement missing 2.0 OnPopup event.
14530 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14532 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
14533 removed in ly last commit (it was breaking the Label edit feature).
14535 * ThemeWin32Classic.cs: When drawing a ListViewItem use
14536 StringAlignment.Near for LineAlignment (match .Net).
14538 2007-04-27 Andreia Gaita <avidigal@novell.com>
14540 * TabControl.cs: Change SetTab so it adds the tabpage to the list
14541 of controls if it isn't already there - was blowing up when doing
14542 tabcontrol.TabPages[i]=new TabPage().
14543 SetTab now does a replace by removing the page at the index.
14544 Add a new InsertTab method that inserts a page in a given index
14545 instead of replacing.
14546 Implements TabPageCollection.Insert(int, TabPage).
14548 2007-04-27 Chris Toshok <toshok@ximian.com>
14550 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
14551 internal handler that can be invoked from our subclasses.) Also,
14552 add a comment to PushData about how we need to fix it.
14554 * CurrencyManager.cs: tons of changes here. trying to get things
14555 matching the behavior of .net wrt event orders (ItemChanged,
14556 CurrentChanged, PositionChanged.) I've implemented a private .net
14557 symbol (ChangeRecordState) that appears in stack traces because
14558 it's actually easier to do this than to effective inline all its
14559 various behaviors at every call site.
14561 * RelatedPropertyManager.cs: guard against an exception here by
14562 not using parent.Current if the position is set to -1 (if the
14563 parent datasource is cleared, for instance).
14565 * Binding.cs: don't parse data in PushData (this might be wrong,
14566 but it jives with MS's behavior.) Also, don't call PushData when
14567 we get a CurrentChanged event.
14569 2007-04-27 Andreia Gaita <avidigal@novell.com>
14573 WebBrowserSiteBase.cs,
14574 HtmlDocument.cs: Added stubbed out classes, no real implementations
14577 2007-04-27 Everaldo Canuto <everaldo@simios.org>
14579 * MainMenu.cs: In draw method without parameters call draw method with
14580 PaintEvent, another one (just rect) adjust rectangle and we dont need it
14581 as Rect property is already adjusted. Fixes #80694.
14583 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
14585 * Application.cs: Need to handle keyboard menu deselection here.
14586 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
14587 navigation, allowing keyboard to work on X11.
14588 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
14590 2007-04-27 Everaldo Canuto <everaldo@simios.org>
14592 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
14593 menu bar. It fixes some drawing issues in menu bar.
14595 2007-04-27 Everaldo Canuto <everaldo@simios.org>
14597 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
14598 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
14599 when <alt> key is pressed.
14601 2007-04-26 Everaldo Canuto <everaldo@simios.org>
14603 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
14604 example just set visible to false and make this prevent from other problems.
14605 In SystrayAdd always remove pending expose. Fixes #81072.
14607 2007-04-26 Marek Safar <marek.safar@gmail.com>
14609 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
14612 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
14614 * ListView.cs: Added three missing 2.0 events and corresponding
14615 EventHandlers. Added the OwnerDraw property.
14616 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
14618 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
14620 * DrawListViewItemEventArgs.cs
14621 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
14623 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
14625 * TextControl.cs: Fixed typo in constructor
14627 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
14629 * Application.cs: Create a shortcut path so that currently selected
14630 MenuStrips can intercept keyboard events without having focus.
14631 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
14632 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
14633 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
14634 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
14635 generate WM_SYSCOMMAND message in X11 for other platforms.
14636 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
14637 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
14638 * ToolStripSplitButton.cs: Add DefaultItem property.
14640 2007-04-26 Everaldo Canuto <everaldo@simios.org>
14642 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
14643 fixes some menu draw problem on Windows with border diferent from default
14644 it also fixes #81403.
14646 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14648 * Form.cs: Refactor WndProc into separate methods, just like Control is
14651 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14653 * Control.cs: set_Text: move the call to the driver into a seperate
14654 virtual method so that Form can override it.
14655 * MaskedTextBox.cs: Corcompare fixes.
14656 * Form.cs: Override UpdateWindowText and only update the styles if the
14657 form has been shown (fixes #81405).
14659 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
14661 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
14662 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
14663 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
14664 the form lost focus or another control was clicked.
14666 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
14668 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
14671 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14673 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
14674 DrawListViewItemEventHandler.cs,
14675 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
14677 * X11Structs.cs: More ToString implementation.
14679 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
14681 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
14682 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
14684 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14686 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
14688 * FormCollection.cs: Don't add a form if it's already in the
14690 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
14691 according to behaviour and MSDN. The ownerWin32 is the active
14692 window at the moment when we call ShowDialog, not the context's
14693 main form (the context's main form may open another form that opens
14694 a form with ShowDialog, the win32 owner is the second form). Add
14695 and remove forms to the Application.OpenForms in other places to
14696 better match MS behaviour. Add an IsActive property that raises
14697 On(de)Activated only if the active state has changed (we were
14698 raising OnDeactivated before OnActivated while creating forms).
14699 * Application.cs: Refactor Enabling/Disabling of windows for modal
14700 dialog loops out to separate methods, and restore the thread
14701 context when we quit the method. Fixes #81407.
14703 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14705 * ListView.cs: In ItemControl.HandleClicks, also fire
14706 2.0 MouseClick or MouseDoubleClick events on the parent,
14707 not only the Click/DoubleClick events.
14709 2007-04-24 Andreia Gaita <avidigal@novell.com>
14711 * TableLayoutSettings.cs:
14712 - Added a GetControls method and a support structure to help the
14713 TypeConverter to enumerate the controls for serialization.
14714 - Added a new serialization constructor.
14715 - Added a isSerialized flag initialized to true on the
14716 serialization constructor so that the TableLayoutPanel.LayoutSettings
14717 setter does not throw the designed NotSupportedOperation exception
14718 when the object is built through deserialization.
14719 - Implemented GetObjectData
14721 * TableLayoutPanel.cs: Added check on LayoutSettings.
14723 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14725 * ListView.cs: Report Click and DoubleClick events to the parent
14726 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
14727 from breaking the click count state when using dialog forms (Control
14728 reports the clicks in a similar fashion). In the previous behaviour
14729 the last WM_LBUTTONUP message in a double click was sent to the
14730 ListView's form, instead of the ListView, which was breaking the click
14731 count for it. Fixes #80387.
14733 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
14735 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
14737 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
14739 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
14740 us from created dropdowns for menu items that do not have subitems.
14741 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
14742 Check HasDropDownItems before calling DropDown so a dropdown will not be
14743 created if it isn't needed.
14745 2007-04-24 Jackson Harper <jackson@ximian.com>
14747 * TreeView.cs: Set the first node to the selected node when we get
14748 focus if there is no selected node.
14750 2007-04-24 Andreia Gaita <avidigal@novell.com>
14752 * MimeIcon.cs: remove using blocks so that image streams are
14753 not disposed of. Fixes #80151
14755 2007-04-24 Jackson Harper <jackson@ximian.com>
14757 * TextBoxBase.cs: Fixup the height of textboxes when the control
14760 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
14762 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
14763 for each ToolStripItem when the parent's RightToLeftChanged is called.
14765 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14767 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
14769 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
14770 property, so that the setter can be overriden too.
14771 * TextBox.cs: Change GetContextMenuInternal() to use
14772 ContextMenuInternal.
14774 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14776 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14779 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14781 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14784 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14786 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
14787 avoid duplicate work. Mostily skeleton code, it's not working at
14790 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
14792 * NotifyIcon.cs : stub for MouseClick event
14793 * Application.cs: stub for SetUnhandledExceptionMode
14795 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
14797 * BindingNavigator.cs : Initial (partial) implementation
14799 2007-04-23 Jackson Harper <jackson@ximian.com>
14801 * TreeView.cs: Do not create the treeview's handle when setting
14802 the scroll position.
14803 - ExpandAll needs to compute the scrollbars so it knows which
14804 position to set the bar too.
14806 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
14808 2007-04-23 Jackson Harper <jackson@ximian.com>
14810 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
14813 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
14815 * ToolStripItem.cs: Make GetImageSize internal.
14816 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
14817 need to draw an item. Fixes a reported issue where images on menus
14818 that were not 16x16 were drawing incorrectly.
14820 2007-04-21 Miguel de Icaza <miguel@novell.com>
14822 * Padding.cs: Use the converter, fixes the resgen2 issue with
14825 2007-04-21 Jackson Harper <jackson@ximian.com>
14827 * TreeView.cs: Dont try to unhighlight the selected node if there
14828 isn't a selected node.
14830 2007-04-21 Jackson Harper <jackson@ximian.com>
14836 * TreeView.cs: Use the InternalBorderStyle property to set the
14837 initial border style, this forces the client rectangle to be sized
14840 2007-04-20 Jackson Harper <jackson@ximian.com>
14842 * TreeView.cs: Simplify scrolling to the last node after expanding
14844 - Fix some off by ones with setting the bottom.
14846 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
14848 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
14849 that. We were incorrectly doing it the other way around. Also,
14850 update ClientSize if we change the BorderStyle before the control
14853 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
14855 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14856 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14857 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
14858 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14859 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14860 Caption to CaptionHeight.
14861 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
14862 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
14863 and FixedFrameBorderSize to return value from current XplatUI driver.
14864 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
14865 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
14866 and FixedFrameBorderSize using win32 API. Renamed Caption to
14868 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
14869 * SystemInformation.cs: Fixed typo in BorderSize.
14871 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
14873 * XplatUI.cs: Added MenuAccessKeysUnderlined.
14874 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
14875 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
14877 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
14878 value from XplatUI driver.
14879 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
14880 SystemParametersInfo.
14881 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
14883 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
14886 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14888 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
14890 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14892 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
14894 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
14896 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
14897 MenuStrips that contain ToolStripSeparators.
14899 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14901 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
14902 DefineStdCursorBitmap.
14903 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
14904 has been created off a standard cursor. This is used to get a
14905 bitmap of the standard cursor when Draw or DrawStretched is called
14906 in order to draw the cursor.
14907 * X11Structs.cs: Added XcursorImage and XcursorImages.
14908 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
14909 DefineStdCursorBitmap.
14910 * Cursors.cs: Update all relevant creations of Cursor to use the new
14911 internal constructor.
14913 2007-04-19 Jackson Harper <jackson@ximian.com>
14915 * TextBox.cs: Move the has_been_focused into the base control, so
14916 some of the text adding methods can manipulate it (probably time
14917 for a better name for this flag too).
14918 - Call a new version of selectall that doesn't scroll
14919 * TextBoxBase.cs: When we append text, if the document is empty,
14920 don't scroll. If the document has text already, we scroll to the
14921 end of the appended text.
14922 - When the text is changed, we reset the has_been_focused, so the
14923 next time the control gets focused, all the text is selected.
14925 2007-04-19 Jackson Harper <jackson@ximian.com>
14927 * TextControl.cs: Move the margins to the document, add a method
14928 so the margin sizes can be updated.
14929 * TextBoxBase.cs: When the border style is changed, update the
14932 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
14934 * Control.cs: Respect DefaultPadding.
14935 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
14936 padding into account.
14937 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
14939 2007-04-19 Jackson Harper <jackson@ximian.com>
14941 * TextControl.cs: Oops, we need to use the ClientRect not the
14944 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14946 * ListView.cs: In ItemControl.ItemsMouseDown, take into
14947 account the double clicks when CheckBoxes are used and
14948 the pointer is inside the checkbox. Fixes part of #81191.
14950 2007-04-18 Jackson Harper <jackson@ximian.com>
14952 * TextControl.cs: Pressing the end key shouldn't move the caret
14953 past the line ending.
14954 * TextBoxBase.cs: We can still delete if we are in the line
14955 ending and the combine will just kill the existing line ending.
14957 2007-04-18 Jackson Harper <jackson@ximian.com>
14959 * TextControl.cs: We can't move lines, then invalidate their
14960 bounds, we need to get the old bounds and combine that with the
14962 * TextBoxBase.cs: Before combining two lines for a delete, we need
14963 to invalidate the area of the old line, since that will be moved
14964 in the combine operation.
14966 2007-04-18 Everaldo Canuto <everaldo@simios.org>
14968 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
14969 with transparent background. Fixes #80482.
14971 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
14973 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
14974 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
14977 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14979 * CreateParams.cs: Add a couple of helper methods and do a less string
14980 concatenation in ToString.
14981 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
14982 overload that takes a Control parameter, since this method may be
14983 called before a control is assigned to the hwnd (from
14984 CreateWindow), and update CreateWindow to use the new overload. In
14985 GetMenuOrigin subtract the title bar from the y position if the
14986 form has a window manager (since we're painting it and not X).
14987 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14988 CreateParams to calculate the origin (since border sizes may vary).
14989 In ScreenToMenu only subtract the title height if we actually have
14991 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14992 mdi children never have menus of themselves.
14993 * InternalWindowManager.cs: Implement menu handling like form does.
14994 Added GetMenuOrigin to calculate the menu origin, can't use the
14995 CreateParams from the form like normally since it's lying.
14996 * Hwnd.cs: Implement GetBorderSize better (in the sense more
14997 windows-like) and add Inflate and comparison operators to the
14998 Borders type. When calculating MenuOrigin and it's a form with a
14999 window manager, use the window manager to calculate it.
15001 2007-04-17 Chris Toshok <toshok@ximian.com>
15003 * Control.cs (CreateControl): turns out in 2.0 we don't need this
15004 OnBindingContextChanged thing here. It's only generated from
15005 ContainerControl.OnCreateControl. Fixes a newly written unit test
15006 - BindingTest.BindingContextChangedTest4.
15008 2007-04-17 Jackson Harper <jackson@ximian.com>
15010 * ScrollBar.cs: When setting values, make sure the current
15011 position stays within the new values range.
15013 2007-04-17 Chris Toshok <toshok@ximian.com>
15015 * Control.cs (CreateControl): talk about a bizarre corner case.
15016 Don't emit OnBindingContextChanged here if we're a parentless
15017 control (i.e. if we're a form.). Fixes
15018 BindingTest.BindingContextChangedTest2.
15020 2007-04-17 Everaldo Canuto <everaldo@simios.org>
15022 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
15023 from win32. Fixes #81255.
15025 2007-04-17 Everaldo Canuto <everaldo@simios.org>
15027 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
15028 already present in CalculateButtonTextAndImageLayout.
15030 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
15032 * XplatUIX11.cs: When setting min/max size for a window we need to
15033 translate the coordinates to x coordinates. Create an overload of
15034 SetWindowMinMax that takes a CreateParams handling this, and change
15035 SetWMStyles to call this function (can't use Control.FromHandle in
15036 the SetWindowMinMax to get the control/CreateParams from the handle
15037 because the handle might not have been assigned to the control
15038 yet). Fixes #81371.
15040 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15042 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
15043 if StateImageList is non-null and it has less than two items (match MS
15044 behaviour). Also, in HandleNavKeys handle the Space key, calling
15045 the new ToggleItemsCheckState method, which tries to change the
15046 checked state of the selected items. Fixes part of #81191.
15048 2007-04-16 Jackson Harper <jackson@ximian.com>
15050 * RichTextBox.cs: namespace cleanup.
15052 2007-04-16 Everaldo Canuto <everaldo@simios.org>
15054 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
15056 2007-04-16 Everaldo Canuto <everaldo@simios.org>
15059 * Control.cs: Call invalidate in set_Region.
15061 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
15062 it dont works here.
15064 2007-04-16 Jackson Harper <jackson@ximian.com>
15066 * TextBoxBase.cs: When enter is pressed, we need to update all
15067 lines below the current.
15069 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
15071 * MdiClient.cs: Implement implicit menu merging for MDI
15072 children. When a child form is active, if it has a menustrip
15073 and the parent form has a MainMenuStrip, automatically merge
15076 2007-04-15 Andreia Gaita <avidigal@novell.com>
15078 * TabControl.cs: Refactored sizing methods to not repeat
15079 code all over the place. Tab bounds are now calculated
15080 as if alignment is top and single line, and only when
15081 setting the bounds are the positions adjusted according
15082 to alignment. Replaced hardcoded positions, spacings and
15083 paddings by getting the values the ThemeEngine.
15086 * Theme.cs: Change TabControl properties and methods so
15087 that all start with TabControl*. Added more properties
15088 to help remove hardcoded values on tabcontrol.
15089 Add CPDrawBorder3D declaration so the Theming classes
15092 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
15094 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
15095 on the Theming namespace, and call the appropriate methods here.
15096 Change CPDrawBorder3D to public.
15098 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15100 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
15101 the control after firing the OnMouseUp event, instead of sending
15102 the message before the mentioned event. This is so we can match the
15103 MS behaviour. Fixes part of #80385.
15105 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
15107 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
15108 RightToLeft property.
15110 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
15112 * ToolStrip.cs: Add properties and internal methods to support merging.
15113 * ToolStripItem.cs: Add MergeAction and MergeIndex.
15114 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
15115 not trigger reparenting or layouts.
15116 * ToolStripManager.cs: Add Merge and RevertMerge methods.
15117 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
15118 is hosting the overflow menu.
15120 2007-04-13 Jackson Harper <jackson@ximian.com>
15122 * TextControl.cs: Set the line ending correctly for the first
15125 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
15127 * Theme.cs: Update GetMethod to get the new definition for
15128 KnownColors.Update (and fix theme color updates).
15130 2007-04-12 Everaldo Canuto <everaldo@simios.org>
15132 * MessageBox.cs: Fix some test and button position.
15134 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15136 * Form.cs: Consider the implicit controls in
15137 GetRealChildAtPoint. We need it since this method
15138 is called on Form when handling the some messages in
15139 WndProc, and need to consider those implicit ones too.
15142 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
15144 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
15145 if there are no ShortcutKeys set.
15146 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
15147 set, use it when painting.
15149 2007-04-12 Jackson Harper <jackson@ximian.com>
15151 * TextControl.cs: Fix some off-by-one issues in line duplication
15152 and insertion in the undo manager. Also, overwrite the first tag
15153 of a line on insert, if it is just a zero lengthed tag. This
15154 prevents us from getting an extra stranded tag at the beginning of
15157 2007-04-11 Everaldo Canuto <everaldo@simios.org>
15159 * Label.cs: Remove check for handle created in CalcAutoSize, we need
15160 to calculated proper size including when handle was not created yet.
15162 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15164 * MdiWindowManager.cs: When moving a form, allow the form to be moved
15165 when the mouse is outside of it's parent's client rectangle. Fixes
15166 #79982 (take 3, part 2).
15168 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
15170 * X11Structs.cs: Add a few ToString() overrides.
15171 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
15172 the window location in a window-manager independent way. Reworked
15173 FrameExtents, it now actually works. Reworked AddConfigureNotify
15174 and ReparentNotify handling to use GetTopLevelWindowLocation
15175 instead of the earlier, more hacky solution. Reworked SetWMStyles,
15176 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
15177 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
15178 for all other windows (fixes #81281 part 1), a toolwindow is hidden
15179 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
15180 and generally refactored to do as few calculations as possible
15183 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
15185 * Theme.cs: Change "reflective-contract" between MWF and SD to
15186 minimize # of calls, avoid Color serialization and avoid updating
15187 every "known colors" each time a single one is updated.
15189 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
15191 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
15192 when not readonly and the text is explicitly set. Code style updates.
15193 * DataGridTableStyle.cs: Removed extra line.
15194 * DataGrid.cs: Code style updates. Removed extra whitespace.
15195 * DataGridColumnStyle.cs: Code style updates. Removed extra
15198 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
15200 * XplatUIX11.cs: Added comment that "fixes" #80021.
15202 2007-04-09 Jackson Harper <jackson@ximian.com>
15204 * TextControl.cs: We don't need this -1 on the line count anymore.
15206 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
15208 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
15209 entered value to underlying type, and convert it back to a string to
15210 apply formatting. Modified GetFormattedValue to use TypeConverter
15213 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
15215 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
15216 Use SubItems property when we want to ensure there's at least one
15217 subitem. Modified SubItems property to ensure there's always at least
15218 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
15219 the NRE's reported by MS.
15221 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
15223 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
15224 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
15225 Spaces to tabs. Removed extra tabs.
15227 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
15229 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
15230 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
15232 2007-04-06 Jackson Harper <jackson@ximian.com>
15234 * TextBoxBase.cs: When a delete removes a line, recalculate all
15235 lines below that line (they need to get offsets setup correctly)
15238 2007-04-05 Jackson Harper <jackson@ximian.com>
15240 * TextControl.cs: We need to invalidate across the width of the
15241 document when we are invalidating multiple lines.
15242 * TextBoxBase.cs: Don't delete into the line ending.
15244 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15246 * ListView.cs: Restore the check for the MouseHover event
15247 in ListView. It looks like the ListView fires more than one MouseHover
15248 event when HoverSelection is true _only_ in weird-corner scenarios, but
15249 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
15252 2007-04-05 Mike Kestner <mkestner@novell.com>
15254 * ListView.cs : raise MouseDown before updating selection.
15255 [Fixes #80373 tab 1&3]
15257 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
15259 * ToolStripRenderer.cs: Add static method to mirror image.
15260 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
15261 and RightToLeftAutoMirrorImage.
15262 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
15264 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
15266 * ToolStripSplitStackLayout.cs: Support Alignment property.
15267 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
15269 2007-04-05 Jackson Harper <jackson@ximian.com>
15271 * TextControl.cs: Move around the line endings when crossing line
15273 - When combining lines, strip the ending text off the first line.
15275 2007-04-05 Jackson Harper <jackson@ximian.com>
15278 * TextBoxBase.cs: Try to never move the cursor into the line
15281 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
15283 * ToolStripItem.cs: Make sure we aren't firing mouse events when
15284 the item is disabled. Also add a few missing methods.
15286 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15288 * ListView.cs: We don't need the MouseEnter/MouseLeave check
15289 to fire just one MouseHover event when HoverSelection is true, since
15290 .Net does fire more than one MouseHover event in that scenario. Also,
15291 fix the selection in HoverSelection, by invoking UpdateMultiSelect
15292 if MultiSelect is true, instead of only setting ListViewItem.Selected.
15293 Finally, we need to reset the Hover logic in MouseMove, even when we
15294 don't have a selected item.
15296 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
15298 * ToolStrip.cs: Add several missing methods, properties, and events.
15300 2007-04-04 Chris Toshok <toshok@ximian.com>
15302 * DataGridTextBoxColumn.cs: set the bounds of the text box to
15303 (0,0,0,0) in Commit, as MS does.
15305 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
15306 make sure we set CurrentRow on a row header click *before* calling
15307 Select. This moves the current cell (and the textbox) to the new
15308 row. The call to Select then hides the textbox, giving us the
15309 correct behavior. Fixes #80362.
15311 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
15312 (ListChangedHandler): reorder the position/current changed events,
15313 and call UpdateIsBinding in the ItemAdded case.
15315 * GridColumnStylesCollection.cs: add some columns events, one of
15316 which raises the CollectionChanged event.
15318 2007-04-04 Jackson Harper <jackson@ximian.com>
15320 * TextControl.cs: When we delete multiple selection lines
15321 invalidate the selection area, don't need to do that for single
15322 lines because the final update view will handle it.
15324 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
15326 * Control.cs: When we CreateControl, we need to also create all of the
15327 control's children. The child's OnLoad must also fire before the parent's
15328 OnLoad. Fixes the toolbox size in PDN.
15330 2007-04-04 Jackson Harper <jackson@ximian.com>
15332 * TextBoxBase.cs: When the user presses enter, insert a line
15333 ending into the text. (Maybe this would be a good spot for
15334 Environment.NewLine).
15335 * TextControl.cs: Remove undo manager hack, line endings get
15336 inserted properly now.
15338 2007-04-04 Everaldo Canuto <everaldo@simios.org>
15341 - Remove unneeded parameters in UpdateCursor.
15342 - Fix UpdateCursor to check if menu is active.
15343 - Call UpdateCursor when menu deactivate my click.
15344 [Fixes remaining issues from #80410]
15346 2007-04-04 Everaldo Canuto <everaldo@simios.org>
15348 * Control.cs: GetRealChildAtPoint method added, it make an
15349 recursive child control search for the point.
15351 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
15354 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
15356 2007-04-03 Everaldo Canuto <everaldo@simios.org>
15358 * Form.cs: Fix mouse position when send back mouse event after closes
15361 2007-04-03 Everaldo Canuto <everaldo@simios.org>
15363 * Form.cs: Simplify the BUTTONDOWN for active tracker.
15365 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
15367 * Control.cs: Fix an issue where if a user resized a control inside
15368 a sizing method like OnResize, we would overwrite their explicit
15369 value. Also, only call DefaultSize once in the constructor instead
15370 of 4 times. Also, do not call SetBoundsCore from SetBounds if
15371 nothing actually changed.
15373 2007-04-03 Jackson Harper <jackson@ximian.com>
15375 * TextControl.cs: Don't attempt to copy text for lines with no
15376 text in them (technically this shouldn't happen, but we aren't
15377 always inserting line endings when we should be).
15379 2007-04-03 Jackson Harper <jackson@ximian.com>
15381 * TextBoxBase.cs: Calculate the scrollbars before calculating the
15382 document, because this sets some of the document size properties
15385 2007-04-03 Jackson Harper <jackson@ximian.com>
15387 * TextBoxBase.cs: We need to calculate maximums even if this is
15388 not a multiline control, because the maxs are used for scrolling.
15389 - Display the caret after doing a page up/down, we need to
15390 manually display it because a proper CaretMoved event isn't
15391 triggered (this is because of the way the math is done to
15392 determine how far to scroll).
15394 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
15396 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
15397 (ToolBar was relying on SetBoundsCore to default the values sent
15398 base off of BoundsSpecified.)
15400 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15402 * DateTimePicker.cs: Change Text so that when a null value or empty
15403 string is assigned to the test we always raise ValueChanged and
15404 TextChanged (earlier implementation would only raise ValueChanged
15405 if the current date value was different from DateTime.Now).
15407 2007-04-03 Andreia Gaita <avidigal@novell.com>
15409 * ButtonBase: Call update after invalidation, fixes #80194
15411 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15413 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
15416 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15418 * XplatUIX11.cs: SetWMStyles: If the control is a form with
15419 FormBorderStyle = None, don't give the window any decorations.
15422 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15424 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
15425 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
15426 to check for is a mix of several styles (such as WS_CAPTION for
15428 * Control.cs: Don't paint an area bigger than the client area when
15429 painting the background colour. Add an internal GetCreateParams.
15430 Update calls to XplatUI.CalculateWindowRect due to API change.
15431 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
15432 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
15433 the size if it hasn't been handled by any windows. When creating
15434 and moving windows, X wants the location of the entire window, but
15435 the size of the client window, so add
15436 TranslateClientRectangleToXClientRectangle,
15437 TranslateWindowSizeToXWindowSIze and
15438 TranslatedXWindowSizeToWindowSize to cope with this, and call them
15439 before every window creation and move. Update CalculateWIndowRect
15440 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
15441 In AddConfigureNotify don't do anything if the hwnd is a zombie
15442 (fixes the BadWindow we were getting while running the tests),
15443 always calculate the offsets when it's a parentless window, not
15444 only when reparented, and translate the window size, since we're
15445 getting the client size of the whole window, excluding entire
15447 * Theme.cs: Added BorderSizableSize.
15448 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
15449 anymore. Update calls to XplatUI.CalculateWindowRect due to API
15451 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
15452 change. Fake the window styles here instead of in XplatUIWin32 so
15453 that all back-ends get the same window styles (and it's Form that's
15454 deciding when to use wm, not the Win32 backend anyways)
15455 * Hwnd.cs: Completely reworked GetWindowRectangle and
15456 GetClientRectangle - they are now passed a CreateParams and they
15457 only use Style and ExStyle to determine the rectangles (they should
15458 now work just like Win32AdjustWindowRectEx - though quite a few
15459 special cases are probably missing). They should also be 100%
15460 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
15461 == rect), and all numbers (borders, menu sizes) are taken from the
15462 current theme. Added a GetBorders helper function that will return
15463 the borders for any given CreateParams (including captions and
15464 menus), and GetBorderSize that returns the given border size only.
15465 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
15466 Hwnd.GetClientRectangle.
15468 2007-04-02 Chris Toshok <toshok@ximian.com>
15470 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
15471 logic between the values we present to the user and the values
15472 which are stored in the column's property. Also, don't call
15473 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
15475 2007-04-02 Jackson Harper <jackson@ximian.com>
15477 * TextBoxBase.cs: Scroll faster!
15479 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
15481 * StatusStrip.cs: Layout fixes for PDN.
15482 * ToolStrip.cs: Set item's available to true, and placement to main when
15484 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
15485 changing in setter before doing any work, add InternalVisible.
15486 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
15487 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
15490 2007-04-02 Jackson Harper <jackson@ximian.com>
15492 * TextBox.cs: LBUTTON does not make the textbox select all of it's
15495 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15497 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
15498 Makes ToolStripComboBoxes show up again.
15500 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15502 * ListView.cs: Add a hover_pending field in ListView
15503 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
15504 cycle (we are resetting the MouseHover logic in XplatUI
15505 to handle HoverSelection). Fixes #80429.
15507 2007-04-02 Jackson Harper <jackson@ximian.com>
15509 * TextControl.cs: Make sure the attributes get set on the last
15511 - Still have to do the end tag if we have stepped all the ways to
15514 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
15516 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
15517 on an internal libgdiplus call when the information is already
15518 available via the public API.
15520 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15522 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
15523 control is removed from a control collecftion.
15524 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
15525 Fixes FormPropertyTest (failed on rare occasions).
15526 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
15527 of Win32SetParent (when changing from no parent to a parent it
15528 might add the new parent's location in screen coordinates to this
15529 window's location).
15530 * Form.cs: Rework ChangingParent once again, now the handle is
15531 recreated whenever a FormWindowManager is added or removed (that is
15532 whenever a normal form is parented or abandoned). Also change
15533 CreateParams so that all non-toplevel windows always get the
15534 specified sice (StartupPosition is never considered for
15535 non-TopLevel forms).
15536 * ContainerControl.cs: Add ChildControlRemoved, the container control
15537 needs to be notified when a control is removed from it's
15538 collection, in the case the removed control is the active control.
15540 2007-04-02 Jackson Harper <jackson@ximian.com>
15542 * RichTextBox.cs: Use the new methods for setting the font and
15543 color, these methods set the specified attribute without
15544 overriding the other attributes.
15546 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
15548 * ToolStripPanel.cs: Fixes for better layouts in PDN.
15550 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
15552 * TextBox.cs: Added internal ChangeBackColor method to special-case
15553 Color.Empty. Added check for invalid ScrollBars value.
15554 * TextBoxBase.cs: Added internal ChangeBackColor method.
15555 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
15556 internal ChangeBackColor method to special-case Color.Empty. Added
15557 check for invalid ScrollBars value.
15559 2007-03-30 Everaldo Canuto <everaldo@simios.org>
15561 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
15563 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
15565 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
15566 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
15567 [Based on submitted patch from Olivier Duff.]
15569 2007-03-30 Jackson Harper <jackson@ximian.com>
15571 * TextBox.cs: Only select all on initial focus if the user has not
15572 specified a selection area.
15574 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
15576 * UserControl.cs: Override CreateParams.
15578 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15582 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
15583 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
15584 check for is a mix of several styles (such as WS_CAPTION for instance).
15585 * Control.cs: Don't paint an area bigger than the client area when painting
15586 the background colour. Add an internal GetCreateParams. Update calls to
15587 XplatUI.CalculateWindowRect due to API change.
15588 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
15589 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
15590 hasn't been handled by any windows. When creating and moving windows, X
15591 wants the location of the entire window, but the size of the client
15592 window, so add TranslateClientRectangleToXClientRectangle,
15593 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
15594 to cope with this, and call them before every window creation and move.
15595 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
15596 removing DeriveStyles). In AddConfigureNotify don't do anything if the
15597 hwnd is a zombie (fixes the BadWindow we were getting while running the
15598 tests), always calculate the offsets when it's a parentless window, not
15599 only when reparented, and translate the window size, since we're getting
15600 the client size of the whole window, excluding entire window.
15601 * Theme.cs: Added BorderSizableSize.
15602 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
15603 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
15604 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
15605 Fake the window styles here instead of in XplatUIWin32 so that all
15606 back-ends get the same window styles (and it's Form that's deciding when
15607 to use wm, not the Win32 backend anyways)
15608 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
15609 they are now passed a CreateParams and they only use Style and ExStyle
15610 to determine the rectangles (they should now work just like
15611 Win32AdjustWindowRectEx - though quite a few special cases are probably
15612 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
15613 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
15614 sizes) are taken from the current theme. Added a GetBorders helper
15615 function that will return the borders for any given CreateParams
15616 (including captions and menus), and GetBorderSize that returns the given
15618 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
15619 Hwnd.GetClientRectangle.
15621 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15623 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
15624 layout of the mdi children is handled by CreateParams. Fixes
15627 2007-03-29 Everaldo Canuto <everaldo@simios.org>
15629 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
15632 * Form.cs: When active tracker mouse down is not processed, send event
15633 back to control inside mouse position. [Fixes #81227]
15635 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
15637 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
15638 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
15639 stealing focus from the active form on Windows. (Control will be made
15640 visible in ShowWindow.)
15642 2007-03-29 Mike Kestner <mkestner@novell.com>
15644 * ImageList.cs : add internal Changed event.
15645 * ListView.cs : hook up to StateImageList.Changed to perform
15646 invalidations when the the state icon list changes. [Fixes #81191]
15648 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
15650 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
15651 to prevent tooltips from stealing focus from the active form on Windows.
15653 2007-03-29 Everaldo Canuto <everaldo@simios.org>
15655 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
15657 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
15659 2007-03-29 Everaldo Canuto <everaldo@simios.org>
15661 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
15664 2007-03-29 Jackson Harper <jackson@ximian.com>
15666 * TextControl.cs: When deleting text from non multiline textboxes,
15667 we need to update the entire document, because line offsets will
15670 2007-03-29 Everaldo Canuto <everaldo@simios.org>
15672 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
15673 added to theme, now we can create themes that uses diferent notify engines
15674 like notification-daemon from galago project or growl for Mac OS.
15676 2007-03-28 Everaldo Canuto <everaldo@simios.org>
15678 * NotifyIcon.cs: Prevent Balloon to show in task bar.
15680 2007-03-28 Everaldo Canuto <everaldo@simios.org>
15682 * XplatUIX11.cs: Prevent system to open more than one balloon.
15684 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
15685 some compiler warning messages.
15687 2007-03-28 Everaldo Canuto <everaldo@simios.org>
15691 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
15693 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
15694 implemented, this methods is used by NotifyIcon.BalloonWindow class.
15696 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
15699 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15701 * ListViewItem.cs: Forgot to make Invalidate internal.
15703 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15705 * ListView.cs: Add a InvalidateSelection method to
15706 invalidate methods which are currently selected, and call
15707 it when setting FullRowSelect and HideSelection, instead of
15710 2007-03-28 Chris Toshok <toshok@ximian.com>
15712 * XplatUIX11.cs (UnmapWindow): reindent this block.
15714 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
15715 the selection_start if we're moving the selection (that is, not
15716 extending it). Fixes bug #80461.
15718 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
15720 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
15721 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
15722 create private ControlCollection.
15724 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
15726 * Control.cs: We need to call OnVisibleChanged for our implicit
15727 children as well as our normal children. Fixes scrollbars in
15728 comboboxes not showing up.
15730 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
15732 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
15733 the check for IsHandleCreated first. The check in CreateHandle is not
15734 good enough because CreateHandle can be overriden, and the override
15735 should not be called if the handle is already created.
15737 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
15739 * ToolStrip.cs: Remove MonoTODO for tooltips.
15740 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
15741 * ToolStripContainer.cs: Add custom ControlCollection class.
15742 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
15743 * ToolStripDropDown.cs: Add some missing properties/methods.
15744 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
15745 * ToolStripItem.cs: Remove MonoTODO for tooltips.
15746 * ToolStripManager.cs: Add IsShortcutDefined.
15747 * ToolStripOverflow.cs: Override LayoutEngine.
15748 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
15749 * ToolStripSeparator.cs: Add ImageKey.
15751 2007-03-28 Jackson Harper <jackson@ximian.com>
15753 * TextControl.cs: If a char delete removes a line ending, we need
15754 to update the ending style.
15755 - Make sure the line ending calcs get called.
15757 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15759 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
15760 it was making the new code not work. Fixed a typo in the new code
15761 as well. Fixes #79826.
15763 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15766 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
15767 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
15768 - SystrayBalloon method implemented.
15769 [Add support for notifyicon balloon on win32, #79149]
15771 2007-03-27 Mike Kestner <mkestner@novell.com>
15773 * ThemeWin32Classic.cs : update StateImageList selection to mirror
15774 the ms behavior when only one image is added to the list.
15777 2007-03-27 Jackson Harper <jackson@ximian.com>
15779 * TextControl.cs: Improvements to non multiline line ending
15782 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15784 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
15786 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15789 - Balloon message handling added.
15790 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
15792 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15793 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
15794 to SystrayBalloon to me like other Systray method, also a
15795 handle parameter added.
15797 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15799 * ListView.cs: Show scrollbars even when items.Count == 0
15800 but the columns Width is bigger than the ListView.Width.
15801 Also, when columns.Count == 0 set layout_wd and layout_ht
15802 to the ClientRectangle values, so we don't show any scrollbar
15805 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15807 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
15809 2007-03-27 Jackson Harper <jackson@ximian.com>
15811 * RichTextBox.cs: The RTF library decodes the text properly for us
15814 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15816 * ListView.cs: Display HeaderControl even when columns.Count == 0.
15817 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
15818 ListView header (HeaderControl), instead of Control.BackColor.
15820 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
15822 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
15823 Fixes tab control issues where controls would not show up because they
15824 never received their OnVisibleChanged call.
15826 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15828 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
15831 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
15833 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
15834 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
15835 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
15836 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
15837 the handle. Fix WindowState by using the internal variable until we are
15838 sure that we've been shown.
15839 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
15843 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
15845 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
15846 (at least borders). Fixes #79386 on Linux (with a small difference
15847 in behaviour: when trying to resize a caption-less window metacity
15848 shows the sysmenu. Resizing is still possible though).
15849 * XplatUIWin32.cs: When setting window styles send request an extra
15850 WM_NCCALCSIZE when it's a form without title (due to no text and no
15851 caption), since Win32 seems to calculate it wrong the first time we
15852 get the message, though the second time things work as they should.
15853 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
15854 newly reparented window might show up unparented. Update
15855 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
15856 there's no title text. Fixes #79386.
15858 2007-03-27 Mike Kestner <mkestner@novell.com>
15860 * ListBox.cs : don't perform invalidations if the handle hasn't been
15861 created. [Fixes #80753]
15863 2007-03-27 Mike Kestner <mkestner@novell.com>
15865 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
15868 2007-03-26 Everaldo Canuto <everaldo@simios.org>
15870 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
15871 needed to implement Balloon.
15873 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15875 * ListViewItem.cs: In the constructors that take
15876 an array of strings, don't use ListViewSubItemCollection.AddRange
15877 method to add items, since we need to have a different behaviour (in
15878 the constructors we add an item for each null string, opposed to
15879 the behaviour of AddRange, which adds nothing).
15881 2007-03-26 Andreia Gaita <avidigal@novell.com>
15883 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
15885 2007-03-26 Jackson Harper <jackson@ximian.com>
15887 * TextControl.cs: Draw and measure line endings when in non
15889 - When searching the text, count the end of the last line as a
15892 2007-03-26 Jackson Harper <jackson@ximian.com>
15894 * RichTextBox.cs: The selection_start and selection_end don't
15895 really track the correct tags for the selection. So we'll manually
15896 compute the correct tag here.
15898 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15900 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
15901 and Continuous styles. Fixes #79469.
15903 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
15905 * ToolStrip.cs: Implement Tooltips.
15906 * ToolStripItem.cs: Create internal method for determining tooltip.
15908 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
15910 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
15912 2007-03-26 Everaldo Canuto <everaldo@simios.org>
15914 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
15915 it prevents a problem thak keeps icon visible after application
15918 2007-03-26 Everaldo Canuto <everaldo@simios.org>
15920 * NotifyIcon.cs: Balloon properties and methods created.
15922 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15923 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
15925 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
15927 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
15929 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
15931 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
15932 parameter indicates which aspects were explicit/user-set.
15933 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
15935 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
15937 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
15938 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
15939 SmallChange, and Value (2.0).
15940 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
15942 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15944 * ListView.cs: Always set item_control.Width in LayoutDetails
15945 if View is Details. Setting it later in CalculateScrollBars
15946 in a not-so-corner scenario (the sum of columns width is
15947 not bigger than the ListView width when handle is created, and then
15948 that sum gets bigger by increasing the width of the columns)
15949 causes a very weird recursion path (which shouldn't be happening,
15950 since header_control sets it in CalculateScrollBars too). This bug
15951 appeared after Chris' fixes for handle created issues, so probably
15952 it's related to some handle-creation time.
15954 2007-03-23 Chris Toshok <toshok@ximian.com>
15956 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
15957 case where there's an add row, just so we don't end up in a case
15958 where it's not displayed (this happens when the row is partially
15959 obscured). Fixes bug #79574.
15961 2007-03-23 Jackson Harper <jackson@ximian.com>
15965 * RichTextBox.cs: Preserve line endings in the lines text buffer,
15966 also added an enum that represents the line ending type.
15968 2007-03-23 Andreia Gaita <avidigal@novell.com>
15970 * NumericUpDown.cs: Fix logic so Text and Value properties are not
15971 messed with in every method call, but only from DownButton,
15972 UpButton, UpdateEditText() and ValidateText. Fixes #80346
15974 2007-03-23 Chris Toshok <toshok@ximian.com>
15976 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
15977 format objects if the format spec is "". Fixes bug #80889.
15979 2007-03-22 Miguel de Icaza <miguel@novell.com>
15981 * ToolStripPanel.cs (Join): added stubs to build PDN3
15983 * Control.cs (AutoScrollOffset): Add.
15985 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15986 property, its only implemented for Win32, on X11 it defaults to
15987 some hardcoded value.
15989 * ToolStripItem.cs (AllowDrop): Add property
15991 2007-03-22 Mike Kestner <mkestner@novell.com>
15993 * ListView.cs : in FullRowSelect Details mode, only enable box
15994 selection if the user clicks over the "item" column outside of the
15995 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
15997 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15999 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
16000 handle is not created yet.
16001 * Form.cs: Select: Don't call CreateHandle if the handle is already
16002 created, avoids a stack overflow on Windows when we are recreating
16004 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
16005 they are made visible, and override AfterTopMostControl to keep
16006 them on top when other controls are brought to front.
16007 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
16008 or force_*scroll_visible is true (old implementation always shows
16009 scrollbars when needed, no matter what auto_scroll was set to).
16010 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
16011 IsHandleCreated check.
16013 2007-03-22 Andreia Gaita <avidigal@novell.com>
16015 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
16016 row or col separator.
16017 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
16019 2007-03-22 Everaldo Canuto <everaldo@simios.org>
16021 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
16023 2007-03-22 Everaldo Canuto <everaldo@simios.org>
16025 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
16026 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
16027 every time. Fixes #80410.
16029 2007-03-22 Chris Toshok <toshok@ximian.com>
16031 * BindingSource.cs (AddNew): partially implement.
16033 remove a couple of NotImplementedException's
16034 to get bug #81148 closed.
16036 2007-03-22 Everaldo Canuto <everaldo@simios.org>
16041 - UpdateCursor method added to update the screen cursor.
16042 - GetAvailableCursor method added to return cursor for enabled tree,
16043 it searches for cursor on control and it's parent's for enabled control.
16044 - Call UpdateCursor method on setter of Cursor property.
16045 - On setter of Enabled call UpdateCursor when it is false, we need to
16046 change cursor to normal (or to this parent cursor) because cursor
16047 setting theres no effect to disabled controls.
16048 - Some minor source changes to follow the coding style guidelines.
16050 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
16053 2007-03-22 Chris Toshok <toshok@ximian.com>
16055 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
16058 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16060 * XplatUIX11.cs: Implement default locations for forms.
16061 * Form.cs: Completely rework startup location for forms. Fixes #79964.
16062 * Hwnd.cs: Add previous_child_startup_location (to track the current
16063 startup location for any child forms of the current form) and
16064 previous_main_startup_location (to track the startup location for
16065 the current toplevel form).
16067 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
16069 * Control.cs: Don't trigger a layout if an implicit control is added
16070 that isn't visible. Also, don't notify the owner when an implicit control
16071 is added. (Owners shouldn't even know about their implicit controls.)
16073 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
16075 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
16076 to save some re-layouts.
16078 2007-03-21 Everaldo Canuto <everaldo@simios.org>
16080 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
16083 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
16085 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
16086 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
16088 2007-03-21 Mike Kestner <mkestner@novell.com>
16090 * ListView.cs : disable selection update for non-left button clicks
16091 with mods and over selected items. [Fixes #80524]
16093 2007-03-20 Jackson Harper <jackson@ximian.com>
16096 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
16099 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16101 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
16102 very probably a more complicated calculation there. Update the
16103 textbox' ForeColor and BackColor when the ComboBox' colors are
16104 changed. Change the border change in LayoutComboBox to only affect
16105 the textbox, not all the calculations there. Seems to fix most of
16108 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16110 * ComboBox.cs: Handle Home and End keys as well as all combinations of
16111 modifiers + navigation keys as input keys, enables advanced text
16112 selection in the combobox (like Shift+Left Arrow for instance).
16113 ComboTextBox now overrides Focused and returns whatever
16114 ComboBox.Focused returns, since it really should be focused
16115 whenever the ComboBox is. Fixes #80795. Also make the border around
16116 the text box one pixel bigger, as mentioned in #79436.
16118 2007-03-20 Jackson Harper <jackson@ximian.com>
16120 * TreeView.cs: Don't offset the images, this was causing some
16121 artifacts when expanding/collapsing with images that were the
16122 exact height of the treenode.
16124 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16126 * TrackBar.cs: Query the theme for the correct value when the mouse
16127 moves and the thumb is pressed.
16128 * Theme.cs: Added TrackBarValueFromMousePosition
16129 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
16130 implementation was updating the trackbar value when drawing, now
16131 the drawing methods only draw. Fixes #80900. Refactored the
16132 calculations out to TrackBarValueFromMousePosition and
16133 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
16134 according to the mouse position whenever it wants to. Changed the
16135 light coloured pen when drawing the thumb from ControlLight to
16136 ControlLightLight, because the ControlLight is the same colour as
16137 the background so the 3D effect is lost.
16139 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16141 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
16142 defined. Fixes #80784.
16144 2007-03-20 Marek Habersack <mhabersack@novell.com>
16146 * ContextMenuStrip.cs: align with the change introduced in
16149 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16151 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
16152 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
16155 2007-03-19 Chris Toshok <toshok@ximian.com>
16157 * Control.cs (WmPaint): don't make use of the Handle property
16158 after an event is emitted, as the user could have closed the
16159 form/destroyed the control. Store the Handle in a local variable
16160 and make use of that. Fixes bug #80768.
16162 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16164 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
16165 behavior in X11 environments.
16167 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16169 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
16170 because on setter of topmost we dont call SetTopmost when handle is not
16173 2007-03-20 Jackson Harper <jackson@ximian.com>
16175 * TextControl.cs: Need to use SelectionLength () not
16176 selection_length, since that var is reset to -1.
16177 - Draw the caret when we don't have focus.
16178 * TextBox.cs: The selectall actually doesn't occur until the first
16180 * TextBoxBase.cs: Need to update the caret position after a
16183 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16185 * ListView.cs: Enable scrolling when using Tile view.
16187 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16191 * XplatUIDriver.cs: Abstract SetOwner method created.
16193 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
16194 must be implemented and was masked as todo.
16196 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
16199 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
16200 cheking for null owner to remove transient. The SetTopmost will be change
16203 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
16204 SetTopmost. Now owned forms will work properly in win32 and X11.
16206 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16208 * MdiWindowManager.cs: Update function name.
16209 * Form.cs: After closing a form MdiParent is always null.
16210 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
16211 better what it should do: necessary book-keeping when the form is
16212 closed, it should not close the form itself.
16214 2007-03-19 Andreia Gaita <avidigal@novell.com>
16216 * ListViewItem.cs: Fix back and fore color. The subitems only
16217 use their own colors if they are set, otherwise use the listview's
16218 colors. Don't set default colors on constructor for subitem.
16221 2007-03-19 Mike Kestner <mkestner@novell.com>
16223 * ListView.cs : make box selection for Details views with
16224 FullRowSelect conform to MS behavior when clicking in the "item"
16225 column and clicking outside the defined columns.
16226 [Fixes case 5-6 of #80374]
16228 2007-03-19 Chris Toshok <toshok@ximian.com>
16230 * ScrollableControl.cs: create the controls from within the ctor,
16231 but don't actually add them until our handle is created. this
16232 fixes a NRE possibility jpobst found (if you override OnLayout in
16233 a subclass, it's called before your ctor). Also, add a
16234 IsHandleCreated guard to UpdateSizeGripVisibility as well.
16236 2007-03-19 Jackson Harper <jackson@ximian.com>
16238 * TextBox.cs: Reduce the amount of invalidation we do.
16239 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
16240 some of them are true by default on MS.
16241 - Add some functions to reduce the amount of invalidates we do.
16242 * TextControl.cs: Less invalidation.
16244 2007-03-19 Chris Toshok <toshok@ximian.com>
16246 [ Fixes #81773, and *seems* to fix #81553 as well ]
16248 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
16249 AccumulateDestroyedHandles. We need to do it *after* we send
16250 WM_DESTROY, as the user's code can access Control.Handle in
16251 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
16252 move the WM_DESTROY/zombie handling to before the call to
16253 XDestroyWindow. For some reason without this ordering
16254 FormTest.RecreateHandle hangs. This ordering is semantically
16255 equivalent, however, as XDestroyWindow is async anyway.
16257 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
16259 * RichTextBox.cs: Reset backcolor_set after setting default.
16261 2007-03-19 Chris Toshok <toshok@ximian.com>
16263 * ScrollableControl.cs: the scroll position should not effect the
16264 canvas size. commit patch from georgegiolfan@yahoo.com, which
16265 fixes some really bizarre behavior on resizing. Fixes bug #80778.
16267 2007-03-19 Chris Toshok <toshok@ximian.com>
16269 * ScrollableControl.cs: clean this up a bit. create the
16270 scrollbars in the ctor and just show/hide them as needed. Also,
16271 make hscroll_visible/vscroll_visible internal to Recalculate, and
16272 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
16273 everywhere else. This seems to fix the scrollbars appearing
16274 beneath the content for me (i have *no* idea why that is,
16277 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
16279 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
16280 some redundacy for stuff in Anchor and Dock that base will take care of.
16283 2007-03-19 Mike Kestner <mkestner@novell.com>
16285 * ListView.cs : make box selection for Details views without
16286 FullRowSelect dependent on the text bounds, not item bounds.
16287 * ListViewItem.cs : add an internal property to obtain the TextBounds
16288 in Details view. [Fixes case 1-4 of #80374]
16290 2007-03-19 Andreia Gaita <avidigal@novell.com>
16292 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
16293 we're < 2.0. #78448 && #80316
16295 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
16297 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
16298 have the same style available as the previously selected one. Also,
16299 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
16301 2007-03-19 Jackson Harper <jackson@ximian.com>
16303 * TextControl.cs: Add an alignment property that all new lines
16305 - Make sure to use the align shift when calculating the line's X
16307 * TextBox.cs: Set the alignment on the document as well as on all
16308 the document lines.
16310 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16312 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
16313 throw if setting the parent of an mdichild that already has an
16314 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
16315 AssemblyProductAttribute in the assembly, use the type's namespace (as
16316 MS seems to do). CreateControl: don't create the handle if the control
16317 is not visible (according to MS behaviour and spec). SetTopLevel: Only
16318 create handle if the control is not a form. Change FocusInternal to
16319 virtual so that it can be overriden by Form.
16320 * TextBox.cs: Update call to FocusInternal.
16321 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
16322 form is not a toplevel form when it's a mdi child, so update is_toplevel
16323 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
16324 hasn't been created. Show (IWin32Window): Don't allow this overload for
16325 toplevel windows. CenterToParent/CenterToScreen/Select: create the
16326 handle as MS does. SetVisibleCore: if called on a MdiChild and the
16327 parent isn't visible yet, save the visibility and restore it when the
16328 parent is made visible.
16329 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
16330 methods, since the visibility of the scrollbars can be changed from
16331 several places, not only from AutoScroll.
16334 2007-03-19 Jackson Harper <jackson@ximian.com>
16336 * RichTextBox.cs: Enable shortcuts by default.
16337 * TextBoxBase.cs: Add conditional shortcuts.
16339 2007-03-19 Everaldo Canuto <everaldo@simios.org>
16341 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
16343 2007-03-19 Chris Toshok <toshok@ximian.com>
16345 [ Fixes bug #80604]
16347 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
16348 swallow the message we're waiting on, instead of delivering it, as
16349 this is only used for the WM_SHOWWINDOW raised from
16350 MapWindow/UnmapWindow, and the message needs to be generated
16351 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
16352 before doing the Map/Unmap. Also make sure that the Hwnd is still
16353 alive after the message has been handled.
16355 *before* the window is shown.
16357 * Control.cs (CreateControl): guard a few more things inside the
16358 if (!is_created) block, as we might end up being called again -
16360 (WmShowWindow): call CreateControl if we're showing the control.
16362 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16364 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
16365 controls without a handle if they have any parent with a handle. In
16366 Dispose add a check whether the handle is created or not before
16367 calling BeginInvoke, this removes the need of the extra disposing
16368 parameter (which was bogus anyway since it didn't prevent the
16369 invoke from happening, it only skipped the check for an existing
16370 handle, meaning that the invoke would call on an inexistent
16373 2007-03-19 Everaldo Canuto <everaldo@simios.org>
16375 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
16376 appears in taskbar.
16378 2007-03-18 Everaldo Canuto <everaldo@simios.org>
16381 - Fixed a problem that dont show help button for messages with 3 buttons.
16382 - Refactory button size and position calculations, now dont use fixed
16383 values, also fixed button sizes (#80043) and form's border space.
16384 - AddButton method created, now all other AddButton methods call this one.
16385 - Some other source code cosmetic changes.
16387 2007-03-18 Jackson Harper <jackson@ximian.com>
16389 * RichTextBox.cs: Don't do this all fonts must match check if
16390 there is only one char selected.
16392 2007-03-18 Jackson Harper <jackson@ximian.com>
16394 * TreeView.cs: ScrollWindow works properly now, so we don't need
16395 to screw around with the scroll area. This fixes some artifacts
16396 when expanding and collapsing.
16398 2007-03-18 Jackson Harper <jackson@ximian.com>
16400 * TextBoxBase.cs: Allow updating the selection position when the
16401 cursor is outside the textarea, but we have a capture.
16402 * TextControl.cs: A special case for when the cursor is outside
16403 the bounds of the TB.
16405 2007-03-18 Jackson Harper <jackson@ximian.com>
16407 * TextBoxBase.cs: Remove image pasting code for now. There is no
16408 way to get an image on the clipboard right now anyways.
16410 * RichTextBox.cs: Use the new RTF Picture class for pictures.
16412 2007-03-18 Everaldo Canuto <everaldo@simios.org>
16415 - Set window properties in constructor intead of on CreateParams.
16416 - Remove topmost from Window ExStyle.
16417 - Set ShowInTaskbar to false.
16418 - Set form border to FixedDialog.
16419 - Some cosmetic changes and remove unneeded comments.
16420 - It fixes itens 2,3 and 4 of bug #80043.
16422 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
16424 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
16425 none was explicitly set. Fixes part of bug #79949.
16427 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
16429 * ToolStripComboBox.cs: Add AutoComplete*.
16431 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
16433 * ToolStripComboBox.cs: Add FlatStyle.
16435 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
16437 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
16438 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
16440 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16442 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
16443 CheckBox.cs, RadioButton.cs, BindingSource.cs,
16444 DataGridColumnStyle.cs: Remove warnings.
16446 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16448 * Menu.cs: MergeMenu: Check menu argument for null before looping over
16450 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
16451 visibility of mdi child forms. FormSizeChangedHandler: update the
16452 maximized size if size has changed while maximized.
16453 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
16454 creating the handle.
16455 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
16456 avoid creating the handle if not created.
16457 * XplatUI.cs: Update debug output.
16458 * XplatUIStructs.cs: Added ToString's for a couple of structs.
16460 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
16462 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
16464 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
16465 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
16466 Implement keyboard shortcuts.
16468 2007-03-15 Everaldo Canuto <everaldo@simios.org>
16470 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
16471 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
16472 ColorDialog and all derived classes.
16474 2007-03-15 Everaldo Canuto <everaldo@simios.org>
16476 [ Fixes bug #79828 ]
16479 - Rename ToolBarButtonInfor to ToolBarItem.
16480 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
16481 - Maintain an array of ToolBarItem, used instead of ToolBarButton
16482 collection to be able add same button more than one time on a toolbar.
16483 - Refactory all properties and methods to use ToolBarItem.
16485 * ToolBarButton.cs:
16486 - Remove all propeties and methods that is now in ToolBarItem.
16487 - Rectangle propery now gets the rectangle from first ToolBarItem to
16488 mimic win32 behavior.
16489 - Size calculation and layout methods also removed.
16491 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
16492 ToolBarItem instead of ToolBarButton to right drawing buttons when
16493 same button/separator was added more than one time to ToolBar.
16495 * ThemeNice.cs: Same as above.
16497 2007-03-15 Andreia Gaita <avidigal@novell.com>
16499 * XplatUIX11.cs: Fire extra MouseMove events right after
16500 MouseDown and MouseUp, emulating win32's <censored> behaviour
16501 for apps that rely on it.
16503 2007-03-15 Jackson Harper <jackson@ximian.com>
16506 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
16507 it is drawn on the controls client window and there is no NC
16509 - Set the background color to gray on 2.0 when we are readonly.
16511 2007-03-15 Chris Toshok <toshok@ximian.com>
16513 [ Fixes bug #81144 ]
16515 * XplatUIX11.cs: implement VirtualScreen independently of
16516 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
16519 2007-03-15 Chris Toshok <toshok@ximian.com>
16521 * Hwnd.cs: add an internal field for the cached_window_state.
16523 * XplatUIX11.cs: cache the window state, invalidating the cache
16524 (and thus re-querying the X server) only when we see an update to
16525 the _NET_WM_STATE property.
16527 2007-03-15 Chris Toshok <toshok@ximian.com>
16529 * BindingSource.cs: get a lot of the unit tests working.
16531 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
16533 * Control.cs: Modify UpdateStyles to store distances when bounds >=
16534 0 instead of just bounds > 0. [Fixes bug #80912]
16536 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
16538 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
16541 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
16543 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
16544 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
16545 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
16546 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
16548 2007-03-15 Chris Toshok <toshok@ximian.com>
16552 * Control.cs: add Ivan's fix for 81101, with a slight modification
16553 - you can set control.Target to null.
16555 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
16557 * ToolStripItem.cs: If our OwnerItem is null, we can't use
16558 HideDropDown, use Hide instead to prevent an NRE.
16561 2007-03-14 Jackson Harper <jackson@ximian.com>
16563 * TextBoxBase.cs: Mess with the creation stuff a little. We need
16564 to calculate the document before the handle is created, in some
16565 cases. (Actually just one case).
16567 2007-03-14 Jackson Harper <jackson@ximian.com>
16569 * TextBoxBase.cs: Need to display the caret after letting the base
16570 wndproc handle the focus methods, because the caret display
16571 methods check the focus state.
16572 - Try to display the caret after updating it's position with SelectWord.
16573 - Don't need to do an immediate update on this recalc, since there
16574 will be an invalidate anyways.
16576 2007-03-14 Jackson Harper <jackson@ximian.com>
16578 * TreeView.cs: Some workarounds so that we can match event order a
16581 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
16583 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
16584 #80803. Avoid NullReferenceException when Control does not have
16585 parent. Fixed different blinkstyle issues. Only subscribe to Tick
16586 event a single time. Only draw error icon when control is created and
16587 visible. Fixes failing unit tests.
16589 2007-03-14 Andreia Gaita <avidigal@novell.com>
16591 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
16592 Selecting events. Fire Leave and Enter events when changing tabs.
16594 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
16596 * TreeView.cs: Add TreeViewNodeSorter.
16597 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
16599 2007-03-14 Chris Toshok <toshok@ximian.com>
16601 * Form.cs: go ahead and remove the RecreateHandles that jpobst
16602 removed earlier and I had him add back it. It turns out metacity
16603 *does* in fact handle the MOTIF_WM_HINTS property changing, it
16604 just doesn't redraw the window titlebar until you resize the
16605 window. This also means we aren't recreating the entire window
16606 hierarchy on X when you change this property. And it looks better
16609 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16612 * ListView.cs: Collecting selection information
16613 is now done in SelectedIndexCollection rather than in
16614 SelectedListViewItemCollection. This is done so we can
16615 have the selection information code in one single place
16616 (virtual mode selection information entirely depends on
16617 SelectedIndexCollection).
16619 2007-03-13 Miguel de Icaza <miguel@novell.com>
16621 * ErrorProvider.cs: Add stubs for ISupportInitialize
16623 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16625 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
16626 in the right order with the right values, from the Checked property,
16627 just as MS does (instead of triggering them from ListView).
16629 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
16631 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16633 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
16634 the correct handler in OnItemCheck method (ItemCheckEventHandler
16635 instead of EventHandler). This used to throw an InvalidCastException.
16637 2007-03-13 Jackson Harper <jackson@ximian.com>
16639 * TextBoxBase.cs: Calculate the document before the handle is
16640 created, so there isn't an extra invalidate called.
16642 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
16644 * Form.cs: Don't set owner in ShowDialog until we are sure
16645 that we aren't going to throw an exception. [Fixes bug #80773]
16647 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
16649 * TreeView.cs: Make it compile.
16651 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16653 * Control.cs: Another place we don't call SizeFromClientSize.
16654 * Form.cs: Another place we don't call SizeFromClientSize.
16657 2007-03-12 Jackson Harper <jackson@ximian.com>
16659 * TreeView.cs: Basically emulating some strangness here with
16660 exanding nodes and setting node positions when windows aren't
16662 - Also attempting to walk the node tree less than previously, and
16663 just use visible order calculations for determining offsets.
16664 - oops made scrolling backwards.
16665 * TreeNode.cs: We need to start nodes with a zero visible order,
16666 because the order calcs are based on the first nodes order.
16668 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16670 * Form.cs: Don't exit the program if RecreateHandle is called on
16673 2007-03-12 Chris Toshok <toshok@ximian.com>
16675 * XEventQueue.cs: remove the use of PostQuitState.
16677 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
16678 WM_QUIT message in GetMessage, return false (and if we're in the
16679 nested WaitForHwndMessage, repost the WM_QUIT message).
16681 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16683 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
16684 or the MaximizeBox properties. [Part of bug #80640]
16686 2007-03-12 Everaldo Canuto <everaldo@simios.org>
16688 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
16691 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16693 * ToolStripItem.cs: Fix some tests I broke by checking Visible
16694 instead of visible.
16696 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
16698 * FileDialog.cs: Use text of File name combobox to determine what
16699 files the user selected. Added tokenizer to parse the file names.
16702 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16704 * Control.cs: We can't call SizeFromClientSize in the constructor,
16705 but we still need to do the same work, so make an internal version.
16708 2007-03-12 Jackson Harper <jackson@ximian.com>
16712 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
16715 2007-03-12 Jackson Harper <jackson@ximian.com>
16717 * TextBoxBase.cs: Now that the handles are being created a little
16718 later, we need to make sure that the document is recalculated when
16719 the handle is created.
16721 2007-03-11 Everaldo Canuto <everaldo@simios.org>
16723 * Theme.cs: GetLinkFont abstract method added.
16726 - Remove CalcTrimRectangle, no longer needed.
16727 - Factor also remove, position issues must be fixed in libgdiplus.
16728 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
16729 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
16730 care about font used to draw links.
16731 - Set TabStop to true when control is "Selectable", control is selectable
16732 when have one or more links. Fixes #80501 (test case is also added).
16733 - Set the LinkArea values after links change, LinkArea values must be
16734 based in first link position and size, a test case was created.
16735 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
16736 the attribute must be true LinkArea.Length > 0. The same was applied to
16739 * ThemeWin32Classic.cs:
16740 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
16742 - Use CPDrawStringDisabled to draw disabled text instead of hard code
16744 - Draw focus rectangle for every parts focused, including parts that
16745 is on another line, its because regions returns various rectangles
16746 and not only one. Needed to mimic W32 look.
16747 - Uses Graphics.Clip to delimite region painted, it mean that now
16748 complete text is passed to DrawString, with this we solve layout
16749 issues without create another text renderer.
16750 - Uses Region.Intersect to fix some flickers problems, now only needed
16751 parts will redrawed.
16752 - This changes fixes #79614 and some other unreported issues, on Linux
16753 some layout problems still remain, the problem is under
16754 MeasureCharacterRanges but it is an libgdiplus bug.
16756 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
16758 * TextBox.cs: Set for foreground color.
16759 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
16760 this is already done in Control.
16762 2007-03-10 Jackson Harper <jackson@ximian.com>
16764 * TextBox.cs: Set the background color, but reset the
16765 backcolor_set flag which is just for the user setting the
16768 2007-03-09 Chris Toshok <toshok@ximian.com>
16770 * Control.cs: really remove the call to XplatUI.SetVisible from
16771 CreateHandle(), like I said I did when I merged the branch.
16773 * BindingSource.cs: implement some more of this stuff.
16775 2007-03-09 Jackson Harper <jackson@ximian.com>
16777 * TextBox.cs: Don't explicitly set our background colors.
16779 * TextBoxBase.cs: Draw readonly text.
16780 - Need to invalidate when backcolor or readonly are changed.
16782 2007-03-09 Jackson Harper <jackson@ximian.com>
16784 * TextBoxBase.cs: Don't set the forecolor until the handle is
16786 - Do not raise OnPaint, and removed some old debug code.
16788 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
16790 * ScrollableControl.cs: Fix mouse wheel scrolling.
16792 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
16794 * Control.cs: Wire up MouseDoubleClick event.
16796 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
16798 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
16800 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
16801 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
16802 item is added. This logic was moved to ToolStrip.OnItemAdded.
16805 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16807 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
16809 2007-03-08 Jackson Harper <jackson@ximian.com>
16811 * TreeView.cs: Show the correct image for selected node (this used
16812 to work, not sure how the code got deleted). Also implemented 2.0 feature
16815 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16818 * ListViewItem.cs: Cache index in items when retrieving them
16821 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
16823 * ToolStripItem.cs: Don't return the explicit_size if we are using
16824 AutoSize. Fixes invalidation issue when user has explicitly set a
16825 size and has AutoSize = true.
16827 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
16829 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
16831 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
16833 * DataGridView.cs: Remove event handler from DataView when a
16834 DataTable is used as DataSource.
16836 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
16838 * Control.cs: Create internal setter for client_size to allow it to be
16839 set without triggering resizing code.
16840 * Form.cs: Calculate client_size in constructor, only change client_size
16841 in FormBorderStyle property if Handle has been created.
16842 [Fixes #80574, #80791]
16844 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
16846 * SystemInformation.cs: Add TerminalServerSession.
16848 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
16850 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
16853 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
16855 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
16856 Handle before we were supposed to. Now checks ActivateOnShow property
16858 * Control.cs: Add internal ActivateOnShow property.
16859 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
16860 for ActivateOnShow.
16861 * Hwnd.cs Remove no longer needed no_activate field.
16863 2007-03-07 Jackson Harper <jackson@ximian.com>
16865 * TreeView.cs: Implement owner draw tree nodes. And a couple more
16867 * DrawTreeNodeEventHandler.cs: Add
16868 * DrawTreeNodeEventArgs.cs: Correct default value.
16870 2007-03-07 Chris Toshok <toshok@ximian.com>
16872 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
16873 to be called before NativeWindow.WndProc. Put the HwndCreating
16874 magic there to hook up our Hwnd's to handles.
16876 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
16878 * DataGridView.cs: Comment out debug code.
16880 2007-03-07 Chris Toshok <toshok@ximian.com>
16882 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
16883 to make the rest of the world happy]
16885 * Control.cs (CreateHandle): there's no need to call
16886 XplatUI.SetVisible here, it's effectively done by
16887 XplatUI.CreateWindow on X now, and always was on windows.
16889 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
16890 shortcircuit out of the loop if we have a message loop running on
16893 [Changelog from merge]
16895 2007-03-05 Chris Toshok <toshok@ximian.com>
16897 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
16898 causes handle creation.
16900 2007-02-28 Chris Toshok <toshok@ximian.com>
16902 * ApplicationContext.cs: Add a flag to make sure we only raise the
16903 ThreadExit event once (ExitThreadCore can be indirectly called
16904 from a few places.) I don't like the additional flag, but it
16905 makes the event ordering/count correct.
16907 * Application.cs (MWFThread.LoopCount): don't use an enumerator
16908 without locking the collection. An enumerator doesn't give us any
16909 protection from modification anyway. Lock the thread hash and
16910 replace the complicated enumerator loop with a foreach.
16911 (Application.CloseForms): make internal so it can be called from
16912 ApplicationContext. This should probably be moved to MWFThread.
16913 (Application.ExitThread): don't call MWFThread.Current.Exit()
16914 here. just call XplatUI.PostQuitMessage. We'll exit the thread
16915 when the runloop exits (in response to WM_QUIT.)
16916 (Application.RunLoop): add a comment (and check) for
16917 context.MainForm being null after setting context.MainForm.Visible
16918 = true. This is because you're perfectly free to dispose of a
16919 form in VisibilityChanged. Chalk this up to another case where we
16920 need to synchronously generate WM_ACTIVATE from Control.Show.
16921 Also, add handling for WM_QUIT here so we'll exit the loop.
16923 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
16924 fact that we don't wait if we're only unmapping the whole_window
16925 makes me a bit nervous, but it doesn't seem to cause any problems
16928 also, add a comment about the stupid, broken and wrong resetting
16929 of PostQuitState to false in GetMessage().
16931 In PostQuitMessage, we need to add a WM_QUIT message to the
16932 thread's queue. We use the FosterParent to get the right
16935 Lastly, in SetVisible, we need to unmap both windows, since the
16936 waiting only happens when we're unmapping the client window. So
16937 now, the *only* time we unmap just the whole_window is in the hack
16938 for resizing a control to 0,0.
16940 2007-02-21 Chris Toshok <toshok@ximian.com>
16942 * Application.cs (CloseForms): rewrite this so that we don't
16943 modify the list while we're traversing it.
16945 2007-02-20 Chris Toshok <toshok@ximian.com>
16947 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
16948 of OnHandleCreated.
16949 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
16950 handle is created. otherwise we'll create it here.
16951 (VerticalScrollEvent): same here.
16953 * Application.cs (CloseForms): call Form.Dispose, don't post
16956 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
16957 here. Application should Dispose() of the Form's.
16959 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
16960 WM_DESTROY as well.
16961 (MapWindow,UnmapWindow): only actually do the waiting for
16962 SHOWWINDOW if the control we're dealing with is a Form.
16963 (CreateWindow): if the control isn't a form, SendMessage
16964 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
16966 * Control.cs (SetVisibleCore): always use is_visible here, not
16967 value. If we use value, we can end up re-setting something
16968 visible if, for instance, you do Control.Hide() in a delegate
16969 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
16971 2007-02-20 Chris Toshok <toshok@ximian.com>
16973 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
16974 the message we need. PeekMessage returning false should not be a
16975 condition under which we exit the loop.
16977 2007-02-15 Chris Toshok <toshok@ximian.com>
16979 * Control.cs (Refresh): only refresh if we've got a handle and are
16981 (CreateAccessibilityInstance): CreateControl() here.
16982 (UpdateChildrenZOrder): complicate the code loop even more by
16983 taking into account controls that haven't had their handle
16984 created, and those that aren't visible. But on the flip side,
16985 simplify the code by splitting it into two loops. one which
16986 builds up the list of child controls we're interested in, and the
16987 other that sets the z order of those children.
16989 2007-02-14 Chris Toshok <toshok@ximian.com>
16991 * Control.cs: Control.AccessibilityObject causes the control to be
16992 created, not just the handle.
16994 2007-02-14 Chris Toshok <toshok@ximian.com>
16996 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16997 problem on X where a window might have its handle created (and be
16998 visible) while the window is unmapped. calling XConfigureWindow
16999 on an unmapped window is bad, and generates X errors.
17001 2007-02-13 Chris Toshok <toshok@ximian.com>
17003 * Control.cs (CreateHandle): don't loop over our children setting
17004 their parent here. do it when in WndProc when we're shown.
17005 (UpdateChildrenZOrder): make this internal so we can call it from
17007 (WndProc): for WM_SHOWWINDOW, reparent the child control after
17008 creating its handle. Also, remove the calls to PerformLayout from
17009 here. they're done in ScrollableControl.OnVisibleChanged. Also,
17010 OnVisibleChanged only seems to be called directly here for the
17011 toplevel control. It's propagated down the window hierarchy by
17012 calls to child.OnParentVisibleChanged.
17013 (OnVisibleChanged): don't do layout here - it's done (oddly
17014 enough, according to a glance at stack traces on ms.net..) in
17017 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
17018 z order of our children before calling PerformLayout.
17020 2007-02-12 Chris Toshok <toshok@ximian.com>
17022 [big change, fixes #80020]
17024 * AccessibleObject.cs: we need to make owner internal again to fix
17025 some of ControlAccessibleObject.
17027 * Control.cs: lots of changes here. add support for WM_CREATE,
17028 for which we generate OnHandleCreated. Remove the OnHandleCreated
17029 call from CreateHandle. Also add support for WM_SHOWWINDOW where
17030 we create child controls. leave the MonoTODO's for the
17031 accessibility calls, but fix the exceptions so the tests pass.
17033 Add the InvalidOperationExceptions to Invoke methods, and remove a
17034 couple of InvokeInternal methods we aren't using.
17036 Also, add a couple of CreateHandle calls in places where we know
17037 the handles are being created but our code doesn't reference
17040 Make SetVisibleCore call OnVisibleChange if the handle isn't
17041 created. If the handle is created, we rely on XplatUI.SetVisible
17042 generating the event synchronously.
17044 Lastly, make sure we don't use this.Handle inside CreateHandle,
17045 because we can call back into client (and that code can dispose of
17048 * XplatUIStructs.cs: misc/cleanup.
17050 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
17051 although we don't populate the wParam properly.
17052 (CreateWindow): generate WM_CREATE.
17053 (MapWindow,UnmapWindow): make these calls synchronous, at great
17054 performance expense (particularly in the unmap case), to match
17057 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
17059 (set_MdiParent): don't recreate the handle unless it's been
17062 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
17065 * NativeWindow.cs: this is probably the weirdest part of the
17066 patch. We need a way to link up the window being created to the
17067 WM_CREATE message. Since we can only be creating one window at a
17068 time on a given thread, we keep track of a per-thread reference so
17069 we can dispatch it properly. We also need to keep track of the
17070 Hwnd currently being created so that the win32 backend doesn't
17073 * XplatUIWin32.cs: a similar change to the one we made in
17076 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
17078 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
17079 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
17080 to draw the menu shortcut string.
17082 2007-03-07 Jackson Harper <jackson@ximian.com>
17084 * TreeNode.cs: Add the 2.0 collapse method.
17086 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
17088 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
17090 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
17092 * DataGridView.cs: Change DataSource will clear column and row
17093 lists. Call Invalidate() to reflect DataSource change.
17095 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
17097 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
17098 and a new row is added to it.
17100 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
17102 * DataGridView.cs: Add columns when DataSource is en empty list but
17103 is a System.Data.DataView (from a System.Data.DataTable).
17105 2007-03-06 Andreia Gaita <avidigal@novell.com>
17107 * Label.cs: Implement AutoEllipsis (2.0)
17109 2007-03-06 Jackson Harper <jackson@ximian.com>
17111 * TreeView.cs: Implement 2.0 TopNode setter property.
17112 - Use a local var instead of the skipped_nodes field for computing
17113 how many nodes to skip. Otherwise we won't scroll because the
17114 valuechanged handler checks if skipped_nodes is equal to the new
17116 - Implement 2.0 Sort method.
17117 - Add useless 2.0 DoubleBuffer property
17118 - Implement 2.0 LineColors property. Lets you change the color of
17119 the lines in the tree. Terribly useful for creating non cohesive
17121 - Implement 2.0 image key feature.
17123 2007-03-06 Jackson Harper <jackson@ximian.com>
17125 * TreeView.cs: We can't get the bounds of the nodes before raising
17126 the AfterSelect event, because that event could change the node's
17127 bounds (scrolling, font change, etc).
17129 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17131 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
17132 * Form.cs: Don't recreate handle when creating FormWindowManager, just
17133 update window styles. In CreateParams us VisibleInternal instead of
17134 VIsible to get the actual visible flag set for this form.
17135 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
17136 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
17137 handle the case when the form is already maximized, in which case
17138 it should be restored. Fixes #81043.
17140 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17142 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
17144 2007-03-05 Jackson Harper <jackson@ximian.com>
17146 * TreeViewHitTestInfo.cs: implement.
17148 2007-03-05 Jackson Harper <jackson@ximian.com>
17150 * InternalWindowManager.cs: class status fix.
17152 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
17154 * InternalWindowManager.cs: All windows that have a parent
17155 are confined to their parent when they're being moved.
17158 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
17160 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
17161 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
17163 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17165 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
17166 buttons invisible before deciding which ones should be visible
17167 (fixes minimize/maximize buttons showing up in toolwindows). Remove
17168 an unused variable.
17169 * InternalWindowManager.cs: Remove warning.
17171 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17173 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
17174 to throw an InvalidOperationException is virtual mode is being used.
17176 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
17178 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
17179 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
17180 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
17181 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
17182 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
17183 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
17185 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17187 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
17188 driver.KeyboardDelay from XplatUI.KeyboardDelay
17189 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
17190 (patch by Sergey Volk)
17192 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17194 * ToolWindowManager.cs: Added, contains logic for
17196 * CreateParams.cs: Add a few helper methods and an
17197 internal variable to know which control the CreateParams belongs
17199 * Control.cs: Call Form.ChangingParent when the
17200 parent is about to be changed.
17201 * XplatUIX11.cs: DeriveStyles (): Set
17202 caption_height for all windows that have captions and are children.
17203 Update to use ToolWindowManager instead of InternalWindowManager
17205 * XplatUIWin32.cs: Set fake window styles for all
17206 windows that have window managers.
17207 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
17208 now duplicated for mdi windows when they are
17209 maximized, first for the buttons the window itself has, then for
17210 the buttons that appear in the menu bar. Makes things a little
17211 easier). Updated UpdateWindowDecorations, SetWindowState and the
17212 mouse eventhandlers accordingly.
17213 * Form.cs: Add ChangingParent (), contains the
17214 logic of what should happen when the parent changes. In MdiParent
17215 don't set things that ChangingParent () is doing. When handling
17216 WM_CLOSE, we can close the form if there are any other modal forms
17217 and the current form is a descendent of the modal form.
17218 * InternalWindowManager.cs: A lot of refactoring,
17219 the title buttons are now extracted to a separate container class
17220 that takes care of all button code (clicks, tooltips, etc). Moved
17221 Iconic|Maximized|Normal Bounds properties to this class from
17222 MdiWindowManager, so that the window state logic can succeed for
17223 other than mdi wm's. Implemented general window state change logic.
17224 Moved CreateButtons to ThemeWin32Classic, since the theme might
17225 override which buttons are available when as well as the exact
17227 * FormWindowManager.cs: Added, contains logic for
17229 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
17230 which buttons go where (and if they are at all visible).
17231 Removed special handling of maximized windows, since they aren't special.
17232 In DrawManagedWindowDecorations don't try to draw the text if it is
17234 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
17235 use whatever the wm gives us.
17237 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
17239 * ButtonBase.cs: Add 2.0 properties.
17240 * Button.cs: Override Draw for 2.0.
17241 * Control.cs: Add Entered and Selected properties.
17242 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
17243 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
17244 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
17246 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
17248 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
17250 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
17252 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
17254 * XplatUIWin32.cs: Register a new class with Windows each time we get
17255 a new ClassStyle. [Fixes bugs #79432, #80817]
17256 * Controls.cs: Set the correct ClassStyle in CreateParams.
17257 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
17259 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
17261 * ListView.cs: Add fireEvent argument to ReorderColumn since the
17262 ColumnReordered event must not be signaled when modifying DisplayIndex
17263 of a ColumnHeader. Added internal ReorderColumns method which takes
17264 care of drawing, and updating the internal DisplayIndex of the
17265 ColumnHeader. Added AddColumn method which is invoked from
17266 ColumnHeaderCollection when adding or inserting columns, and which
17267 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
17268 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
17269 Recalculated dispay indices after removing a ColumnHeader.
17270 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
17271 match MS. Allows last display index to be returned after ListView
17272 is disposed. Update actual location of ColumnHeader when DisplayIndex
17275 2007-03-01 Everaldo Canuto <everaldo@simios.org>
17277 * LinkLabel.cs: Improve CalcTrimRectangle.
17279 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
17281 2007-02-28 Everaldo Canuto <everaldo@simios.org>
17283 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
17284 get rectangle as a result value.
17286 2007-02-28 Everaldo Canuto <everaldo@simios.org>
17288 * LinkLabel.cs: Theres some diferences between rectangle return from
17289 MeasureCharacterRanges and the area used for DrawString to fix this
17290 CalcMeasurementFactor method was created, it calcules the diferences
17291 to be use later to adjust rectangle in draw operations. Fixes #80473.
17293 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
17294 to adjust draw rectangle.
17296 2007-02-27 Everaldo Canuto <everaldo@simios.org>
17298 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
17299 text and some other changes to reduce and optimize source code.
17301 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
17303 * RadioButton.cs: Implement 2.0 event.
17304 * RelatedImageListAttribute.cs: Implement new class.
17306 2007-02-27 Everaldo Canuto <everaldo@simios.org>
17308 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
17310 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
17312 * CheckBox.cs: Implement 2.0 functionality.
17314 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17316 * ListView.cs: Refactor Add and AddRange methods of
17317 ListViewItemCollection, to not update the ListView
17318 everytime an item is added in AddRange. Also move the update
17319 code to a new CollectionChanged method, and call it
17320 from other methods that need it as well (this should also fix some
17321 bugs when Sorting is used).
17323 2007-02-27 Jackson Harper <jackson@ximian.com>
17325 * TextControl.cs: Try to never let the caret stay in a non-text
17327 * TextBoxBase.cs: Update the caret.
17329 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
17331 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
17332 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
17333 delete POINT structure, duplicate of one in XplatUIStructs.
17334 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
17336 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
17338 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
17339 edit box since otherwise the Label would immediately be set (even if
17340 the user did not modify the label). In OnKeyDown set Handled to true
17341 if Return or Escape was pressed. In ColumnHeaderCollection unlink
17342 columns that are to be removed. In ListViewItemCollection unlink items
17343 that are to be removed.
17345 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
17347 * TextRenderer.cs: If we set a GDI clip region, we need to clear
17348 it when we are done. [Fixes bug #80949]
17350 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17352 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
17354 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17356 * ListView.cs: I forgot to commit the changes for ListView
17357 in my previous patch.
17359 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17361 * Clipboard.cs: Partially implement an overload of SetDataObject.
17362 * Form.cs: Implement ShowWithoutActivation.
17363 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
17365 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17367 This is a first set of changes to make the Virtual mode works,
17368 by avoiding the retrieval of ListViewItem instances until
17371 * ListView.cs: Store item position in the ListView instead of the
17372 ListViewItem, this way we don't request the Bounds property of
17373 ListViewItem inside the ListView calculations, as well as cache the item
17374 size in item_size field. Store indexes instead of ListViewItem
17375 instances in the matrix used by icon view. Add a ItemMatrixLocation
17376 struct to hold the row and col info of the matrix info.
17378 * ListViewItem.cs: Don't store the location anymore, and only cache
17379 the rectangles for GetBounds. Use the ListView.GetItemLocation
17380 method to retrieve the actual location.
17382 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17384 * TextRenderer.cs: Add clipping support, thanks to George.
17387 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
17389 * ListViewItem.cs: Cancel label edit when item is removed from
17391 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
17392 event before the edit textbox is displayed. Added CancelEdit method
17393 which is used end to editing while ignoring the value set by the
17394 user. In EndEdit, set focus to ListView to avoid losing focus to
17395 other controls. In ListViewItemCollection.Clear, cancel editing of
17396 any of the items. In Remove, cancel editing of item being removed.
17397 Avoid udplicate code by modifing RemoveAt to invoke Remove.
17399 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
17401 * FileDialog.cs: Update FSEntry when move is successful. Fixes
17404 2007-02-23 Everaldo Canuto <everaldo@simios.org>
17406 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
17407 compatible with non X11 systems. Fixes #80901.
17409 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
17411 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
17412 whether the item should be unselected and reselect. We do no want this
17413 when we're starting to edit the label. Do not fire the
17414 SelectedIndexChanged event from ListView when its already been fired
17415 by modifying ListViewItem.Selected. Fixes bug #80943.
17417 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17419 * TextRenderer.cs: Previos commit logic was backwards.
17421 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17423 * TextRenderer.cs: Don't add padding on MeasureText if we were
17424 sent the NoPadding flag.
17426 2007-02-23 Everaldo Canuto <everaldo@simios.org>
17428 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
17429 after DrawButton. To prevent image overlaps button borders SetClip and
17430 ResetClip added before and after draw image. Fixes #79129.
17432 2007-02-23 Everaldo Canuto <everaldo@simios.org>
17434 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
17435 window size, it fix problem when you run under win32 that theres
17436 Size diferent than ClientSize. Also fix controls size and positions
17437 to mimic Win32. Fixes #80837.
17439 2007-02-22 Everaldo Canuto <everaldo@simios.org>
17441 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
17442 menu area to fix some problems for non X11 systems. Fixes #80613.
17444 2007-02-22 Jackson Harper <jackson@ximian.com>
17446 * TreeNode.cs: When a node is expanded, set its is_expanded flag
17447 even if it doesn't have any children.
17449 2007-02-22 Jackson Harper <jackson@ximian.com>
17451 * TreeView.cs: Calculate the top node 'on the fly', this
17452 eliminates issues where you need to click on the tree before
17453 scrolling it to get the top node computed correctly.
17454 * TreeNodeCollection.cs: We don't need to mess with the top node
17457 2007-02-22 Jackson Harper <jackson@ximian.com>
17459 * DataGridViewRow.cs: Fix typo so height can actually be set.
17460 Patch by Peter Grimm.
17462 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
17464 * FileDialog.cs: Fixed support for renaming files and directories.
17465 * ListView.cs: Do not lose focus when edit is canceled. Process
17466 Escape as regular key (to prevent closing of dialogs).
17468 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
17470 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
17471 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
17473 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
17475 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
17476 did not modify label.
17477 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
17478 modified the text. Reset Label when user presses Escape in edit mode.
17479 Move focus to ListView after having cancelled or finished editing the
17482 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
17484 * ComboBox.cs: Removed unnecessary initializations. Marked items field
17485 private. Clear textbox when Text is set to null and SelectedIndex is
17487 * FileDialog.cs: Removed unnecessary initializations. Removed
17488 workarounds for ComboBox bugs that are now fixed. Modified
17489 DefaultExt, InitialDirectory and Title property to change null to
17490 zero-length string in getters. Avoid directly accessing fields.
17492 2007-02-20 Jackson Harper <jackson@ximian.com>
17494 * TextControl.cs: Remove RecalAlignments call, that was some
17495 debugging leftovers.
17496 - Don't use the line indent when we shouldn't.
17497 * RichTextBox.cs: Add support for paragraph left indents.
17499 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
17501 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
17502 Seems like the class status pages doesn't catch params differences.
17504 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
17506 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
17508 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
17510 * ComboBox.cs: Setting Text should have no effect if item text of
17511 selected item exactly matches value. First lookup text using
17512 case-sensitive comparison, and fallback to case-insensitive comparison.
17513 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
17514 allow startIndex to be last index. Changed ArgumentOutOfRangeException
17515 paramname to match MS. Restart from first item if string is not found
17516 after startIndex. Fixed paramname of ArgumentNullException that is
17517 thrown for null value in ObjectCollection.Contains.
17519 2007-02-19 Everaldo Canuto <everaldo@simios.org>
17521 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
17523 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17525 * ListControl.cs: In SelectedValue use value.Equals to compare for
17526 equality instead of ==, otherwise it will fail for strings.
17529 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17531 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
17532 since the caret won't show up unless ShowSelection is true.
17535 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17537 * Application.cs: When disabling all forms but the main form, do not
17538 disable any descendants of the main form (such as mdi children or
17539 other parented forms). Fixes #80822 on Windows.
17540 * Form.cs: If we have a parent, set the WS_CHILD style.
17541 * Control.cs: Update the window styles if the control whose parent has
17542 changed is a form (the WS_CHILD style has to be switched).
17544 2007-02-19 Everaldo Canuto <everaldo@simios.org>
17546 * XplatUIStructs.cs: MsgUIState structure added.
17548 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
17550 * FileDialog.cs: Removed need for separate fileName field. On 2.0
17551 profile, do not check filename(s) for illegal character if filename(s)
17552 were set non-interactively but always check on 1.0 profile. Fixed NRE
17553 in DefaultExt and only strip off first leading dot. Improve exception
17554 message when invalid Filter is set. Do not ignore InitialDirectory if
17555 it does no exist. Store specified Title, and if empty use default
17556 title (depending on type of dialog). Added an internal DialogTitle
17557 property for retrieving dialog title. Fixed logic of displayed dir to
17558 more closely match MS. Avoid setting ComboBox.Text to a zero-length
17559 string as its buggy.
17560 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
17561 FileName is a zero-length string (it can never be null). Override
17562 DialogTitle property to set default title of dialog box.
17563 * SaveFileDialog.cs: Override DialogTitle property to set default
17564 title of dialog box.
17566 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
17568 * FileDialog.cs: Modify default text of filename and filetype labels
17569 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
17570 after we've updated the SelectedIndex. Fixes part of bug #80887.
17571 * SaveFileDialog.cs: Set text of filetype label.
17573 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17575 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
17576 label field. Needed by latest Jackson's fixes for ListView.
17578 2007-02-16 Andreia Gaita <avidigal@novell.com>
17580 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
17581 print preview images.
17583 2007-02-16 Jackson Harper <jackson@ximian.com>
17585 * ListView.cs: Make AfterLabelEdit work correctly.
17586 * FileDialog.cs: After changing the name of the folder, we have to
17587 make sure that it is created, or that we pop up an error because
17590 2007-02-16 Jackson Harper <jackson@ximian.com>
17592 * X11Dnd.cs: Implement aliases on mime handlers, so things like
17593 System.String are mapped to text.
17594 - Handle dataobjects, getting all the possible formats out of them
17595 - We dont need the drag event args before we give feedback. This
17596 allows feedback cursors to be immediate before selections have
17599 2007-02-16 Jackson Harper <jackson@ximian.com>
17601 * TextBoxBase.cs: Modified the method for inserting images to
17602 taking a line and position instead of tag and position.
17603 * RichTextBox.cs: Handle PngBlip data by inserting the png image
17605 * TextControl.cs: Allow images to be inserted as the first tag of
17607 - Fix some off by one issues when we assume the first tag is a
17608 text tag, not an image tag.
17610 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17612 * ListView.cs: Set focus to ListView when ItemControl gets a
17613 WM_RBUTTONDOWN message, to mimic .Net behaviour.
17614 Fixes part of #80467.
17616 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17618 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
17619 validate Text input (if null or empty string reset Value to default
17620 value). Fixes #80830.
17622 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17624 * ListView.cs: Set owner as null for columns and items when
17625 Dispose is invoked. Fixes #80607.
17627 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
17629 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
17630 showing DropDowns, don't show a Grip when doing Flow layout.
17631 [This fixes the toolbox in PDN 2.72.]
17632 * ToolStripItem.cs: Add Anchor property and some internal properties to
17633 reduces needed changes to FlowLayout.
17634 * ToolStripOverflow.cs: Remove unused variable.
17635 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
17636 use it in the layout calculations.
17638 2007-02-13 Everaldo Canuto <everaldo@simios.org>
17640 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
17641 reported in #79640.
17643 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
17646 2007-02-13 Everaldo Canuto <everaldo@simios.org>
17648 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
17649 MeasureString format, it can make button very large in some cases, it is
17650 strange but is what win32 do.
17652 2007-02-13 Everaldo Canuto <everaldo@simios.org>
17654 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
17657 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
17658 rendering, the value is based on MenuAccessKeysUnderlined.
17660 2007-02-13 Everaldo Canuto <everaldo@simios.org>
17662 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
17665 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
17667 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
17668 and use MenuAccessKeysUnderlined instead.
17670 2007-02-13 Andreia Gaita <avidigal@novell.com>
17672 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
17673 A selected control would not get a Focus call if:
17674 - the default active control of the container is the same as
17675 the one that was selected
17676 - we are switching from one container to another
17677 Under these conditions, the container being selected already has
17678 an active_control, which is the same as the one being activated,
17679 so set_ActiveControl would always return and not send the Focus
17680 call. Fix to check if the currently active control of the container
17681 is actually focused.
17683 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
17685 * StatusStrip.cs: Implement the spring layout.
17686 * ToolStripControlHost.cs: Make sure the hosted control's visibility
17687 always matches the host.
17688 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
17689 and TextAfterImage.
17691 2007-02-13 Andreia Gaita <avidigal@novell.com>
17693 * Control.cs: Code reorganization only.
17694 - Reorganize the WndProc cases so that each case has it's own handling method,
17695 to help with the no-line-numbering stack traces.
17696 - Formatting changes (it's vstudio's fault, really :p)
17698 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17700 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
17701 Thread.CurrentUICulture to match DateTimePicker's (and MS)
17704 2007-02-12 Jackson Harper <jackson@ximian.com>
17707 * TextBox.cs: By default we have a non multiline document
17708 - use the multiline property instead of the internal variable
17709 * TextBoxBase.cs: Treat multiline and non multiline the same in
17711 - Use the documents multiline flag instead of tracking it ourself
17712 * TextControl.cs: Attempt at getting multiline to match MS
17713 behavior. Lines now track an offset, which is either their X or Y
17714 offset depending on whether or not we are in multiline mode.
17715 - Update all the methods to understand that lines have an X value.
17716 - Fix crash in Undo::Duplicate when empty lines are deleted.
17718 2007-02-12 Everaldo Canuto <everaldo@simios.org>
17720 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
17721 code moved to properties PreferredHeight and PreferredWidth. It solve the
17722 all problems when preferred sizes must be recalculated. Fixes #80801.
17724 2007-02-12 Everaldo Canuto <everaldo@simios.org>
17726 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
17727 font height when compatible_text_rendering is false. Partially fix #80801.
17729 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
17731 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
17733 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
17735 * Form.cs: Improved exception messages in ShowDialog.
17737 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
17739 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
17740 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
17741 if not set. Fixes bug #80764. Avoid accessing current_settings field
17744 2007-02-08 Everaldo Canuto <everaldo@simios.org>
17746 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
17749 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
17750 public in 2.0 and for easy maintenance and dont break compatibility it is
17753 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
17755 * ToolStripItem.cs: Implement using images from ImageList.
17757 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
17759 * DateTimePicker.cs: Change default date-formatting culture from
17760 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
17761 seems to be the way MS does it.
17763 2007-02-08 Andreia Gaita <avidigal@novell.com>
17765 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
17766 (the 6 was cut off on the right side)
17768 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
17770 * Form.cs: Tell MenuStrips to close when the form is clicked.
17771 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
17772 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
17773 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
17774 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
17775 support for Overflow, where items that do not fit are automatically
17776 reparented to a drop down menu.
17777 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
17778 Also: fixes bug #80747.
17780 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
17782 * ComboBox.cs: Remove warning (unused code).
17783 * ScrollableControl.cs: Remove warning for 1.1 profile.
17785 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
17787 * Form.cs: Remove a warning.
17789 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
17791 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
17792 'g' specifier, not documented anywhere, but seems to always show up
17793 as a single space (might have something to do with the DateTime 'g'
17794 specifier, which is the era format, but since DateTimePicker can't
17795 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
17796 won't crash if the format has an unmatched quote. Now shows
17797 single-character formats correctly. Fixes #80744.
17799 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
17801 * StatusStrip.cs: Stretch property needs to call base.Stretch,
17802 not this.Stretch to fix stack overflow. [Fixes bug #80760]
17804 2007-02-07 Chris Toshok <toshok@ximian.com>
17806 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
17807 background color. it overwrites the background image we've
17808 already painted. Fixes #80599.
17810 2007-02-07 Chris Toshok <toshok@ximian.com>
17812 * DataGrid.cs: return immediately from Edit() when there are no
17813 columns. Fixes #80662.
17815 2007-02-07 Chris Toshok <toshok@ximian.com>
17817 * MessageBox.cs: fix #80625. don't always show the Help button in
17818 2.0. use the displayHelpButton parameter to determine if we
17819 should show it. Also, make the internal show_help field private.
17821 2007-02-07 Chris Toshok <toshok@ximian.com>
17823 * Control.cs (SetVisibleCore): check in the proposed patch for
17824 80604, and set is_visible before calling CreateControl.
17826 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
17828 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
17829 MonoInternalNote. This is added automagically by VS2005, so let's not crash
17832 2007-02-06 Everaldo Canuto <everaldo@simios.org>
17834 * MenuAPI.cs: hotkey_active internal field added, it is required because
17835 we need to know when hotkeys must be draw, before this change a keystate
17836 Navigating was used but we can have menu in navigating state without
17837 hotkeys. Fixes #80694.
17839 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
17841 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17843 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
17844 corresponding events and methods to be internal for 1.1 profile and
17845 public for 2.0 profile (required by SizeGrip).
17846 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
17847 implicit control list). Don't set the size nor the location of the
17848 SizeGrip anymore as it's not needed.
17849 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
17850 draw directly on the captured control (fixes #80656). Removed
17851 ShowGrip (it wasn't used anywhere), redraw (always true), added
17852 GetDefaultSize and GetDefaultRectangle to calculate defaults.
17853 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
17854 be called from SizeGrip.
17856 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17858 * Timer.cs: Throw ArgumentException if Interval <= 0.
17860 2007-02-05 Jackson Harper <jackson@ximian.com>
17862 * TreeView.cs: We need to check scrollbar visibility when window
17863 visibility is updated, because non visible trees don't ever add
17865 * Cursor.cs: We want the override cursor to be reset to NULL when
17866 we set current cursor to the default cursor.
17868 2007-02-05 Jackson Harper <jackson@ximian.com>
17870 * TextControl.cs: Don't have crlfs when we are non multiline.
17871 - Consolidate the line position.
17873 2007-02-05 Jackson Harper <jackson@ximian.com>
17875 * X11Keyboard.cs: BACK+CTRL gets a special char code.
17877 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17879 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
17880 handling LeaveNotify->NotifyUngrab in order to send
17881 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
17882 after calling XUngrabPointer, so we call WindowUngrabbed directly
17883 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
17884 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
17885 MouseCaptureChanged correctly. Also create handles if changing
17886 Capture (matches MS behaviour).
17888 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17890 * SizeGrip.cs: Make the last change 2.0 only.
17892 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17894 * SizeGrip.cs: If resizing and the capture is lost, revert any size
17895 changes to initial size (fixes #80597).
17897 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17899 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
17901 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17903 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
17904 background) and only allow dragging if enabled. This way the
17905 sizegrip can be used to fill the open square that otherwise would
17906 have been shown in the bottom right corner of ScrollableControl
17907 when ScrollableControl is not suppose to support sizing.
17908 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
17909 sizegrip is shown and enabled, and hook up with necessary events.
17911 2007-02-01 Chris Toshok <toshok@ximian.com>
17913 * DataGridTextBoxColumn.cs: clean up the
17914 GetFormattedString/GetColumnValueAtRow combination of functions.
17915 Also fix UpdateUI, and the initial state of
17916 IsInEditOrNavigateMode.
17918 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
17919 aren't supposed to scroll the textbox here, we're supposed to
17920 scroll the datagrid.
17922 2007-02-01 Chris Toshok <toshok@ximian.com>
17924 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
17925 setting the position.
17927 2007-02-01 Chris Toshok <toshok@ximian.com>
17929 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
17930 here, since the most recent focus fixes keep us from generating
17931 the Leave event when our textbox gets focus.
17932 (Edit): we should be passing null for the column style's
17933 instantText parameter.
17935 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
17937 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
17938 raised. Fixes menu text/icons not showing up in PDN.
17940 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
17942 * Control.cs: Remove code in constructor that makes every
17943 control with WS_CHILD set have initial location -1, -1.
17945 2007-01-31 Jackson Harper <jackson@ximian.com>
17947 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
17949 * XplatUIX11.cs: Give teh keyboard to teh dnd.
17951 2007-01-31 Jackson Harper <jackson@ximian.com>
17953 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
17954 - Remove some debug code.
17956 2007-01-31 Jackson Harper <jackson@ximian.com>
17958 * XplatUIX11.cs: If you set the override cursor during a grab, it
17959 should actually override the grab cursor. This comes into play
17960 when you are setting custom cursors in a DND feedback method.
17962 2007-01-31 Jackson Harper <jackson@ximian.com>
17964 * X11Dnd.cs: Add support for handling the QueryContinue and
17965 GiveFeedback events.
17966 - Cancel drag and drop actions when the escape key is clicked.
17967 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
17968 can handle the ESCAPE key.
17969 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
17970 done when dnd events are continued after the button is released.
17971 - Add a new helper method so that dnd can translate key events.
17973 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
17975 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
17976 make it more obvious what is happening.
17978 2007-01-30 Jackson Harper <jackson@ximian.com>
17980 * XplatUIX11.cs: Don't break when handling button release in drag
17981 and drop operations. We need that BUTTONUP message to get through
17982 so capture is released.
17983 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17984 this is handled automatically when the mouse is down.
17986 2007-01-30 Jackson Harper <jackson@ximian.com>
17988 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17989 is closed, so we need to make sure that we aren't changing the
17990 dialog result when the OK (Open or Save) button has been clicked
17991 and we are closing the window ourselves. Note we don't need to
17992 worry about the cache being written in this case, because it was
17993 already done in the previous FilOk call.
17995 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
17997 * DateTimePicker.cs: Remove a warning.
17998 * ComboBox.cs: Remove a couple of warnings.
18000 2007-01-29 Chris Toshok <toshok@ximian.com>
18002 * XplatUIX11.cs: don't crash, and remove the icon if the user has
18003 set one, if SetIcon is passed a null icon.
18005 2007-01-29 Andreia Gaita <avidigal@novell.com>
18007 * TextBox.cs: Redraw when the password characters changes
18008 * TextControl.cs: Check if textbox has a password char and draw
18009 a line of password chars instead of the text in the line. LineTag gets
18010 an extra Draw() method which allows document.Draw to override the text
18011 that will be drawn. Removes 1024 char limitation on length of passworded
18014 2007-01-29 Jackson Harper <jackson@ximian.com>
18016 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
18017 single chars is not.
18019 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
18021 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
18022 one pixel. Fix a StackOverflowException caused by an overload wrongly
18025 2007-01-26 Everaldo Canuto <everaldo@simios.org>
18027 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
18028 also remove ProcessArrowKey and put the code inside ProcessKeys.
18030 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
18032 * PaddingConverter.cs: Added.
18034 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
18036 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
18037 ShowPanels is false (fixes #80600). Only draw up to 127 characters
18038 of text (fixes #80601). For panels clip the text to draw to the
18039 panel (fixes #80603).
18041 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
18043 * ComboBox.cs: Fixed implementation of ResetText.
18045 2007-01-25 Jackson Harper <jackson@ximian.com>
18047 * TextControl.cs: For the last char of a line we need to use the
18048 line size, not that chars width, since it won't actually be
18049 computed since the right side of a char is based on the start of
18050 the left side of the next char, and the next char does not exist.
18052 2007-01-25 Chris Toshok <toshok@ximian.com>
18054 * Splitter.cs: fix the new unit tests, and reindent some switch
18057 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
18059 * ComboBox.cs: Implemented 2.0 methods and events.
18060 * TextBoxBase.cs: Added OnTextUpdate, so that
18061 ComboBox.ComboTextBox can inform ComboBox of it.
18063 2007-01-25 Jackson Harper <jackson@ximian.com>
18065 * TextControl.cs: Respect ShowSelection when deciding whether or
18066 not to display the caret, this allows comboboxes to have carets
18067 when the combotextbox does not have focus.
18069 2007-01-25 Jackson Harper <jackson@ximian.com>
18071 * TextControl.cs: Add a Suspend/Resume for updating, basically the
18072 same as the Suspend/Resume for recalc, except this will do actual
18074 - New Undo manager, works much like the MS version.
18076 * TextBoxBase.cs: The Cut operation is undoable.
18078 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
18080 * TextBoxBase.cs: Don't antialias text. Makes it look way better
18081 on Windows (no difference on Linux).
18083 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
18085 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
18086 we don't want to activate any windows. Fixes #79433.
18088 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
18090 - ButtonBase.cs: Fix capitalization of parameter: disposing.
18093 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
18096 - Move to using System.ComponentModel.EventHandlerList
18097 - Replace Refresh with Invalidate
18098 - Clear the mime filecache on closing
18099 - Some other memory reducing work. After beeing closed FD now uses
18100 only about 300 KB for the fdo mime stuff plus the memory of the
18102 * Mime.cs: Changed coding style and removed unnecessary commented
18103 code. Some more memory memory reducing work.
18105 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
18107 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
18108 a few other missing 2.0 properties.
18109 * Theme.cs: Added DrawFlatStyleComboBox.
18110 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
18112 2007-01-24 Chris Toshok <toshok@ximian.com>
18114 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
18115 wake_waiting flag, not just when there's data to be read. if we
18116 don't, then future wakeup's won't reach us and we'll be doomed to
18117 wait for the entire 1 second timeout forever (unless there are X
18120 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
18122 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
18123 until you pass Items.Count, not Items.Count - 1 like 1.1.
18125 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
18127 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
18129 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
18131 * ToolStripContainer.cs: The recent Dock fix exposed that I was
18132 adding the panels in the wrong order.
18134 2007-01-24 Jackson Harper <jackson@ximian.com>
18136 * TextBoxBase.cs: When we move the caret we also need to move the
18137 selection, this fixes some random crashing after doing select
18138 text, unselect, delete a char, paste.
18140 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
18142 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
18144 2007-01-23 Everaldo Canuto <everaldo@simios.org>
18146 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
18147 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
18148 * ToolBar.cs: Force redraw in BackgroundImageChanged.
18150 2007-01-23 Everaldo Canuto <everaldo@simios.org>
18153 - Implement support for vertical toolbars. Fixes #80539;
18154 - Call LayoutToolBar when resize, it fix some other problems in layout.
18155 - Rename requested_height to requested_size, as we can have width on it
18156 when toolbar is vertical.
18157 - Create a private property "Vertical" that uses Dock to verify when
18158 toolbar is vertical or not.
18159 - Set ControlStyles when change Dock property.
18160 - Refactory in LayoutToolBar to have better variables names and to support
18162 - Fixes default value for ButtonSize when button count is equal zero, size
18163 must be (39, 36) test case writed.
18165 2007-01-23 Chris Toshok <toshok@ximian.com>
18167 * Control.cs: fix the checks so that they work correctly for mdi
18170 2007-01-23 Chris Toshok <toshok@ximian.com>
18172 * Control.cs: ControlCollection seems to have super-secret
18173 abstraction breaking knowledge of Mdi containers. allow MdiClient
18174 to add toplevel controls.
18176 2007-01-23 Chris Toshok <toshok@ximian.com>
18178 * Control.cs: throw an ArgumentException if a toplevel control is
18179 added to our control collection from ControlCollection.Add, as
18180 well as from ControlCollection.IList.Add. This fixes the
18181 ControlSetTopLevelTest.TestTopLevelAdd unit test.
18183 Also, in ControlCollection.IList.Add, don't through an
18184 ArgumentNullException, throw an ArgumentException, when value ==
18185 null. This matches MS.
18187 2007-01-23 Chris Toshok <toshok@ximian.com>
18189 * BindingSource.cs: initial, incomplete, implementation of
18192 2007-01-23 Jackson Harper <jackson@ximian.com>
18195 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
18196 that I can fix a broken unit test (TextBoxTest::ClearUndo)
18198 2007-01-23 Everaldo Canuto <everaldo@simios.org>
18200 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
18202 2007-01-23 Andreia Gaita <avidigal@novell.com>
18204 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
18205 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
18206 IndexOfKey() for 2.0
18208 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18210 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
18211 to prevent it from changing z-order.
18212 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
18213 leave UI updates in MdiWindowManager.
18214 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
18215 1 sized (NC handling goes weird on Linux otherwise).
18216 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
18217 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
18218 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
18219 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
18220 and SetWindowState(s) to allow for changing the size of an activated child
18221 before activating it (reduces a lot of flicker).
18223 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
18225 * Form.cs: Changing FormBorderStyle has different semantics based
18226 on whether the Form is visible or not. If not visible, don't change
18227 the Size. But InvalidateNC needs to be called to force the window
18228 to pick up the changes and redraw itself. [Fixes bug #80574]
18230 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
18233 * ContainerControl.cs: ProcessCmdKey.
18234 * ErrorProvider.cs: new constructor.
18235 * Form.cs: fix AutoValidateEvent compiler warning.
18236 * Label.cs: fix OnAutoSizeChanged compiler warning.
18237 * MenuStrip.cs: fix CanOverflow compiler warning.
18238 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
18239 * TextBox.cs: Dispose.
18240 * ToolStrip.cs: CanOverflow, re-enable double buffering.
18241 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
18242 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
18243 * ToolStripItem.cs: Overflow, RightToLeft properties.
18245 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
18247 * Form.cs: Move the layout of the main form to MdiWindowManager.
18248 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
18249 do a layout of the main window to update MdiClient's client area to
18250 the right area. Fixes #80533. Remove the calculation of nc size,
18251 it was just wrong and the correct one is the same as for
18252 InternalWindowManager.
18254 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
18256 * Control.cs: Setting Anchor or Dock needs to reset the other
18257 to its default. [Fixes bug #80556]
18259 2007-01-20 Chris Toshok <toshok@ximian.com>
18261 * CheckedListBox.cs: class status changes.
18263 * ScrollableControl.cs: same.
18265 * RichTextBox.cs: same.
18267 * ContainerControl.cs: same.
18269 * ListView.cs: same.
18271 * NotifyIcon.cs: same.
18273 * MenuStrip.cs: same.
18275 * RadioButton.cs: same.
18277 * CheckBox.cs: same.
18279 * PrintPreviewDialog.cs: same.
18283 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
18285 * TreeNode.cs: Apply Alan's patch for Name property.
18287 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
18289 * Form.cs: Implemented SizeGripStyle.
18290 * SizeGrip.cs: Check for minimum and maximum size for the
18291 control being resized and only resize if size has actually
18294 2007-01-19 Chris Toshok <toshok@ximian.com>
18296 * DataGridColumnStyle.cs: stop setting _readonly in the
18297 PropertyDescriptor setter. fixes a unit test failure.
18299 also, rename ParentReadOnly to TableStyleReadOnly, and have it
18300 just consult our table style (if we have one). We don't need to
18301 consult the datagrid readonly attribute because that's passed in
18302 as the _ro arg to Edit. this simplifies things a little.
18304 * DataGrid.cs: use CurrentColumn instead of
18305 current_cell.ColumnNumber just to simplify some of the code.
18307 switch the order of some things in the CurrentCell setter to keep
18308 the previous cell from getting a textbox again -
18309 EnsureCellVisibility causes scrolling to happen, which calls Edit.
18310 So we need to set the new cell before calling it.
18312 call Edit in OnEnter, as does Microsoft.
18314 also, make sure the current table style isn't the one we create
18315 initially when checking to see if it's different than the one
18316 we're setting it to in BindColumns (this fixes #80421).
18318 * GridTableStylesCollection.cs: table styles can have "" for a
18319 mapping name. part of the fix for #80421.
18321 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
18322 Edit significantly.
18324 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18326 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
18327 and less GDI object leaky-er.
18329 2007-01-18 Andreia Gaita <avidigal@novell.com>
18331 * LinkLabel.cs: Add opaque control style
18333 2007-01-18 Jackson Harper <jackson@ximian.com>
18335 * TextControl.cs: Calculate width properly.
18336 - Don't store the tag's X offset, this can be figured out very
18338 - When getting the caret tag make sure to get the last empty tag.
18340 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18342 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
18345 * Control.cs: Color.Empty shouldn't count for previous transparent
18348 2007-01-18 Jackson Harper <jackson@ximian.com>
18352 * TextControl.cs: Starting to merge in some pieces of my older
18353 undo work. Basically just some slight cleanup of the undo API.
18355 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
18357 * TrackBar.cs: Fix signature of RightToLeftLayout.
18358 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
18359 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
18360 * Application.cs: Implemented UseWaitCursor.
18362 2007-01-18 Jackson Harper <jackson@ximian.com>
18364 * TextControl.cs: We can't skip tags if any part of the tag is
18367 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18369 * ContainerControl.cs: Override OnLayout.
18371 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18373 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
18375 * ContextMenuStrip.cs: Make sure context menu is shown on top of
18378 2007-01-18 Chris Toshok <toshok@ximian.com>
18380 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
18381 (leftover from the container_selected days, I'd wager). fixes bug
18384 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18386 * Control.cs: Apply patch from George to fix the new testcase on
18387 bug #80451. We can't just check for Color.Transparent, we need
18388 to check if the back color's alpha channel is < 255.
18390 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18392 * Form.cs: Move setting show_icon = true to before the constructor
18393 so that the base constructor has that information when it calculates
18394 the form's size. Was causing forms to be (6, 6) bigger than they
18395 were supposed to be. Thanks for catching this Rolf!
18397 2007-01-18 Jackson Harper <jackson@ximian.com>
18399 * TextControl.cs: When replacing a selection we need to invalidate
18400 from the initial selection start, because selection start is moved
18401 to the end of the replacement.
18403 2007-01-18 Andreia Gaita <avidigal@novell.com>
18405 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
18407 2007-01-18 Chris Toshok <toshok@ximian.com>
18409 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
18412 2007-01-17 Everaldo Canuto <everaldo@simios.org>
18414 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
18415 layout methods and properties from ToolBarButton must be available
18416 into ToolBarButtonInfo.
18418 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
18420 * Control.cs: If the control has a transparent background, we
18421 need to refresh it when it moves and when it's parent's background
18422 image changes. [Fixes bug #80451]
18424 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
18426 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
18428 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
18430 * XplatUIWin32.cs: Implement proper double buffering for Windows.
18431 [Fixes bug #80447, and probably speeds up things as well]
18433 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18435 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
18436 * XplatUIWin32.cs: We need to recalculate NC size after changing
18437 window style to toolwindow (otherwise the client rectangle will be
18438 3 pixels to small for some reason).
18439 * MdiWindowManager.cs: Revert NC size calculations to match how
18440 they are calculated only based on window styles (to match
18441 Win32AdjustWindowRectEx, since otherwise when setting size or
18442 location, Control will call Win32AdjustWindowRectEx to update client
18443 size, which would provoke a paint, then we'd get a NCCALCSIZE and
18444 calculate a different value of client size causing another paint
18446 * InternalWindowManager.cs: When moving or resizing a window only
18447 update size or location if they actually changed.
18448 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
18449 (seems to match Windows behaviour better). Cleaned up
18450 ManagedWindowDecorations to draw what's needed and nothing else
18451 (was drawing borders and lines where they shouldn't be)
18452 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
18453 (style = 0xFFFF) and takes into account caption height when
18454 calculating window rectangle.
18456 2007-01-16 Everaldo Canuto <everaldo@simios.org>
18458 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
18459 can be added to toolbar multiple times, we need to maintain a list of
18460 button information for each positions.
18462 2007-01-16 Everaldo Canuto <everaldo@simios.org>
18464 * ToolBar.cs: Some small stetic changes.
18466 2007-01-16 Jackson Harper <jackson@ximian.com>
18468 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
18469 that allow us to have nested recalc = false blocks.
18470 - Add paste support for images in the RichTextBox
18471 * RichTextBox.cs: flush the text after the color is changed, so
18472 the change takes effect.
18473 - Use SuspendRecalc
18474 - Some extra debugging info
18475 * TextControl.cs: Tags no longer track their length, it is just
18476 computed from the next tags length, this makes things a little
18477 simpler and reduces places that we have to track length changes.
18478 - Refactored the linetag class a little so we could make it
18479 a base class for different kinds of tags
18480 - Created a image tag, a tag that can have a single image inserted
18482 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
18483 that we can call suspend multiple times.
18484 - Add some debugging methods
18486 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18488 * MdiClient.cs: Add ActivatePreviousChild for
18489 mdi child window navigation.
18490 * Form.cs: Use MdiClient.ActivateNextChild/
18491 ActivatePreviousChild instead of Form.SelectNextControl
18492 to select the next/previous child since
18493 SelectNextControl doesn't do it in the same order
18494 as mdi children should do it.
18496 2007-01-16 Chris Toshok <toshok@ximian.com>
18498 * Control.cs: remove container_selected field.
18500 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18502 * MdiClient.cs: Update main form's ActiveChild when
18503 updating keyboard focus for the mdi child.
18505 2007-01-16 Jonathan Pobst <jpobst@novell.com>
18507 * Control.cs: PreferredSize fix.
18509 * Form.cs: Add several 2.0 events, properties, and methods.
18511 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
18513 * Form.cs: Provide meaningful message when MdiParent is assigned a
18514 Form that is not an MdiContainer.
18516 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18518 * MdiClient.cs: Update main form's ActiveChild when
18519 activating a mdi child.
18521 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18523 * MdiWindowManager.cs: Fix NRE when merging menus and main form
18524 doesn't have a menu.
18526 * Form.cs: Request NCRecalc after creating a mdi child window.
18527 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
18528 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
18530 * MdiClient.cs: Add new method SendFocusToActiveChild that either
18531 sends keyboard focus to the active child, or to the MdiClient
18532 if there are no child forms.
18534 2007-01-15 Chris Toshok <toshok@ximian.com>
18536 * ListView.cs: drop the *Internal overrides, just do our work in
18537 ItemControl's WndProc instead.
18539 * UpDownBase.cs: a few large changes. Fix up the Selectable state
18540 of the various controls, and forward the events properly (in the
18541 same manner as MS) from the textbox to the UpDown. Also the
18542 ActiveControl of the UpDownBase gets set properly now. Finally,
18543 we don't call UpdateEditText from the ctor. Fixes bug #79957.
18545 * NumericUpDown.cs: set Text in the ctor.
18547 * DomainUpDown.cs: call UpdateEditText in the ctor.
18549 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
18550 so even a Selectable = false textbox can be focused if you click
18553 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
18554 just add their handling in their respective WndProc's. Also add
18555 an explicit FocusInternal method that doesn't consult CanFocus
18556 before calling Select(this).
18558 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
18559 do our work in WndProc instead.
18561 * TabControl.cs: same.
18563 * ComboBox.cs: same.
18565 2007-01-15 Everaldo Canuto <everaldo@simios.org>
18567 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
18570 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18573 * ThemeWin32Classic.cs: Don't draw the item text outside
18574 item bounds in Details view, as well as use trimming.
18577 2007-01-15 Jonathan Pobst <jpobst@novell.com>
18579 * Form.cs: Implement Form.ShowIcon.
18581 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
18582 null, which when combined with the DlgModalFrame window style removes
18583 the icon from the title bar.
18585 2007-01-15 Jonathan Pobst <jpobst@novell.com>
18587 * Control.cs: Call OnMouseClick after OnClick. (2.0)
18589 2007-01-15 Everaldo Canuto <everaldo@simios.org>
18591 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
18592 menu when mdi child windows theres a menu, uses insert to get icon
18593 at first position. Partially fix #80006.
18595 2007-01-15 Jonathan Pobst <jpobst@novell.com>
18597 * Clipboard.cs: Implement 2.0 methods.
18599 2007-01-15 Everaldo Canuto <everaldo@simios.org>
18601 * Menu.cs: Implement Insert method of MenuItemCollection class
18604 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18606 * ListView.cs: Implement 2.0 FindItemWithText method.
18608 2007-01-11 Everaldo Canuto <everaldo@simios.org>
18610 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
18611 to calculate menu bar size. Fixes #80290.
18613 2007-01-11 Everaldo Canuto <everaldo@simios.org>
18615 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
18617 2007-01-11 Chris Toshok <toshok@ximian.com>
18619 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
18622 2007-01-11 Chris Toshok <toshok@ximian.com>
18624 * LinkLabel.cs: make sure to call base.Select in our Select method
18625 if it turns out we're going to be selected (i.e. if we have a link
18626 that is going to receive focus). That way our container's
18627 ActiveControl is updated properly.
18629 2007-01-11 Chris Toshok <toshok@ximian.com>
18631 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
18632 they have 1 or more links. this fixes the crash gert reported.
18634 2007-01-11 Andreia Gaita <avidigal@novell.com>
18636 * ContainerControl.cs: Remove ContainerSelected flag, not needed
18639 * Control.cs (Controls.Add): Check if control to be added to the collection
18640 is a top level control, and throw an ArgumentException if it is.
18641 Remove ContainerSelectedFlag, not needed anymore.
18643 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
18644 top most control doesn't activate the form. This fixes a problem in the
18645 MessageBox, where the default button wouldn't get focus because the form
18646 was activated before being Loaded - when the Owner is set, SetTopMost is
18647 called, and it would activate it.
18649 2007-01-11 Jonathan Pobst <jpobst@novell.com>
18651 * Button.cs: When clicked and setting the parent form's DialogResult,
18652 use FindForm instead of Parent, since parent could be a container
18653 control and not the Form. Fixes bug #80495.
18655 2007-01-10 Chris Toshok <toshok@ximian.com>
18657 * Form.cs: move the call to SendControlFocus into the same
18660 2007-01-10 Chris Toshok <toshok@ximian.com>
18662 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
18663 It breaks in the face of the new ActiveControl stuff, and should
18666 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
18667 activecontrol's focus if it's not already set, after we set
18668 ActiveControl, but before we call OnActivated. Re-fixes #79667
18669 after the previous focus/active control fixes regressed it.
18671 * Control.cs: reindent some code.
18673 2007-01-10 Chris Toshok <toshok@ximian.com>
18675 * Splitter.cs: clearing some outstanding changes from my tree.
18676 Replace all accesses (not writes) to the internal dock_style field
18677 with the Dock property.
18679 2007-01-10 Chris Toshok <toshok@ximian.com>
18681 * Control.cs: make FireEnter, FireLeave, FireValidating, and
18682 FireValidated virtual.
18684 * Form.cs: override and don't chain up calls to FireEnter and
18687 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18689 * ListView.cs: Add more text padding space when using
18690 auto resize for columns (the previous value didn't work fine).
18692 * ThemeWin32Classic.cs: Update text position inside columns,
18693 to match the appeareance of .Net.
18695 * ColumnHeader.cs: When using auto resize, only the Width should
18696 depend on the sub items, not the Height. Also, set width after
18697 auto resizing (the value of Width should never remain as -1 or -2).
18699 2007-01-10 Chris Toshok <toshok@ximian.com>
18701 * Application.cs: fix compilation errors when debug is enabled.
18703 2007-01-10 Chris Toshok <toshok@ximian.com>
18705 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
18706 add some nice ascii art pictures and explanation of the process).
18707 (GetMostDeeplyNestedActiveControl): new utility function we need
18708 because our ActiveControl can refer to a child container with its
18711 * Form.cs (OnActivated): remove the call to SelectActiveControl
18712 from here, since you can override this method and not chain up,
18713 and winforms still sets the active control.
18714 (OnCreateControl): also remove the unnecessary SelectActiveControl
18716 (WndProc): it's actually called from the WM_ACTIVATE block, just
18717 before calling OnActivated.
18719 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
18720 inside the else. the ActiveControl setter will end up setting
18721 focus on @control. This keeps us from setting it again (and
18722 generating an extra LostFocus/GotFocus pair).
18723 (Select (bool, bool)): reindent.
18725 2007-01-10 Jonathan Pobst <jpobst@novell.com>
18727 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
18728 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
18729 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
18730 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
18731 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
18732 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
18733 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
18734 ToolStripTextBox.cs: Another wave of corcompare work.
18736 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18738 * ColumnHeader.cs: Implement 2.0 AutoResize method using
18739 the Width property.
18741 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
18742 methods by callling Column.AutoResize method on columns.
18744 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
18746 * Control.cs: Provide proper implementations of PreferredSize
18747 and GetPreferredSize (2.0).
18749 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
18751 * Form.cs: Remove one character (!) to make my previous OnClosing
18752 stuff work for modal windows like MessageBox.
18754 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18757 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
18758 ListView.Columns to get the last displayed column. Fixes #80452.
18760 2007-01-09 Everaldo Canuto <everaldo@simios.org>
18762 * Label.cs, LinkLabel.cs: Source code identation fixes.
18764 2007-01-08 Everaldo Canuto <everaldo@simios.org>
18766 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
18767 we dont need to invalidate only borders because when we invalidate four
18768 border lines the invalidate's generates a complete redraw of button,
18769 because it now invalidate a complete rect some other redraws operations
18770 are fixed. Fixes #80196.
18772 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
18773 Remove ToolBarInvalidateEntireButton as it is not used.
18775 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
18777 * Form.cs: Make sure that both OnClosing and OnFormClosing are
18778 called for 2.0 profile.
18779 * CloseReason.cs: Make class internal for 1.1.
18781 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
18783 * ToolStripManager.cs: Implement FindToolStrip functionality.
18784 * ToolStrip.cs: Register and unregister with ToolStripManager.
18786 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
18788 * Control.cs: This was messy. 2.0 moves much of ControlCollection
18789 to ArrangedElementCollection. Implemented this with as few #if's as
18790 possible (which is still too many).
18792 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
18794 * Control.cs: Implement SizeFromClientSize() [2.0].
18796 2007-01-07 Everaldo Canuto <everaldo@simios.org>
18798 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
18799 use Theme.BorderSize to calculate area instead of static value 1,
18800 by the way use new BorderStaticSize instead Border3DSize when
18801 border_static is true. Fixes #79537.
18803 * XplatUIOSX.cs: Fix call to GetClientRectangle.
18805 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
18808 2007-01-06 Everaldo Canuto <everaldo@simios.org>
18810 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
18812 2007-01-06 Everaldo Canuto <everaldo@simios.org>
18814 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
18815 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
18818 - border_static field added, it will used to define when a control
18819 theres 3D border but it must be static (thin).
18820 - In GetWindowRectangle use Theme.BorderSize to calculate area
18821 instead of static value 1, by the way use new BorderStaticSize instead
18822 Border3DSize when border_static is true.
18824 * XplatUIX11.cs, XplatUIOSX.cs:
18825 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
18827 * Theme.cs: BorderStaticSize field added.
18829 2007-01-05 Everaldo Canuto <everaldo@simios.org>
18831 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
18833 2007-01-05 Everaldo Canuto <everaldo@simios.org>
18835 * Control.cs: Under InternalBorderStyle call RecreateHangle to
18836 mimic same behavior than win32 that set border only in CreateParams,
18837 it fix problems under CreateParams overrides. Fix #79442 and partial
18840 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
18841 of thi control you must call recreate handle.
18843 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
18844 need to do anything as RecreateHangle will take care about borders.
18846 2007-01-05 Mike Kestner <mkestner@novell.com>
18848 * ListView.cs: hack to eliminate Lost/Got focus notifications on
18849 cycles between the ItemControl and parent. Fixes #80388.
18851 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
18853 * Control.cs: Lazy init layout engine. Do not directly use
18854 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
18856 2007-01-05 Chris Toshok <toshok@ximian.com>
18858 * DataGrid.cs: don't forceably rebind columns in SetDataSource
18859 unless our list manager has changed (i.e. unless we have reason to
18860 believe our columns have changed). Fixes #80422.
18862 also, disable the call do BindColumns in
18863 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
18864 1.1 the event isn't raised in response to a column addition on a
18867 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
18869 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
18870 that inheritors can not call it if they choose. Fixes bug #80456.
18872 2007-01-05 Andreia Gaita <avidigal@novell.com>
18874 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
18875 doesn't blow up with a null exception on marshalling.
18877 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
18879 * Control.cs: Implement several 2.0 protected properties and methods.
18880 Ensure that all necessary events are being called when properties
18883 2007-01-05 Mike Kestner <mkestner@novell.com>
18885 * ListView.cs: implement PgUp/PgDn for Details view. Also
18886 fixes First/LastVisibleIndex to use the item_control.ClientRect
18887 instead of the parent control. Fixes #80378.
18889 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
18891 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
18892 determine whether to use yard-pound or not (bug #78399).
18894 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
18896 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
18897 problems. So it is time to bring back the old popupbutton colors.
18899 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18902 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
18903 property by using the internal information of the
18904 columns order in ListView.
18906 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
18908 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
18909 Add 2.0 Tag properties.
18911 * LinkArea.cs: Add 2.0 ToString method.
18913 2007-01-03 Chris Toshok <toshok@ximian.com>
18915 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
18916 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
18917 when we're editing, which fixes #80047.
18919 2007-01-03 Chris Toshok <toshok@ximian.com>
18921 * Form.cs: apply patch contributed by Dominik Seichter. fixes
18924 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
18926 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
18927 property and implementation.
18929 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
18930 for MdiWindowListItem property.
18932 * ToolStripDropDown.cs: Don't consider hidden menu items while
18933 laying out the menu.
18935 2007-01-03 Andreia Gaita <avidigal@novell.com>
18937 * SendKeys.cs: window handle is not needed in win32, so just
18938 get the active window for X after parsing keys and don't use
18939 it when building the message; it is passed by parameter to the
18940 Xplat method and used there to build the message instead. Also,
18941 wait for events to be processed on SendWait, as opposed to Send,
18942 which doesn't wait :) Playing with threads and Send() completely
18943 hangs on ms.net, only SendWait() works.
18946 X11Display.cs: Check for valid window handle.
18948 2007-01-03 Jackson Harper <jackson@ximian.com>
18950 * TextControl.cs: Need to prevent wrap calculations when replacing
18951 text (this was there before i removed it accidently).
18952 - Don't update the cursor during the positioning, just set it to
18953 selection_start at the end of the operaion.
18955 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18958 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
18960 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18962 * MonthCalendar.cs: Added Click and DoubleClick events again,
18963 but this time they only hide Control's Click and DoubleClick.
18965 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
18967 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
18968 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
18970 2007-01-02 Jackson Harper <jackson@ximian.com>
18972 * TextBoxBase.cs: We move the caret with the split now, so we
18973 don't need to explicitly move the caret after splitting. This
18974 fixes the caret bumping down an extra line on Enter.
18976 2007-01-02 Miguel de Icaza <miguel@novell.com>
18978 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
18981 * ScrollableControl.cs: Add Scroll event.
18983 2007-01-02 Mike Kestner <mkestner@novell.com>
18985 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
18986 to fix all hdr height padding codepaths. Fixes #80207.
18988 2007-01-02 Chris Toshok <toshok@ximian.com>
18990 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18991 setting it to the Control defaults anyway, and it being after the
18992 Dock set was screwing up layout.
18993 (set_Dock): don't short circuit out of setting base.Dock. Also,
18994 no need to call UpdateStatusBar here, as it'll be re-layed out if
18997 2007-01-02 Mike Kestner <mkestner@novell.com>
18999 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
19000 to header height for width == -1. Fixes the rest of #80207.
19002 2007-01-02 Mike Kestner <mkestner@novell.com>
19004 * ListView.cs: rework the mouse event forwarding everaldo added
19005 to translate the coordinates to the parent control not
19006 raise the parent events until after we've done our work. Hover
19007 needs more work, in the case where HoverSelection is on, because
19008 the item control receives more than one MouseHover per Enter
19009 event, so we need to ensure only the "first" hover gets forwarded.
19010 Opening a minor bug for that.
19012 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
19014 * CheckedListBox.cs: Fixed SelectionMode to match MS.
19015 * ListControl.cs: Implemented AllowSelection property. Removed extra
19017 * ListBox.cs: Implemented AllowSelection property.
19019 2007-01-02 Everaldo Canuto <everaldo@simios.org>
19021 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
19022 SelectedItem, it prevent for errors when you must disable item
19023 before perform click. Fixes #80409.
19025 2007-01-02 Everaldo Canuto <everaldo@simios.org>
19027 * MenuAPI.cs: Prevent second level and beyond submenus to close
19028 until first level when move out side of popup.
19030 2007-01-02 Everaldo Canuto <everaldo@simios.org>
19033 - Down submenu positin in three pixels.
19034 - Closes sub menu when mouse leaves from menu. Fixes #80402.
19036 2007-01-02 Everaldo Canuto <everaldo@simios.org>
19038 * ThemeWin32Classic.cs:
19039 - Fix popup menu size adding one pixel on the top.
19040 - Down menu item border from two to one to mimic Win32.
19041 - Some source identation fixes.
19043 2007-01-01 Everaldo Canuto <everaldo@simios.org>
19045 * ThemeWin32Classic.cs: Use float numbers to calculate size and
19046 position of menu arrows, it fix wrong arrow size.
19048 2007-01-01 Everaldo Canuto <everaldo@simios.org>
19050 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
19051 instead of line, it simplify draw operation and fix it using 3D
19052 borders to mimic Win32.
19054 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
19056 * StatusStrip.cs: Add implementation of the sizing grip.
19058 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
19059 StatusStrip rendering.
19061 2006-12-31 Chris Toshok <toshok@ximian.com>
19063 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
19064 override the layout style (anchor/dock) of the control. assign to
19065 Dock instead. Fixes bug #80416.
19067 * ToolStrip.cs: same.
19069 2006-12-31 Andreia Gaita <avidigal@novell.com>
19071 * ContainerControl.cs: Use ContainerSelected flag to check if
19072 a Container is directly selected, or if Select is called on a
19073 non-container. If a container is directly selected, focus events
19074 should not be raised.
19075 Apply #80411 patch to throw exception on set_ActiveControl if
19076 control is the same as the current one.
19078 * Control.cs: Use ContainerSelected flag (see above).
19079 Add invalidation check to raise event but not invalidate if
19081 Apply #80411 patch.
19084 2006-12-31 Everaldo Canuto <everaldo@simios.org>
19086 * MenuAPI.cs: After click, dont close popup menu when menu is
19087 ContextMenu. Fixes #80399.
19089 2006-12-30 Chris Toshok <toshok@ximian.com>
19091 * ContainerControl.cs: make sure we throw the exception if the
19092 container control doesn't contain the control we're setting
19095 2006-12-30 Chris Toshok <toshok@ximian.com>
19097 * Control.cs (SetTopLevel): fix the exception raised by
19098 SetTopLevel for child controls.
19099 (set_Anchor): call UpdateDistances when setting the anchor type.
19100 This fixes bug #80336.
19102 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
19104 * Theme.cs: For now, revert back to 8pt font.
19106 2006-12-29 Everaldo Canuto <everaldo@simios.org>
19108 * MenuAPI.cs: Set popup as active when open a ContextMenu.
19111 2006-12-29 Chris Toshok <toshok@ximian.com>
19113 * Control.cs: reorder the code in OnResize to give the same event
19116 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
19118 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
19119 TileHorizontally and TileVertically.
19121 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
19123 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
19124 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
19125 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
19126 Corrected copyright and email adress.
19128 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
19130 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
19131 of Exception in FullPath property if no TreeView is associated with
19134 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
19136 * Theme.cs: Marked default_font as private, and initialize it in ctor
19137 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
19139 * ThemeGtk.cs: Removed default_font intialization.
19140 * ThemeWin32Classic.cs: Removed default_font initialization.
19142 2006-12-28 Chris Toshok <toshok@ximian.com>
19144 * Control.cs: fix a couple of place where we were creating handles
19145 more aggressively than we should be. Fixes ControlRefresh unit
19148 2006-12-28 Chris Toshok <toshok@ximian.com>
19150 * Control.cs: contrary to what the comment said, Control.Dock does
19151 not supercede Control.Anchor - the last one you assign to decides
19152 the layout behavior. so we need to keep track of which was the
19153 last set. Also, fix some of the affected property arguments in
19154 PerformLayout calls, and remove an redundant parent.PerformLayout
19157 Add a VisibleInternal property, which returns is_visible. We
19158 can/should get rid of all the usage of this field elsewhere.
19160 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19162 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
19163 control style, not DoubleBuffer. Added UseDoubleBuffering property
19164 that indicates whether doublebuffering is enabled and supported.
19165 (comment from and code based on Gert Driesen's patch in #80324).
19168 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19170 * Control.cs: Fixed a NRE.
19172 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19174 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
19177 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19179 * Control.cs: Rewrote double buffering, now a seperate
19180 class handles all the buffering, no Graphics is disposed of
19181 until the painting is finished (earlier implementation
19182 would crash if the control was resized in the OnPaint,
19183 since it would cause the double buffer to be recreated
19184 and the old one disposed), a separate Graphics is
19185 created for every paint (MS behaviour and anyways the state
19186 of the Graphics would have to be saved and restored otherwise)
19188 * XplatUIDriver.cs:
19190 * XplatUI.cs: Added and implemented GetOffscreenGraphics
19191 so that we can get the graphics for the back buffer without
19192 having to create a new one and remove the offscreen_dc parameter
19193 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
19195 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19197 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
19198 Also make virtual all the key-related methods.
19200 * ListViewItem.cs: Make virtual the key related methods for
19201 ListViewSubItemCollection.
19203 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19207 * ThemeWin32Classic.cs:
19208 * Theme.cs: Initial support for Tile view in ListView,
19209 as well as the implementation of the required bits for it (Item
19212 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19214 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
19215 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
19216 Provide useful exception messages.
19218 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
19220 * TrackBar.cs: Remove a warning.
19221 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
19222 when used by DateTimePicker, fixes #80287. This also requires that
19223 MonthCalendar implements it's own drawing for the yearly updown control,
19224 otherwise the Capture tracking would be too complicated. Removed the Click
19225 and DoubleClick events (according to comments they were hiding the base class
19226 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
19227 raise these events, not that they cannot be raised. It is possible to raise
19228 them by calling OnClick and OnDoubleClick). Added two internal fields in
19229 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
19230 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
19231 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
19232 event, no longer needed.
19234 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19236 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
19237 true if new value differs from current value.
19239 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19241 * Control.cs: ControlCollection.Count must be public. Fixed build of
19244 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19246 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
19248 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19250 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
19252 2006-12-26 Everaldo Canuto <everaldo@simios.org>
19254 * Control.cs: Invalidates control including when Width and Height is
19255 equal zero or is not visible, only Paint event must be care about
19256 this. Fixes #79913.
19258 2006-12-26 Chris Toshok <toshok@ximian.com>
19260 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
19261 more corcompare work.
19263 * DataGridView.cs: fix compiler warning.
19265 * ColumnHeader.cs: some corcompare work, and also take the
19266 opportunity to make the internal fields private.
19268 * ListView.cs: fix the fallout from the above field change.
19270 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
19272 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
19273 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
19274 ToolStripTextBox.cs: Fixes to events and corcompare.
19276 2006-12-26 Everaldo Canuto <everaldo@simios.org>
19278 * ListView.cs: Call owner.OnMousexx event to propagate events from
19279 item to ListView. Fixes #80367.
19281 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
19283 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
19284 if value is less than one. ItemHeight should not be set to a value
19285 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
19286 Removed extra tabs.
19288 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
19290 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
19291 * ToolStripStatusLabel.cs: Add Spring for Moma.
19293 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
19295 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
19296 Fixed code formatting. Removed debug code.
19297 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
19299 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
19301 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
19302 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
19303 ArgumentOutOfRangeException if ColumnCount is negative. In
19304 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
19305 less than 4 or higher than 32768.
19306 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
19307 Fixed FormatProvider to return CurrentCulture unless explicitly set.
19308 Fixed IsFormatProviderDefault to return true if FormatProvider has
19309 not been explicitly set.
19311 2006-12-25 Chris Toshok <toshok@ximian.com>
19313 * Application.cs: add a couple of 2.0 events.
19315 2006-12-25 Chris Toshok <toshok@ximian.com>
19317 * Control.cs: fix compiler warning.
19319 * AxHost.cs: corcompare fixes.
19321 * ApplicationContext.cs: corcompare fixes.
19323 2006-12-25 Chris Toshok <toshok@ximian.com>
19325 * Control.cs: only update dist_right/dist_bottom if the
19326 width/height is > 0. this fixes anchored controls being resized
19327 smaller until they disappear and then resized larger again.
19329 2006-12-25 Chris Toshok <toshok@ximian.com>
19331 * Control.cs: a couple of changes. Remove dist_left and dist_top,
19332 since they're nothing more than X/Left and Y/Top, respectively.
19334 Also, move back to a per-control Bitmap/Graphics for
19335 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
19336 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
19339 2006-12-25 Miguel de Icaza <miguel@novell.com>
19341 * MessageBox.cs: Implemented overload that takes a new "bool
19342 displayHelpButton" by adding a new internal field "show_help".
19343 When clicked this will raise the HelpRequested on the owner or the
19346 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
19347 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
19349 * ListView.cs: Add support ColumnWidthChanged and
19350 ColumnWidthChanging.
19352 Add support for ColumnReordered event.
19353 (ReorderColumn): Add NET_2_0 specific support for cancelling the
19356 Very nice codebase!
19358 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
19360 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
19362 2006-12-24 Chris Toshok <toshok@ximian.com>
19364 * GridTablesFactory.cs: 2.0 corcompare work.
19366 * ToolStripContainer.cs: add "override" to
19367 ContextMenuStripChanged, and remove the local event object.
19369 * ToolStripDropDown.cs: same with a couple properties.
19371 * ToolStripPanel.cs: same with AutoSizeChanged event.
19373 * TextBoxBase.cs: add "override" to AutoSizeChanged.
19375 * Form.cs: add the remaining 2.0 events, and do some corcompare
19378 * DateTimePicker.cs: add "new" to padding.
19380 * ButtonBase.cs: use Control's use_compatible_text_rendering.
19382 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
19384 * DataGridView.cs: PaddingChanged is overridden.
19386 2006-12-24 Chris Toshok <toshok@ximian.com>
19388 * Control.cs: corecompare work here too.
19390 * DataGridViewElement.cs, DataGridView.cs,
19391 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
19392 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
19393 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
19394 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
19397 2006-12-24 Miguel de Icaza <miguel@novell.com>
19399 * Control.cs: Switched the error message on the console for a
19400 todo. A review of the code will have to cope with this anyways
19401 (since its a large feature, it is in our radar) and it was
19402 producing too much output when running PDN.
19404 * ToolStripComboBox.cs: Set the text when the SelectedIndex
19405 changes. Applications depend on this (PDN 2.72)
19407 2006-12-23 Chris Toshok <toshok@ximian.com>
19409 * TableLayoutSettings.cs: finish up the corcompare work for this
19412 2006-12-23 Chris Toshok <toshok@ximian.com>
19414 * Control.cs: make SetImplicitBounds internal, do some futzing
19415 with LayoutEngine so that it's available in 1.1, and remove the
19416 entire duplicated code mess from PerformLayout. Use
19417 System.Windows.Forms.Layout.DefaultLayout instead.
19419 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
19421 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
19423 * Form.cs: Add MainMenuStrip property.
19425 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
19427 * Control.cs: Add ContextMenuStrip property and implementation.
19428 Fix ContextMenu implementation to show menu centered on control when
19429 activated using the keyboard instead of showing at screen (0,0).
19431 * ToolStripDropDown.cs: Fix needed overload of Show ().
19433 2006-12-23 Everaldo Canuto <everaldo@simios.org>
19435 * Menu.cs: Name property added for 2.0 profile.
19437 2006-12-23 Everaldo Canuto <everaldo@simios.org>
19439 * Menu.cs: Update information about FindMenuItem, method to be
19442 2006-12-23 Everaldo Canuto <everaldo@simios.org>
19444 * MenuAPI.cs: When deselect items deselect also selected subitems.
19446 2006-12-23 Everaldo Canuto <everaldo@simios.org>
19448 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
19449 FindSubItemByCoord to found itens that is not active, also an
19450 cheking added to FindSubItemByCoord to search for items only
19451 in visible popup windows. Fixes #80274.
19453 2006-12-22 Everaldo Canuto <everaldo@simios.org>
19455 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
19456 internal property, it be care about change ExStyle.
19458 2006-12-22 Andreia Gaita <avidigal@novell.com>
19460 * ContainerControl.cs: set activeControl for parent forms up the
19461 tree when the new activecontrol is a container.
19462 When validating the active control, if it is a container, also
19463 raise up the validation for it's active control. Fixes #80280
19465 * Control.cs: Add internal property flag and check to prevent
19466 Focus events from getting raised when Select() is called for
19467 a ContainerControl. There are still too many focus events being
19468 raised at the moment though.
19469 Cleaned up the code a bit.
19471 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
19473 * Control.cs: Added all missing 2.0 events.and
19474 fixed a couple of corcompare issues.
19475 * TrackBar.cs: Implemented missing 2.0 bits.
19476 * MonthCalendar.cs,
19477 * DateTimePicker.cs,
19478 * MdiClient.cs: Fixed some corcompare issues.
19480 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
19482 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
19483 SplitterPanel.cs: corecompare work.
19485 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
19487 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
19488 Clean up warnings for BackgroundImageChanged and PaddingChanged
19489 events now that they are implemented in Control.cs.
19491 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
19493 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
19495 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
19496 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
19497 of TableLayoutPanel and supporting cast.
19499 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
19502 - GrabWindow now confines the mouse pointer to the confine window.
19503 - Added Win32ClipCursor and Win32GetClipCursor.
19506 - Added CaptureWithConfine to be able to capture and confine
19509 * InternalWindowManager.cs:
19510 - Call CaptureWithConfine instead of Capture if we're an
19511 MdiChild (fixes #79982).
19513 2006-12-21 Chris Toshok <toshok@ximian.com>
19515 * DataGrid.cs: guard against the initial state of selection, where
19516 selection_start == -1. make sure we only select from index >= 0.
19519 2006-12-21 Chris Toshok <toshok@ximian.com>
19521 * Control.cs: we don't need to be so draconian with
19522 UpdateDistances, and we thusly don't need to call it before
19523 calling PerformLayout in ResumeLayout. Fixes bug #80289.
19525 2006-12-21 Daniel Nauck <dna@mono-project.de>
19528 TextBox.cs: Implemented AutoComplete properties.
19530 2006-12-20 Chris Toshok <toshok@ximian.com>
19532 * DataGridView*.cs: some corecompare work.
19534 2006-12-20 Jackson Harper <jackson@ximian.com>
19536 * XplatUIX11.cs: We need to hide the caret when deleting it,
19537 otherwise you get carets left lying around everywhere.
19538 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
19539 prevents getting some weird half drawn caret tracers when
19541 * TextControl.cs: Attempt to reduce the number of times we need to
19542 recreate the caret.
19544 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
19546 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
19548 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
19550 * DateTimePicker.cs:
19551 - Implemented missing 2.0 bits.
19552 - Changed some default values to match MS.
19554 2006-12-20 Jackson Harper <jackson@ximian.com>
19556 * TextBoxBase.cs: When changing the font across the document we
19557 can't recalculate after changing each line, since that will cahnge
19559 - PreferredHeight is a little different than i thought.
19560 - When backspacing, move the caret before we do the actual char
19561 delete, because when that delete crosses a wrap boundary the
19562 positional information will change.
19564 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
19566 * Control.cs: Added some missing 2.0 bits:
19567 BackgroundImageLayout, BackgroundImageLayoutChanged,
19568 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
19569 add IBindableComponent and IDropTarget implementation.
19571 * MonthCalendar.cs:
19572 - Added all missing 2.0 features:
19573 BackgroundImageLayout, RightToLeftLayout,
19574 OnHandleDestroyed, RightToLeftLayoutChanged,
19575 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
19577 - Rewrote all the BoldDate code, it was completely broken.
19578 - Fixed all the tests (the tests can now be re-enabled, the
19579 problems were not with the tests, but with the control, it was
19582 * DateTimePicker.cs: Changed the location where the
19583 MonthCalendar is shown.
19585 2006-12-19 Chris Toshok <toshok@ximian.com>
19587 * DataGridView.cs: add IDropTarget implementation.
19589 * ToolStripPanel.cs: add IDropTarget implementation.
19591 2006-12-19 Jackson Harper <jackson@ximian.com>
19593 * TextControl.cs: soft now means something different than what it
19594 used to mean, we want to move the caret regardless of whether or
19595 not this break was soft (would we really have wanted the caret
19596 to not move with the break in the old context?)
19597 * TreeView.cs: Make sure we factor in the vert scrollbar when
19598 calculating the horizontal scrollbar's maximum.
19600 2006-12-19 Andreia Gaita <avidigal@novell.org>
19602 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
19603 check for keywords in alternate casing, close bug #80049.
19605 2006-12-19 Chris Toshok <toshok@ximian.com>
19607 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
19608 methods (which all do nothing).
19610 * IDropTarget.cs: add the 4 missing methods.
19612 2006-12-19 Chris Toshok <toshok@ximian.com>
19614 * TableLayoutRowStyleCollection.cs: corcompare work.
19616 * TableLayoutSettings.cs: same.
19618 * TableLayoutStyle.cs: same.
19620 * TableLayoutColumnStyleCollection.cs: same.
19622 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
19624 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
19625 TableLayoutPanel I've had in my local tree for way too long.
19627 2006-12-19 Miguel de Icaza <miguel@novell.com>
19629 * TableLayoutSettings.cs: Finish the public API (still needs all
19630 the logic to update on changes).
19632 * TableLayoutPanelCellPosition.cs: new file.
19634 * TableLayoutRowStyleCollection.cs,
19635 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
19636 TableLayoutSettings.cs: Track the final 2.0 table api.
19638 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19640 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
19641 and Image List 2.0 members for ColummnHeader.
19642 * ListView.cs: Add key-related 2.0 methods for
19643 ColumnHeaderCollection.
19645 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
19647 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
19648 ArgumentNullException if items argument is null. Ignore null item in
19649 arrays. Removed extra tabs.
19651 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
19653 * MonthCalendar.cs: Fixed InvalidCastException.
19655 2006-12-19 Jackson Harper <jackson@ximian.com>
19657 * TextControl.cs: Don't increment the position here.
19658 - When calculating char positions only add in the line break size
19659 for hard line breaks.
19661 2006-12-19 Andreia Gaita <avidigal@novell.org>
19663 * SendKeys.cs: Changed some things to match ms.net behaviour
19664 when parsing shifted capital letters.
19666 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
19667 Add window handle as parameter to SendInput. X11 needs the
19668 window handle, and the handle being passed to it in the keys
19669 queue is the active control handle (which windows needs), not
19672 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
19673 to support SendKeys on X.
19675 * X11Keyboard: Implement helper method to lookup a linux keycode
19676 given the virtual keycode. Added table of keycode-2-virtualkey
19677 values to support this.
19679 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19681 * ListView.cs: Add support for SelectedIndexCollection
19682 and SelectedItemCollection 2.0 methods. Implement support
19684 * ListViewItem.cs: Add support for ListViewSubItemCollection
19685 2.0 methods. Also, fix an incorrect behavior of AddRange method
19686 (it shouldn't call Clear).
19687 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
19689 2006-12-19 Jackson Harper <jackson@ximian.com>
19692 * TextBoxBase.cs: New args for FormatText
19693 * TextControl.cs: Rewrote the main drawing method, this version
19694 feels a little easier to understand and debug to me. Hopefully it
19695 does to others also
19696 - Fix FormatText to OR in the new formating values. Added
19697 FormatSpecified param, basically this works in the same way as
19698 BoundsSpecified in Control.
19699 - Set the caret properties when the caret is positioned.
19700 - When wrapping text make sure that we calculate the width of the
19702 - when calculating alignments we might have wrapped down to the
19703 next line, so don't search for an individual tag, search for the
19705 - We need to invalidate the selection area when we replace the
19708 2006-12-19 Daniel Nauck <dna@mono-project.de>
19710 * Application.cs: add Restart () 2.0 support
19712 2006-12-18 Everaldo Canuto <everaldo@simios.org>
19714 * MenuItem.cs: Invalidate menu item rectangle after change Enable
19715 property. Fixes #80268.
19717 2006-12-18 Everaldo Canuto <everaldo@simios.org>
19719 * MenuAPI.cs: Dont trigger select event when closes top menu
19720 item. Fixes #80270.
19722 2006-12-18 Everaldo Canuto <everaldo@simios.org>
19724 * MenuAPI.cs: When you click on menuitem only trigger onselect
19725 event for top menu itens. Fixes #80271.
19727 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
19729 * MdiWindowManager.cs: Make IconicBounds depend on
19730 the bottom of MdiClient, not the top (fixes #80267)
19732 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
19734 * MdiClient.cs: Added missing 2.0 attribute
19736 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19738 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
19739 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
19741 2006-12-18 Everaldo Canuto <everaldo@simios.org>
19743 * MenuAPI.cs: Fix click when menuitem is not popup,
19744 this regression was caused by last commit (#80272).
19746 2006-12-17 Everaldo Canuto <everaldo@simios.org>
19748 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
19749 fire click event or close menu. Fixes #80272.
19751 2006-12-17 Daniel Nauck <dna@mono-project.de>
19753 * ListViewHitTestInfo.cs: add
19755 2006-12-17 Daniel Nauck <dna@mono-project.de>
19757 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
19758 * FlatButtonAppearance.cs: add
19759 * DockingAttribute.cs: add
19761 2006-12-17 Chris Toshok <toshok@ximian.com>
19763 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
19764 and rebind our columns when it does - this way, if you make
19765 changes to the DataTable (or set the Table attribute on a DataView
19766 after setting it as the DataGrid's DataSource, the changes are
19767 made visible.) Fixes bug #80107.
19769 2006-12-17 Daniel Nauck <dna@mono-project.de>
19771 * ListViewGroup.cs: add internal Location property for layouting.
19772 * Theme.cs: add abstract ListViewGroupHeight function.
19773 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
19775 2006-12-16 Andreia Gaita <avidigal@novell.com>
19777 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
19778 Added reset of selected index to 0 when adding first tab page.
19781 * NumericUpDown.cs: Fix NET_2_0 check
19783 2006-12-16 Daniel Nauck <dna@mono-project.de>
19785 * ListViewGroup.cs: fixed DefaultValueAttribute value
19787 2006-12-16 Daniel Nauck <dna@mono-project.de>
19789 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
19791 2006-12-15 Miguel de Icaza <miguel@novell.com>
19793 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
19794 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
19795 ScrollableControl.cs: Add a handful of methods that are
19798 2006-12-15 Chris Toshok <toshok@ximian.com>
19800 * XplatUIWin32.cs: initial implementation of the Reversible
19801 drawing functions. there are some problems. DrawReversibleFrame
19802 doesn't seem to work at all for Dashed FrameStyle, and in the
19803 Thick case there are drawing errors at the corners (we probably
19804 need to bind Rectangle instead of doing moveto/lineto's.)
19806 2006-12-16 Andreia Gaita <avidigal@novell.com>
19808 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
19809 to send blocks of key messages. Send accumulates keys to send with Flush,
19810 while SendWait sends all keys immediately.
19812 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
19813 XplatUIX11.cs, XplatUIX11-new.cs:
19814 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
19815 to Win32 SendInput.
19816 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
19818 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
19819 testing for ms.net on this class is very tricky, as the tests run too fast
19820 to allow the hook to release, essentially freezing the keyboard and the
19821 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
19824 2006-12-16 Daniel Nauck <dna@mono-project.de>
19826 * Padding.cs: fixed serialization compability to MS ("_var" field names),
19827 added missing attributes.
19829 2006-12-15 Daniel Nauck <dna@mono-project.de>
19831 * ListViewGroup.cs: Added missing attributes.
19832 * ListViewGroupCollection.cs: Added missing attributes.
19834 2006-12-15 Daniel Nauck <dna@mono-project.de>
19836 * ListViewItem.cs: fixed ListViewSubItem text property.
19838 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19840 * Control.cs: Added missing 2.0 attributes
19842 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19844 * MdiClient.cs: Added missing 2.0 attribute.
19845 * MonthCalendar.cs: Added some missing 2.0 attributes
19848 2006-12-15 Daniel Nauck <dna@mono-project.de>
19850 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
19852 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
19854 * MainMenu.cs: Add the new 2.0 constructor to help out people
19855 using the MainMenu in VS2005.
19857 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19859 * MdiChildContext.cs: Removed it, no longer used.
19860 * MdiClient.cs: Added missing 2.0 attributes.
19862 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19864 * InternalWindowManager.cs: Fix a NullRef with previous
19865 changes for toolwindows.
19867 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19870 - Added AfterTopMostControl to allow for certain controls
19871 to always stay on top when normal controls are brought to
19875 - (DrawInversibleRectangle): Get window rectangle from Win32
19876 in stead of from control, since Win32 doesn't calculate
19877 screen coords correctly from control's Location if it
19878 have docked siblings.
19880 * MdiWindowManager.cs:
19881 - Correct the control menu popup location when clicked on
19882 the maximized form icon. (fixes #80223.1)
19883 - Don't show moving rectangle if mouse hasn't moved from
19884 the original clicked point.
19885 - Removed FormGotFocus handler (not used).
19886 - Calculate the control buttons location from the main
19887 window's size and not client size (fixes #79770).
19888 - Form is now closed when the form icon is double-clicked
19890 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
19892 * InternalWindowManager.cs:
19893 - Moved some MDI-only methods to MdiWindowManager.
19894 - Removed unused properties and methods.
19895 - Unified method naming for methods handling wm messages.
19896 - Moved all message handling to seperate methods for
19899 * ThemeWin32Classic.cs:
19900 - DrawManagedWindowDecorations now draws the title bar
19901 with a gradient brush.
19902 - Add a CPDrawButtonInternal that allows us to specify
19903 light, normal and dark colors for the buttons (control
19904 buttons for MDI children were drawn with the same light
19905 color as the background, therefore loosing the 3D effect).
19908 - Add a CapturedControl property that is used to
19909 determine the control to resize (defaults to parent).
19910 Needed for MdiClient, since its SizeGrip's parent is
19911 MdiClient, but the control to resize is the main form.
19914 - Set SizeGrip's CapturedControl to the main form in order
19915 to resize the main form and not the MdiClient.
19916 - Override AfterTopMostControl to leave the scrollbars
19919 2006-12-15 Daniel Nauck <dna@mono-project.de>
19921 * ListView.cs: fixed ListViewItemCollection AddRange and
19922 implemented ListViewItemCollection AddRange 2.0 support.
19924 2006-12-15 Daniel Nauck <dna@mono-project.de>
19926 * ListViewGroup.cs: Add.
19927 * ListViewGroupCollection.cs: Add
19928 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
19929 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
19930 stub for ImageKey 2.0 support.
19932 2006-12-14 Mike Kestner <mkestner@novell.com>
19934 * ListView.cs: add text padding to the autocalculation for columns
19935 of width -2. Fixes #80207.
19937 2006-12-14 Mike Kestner <mkestner@novell.com>
19939 * ListView.cs: add some index guarding for partial row navigation
19940 logic. Fixes #80250.
19942 2006-12-14 Mike Kestner <mkestner@novell.com>
19944 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
19945 are added or inserted to the collection. Fixes #81099.
19947 2006-12-13 Everaldo Canuto <everaldo@simios.org>
19949 * MenuAPI.cs: Closes menu when right click out side of popup
19950 it fix problem in ContextMenu and MainMenu. Fixes #80252.
19952 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19954 * ListViewItem.cs: Fix dumb error.
19956 * ListView.cs: Add Find and ContainsKey methods in
19957 ListViewItemCollection, and also return true for IsReadOnly
19958 and IsFixedSize (changes for 2.0).
19960 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
19962 * Control.cs: Allow Region to be set to null.
19964 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
19966 * MdiWindowManager.cs: Remove unused (commented out) code.
19967 * Form.cs: When the MdiChild is maximized, the form needs
19968 WM_NCMOUSELEAVE, so request it.
19969 * InternalWindowManager.cs:
19970 - Added tooltips to control buttons.
19971 - Removed duplicated control button handling code.
19972 - Removed unused (commented out) code.
19974 2006-12-12 Everaldo Canuto <everaldo@simios.org>
19976 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
19977 was used because we must set cursor without trigger ChangeCursor event
19978 and without change Cursor control property. Fixes #79963.
19980 2006-12-12 Andreia Gaita <avidigal@novell.com>
19982 * Control.cs: Check if Region setter value is null, and ignore
19984 2006-12-12 Jackson Harper <jackson@ximian.com>
19986 * TextControl.cs: We were almost always drawing one more line then
19987 needed, since the GetLineByPixel will return the last line found
19988 at that pixel. In most cases though, we were invalidating up to
19989 the junction between two lines.
19990 - Improve debug code.
19992 2006-12-12 Chris Toshok <toshok@ximian.com>
19994 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19995 and FillReversibleRectangle.
19997 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19998 and FillReversibleRectangle.
20000 * XplatUIWin32.cs: add stubs which do nothing for
20001 DrawReversibleFrame, DrawReversibleLine, and
20002 FillReversibleRectangle.
20004 * XplatUIOSX.cs: add stubs which raise NIE for
20005 DrawReversibleFrame, DrawReversibleLine, and
20006 FillReversibleRectangle.
20008 * XplatUIX11.cs: add working implementation for
20009 DrawReversibleFrame, DrawReversibleLine, and
20010 FillReversibleRectangle.
20012 * ControlPaint.cs: implement DrawReversibleFrame,
20013 DrawReversibleLine, and FillReversibleRectangle, by calling into
20014 the appropriate XplatUI method.
20016 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
20018 * Form.cs: Make MdiClient have the focus even if it's
20019 not selectable, since it should receive WM_KEY* and WM_MOUSE
20020 messages. Fixes #79907.
20022 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
20024 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
20025 queried after the window is created.
20027 * XplatUIX11.cs: Added SendParentNotify to implement
20028 WM_PARENTNOTIFY logic. Fixes #79965.
20030 * Control.cs: Added MakeParam.
20032 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
20034 * MdiClient.cs: Resume Layout before setting window
20035 states (fixes #80201).
20037 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
20039 * MenuAPI.cs: Deselect a menu item after performing
20040 the click (fixes #80197).
20042 2006-12-11 Jackson Harper <jackson@ximian.com>
20044 * TextBoxBase.cs: We need to cap this value, since Maximum -
20045 ViewPortHeight can be less than zero.
20046 - Only do selection with the left mouse button.
20047 * TextBox.cs: Don't tell the world that we have a context menu.
20048 * Control.cs: New method so that we can control whether or not the
20049 context menu is visible outside MWF.
20051 2006-12-11 Everaldo Canuto <everaldo@simios.org>
20053 * ToolBarButton.cs: Fix text positon.
20055 2006-12-11 Miguel de Icaza <miguel@novell.com>
20057 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
20059 * Control.cs (DoubleBuffered): Add implementation.
20061 * Application.cs (OpenForms): Add.
20063 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
20065 * Form.cs: Use opacity instead of Opactiy to determine if we need
20066 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
20068 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
20070 * Control.cs: Fix NRE if Control.Site was set to null.
20072 2006-12-11 Chris Toshok <toshok@ximian.com>
20074 * Control.cs: ControlCollection.Remove should return if the arg is
20075 null, and ControlCollection.SetChildIndex should raise a ANE.
20077 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
20079 * Control.cs: Verify value set for Dock property. Code formatting
20082 2006-12-11 Jackson Harper <jackson@ximian.com>
20084 * TextControl.cs: Draw the caret and the selection when a flag is
20086 * TextBoxBase.cs: We want to draw the caret and the selection for
20087 TextBox but not for TextBoxBase.
20088 - If the window is resized and scrolling is no longer needed (the
20089 whole doc is visible) set the scroll position to zero.
20090 - The default SelectWord (the one TextBox uses) should move the
20091 caret to the end of the word.
20092 - SelectAll moves the caret to the end of the selection.
20093 * TextBox.cs: We don't selectall on focus, we just do it when the
20094 control is created.
20096 2006-12-11 Mike Kestner <mkestner@novell.com>
20098 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
20100 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20102 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
20104 * ListViewItem.cs: Add Name 2.0 property.
20106 2006-12-11 Andreia Gaita <avidigal@novell.com>
20108 * TabControl.cs: Set visibility on selected or default tab
20109 when tabcontrol handle is created, so that it's contents
20110 actually show up (duh). Fixes #80193
20111 Don't redraw the control if there is no handle created, as
20112 the selected index might be completely invalid. Added some tests
20115 2006-12-11 Everaldo Canuto <everaldo@simios.org>
20117 * ToolBar.cs: Uses maximun width and height of all buttons as
20118 button rectangle when ButtonSize specified, it looks strange but
20119 is what happens in Win32. Fixes #80189.
20121 2006-12-11 Jackson Harper <jackson@ximian.com>
20123 * TextControl.cs: Need to track undo levels ourself, since
20124 compound actions will mess them up.
20126 2006-12-10 Andreia Gaita <avidigal@novell.com>
20128 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
20129 SelectedIndex value is changed (even if it's not valid).
20130 Reset SelectedIndex to 0 when the handle is created and if
20131 the current index is invalid.
20132 Fixes SelectdeIndex unit tests and #80128
20134 2006-12-08 Chris Toshok <toshok@ximian.com>
20136 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
20137 calls EndEdit, it needs to be called before we set current_cell to
20138 its new value. Otherwise, we end up committing the value in the
20139 textbox to the new cell as well. Fixes bug #80160.
20141 2006-12-08 Chris Toshok <toshok@ximian.com>
20143 * Form.cs (set_CancelButton): if the button's DialogResult is
20144 None, set it to Cancel. Fixes bug 80180.
20146 2006-12-08 Jackson Harper <jackson@ximian.com>
20148 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
20149 to watch ourselves when setting the canvas size and setting the
20152 2006-12-08 Chris Toshok <toshok@ximian.com>
20154 * DataGrid.cs: comment out the two MakeTransparent calls for the
20155 time being so people using trunk (and not 1.2.2) on windows can
20156 actually use the datagrid. This deals with bug #80151.
20158 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
20160 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
20161 Graphics.DrawImage (image, int, int, int, int) overload instead
20162 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
20163 the dpi difference and was blurring images it drew.
20166 2006-12-08 Chris Toshok <toshok@ximian.com>
20168 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
20169 rowcnt is 0 (such as with an empty datasource), and make sure we
20170 initialize not_usedarea.Y to cells.Y, so we don't draw over the
20171 other areas (caption, parent row, etc, etc). Fixes bug #80095.
20173 2006-12-08 Chris Toshok <toshok@ximian.com>
20175 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
20178 2006-12-08 Chris Toshok <toshok@ximian.com>
20180 [ Fixes bug #80167 ]
20182 * ThemeWin32Classic.cs: don't draw the image if the button's flat
20183 style is FlatStyle.System.
20185 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
20186 ButtonBase.flat_style private, and switch uses of it to the public
20189 2006-12-08 Chris Toshok <toshok@ximian.com>
20191 [ Fixes bug #80121 ]
20193 * ThemeWin32Classic.cs: center the caption text in the datagrid
20196 * DataGrid.cs: lessen the amount we add to the caption height from
20197 6 to 2. 6 was making it huge.
20199 2006-12-08 Andreia Gaita <avidigal@novell.com>
20201 * UpDownBase: Handle MouseWheel call directly instead of capturing
20202 the inner textbox's OnMouseWheel. Fixes #80166
20204 2006-12-08 Jackson Harper <jackson@ximian.com>
20206 * TextControl.cs: We need to invalidate the textbox when we empty
20207 it (how had this not been discovered before?)
20209 2006-12-08 Jackson Harper <jackson@ximian.com>
20211 * TextBoxBase.cs: Reworked the mouse down code so I could get it
20212 to behave like MS, we now ignore the eventargs.Click and just
20213 track state ourself, which we were already doing anyways.
20214 - Constrain the double click handler to the double click size.
20216 2006-12-08 Chris Toshok <toshok@ximian.com>
20218 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
20219 direction if that scrollbar isn't shown. fixes bug #80158.
20221 2006-12-08 Andreia Gaita <avidigal@novell.com>
20223 * NumericUpDown.cs: Update value on getter. Fixes #79950
20225 2006-12-08 Chris Toshok <toshok@ximian.com>
20227 * MenuItem.cs: add back in the event cloning code. I didn't know
20228 how to do it in the face of the EventHandlerList work i'd done
20229 last week. Fixes bug #80183.
20231 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
20233 * Control.cs: Add an invalidate to the BackgroundImage setter.
20236 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
20238 * ToolStrip*: Add some small properties reported by MoMA, fix event
20239 firing and default properties based off of unit tests, and add some
20240 attributes based off of the class status page.
20242 2006-12-07 Jackson Harper <jackson@ximian.com>
20244 * TextBoxBase.cs: Take HideSelection into account when determining
20245 whether or not to show the selection.
20246 * RichTextBox.cs: After inserting the RTF into the document move
20247 the cursor to the beginning of the document.
20249 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
20251 * Control.cs: Remove static ArrayList "controls" which maintained
20252 a reference to every control created.
20253 * Application.cs: Create a static FormCollection to maintain a reference
20254 to every form created. Use it in places that formerly enumerated through
20255 the controls one looking for forms.
20256 * Form.cs: Add and remove self from above FormCollection.
20258 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
20260 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
20261 not libgdk (though it makes me wonder why I didn't have any
20264 2006-12-07 Chris Toshok <toshok@ximian.com>
20266 [ you had to know this was coming after that last commit...]
20268 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
20269 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
20270 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
20273 2006-12-07 Chris Toshok <toshok@ximian.com>
20275 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
20276 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
20277 all the behavior we need for double buffering.
20279 * XplatUIDriver.cs: implement the 3 double buffer methods using a
20280 client side Bitmap, just like the old Control-based double buffer
20281 code did. The methods are virtual, so each XplatUI driver
20282 subclass can replace the implementation to use a faster, platform
20285 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
20286 double buffer code, and clean things up a bit in the process.
20288 2006-12-06 Chris Toshok <toshok@ximian.com>
20290 * Control.cs: reindent WndProc.
20292 2006-12-06 Chris Toshok <toshok@ximian.com>
20294 [ I wanna be like BenM when I grow up ]
20296 * Hwnd.cs: create a single static Graphics object on the static
20297 Bitmap we create. use this for our text measurements.
20299 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
20300 This was causing us to allocate a backbuffer for every control,
20301 even when it wasn't flagged as double buffered. Instead use the
20302 single graphics instance. This might have implications for
20303 multithreaded applications. If we run into problems we can switch
20304 to creating 1 Graphics per control, on the static Hwnd bitmap.
20306 this change nets us a 7M savings in private dirty mappings when
20307 running FormsTest.exe.
20309 2006-12-06 Chris Toshok <toshok@ximian.com>
20311 * ListView.cs: the BackgroundImage override is just to set
20312 attributes. chain up to base.BackgroundImage.
20314 * RichTextBox.cs: same.
20316 * ToolBar.cs: same, but we need to also redraw the toolbar when it
20317 changes, so instead a handler for BackgroundImageChanged.
20319 * Control.cs: make background_image private.
20321 2006-12-06 Chris Toshok <toshok@ximian.com>
20323 * ScrollBar.cs: change the assignment of cursor to Cursor. not
20324 sure we even need this assignment, but roll with it for now.
20326 * Control.cs: make the cursor field private.
20328 2006-12-06 Chris Toshok <toshok@ximian.com>
20330 * Form.cs: we don't need to explicitly set ImeMode to
20331 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
20332 behavior in the face of ImeMode.Inherit.
20334 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
20335 change the ctor's assignment to use ImeMode instead of ime_mode.
20337 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
20338 ImeModeInherit. Only check for the parent's imemode (and return
20339 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
20340 This fixes the button unit test, which sets both ImeMode and
20341 DefaultImeMode to ImeMode.Disable.
20343 also make the ime_mode field private.
20345 2006-12-06 Chris Toshok <toshok@ximian.com>
20347 * Control.cs: make control_style private.
20349 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
20350 setting the styles to true, then setting them to false instead of
20351 reverting to their previous values.
20353 also, call SetStyle on the scrollbars instead of using
20354 control_style directly.
20356 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
20358 * FormCollection.cs: Implement. [2.0]
20360 2006-12-06 Chris Toshok <toshok@ximian.com>
20362 * Control.cs: make tab_stop private.
20364 * Label.cs: set TabStop, not tab_stop. reformat some event
20365 add/remove methods to make them more compact.
20367 2006-12-06 Chris Toshok <toshok@ximian.com>
20369 * RadioButton.cs: fix TabStop handling.
20371 2006-12-06 Chris Toshok <toshok@ximian.com>
20373 * TextBox.cs: remove the explicit assignments to has_focus.
20376 * ButtonBase.cs: remove the assignment to has_focus. Control will
20379 2006-12-06 Chris Toshok <toshok@ximian.com>
20381 * ButtonBase.cs: remove all uses of is_enabled from this code.
20382 it's always true when any of the code containing the checks is
20385 2006-12-06 Chris Toshok <toshok@ximian.com>
20387 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
20388 with different semantics (some are present in both 1.1 and 2.0
20389 profiles) so that we match MS's behavior in our unit tests.
20391 2006-12-06 Jackson Harper <jackson@ximian.com>
20393 * TextControl.cs: Make this operation undoable.
20394 * TextBoxBase.cs: Factor the border width into the preferred
20396 - implement Modified as per the spec.
20398 2006-12-06 Chris Toshok <toshok@ximian.com>
20400 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
20402 2006-12-06 Chris Toshok <toshok@ximian.com>
20404 * Control.cs: make right_to_left and context_menu fields private.
20406 2006-12-06 Chris Toshok <toshok@ximian.com>
20408 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
20409 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
20410 Control.child_controls private. switch all uses over to
20413 2006-12-06 Chris Toshok <toshok@ximian.com>
20415 * System.Windows.Forms/GroupBox.cs,
20416 System.Windows.Forms/AccessibleObject.cs,
20417 System.Windows.Forms/ErrorProvider.cs,
20418 System.Windows.Forms/Control.cs,
20419 System.Windows.Forms/UpDownBase.cs,
20420 System.Windows.Forms/ScrollBar.cs,
20421 System.Windows.Forms/DateTimePicker.cs,
20422 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
20423 System.Windows.Forms/ToolTip.cs,
20424 System.Windows.Forms/RadioButton.cs,
20425 System.Windows.Forms/LinkLabel.cs,
20426 System.Windows.Forms/Splitter.cs,
20427 System.Windows.Forms/TextBoxBase.cs,
20428 System.Windows.Forms/ToolStripTextBox.cs,
20429 System.Windows.Forms/ContainerControl.cs,
20430 System.Windows.Forms/ThemeWin32Classic.cs,
20431 System.Windows.Forms/SizeGrip.cs,
20432 System.Windows.Forms/ToolStripDropDown.cs,
20433 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
20434 private. switch all uses over to Control.Parent.
20436 2006-12-06 Chris Toshok <toshok@ximian.com>
20438 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
20439 Control does this before calling emitting these events.
20441 * TabControl.cs: same.
20443 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
20444 Control.client_rect.
20446 * ButtonBase.cs: use the ClientSize property instead of the
20449 * ScrollableControl.cs: same.
20451 * Control.cs: another pass at making properties private. also,
20452 move the initialization of tab_stop to the ctor.
20454 2006-12-05 Andreia Gaita <avidigal@novell.com>
20456 * TabControl.cs: Let the selected index be set freely if the
20457 control handle is not yet created.
20459 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
20461 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
20462 internal until I can rewrite DefaultLayout.
20463 * ToolStrip.cs: Fix build error and some general cleaning.
20464 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
20465 Fix build errors caused by making some of Control's fields private.
20467 2006-12-05 Jackson Harper <jackson@ximian.com>
20469 * TextControl.cs: Redo Insert a little so that it use IndexOf
20470 instead of Split, this prevents it from messing up on things like
20471 \n\n\n. Also more effecient since the split array doesn't need to
20473 * TextBoxBase.cs: AppendText doesnt handle multiline and non
20474 multiline text differently, this is the first of many fixes that
20475 will make multiline/non-multiline the same thing as far as the
20476 TextBoxBase is concerned.
20477 - Don't split the text and insert lines, this can lose some line
20478 endings (like is the last line a soft or hard break). Instead use
20480 - Fix an off by one when combining all the lines in the Text
20482 - Remove separate multiline handling from the Text getter/setter.
20484 2006-12-05 Chris Toshok <toshok@ximian.com>
20486 * ButtonBase.cs: a few changes:
20488 - don't reinitialize internal Control fields in the ctor when they
20489 have the same values as Control sets them.
20491 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
20492 this before calling those methods.
20494 - we don't need to call Refresh for anything. use Invalidate
20497 - OnEnabledChanged doesn't need to redraw at all - Control.cs
20498 calls Refresh in its OnEnabledChanged.
20500 - several of the events we were registered for in the ctor to
20501 redraw ourselves already include calls to Invalidate in the
20502 property setters that raise the events. remove the extra
20505 - reformat a switch statement that was 83274658 columns wide.
20507 2006-12-05 Mike Kestner <mkestner@novell.com>
20509 * ComboBox.cs: fix a unit test regression from a TextBox
20510 SelectionLength return of -1 when there's no selection.
20512 2006-12-05 Chris Toshok <toshok@ximian.com>
20514 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
20515 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
20516 cleaning up some of the internal Control fields being used by
20519 2006-12-05 Mike Kestner <mkestner@novell.com>
20521 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
20522 listbox after AddImplicit calls since it defaults to hidden. Add a
20523 hack to preserve requested heights across DropDownStyle changes.
20525 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
20527 * PropertyGrid.cs: Hide FindFirstItem method from public API.
20529 2006-12-05 Chris Toshok <toshok@ximian.com>
20531 * DataGridView.cs: fix compiler warnings.
20533 * PrintControllerWithStatusDialog.cs: same.
20535 * ToolBar.cs: same.
20537 * FolderBrowserDialog.cs: same.
20539 * Splitter.cs: same.
20541 * DataGridViewComboBoxCell.cs: same.
20543 * XplatUIWin32.cs: same.
20545 * PictureBox.cs: same.
20547 * Win32DnD.cs: same.
20549 * PageSetupDialog.cs: same.
20551 * FileDialog.cs: same.
20553 * PrintDialog.cs: same.
20555 * DataGridTextBoxColumn.cs: same.
20557 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
20559 2006-12-05 Chris Toshok <toshok@ximian.com>
20561 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
20562 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
20563 System.ComponentModel.EventHandlerList work.
20565 2006-12-05 Jonathan Chambers <joncham@gmail.com>
20567 * DrawTreeNodeEventArgs.cs: Added.
20569 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
20571 * InternalWindowManager.cs: Remove an unused field.
20573 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
20575 * InternalWindowManager.cs:
20576 - Save the point where the title bar is clicked.
20578 * MdiWindowManager.cs:
20579 - Only allow moving of the window as long as the
20580 clicked point on the title bar does not get out of
20581 MdiClient's rectangle. Fixes #79982.
20584 - Added Horizontal/VerticalScrollbarVisible.
20585 - Simplified the scrollbar sizing algorithm.
20586 - Cache the difference in scrolled value in
20587 H/VBarValueChanged and move the calculation out
20590 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
20592 * Control.cs: Make the Console.WriteLine in WndProc
20595 2006-12-05 Chris Toshok <toshok@ximian.com>
20597 * ToolStripManager.cs, ToolStripButton.cs,
20598 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
20599 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
20600 ToolStripSplitButton.cs, ToolStripSeparator.cs,
20601 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
20602 ToolStripProgressBar.cs, ToolStripContainer.cs,
20603 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
20604 to using System.ComponentModel.EventHandlerList.
20606 2006-12-04 Chris Toshok <toshok@ximian.com>
20608 * LinkLabel.cs: fix up compiler warnings.
20610 * TableLayoutSettings.cs: same.
20612 * TreeView.cs: same.
20614 * ToolBar.cs: same.
20616 * TabControl.cs: same.
20618 * RichTextBox.cs: same.
20620 * ListViewItem.cs: same.
20622 * PropertyGrid.cs: same.
20624 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
20628 * TextRenderer.cs: fix up compiler warnings.
20632 * Form.cs: corcompare fixes.
20634 * PictureBox.cs: fix up compiler warnings.
20636 * ImageListStreamer.cs: same.
20638 * TrackBar.cs: corcompare fix.
20640 * Control.cs: fix up compiler warnings.
20642 * SplitterPanel.cs: same.
20644 * NumericTextBox.cs: same.
20646 * ImageList.cs: same.
20648 * StatusStrip.cs: same.
20650 * ProgressBar.cs: corcompare fix.
20652 * ToolStripButton.cs: fix up compiler warnings.
20654 * ToolStripStatusLabel.cs: same.
20656 * ToolStripSplitButton.cs: same.
20658 * ToolStripSeparator.cs: same.
20660 * ToolStripProgressBar.cs: same.
20662 * ToolStripDropDownMenu.cs: same
20664 * ToolStripDropDown.cs: same.
20666 * ToolStripDropDownButton.cs: same.
20668 * ToolStrip.cs: same.
20670 * ToolStripControlHost.cs: same.
20672 * ToolStripContentPanel.cs: same.
20674 * ToolStripDropDown.cs: same.
20676 * ToolStripContainer.cs: same.
20678 * ToolStripPanel.cs: same, and add "new" where we need it to work
20679 with the new ArrangedElementCollection.
20681 * ToolStripItemCollection.cs: add "new" where we need it to work
20682 with the new ArrangedElementCollection.
20684 2006-12-04 Andreia Gaita <avidigal@novell.com>
20686 * TabControl.cs: Fix default tab selection to after TabControl
20687 gets focus and not before. Fixes #80128
20689 2006-12-04 Chris Toshok <toshok@ximian.com>
20691 * DataGridTableStyle.cs: remove the gross calling of
20692 datagrid.Refresh from here. It's a broken idea and it doesn't
20695 * DataGrid.cs: instead, just register/unregister from the
20696 DataGridTableStyle events in CurrentTableStyle. we play it
20697 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
20698 even though some would most likely not require it. Fixes bug
20699 #80115 (and one portion of #80117 as a side effect).
20701 2006-12-04 Chris Toshok <toshok@ximian.com>
20703 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
20704 so the textbox (if any) goes away. Fixes bug #80117.
20706 2006-12-04 Chris Toshok <toshok@ximian.com>
20708 * DataGridColumnStyle.cs: set the column's readonly property
20709 initially based on the property descriptor's IsReadOnly. Fixes
20712 2006-12-04 Chris Toshok <toshok@ximian.com>
20714 * ComboBox.cs: wrap the dropdown style changing work in
20715 SuspendLayout/ResumeLayout. Fixes bug #79968.
20717 2006-12-04 Jackson Harper <jackson@ximian.com>
20719 * TextBoxBase.cs: Fix off by one, since these are one-based.
20720 * TextBox.cs: Select all the text when we get focus. The TextBox
20721 does this but the RTB does not.
20723 2006-12-04 Chris Toshok <toshok@ximian.com>
20725 * DataGridTextBoxColumn.cs: remove some spew.
20727 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
20728 but some part of me is saying "it shouldn't be here.." At any
20729 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
20732 2006-12-04 Chris Toshok <toshok@ximian.com>
20734 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
20735 to reassign the propertydescriptor.
20737 2006-12-04 Jackson Harper <jackson@ximian.com>
20740 * TextControl.cs: Remove some unused variables. Maybe this will
20741 patch things up between mike and I.
20742 - don't split lines less then one char wide, if the viewport is
20743 that small text won't be visible anyways.
20745 2006-12-04 Jackson Harper <jackson@ximian.com>
20747 * TextBoxBase.cs: Default selection length is -1, need to do some
20748 more testing on windows to see when this is used for the property.
20749 - Redid the Lines [] property to that we properly remove soft line
20751 - added support for preserving carriage returns
20752 - CanUndo is not a variable like 'is undo enabled' it just returns
20753 true if there is undo operations available.
20754 - AppendText doesn't need to grab the last tag itself anymore,
20755 this happens automatically when we move the cursor.
20756 * TextControl.cs: Add CompoundActions to the undo class. This
20757 allows combining the other operations into one big option. ie a
20758 paste will combine { delete old, insert new, move cursor }
20759 - Add InsertString undo operation
20760 - New method for deleting multiline text
20761 - Add carriage returns to lines. So we can preserve carriage
20762 returns when text is 'roundtripped'
20764 2006-12-04 Chris Toshok <toshok@ximian.com>
20766 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
20767 minimum 0. Fixes the scrollbar exception in bug #80136.
20769 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
20772 * MdiWindowManager: Removed unused fields and methods.
20774 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
20776 * StatusBar.cs: Update all panels when a AutoSize=Contents
20777 panel needs updating.
20779 * StatusBarPanel.cs: Remove twidth and only use initialize.
20782 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
20784 * Form.cs: When a form's MdiParent is set add it directly
20785 on top of the z-order in stead of relying on MdiClient's
20786 ActivateChild to do it. Fixes #80135.
20789 - Remove original_order, mdi_child_list is already doing
20791 - Create mdi_child_list on construction in
20792 stead of first use (avoids a few null checks).
20794 * MenuItem.cs: Use an already existing list of mdi children
20795 to get the correct order of children and remove the other
20798 2006-12-04 Chris Toshok <toshok@ximian.com>
20800 * PropertyGridView.cs: cached_splitter_location is only used in
20801 !DOUBLEBUFFER code.
20803 * PropertyGrid.cs: implement the ComComponentNameChanged event
20804 using Events, hoping that would fix the warning. Looks like a
20805 compiler bug instead (#80144).
20807 * PropertyManager.cs: remove unused method.
20809 2006-11-04 Everaldo Canuto <everaldo@simios.org>
20811 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
20812 include parentesis to fix expression evaluation. Fixes #79634.
20814 2006-11-02 Everaldo Canuto <everaldo@simios.org>
20817 - Changes to fix behavior in Menu control, some reported in #80097
20818 and other detected during behavior refactory like a select event
20820 - Remove unneded "if's" conditions.
20821 - Created an internal to flag when popup is active in control, we need
20822 it because in .NET you can have menu active but without popup active
20823 when you active menu using popup without visible items.
20824 - Mimic win32 behavior for Select and Popup events.
20825 - Dont open popup menu when you dont have visible subitems.
20826 - Do nothing when click on disabled menu item.
20827 - Some small changes to follow the coding style guidelines.
20828 - Unselect menu only when another control gives focus. Fixes #80097.
20829 - Remove unused code.
20831 * MenuItem.cs: internal VisibleItems method to check if menu
20832 theres visible subitems, it will be usefull to fix some
20833 behavior in Menu control.
20835 2006-11-01 Everaldo Canuto <everaldo@simios.org>
20837 * Timer.cs: Tag property for 2.0 profile.
20839 2006-12-01 Chris Toshok <toshok@ximian.com>
20841 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
20843 * Win32DnD.cs: comment out some unused fields.
20845 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
20846 some unused properties/methods.
20848 * XplatUIX11.cs: fix MousePosition so we override the base class's
20849 property instead of conflicting with it.
20851 * PictureBox.cs: comment out some unused fields
20853 * OSXStructs.cs: make some struct fields public.
20855 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
20856 MousePosition so we override the base class's property instead of
20857 conflicting with it.
20859 * X11Dnd.cs: comment out some unused fields
20861 * X11DesktopColors.cs: fix some struct field visibility to quiet
20864 * X11Dnd.cs: remove some debug code.
20866 * ThemeClearlooks.cs: comment out unused field.
20868 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
20870 * ThemeGtk.cs: comment out some unused pinvokes.
20872 * Timer.cs: remove some unused fields.
20874 * ThemeClearlooks.cs: comment out unused field.
20876 * UpDownBase.cs: comment out unused field.
20878 * DataObject.cs: comment out unused field.
20880 * DataGridBoolColumn.cs: reomve unused field.
20882 * DataGrid.cs: remove unused field.
20884 * Cursor.cs: remove old ToBitmap code.
20886 * ControlPaint.cs: remove unused method.
20888 * ScrollBar.cs: remove unused fields.
20890 * ComboBox.cs: remove unused field, and chain up to
20891 AccessibleObject ctor.
20893 * ListBox.cs: remove unused field.
20895 * ButtonBase.cs: wrap a couple fields in NET_2_0.
20897 * GridEntry.cs: remove unused fields.
20899 * Binding.cs: remove unused fields.
20901 * AxHost.cs: remove unused method.
20903 * ContainerControl.cs: remove unused field.
20905 * ScrollableControl.cs: remove unused fields.
20907 2006-12-01 Chris Toshok <toshok@ximian.com>
20909 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
20910 the Where/WhereString stuff. it's easy enough to CWL
20911 Environment.StackTrace.
20913 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
20914 unused private fields.
20916 2006-12-01 Jackson Harper <jackson@ximian.com>
20918 * TextControl.cs: Do not update the view while inserting multiline
20919 text. If we update the view we might wrap lines, before entering
20920 the new lines, which causes the new line insertion calculations to
20921 be totally fubared.
20922 - Remove an old TODO
20923 - Make debug output a little nicer
20925 2006-12-01 Chris Toshok <toshok@ximian.com>
20927 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
20929 2006-12-01 Chris Toshok <toshok@ximian.com>
20931 [ fix the majority of the CS0108 warnings we've been suppressing ]
20933 * TreeView.cs: mark BackgroundImageChanged as 'new'.
20935 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
20936 to "LayoutToolBar" to quiet mcs.
20938 * TabControl.cs: mark our ControlCollection class as 'new'.
20940 * TextBoxBase.cs: mark some events as 'new'.
20942 * Splitter.cs: TabStop is 'new'.
20944 * ControlBindingsCollection.cs: mark a few methods as new since
20945 they change the visibility from protected to public.
20947 * RadioButton.cs: DoubleClick -> base class, and remove unused
20950 * MonthCalendar.cs: ImeMode property -> base class, and mark many
20953 * NumericUpDown.cs: TextChanged -> base class.
20955 * CheckedListBox.cs: mark our ObjectCollection class as new to
20958 * FolderBrowserDialog.cs: make HelpRequest event new and have it
20959 muck with the base class.
20961 * StatusBar.cs: fix some mcs warnings about Update being the same
20962 name as a base class method.
20964 * RichTextBox.cs: mark some events as new, and make them do things
20965 to the base class impl.
20967 * UserControl.cs: mark TextChanged as new, and have it manipulate
20970 * UpDownBase.cs: mark some things new.
20972 * CheckBox.cs: mark DoubleClick "new", and add some text about
20973 what we need to look at.
20975 * Panel.cs: make the events "new", and manipulate the base
20976 version. these are just here for attributes.
20978 * AccessibleObject.cs: make owner private.
20980 * Control.cs: deal with AccessibleObject.owner being private.
20981 cache our own copy if we need it.
20983 * Button.cs: add "new" to the DoubleClickEvent.
20985 * ListBox.cs: no need to track our own has_focus here. let
20986 Control.has_focus do it for us. Also some other work to clear up
20987 warnings about not overriding base class methods of the same name.
20989 * ComboBox.cs: clear up some warnings about not override base
20990 class methods of the same name.
20992 2006-12-01 Chris Toshok <toshok@ximian.com>
20994 * Form.cs: flag a few things as "new" to quiet some of the mcs
20999 * PrintPreviewDialog.cs: same.
21001 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
21002 now DGV isn't so horrible on the class status page. also, move
21003 all events to using System.ComponentModel.EventHandlerList. my
21006 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
21008 * MdiWindowManager.cs:
21009 - Set form to active mdi child if shown,
21010 and update the active mdi child to the next
21011 remaining child in the z-order if the form is hidden.
21014 - Track if the form has been visible and if its
21015 visibility is beeing changed, so that the MdiClient
21016 can properly decide the ActiveMdiChild. The MdiClient
21017 cannot track this since the form can change visibility
21018 before MdiClient is created.
21021 - Don't activate anything of the parent form is changing
21023 - Rework ActiveMdiChild to only return visible mdi
21024 children and take into account several other corner
21027 2006-12-01 Chris Toshok <toshok@ximian.com>
21029 * IBindableComponent.cs: new 2.0 interface.
21031 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
21033 * DataGrid.cs: Font for caption area is bold by default.
21035 2006-12-01 Everaldo Canuto <everaldo@simios.org>
21037 * Menu.cs: Tag property for 2.0.
21039 2006-11-01 Everaldo Canuto <everaldo@simios.org>
21041 * ThemeWin32Classic.cs: Adjust menu separator drawing.
21043 2006-12-01 Chris Toshok <toshok@ximian.com>
21045 * TreeView.cs: doh, the Begin* events should be
21046 TreeViewCancelEventHandler.
21048 2006-12-01 Chris Toshok <toshok@ximian.com>
21050 * Form.cs: Form.ControlCollection already stores off the
21051 form_owner field. don't access the base class's internal "owner"
21054 * Control.cs: make all the fields in Control.ControlCollection
21055 private. there's no need for any internal fields here.
21057 2006-12-01 Chris Toshok <toshok@ximian.com>
21059 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
21060 OnHandleCreated. Fixes bug #80109.
21062 2006-12-01 Chris Toshok <toshok@ximian.com>
21064 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
21065 SplitContainer.cs, Control.cs, StatusStrip.cs,
21066 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
21067 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
21068 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
21069 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
21070 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
21071 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
21072 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
21073 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
21074 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
21075 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
21077 do most of the work to convert our code over to use
21078 System.ComponentModel.Component.Events for
21079 adding/removing/dispatching events.
21082 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
21084 * DataGridView.cs: Fix an ArgumentNullException reported
21085 twice today in IRC.
21087 2006-11-30 Mike Kestner <mkestner@novell.com>
21089 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
21090 grabbed listbox. Fixes #80036 and #80101.
21092 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
21094 * Message.cs: Changed ToString() to match MS.
21096 2006-11-30 Jackson Harper <jackson@ximian.com>
21098 * TextBoxBase.cs: You can still change the selected text on a read
21100 * TextControl.cs: Lower magic number for wrap calculations. This
21101 lets text get closer to the right (far) edge.
21103 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
21105 * Control.cs: Tweak 2.0 layout properties.
21106 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
21107 * TextRenderer.cs: Add a new overload.
21108 * ToolStrip*: Huge amount of changes and new features.
21110 2006-11-30 Mike Kestner <mkestner@novell.com>
21112 * ComboBox.cs: fixes for LargeChange and Maximum to get the
21113 scroll range correct. Fixes #79994.
21115 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
21117 * MdiWindowManager.cs: Update main form's text when
21118 a form is closed. (fixes #80038)
21120 2006-11-30 Everaldo Canuto <everaldo@simios.org>
21123 - Fix an regression in ButtonSize.
21124 - Get ImeMode default value change to "Disable".
21125 - Get ShowTooltips default value change to true, default value is
21126 "false" but after make a test in .NET we get "true" result as default.
21128 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
21130 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
21132 2006-11-29 Chris Toshok <toshok@ximian.com>
21134 * XplatUIWin32.cs (GetWindowTransparency): check return value of
21135 GetLayeredWindowAttributes. if it's 0, return 1.0, as
21136 SetWindowTransparency hasn't been called.
21138 2006-11-29 Chris Toshok <toshok@ximian.com>
21140 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
21142 (set_AllowTransparency): reorder things a little so that the
21143 WS_EX_LAYERED style is removed properly.
21145 2006-11-29 Chris Toshok <toshok@ximian.com>
21147 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
21149 * Form.cs: only call the XplatUI transparency method (get/set) if
21150 SupportsTransparency says it's supported. Otherwise fallback to
21151 doing nothing (in the set case) or returning the instance field we
21152 cache (in the get case).
21154 * XplatUIStructs.cs: add TransparencySupport flag enum.
21156 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
21157 change to SupportsTransparency.
21159 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
21160 TransparencySupport.None from SupportsTransparency.
21162 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
21163 TransparencySupport.Set from SupportsTransparency.
21165 * XplatUIWin32.cs: implement GetWindowTransparency calling
21166 GetLayeredWindowAttributes, and implement SupportsTransparency by
21167 checking whether or not both
21168 GetWindowTransparency/SetWindowTransparency are available
21169 entrypoints. We need to do this since SetWindowTransparency is
21170 available as of win2k, but GetWindowTransparency requires winxp.
21173 * XplatUI.cs: Add GetWindowTransparency, and change
21174 SupportsTransparency to allow for either/both Get/Set.
21176 2006-11-29 Chris Toshok <toshok@ximian.com>
21178 * DataGrid.cs: keep from going into an infinite loop redrawing a
21179 datagrid that has no datasource. Fixes bug #80033.
21181 2006-11-29 Chris Toshok <toshok@ximian.com>
21183 * MenuItem.cs: fix the NRE when we assign text (and therefore call
21184 Invalidate) before the mainmenu has been assigned to a control.
21186 2006-11-29 Chris Toshok <toshok@ximian.com>
21188 * DataGrid.cs: detect when we should be double the double click
21189 row/column autosize stuff, although that codepath has yet to be
21190 written. part of the work for bug #79891.
21192 2006-11-29 Chris Toshok <toshok@ximian.com>
21194 * Binding.cs (SetControl): fix unit test.
21196 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21198 * PageSetupDialog.cs: Validate the margins and set them in
21200 * NumericTextBox.cs: New class to mimic the behavior of the
21201 textboxes used in the printing dialogs.
21203 2006-11-29 Andreia Gaita <avidigal@novell.com>
21205 * Form.cs: Revert previous change (remove call UpdateBounds
21206 from form constructor), because it messes with the handle creation
21207 order, and that one needs lots and lots of love.
21208 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
21209 for valid printer and throw InvalidPrinterException if document
21210 is set but printer not valid), adding a MonoTODO. Once
21211 handle creation is done properly, we can put this back in.
21213 2006-11-28 Everaldo Canuto <everaldo@simios.org>
21215 * MenuItem.cs: Create a invalidate method for menu item, to be
21216 calling from set text, it make text changes to imadiate update
21217 on screen. Fixes #80013.
21219 2006-11-28 Everaldo Canuto <everaldo@simios.org>
21221 * ToolBar.cs: Fixes and simplify toolbar button layout, it
21222 fixes bug #80070 and some other problem on toolbar buttons
21225 2006-11-28 Everaldo Canuto <everaldo@simios.org>
21227 * ThemeWin32Classic.cs: Paint toolbar toggle button background
21228 with dotted brush. Fixes #79564
21230 2006-11-28 Andreia Gaita <avidigal@novell.com>
21232 * Form.cs: Removed call to UpdateBounds on Form
21233 constructor, it was causing a call to CreateHandle
21234 before it was supposed to.
21235 * PrintControllerWithStatusDialog: Applied patch
21236 by Chris Toshok to hide controller when there are
21237 no printers available.
21238 PrintDialog.cs: initialize printer settings to
21239 null - correct DefaultValues test #5
21240 * PrintPreviewControl.cs: Move PrintController
21241 initialization to GeneratePreview
21242 * PrintPreviewDialog.cs:
21243 - Remove Preview generation from Document_set(). It is
21245 - Throw InvalidPrinterException on CreateHandle if
21246 a Document is set but there are no printers or
21247 printer is not valid.
21248 * ThemeWin32Classic: don't paint PrintPreviewControl
21249 if there is nothing to paint
21251 2006-11-28 Miguel de Icaza <miguel@novell.com>
21253 * Form.cs: Add another popular method.
21255 * TabPage.cs: ditto.
21257 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
21259 * MenuItem.cs: Fixed a warning.
21260 * InternalWindowManager: Fixed a warning.
21262 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
21265 - When cloning a menu also clone MdiList and clone the
21266 window menu items properly (as the forms and menuitems
21267 are kept in an internal hashtable, these need updating
21269 - Rewrote the window menu code, menu items are added in the
21270 order the forms were added to their parent, and they are
21271 updated every time the window menu is shown (before the
21272 list was only generated once, in the current order of the
21273 forms, and would never be updated). A checkmark is shown
21274 next to the item corresponding to the active mdi child.
21276 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
21278 * XplatUIStructs.cs:
21279 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
21282 - Added TME_NONCLIENT to TMEFlags.
21283 - Handles WM_NCMOUSEMOVE in GetMessage to
21284 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
21286 * MdiWindowManager:
21287 - Now merges mdi child menu to parent menu when maximized.
21288 - Recalculate NC areas of both mdi child and mdi parent.
21290 on window state and size changes.Fixes #79844 (3).
21291 - Handle WM_NCCALCSIZE to properly calculate borders.
21294 - Add/remove to the mdi containers list of mdi children
21295 in the order they are added.
21296 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
21297 to the maximized mdi child.
21299 * InternalWindowManager.cs:
21300 - Only execute a click on the control buttons on the mouse up,
21301 not on the mouse down. Show the state of the button
21302 (was only showing Normal state, never Pressed state). The
21303 pressed button now follows the mouse (if you click the Close
21304 button and move the mouse over the Maximize button, the
21305 Maximize button will be shown as pressed). Since Win32 does
21306 not generate WM_NCLBUTTONUP if you release the button outside
21307 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
21310 * ThemeWin32Classic.cs:
21311 - Draw a missing border around mdi child forms. Fixes #79844 (2).
21314 - Added a list of forms which contains the order the forms are
21315 added to the mdi parent.
21316 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
21317 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
21318 - If the active form changes set the scrollbars to the top
21319 of the Z order, otherwise the form could hide them.
21320 - Scrollbars are now sized according to ClientSize, not
21321 to Size, and they take into account the other scrollbar
21322 to determine maximum.
21324 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
21327 * XplatUIDriver.cs:
21331 - Added RequestAdditionalWM_NCMessages for windows to
21332 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
21333 Currently only implemented in XplatUIWin32.
21335 2006-11-27 Chris Toshok <toshok@ximian.com>
21337 * Hwnd.cs: only add the hwnd to the windows hash in
21338 set_WholeWindow and set_ClientWindow if whole_window/client_window
21339 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
21341 2006-11-27 Mike Kestner <mkestner@novell.com>
21343 * ComboBox.cs: remove redundant OnDropDown call. It is called
21344 from the ComboListBox.ShowWindow code. Fixes #79969.
21346 2006-11-27 Chris Toshok <toshok@ximian.com>
21348 * Hwnd.cs: remove the setters for ExposePending and
21349 NCExposePending - noone uses them.
21351 2006-11-27 Jackson Harper <jackson@ximian.com>
21353 * TextControl.cs: new param for ReplaceSelection which determines
21354 whether we select the new selection, or set the cursor to the end
21355 of the new selection.
21356 * TextBoxBase.cs: Use new param for ReplaceSelection. When
21357 pasting, select the new text.
21358 * RichTextBox.cs: Use new param for ReplaceSelection.
21360 2006-11-27 Jackson Harper <jackson@ximian.com>
21362 * TextBoxBase.cs: Set the selection to the caret after the caret
21363 is moved, otherwise they get out of sync.
21365 2006-11-26 Everaldo Canuto <everaldo@simios.org>
21367 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
21370 2006-11-26 Everaldo Canuto <everaldo@simios.org>
21372 * ThemeWin32Classic.cs:
21373 - Fix toolbar drop down arrow position.
21374 - Fix drop down appearance when ToolBar.Appearance is normal,
21377 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
21379 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
21380 * Control.cs: Same.
21381 * UpDownBase.cs: Same.
21382 * ButtonBase.cs: Same.
21383 * ScrollBar.cs: Same.
21384 * TrackBar.cs: Same.
21385 * PictureBox.cs: Same.
21386 * UserControl.cs: Same.
21388 * ListControl.cs: Same.
21389 * TextBoxBase.cs: Same.
21390 * ListView.cs: Same.
21391 * RichTextBox.cs: Same.
21392 * TreeView.cs: Same.
21394 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
21397 - Text label for where
21398 - Text label comment was not shown
21400 2006-11-23 Everaldo Canuto <everaldo@simios.org>
21402 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
21404 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
21406 * InternalWindowManager.cs:
21407 - Handle WM_PARENTNOTIFY to activate the form
21408 if any child control is clicked.
21409 - The form is only sizable if not minimized.
21411 * MdiWindowManager.cs:
21412 - Save the IconicBounds if the form is moved.
21413 - Rework SetWindowState, now the window bounds
21414 are stored only if the old window state is Normal.
21417 - In SetWindowStates store the old window state if
21418 the window is maximized and restore window state if
21419 the window looses focus.
21420 - Don't handle any scrollbar value changes if
21421 initializing the scroll bars. Fixes #79771.
21422 - Reworked ArrangeIconicWindows. Current algorithm
21423 tests bounds agains all other minimized windows, if
21424 any intersections create new bounds (going left to
21425 right, bottom to top) and then test again. When
21426 successful the bounds are saved and never computed
21427 again. Fixes #79774.
21429 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
21431 * InternalWindowManager.cs: Added HandleTitleBarUp.
21433 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
21435 * NumericUpDown.cs: In .NET 1.1, user entered text is still
21436 hexadecimal in ParseUserEdit.
21439 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
21441 * MdiWindowManager.cs:
21442 - Handle a click on the form's icon to show the
21443 system menu (when maximized). Fixes #79775.
21444 - Change the existing click handler for the form's
21445 icon when not maximized to show on MouseUp.
21448 * Form.cs: In OnResize only layout the mdi child's
21449 parent if it actually has a parent. Might not if
21450 the window is closing.
21453 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
21455 * MdiClient.cs: Ignore active MDI client for text of parent, if
21456 child has no text set.
21458 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
21460 * ToolBar.cs: Fixed ToString to match MS.
21462 2006-11-22 Andreia Gaita <avidigal@novell.com>
21465 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
21466 update inner values on set. Fixes #79966.
21467 - Override OnLostFocus to update value on NET 2. Fixes #79950.
21468 - Fix hexadecimal parsing.
21470 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
21471 parent. Fixes #79957
21473 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
21475 * Control.cs: After calling SetWindowsPos in SetBoundsCore
21476 the actual size has to be queried, since if height /
21477 width is negative Win32 changes it to 0.
21478 Fixes #79999 on Windows.
21480 * XplatUIX11.cs: Set height / width to 0 if negative
21481 in SetWindowPos. Fixes #79999 on Linux.
21483 2006-11-22 Everaldo Canuto <everaldo@simios.org>
21485 * ThemeWin32Classic.cs: Fix text redenring when button is
21488 2006-11-22 Everaldo Canuto <everaldo@simios.org>
21490 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
21491 and later navigate by mouse. Fixes #79528.
21493 2006-11-21 Everaldo Canuto <everaldo@simios.org>
21495 * ToolBar.cs: Set default value for TabStop to false in
21496 constructor, it fixes remaining behavior of bug #79863.
21498 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
21500 * MdiWindowManager.cs:
21501 * InternalWindowManager.cs:
21502 - Moved a few methods specific to Mdi from
21503 InternalWindowManager to MdiWindowManager.
21506 2006-11-21 Chris Toshok <toshok@ximian.com>
21508 * XplatUIOSX.cs: stub out InvalidateNC.
21510 * XplatUIWin32.cs: implement InvalidateNC using the call I found
21511 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
21513 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
21515 * XplatUIDriver.cs: add InvalidateNC abstract method.
21517 * XplatUI.cs: add InvalidateNC.
21519 2006-11-21 Everaldo Canuto <everaldo@simios.org>
21521 * ToolBar.cs: Invalidate complete button area when pressed status
21523 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
21524 * ThemeWin32Classic.cs: Increase vertical and horizontal position
21525 by 1 when button is pressed.
21527 2006-11-20 Everaldo Canuto <everaldo@simios.org>
21529 * ToolButton.cs: Invalidate middle of DropDown button when
21530 ToolBar theres DropDownArrows.
21531 * ThemeWin32Classic.cs: Change position of DropDown arrow and
21532 fix DropDown drawing operations.
21534 2006-11-20 Chris Toshok <toshok@ximian.com>
21536 * NativeWindow.cs: fix the formatting of functions ('{' on the
21537 following line), and enable the thread exception dialog.
21539 * Application.cs: remove the duplicate exception catching from
21542 2006-11-20 Everaldo Canuto <everaldo@simios.org>
21544 * Toolbar.cs: Triggers button click event when click on icon
21545 of dropdown ToolBarButton. Fixes #79912.
21547 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
21550 * ThemeWin32Classic.cs:
21551 - Added a property WindowBorderFont to enable themeing
21552 of mdi child windows' Text.
21554 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
21556 * InternalWindowManager.cs:
21559 * MdiWindowManager.cs:
21560 - If mdi child is maximized, set mdi parent's
21561 text to "Parent - [Child]". Fixes #79770.
21562 - If there is any maximized mdi child windows, only the active
21563 window (and any new windows) is maximized, the rest are normal.
21564 - On a WindowState change only save mdi child's window bounds
21565 if the old window state was normal. Fixes #79774.
21566 - The scroll bars are now calculated on hopefully all
21567 necessary events. Fixed #79771 / #79844->6 / #79906.
21568 - MdiClient.SizeScrollBars() now takes into account docked
21569 controls in the parent when calculating available space.
21570 - InternalWindowManager now always repaints the entire title
21571 area. Fixes #79844->1/4/5.
21572 - Added RequestNCRecalc on mdi child windowstate changes.
21575 2006-11-20 Mike Kestner <mkestner@novell.com>
21577 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
21578 in the MouseUp handler of the listbox and move the return handling
21579 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
21581 2006-11-20 Everaldo Canuto <everaldo@simios.org>
21583 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
21585 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
21587 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
21588 working in 1.2.x anymore. So, updated.
21590 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
21592 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
21593 NumberGroupSeparator of current culture instead of assuming en-US.
21596 2006-11-17 Mike Kestner <mkestner@novell.com>
21598 * Control.cs: Add the concept of implicit bounds setting so that
21599 dock/undock round trips preserve explicitly set size/locations.
21602 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
21604 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
21605 can't handle those filters. (Fixes bug #79961)
21607 2006-11-17 Chris Toshok <toshok@ximian.com>
21609 [ fixes the exit/crashes associated with #79835. it's clearly
21610 suboptimal though, we need to figure out a better way to solve
21613 * PrintPreviewControl.cs: deal with the new invalid printer
21616 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
21617 and return false (so CommonDialog.ShowDialog doesn't actually show
21620 * PrintDialog.cs: enable/disable the Ok button depending on
21621 whether or not the printer is valid.
21623 * CommonDialog.cs (ShowDialog): only actually show the form if
21624 RunDialog returns true.
21626 2006-11-17 Jackson Harper <jackson@ximian.com>
21628 * TextControl.cs: When soft splitting a line, mark it as a soft
21629 split line. Also carry over the current line break to the next
21632 2006-11-17 Chris Toshok <toshok@ximian.com>
21634 * XplatUIX11.cs: when scrolling a window with an invalid area, we
21635 only want to shift the part of the invalid area that overlaps the
21636 area we're scrolling. we also don't want to clear the invalid
21637 area unless the invalid area was entirely contained within the
21640 2006-11-16 Chris Toshok <toshok@ximian.com>
21642 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
21643 also make sure to free the memory returned by XGetWindowProperty
21646 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
21648 2006-11-16 Chris Toshok <toshok@ximian.com>
21650 * XplatUI.cs: add a new super secret way to get at the totally
21651 unsupported X11 backend.
21653 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
21655 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
21657 2006-11-16 Jackson Harper <jackson@ximian.com>
21659 * TreeView.cs: Allow more explicit setting of top node position
21660 for scrollbars. Slower algo, but more accurate.
21661 - CollapseAll should maintain the current top node.
21662 * TextBoxBase.cs: When positioning the caret, use the line, pos
21663 method, since the x, y method does not grab the correct tag, and
21664 the caret height never gets set correctly. (Maybe I should just do
21665 away with the caret having its own height, and always use the
21666 carets current tag for height).
21668 2006-11-16 Jonathan Pobst <monkey@jpobst.com
21670 [Fixes 79778, 79923]
21672 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
21673 Parent to the FosterParent instead.
21675 2006-11-16 Jackson Harper <jackson@ximian.com>
21677 * TreeView.cs: Need to recalc the topnode when we expand or
21678 collapse. The scrolling methods can't handle this on their own,
21679 since they use differences between the last scroll position, and
21680 those difference get completely messed up since we are expanding
21681 nodes. This problem should probably be fixed in the scrolling
21682 methods, so they can figure out exactly where they are, but this
21683 will slow things down a little.
21684 * ThemeWin32Classic.cs: Special case for groupboxes with empty
21685 strings, makes nunit-gui look a lot nicer.
21687 2006-11-16 Chris Toshok <toshok@ximian.com>
21689 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
21690 the broken multithreaded event handling we have in here. File
21691 this entry under "Why we should move to the new X11 backend".
21693 Any thread can make it into UpdateMessageQueue, which gets events
21694 from the X socket - some of which could belong to hwnds being
21695 managed by a different thread. We can also have multiple threads
21696 in UpdateMessageQueue at the same time, with each one reading from
21697 the X socket. This leads to many problems, with the following
21700 We can't use hwnd.Queue.Enqueue anywhere in here and must use
21703 The MotionNotify compression we do can't work across threads
21704 (without locking the entire queue, perhaps) since we call
21705 hwnd.Queue.Peek, so we just punt and don't compress motion events
21706 unless the owning thread is the one which got the X event.
21708 ConfigureNotify is another fun one, since it modifies the hwnd's
21709 bounds and then enqueues the event. We add a lock to Hwnd which
21710 is held when setting configure_pending to true (and enqueuing the
21713 There is a race wrt the wake socket. we need to make sure that
21714 only 1 thread is waiting on that socket, or else a thread could
21715 sleep waiting for data that never comes. It's difficult (but not
21716 impossible) to make happen, because it seems to require something
21717 like the following:
21719 1. Thread 1 polls on wake_receive
21721 2. poll returns saying there's data to be read on
21724 3. Thread 2 polls on wake_receive and immediately returns
21725 saying there's data to be read.
21727 4. Thread 2 reads the wakeup byte from wake_receive
21729 5. Thread 1 attempts to read the wakeup byte from
21732 6. Thread 2 exits (due to a form closing, perhaps).
21734 7. Thread 1 blocks forever.
21738 Fixing the Expose handling isn't done yet, and the races inherent
21739 in that piece of code are responsible for the drawing mistakes you
21740 see when generating expose events in a MT app (like NPlot). This
21741 one is the likely to be the hardest to bandaid, and it doesn't
21742 appear to cause anything but drawing problems. The other issues
21743 caused apps to exit or hang.
21745 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
21746 called from a different thread than the one that should be calling
21749 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
21751 2006-11-15 Chris Toshok <toshok@ximian.com>
21753 * Application.cs: null out the context's MainForm when we exit
21754 RunLoop. Fixes a newly checked in unit test as well as the last
21755 ODE from bug #79933.
21757 2006-11-15 Chris Toshok <toshok@ximian.com>
21759 * Form.cs (set_Owner): allow a null value so we can clear the
21761 (Dispose): set all our owned_form's Owner properties to null, and
21762 clear the owned_forms collection.
21763 (WM_CLOSE): clean up this a little bit.. still not right though.
21765 * ApplicationContext.cs: OnMainFormClosed should only call
21766 ExitThreadCore if the main form isn't recreating. Fixes unit
21769 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
21773 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
21775 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
21779 * Hwnd.cs: Add a flag to show a window, but not activate it, to
21780 keep popup window types from stealing focus from the main form
21783 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
21785 * MenuAPI.cs: Set above flag to true.
21787 2006-11-15 Chris Toshok <toshok@ximian.com>
21789 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
21790 the button being released is not in wParam.
21792 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
21794 * Form.cs: Add the released button to MouseEventArgs.Button
21795 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
21798 2006-11-15 Chris Toshok <toshok@ximian.com>
21800 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
21801 GetText(). untested because it's unused in our implementation.
21802 Control.Text always caches the text, even if
21803 ControlStyles.CacheText is not set.
21807 2006-11-15 Chris Toshok <toshok@ximian.com>
21811 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
21812 message. no hiding, no disposing.
21814 in the WM_CLOSE handler, hide the form if it's modal.
21816 2006-11-15 Chris Toshok <toshok@ximian.com>
21818 * XplatUIX11.cs: use AddExpose instead of sending a message.
21819 fixes textbox border drawing.
21821 2006-11-15 Chris Toshok <toshok@ximian.com>
21823 * PropertyGridView.cs: keep from crashing on mouse move/down when
21824 the property grid is empty.
21826 2006-11-14 Jackson Harper <jackson@ximian.com>
21828 * TextControl.cs: Make PageUp and PageDown more like the MS
21830 * TextBoxBase.cs: When we set the text property position the
21831 cursor at the beginning of the document.
21833 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21835 * Form.cs: if a mdi child's WindowState has changed
21836 before it's creation, it would display wrong control
21839 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
21841 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
21844 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21846 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
21847 the window gets to paint its borders even if the window is
21850 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
21851 otherwise the old control buttons would still be painted
21852 if the window gets bigger.
21854 * PaintEventArgs.cs: add an internal method so that the clip
21855 rectangle can be changed.
21857 2006-11-13 Chris Toshok <toshok@ximian.com>
21859 [ fixes bug #79745 ]
21861 * NotifyIcon.cs: lots of cleanup.
21863 * X11Structs.cs: add an enum for XEMBED messages.
21865 * XplatUIX11.cs: reindent one of the giant switch statements, it
21866 was taking up an additional tab stop, and this file is already way
21867 too wide for my laptop's screen.
21869 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
21870 we get it, resize the hwnd to the WMNormalHints max_width/height.
21872 2006-11-13 Jackson Harper <jackson@ximian.com>
21874 * TextBoxBase.cs: Compute the value changes for the mouse wheel
21877 2006-11-13 Chris Toshok <toshok@ximian.com>
21879 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
21880 #79898. force a reference to the Region to stick around so the
21881 unmanaged object isn't collected (rendering our handle in the MSG
21884 2006-11-13 Chris Toshok <toshok@ximian.com>
21886 * XplatUIX11.cs: fix #79917 for window managers which support
21888 using XStoreName on the raw utf8, and we need to convert to
21889 COMPOUND_TEXT if it's non-latin1.
21891 2006-11-13 Chris Toshok <toshok@ximian.com>
21893 * Form.cs (set_DialogResult): we need to set closing to false if
21894 we're setting our result to None. fixes bug #79908.
21896 2006-11-13 Jackson Harper <jackson@ximian.com>
21898 * TextControl.cs: When formatting text, compute the adjusted tag
21899 lengths correctly, using FindTag for the end tag instead of trying
21900 to figure it out outselves.
21901 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
21902 the item, ItemHeight doesn't work, because trees with large
21903 imagelists use those for their height
21904 * TreeView.cs: ActualItemHeight factors in the image height
21905 - compute left edge of checkboxes correctly
21906 - when expanding/collapsing move the bottom down one pixel, so we
21907 aren't moving part of the node
21909 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
21911 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
21912 stack in PaintEventStart so that it won't get disposed by the gc
21913 before reaching PaintEventEnd.
21915 2006-11-13 Jackson Harper <jackson@ximian.com>
21917 * TextBoxBase.cs: Don't select the word if we are on a line with
21919 - We don't need to position the caret on mouse up, since the mouse
21920 move handler should be doing this
21921 - When double clicking a blank line, the caret is advanced to the
21924 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
21926 * TreeNodeCollection.cs: Avoid duplicating indexer code.
21928 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
21930 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
21931 Fixes part of bug #79910.
21933 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
21935 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
21936 (bug #79903). Some minor string updates to match ms.
21938 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
21940 * FileDialog.cs: Don't add an extension if the filename
21941 already ends with that extension.
21943 2006-11-10 Jackson Harper <jackson@ximian.com>
21945 * TreeView.cs: Use the currently highlighted node for the
21946 BeforeSelect event.
21947 * TextBoxBase.cs: There is no need to expand selection on
21949 - CanUndo means 'is there any undo operations', not 'is undo
21950 allowed on this textcontrol. Fixed ClearUndo unit test.
21952 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
21954 * Button.cs: only perform click when button is Selectable (so as
21955 not to activate default buttons when they're disabled)
21957 * Control.cs: Rewrite of the SelectNextControl and related
21958 methods. HandleClick now selects next control if the current one
21961 * Form.cs: OnActivated selects next active control only if Load
21962 has already occurred. If Load hasn't run, there's no point in
21963 selecting here, Load might change the state of controls.
21965 * FocusTest.cs: Tests marked as working again for these fixes
21967 2006-11-10 Chris Toshok <toshok@ximian.com>
21969 * XplatUIX11.cs: a couple of fixes.
21971 - use XInternAtoms with almost all the atoms we need to register,
21972 instead of many, many calls to XInternAtom. should help a bit on
21973 startup time, at the expense of making the code look a little
21976 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
21977 isn't reparented (which seems to be a clue that we're running fon
21978 compiz) and they have an Owner form. This fixes the tool windows
21979 in paint.net when running under compiz.
21981 - when setting the opacity of a window, support both the case
21982 where the window has been reparented and also when it hasn't been.
21983 Since compiz/beryl doesn't seem to reparent windows, and these are
21984 the only window managers which support translucency, I'm not sure
21985 why we need the hwnd.reparented case at all.. but leave it in.
21986 now we get translucent windows in paint.net under compiz/beryl.
21988 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
21990 * FileDialog.cs: Always return the value for FilterIndex that
21991 was set. Internally convert it to values that make sense.
21993 2006-11-10 Everaldo Canuto <everaldo@simios.org>
21995 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21997 2006-11-10 Everaldo Canuto <everaldo@simios.org>
21999 * Toolbar.cs: Change default value of DropDownArrows to true, the
22000 signature still using false to make it compatible with MS but the
22001 initial value is true. Fixes #79855.
22003 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
22005 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
22006 only available on Linux.
22008 2006-11-09 Everaldo Canuto <everaldo@simios.org>
22010 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
22011 reduce number of calls to redraw method during toolbar creation.
22013 2006-11-09 Mike Kestner <mkestner@novell.com>
22015 * ListView.cs : raise SelectedIndexChanged when an item is selected
22016 programmatically via the Item.Selected property. Gert's nice
22017 ListViewSelectedIndexChanged test fixture now runs clean.
22019 2006-11-09 Mike Kestner <mkestner@novell.com>
22021 * ListView.cs : raise SelectedIndexChanged when a selected item is
22022 removed from the item collection using Remove or RemoveAt.
22024 2006-11-09 Mike Kestner <mkestner@novell.com>
22026 * ListView.cs : raise SelectedIndexChanged once per selected item
22027 for compat with MS. Fixes #79849+.
22029 2006-11-09 Chris Toshok <toshok@ximian.com>
22031 * TabControl.cs: initialize row_count to 0, and set it to 1 when
22032 we need to (if we have any tab pages). Fixes unit test.
22034 2006-11-09 Chris Toshok <toshok@ximian.com>
22036 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
22037 width is 0, not 3. Fixes a unit test.
22039 2006-11-09 Mike Kestner <mkestner@novell.com>
22041 * ListView.cs : use Implicit scrollbars so that focus isn't
22042 stolen from the listview when they are clicked. Fixes #79850.
22044 2006-11-09 Chris Toshok <toshok@ximian.com>
22046 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
22047 have a root item. Fixes #79879.
22049 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
22053 - An ArgumentException is now thrown if a wrong filter
22054 is applied (matches ms). The previous filter doesn't change
22055 anymore if an exception is thrown.
22056 - Changing the FileName property also affects FileNames
22057 * ColorDialog.cs: The length of the CustomColors array is always
22058 16. It doesn't matter if we use a smaller array or null to update
22059 or change the custom colors property.
22060 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
22061 for RootFolder if we get a undefined value.
22063 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
22065 * StatusBarPanel.cs:
22066 - Width is set to MinWidth if Width is smaller than
22067 MinWidth. Fixes #79842.
22068 - MinWidth now always overrides Width (MSDN says MinWidth
22069 is set to Width when AutoSize = None, but they do not
22071 - Style has now the the correct default value.
22073 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
22076 - The control is completely invalidated on
22077 Got/LostFocus to draw the focus rectangle correctly.
22078 - When AutoSize then height is always 45 (width for
22079 vertical controls).
22081 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
22082 on the mouse when moved and it doesn't move when grabbed
22083 until the mouse moves as well. Also fixed some wrong
22084 calculations when clicking on the thumb (control thought
22085 click was outside of thumb and didn't grab it).
22086 Fixes some of the issues in #79718.
22088 2006-11-08 Everaldo Canuto <everaldo@simios.org>
22090 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
22092 2006-11-08 Chris Toshok <toshok@ximian.com>
22094 * PropertyGridView.cs: only call ToggleValue if the item is not
22097 2006-11-08 Jackson Harper <jackson@ximian.com>
22099 * TextBoxBase.cs: The RichTextBox and textbox have very different
22100 word selection methods. Implement the textbox's simple word
22101 selection here, and let the RichTextBox override and provide it's
22103 - Don't do extra selection on mouseup
22104 * RichTextBox.cs: Use the documents word selection algorithm, I
22105 think ideally, this function will be pulled into the
22106 RichTextBox.cs code someday.
22108 2006-11-08 Chris Toshok <toshok@ximian.com>
22110 * RootGridEntry.cs: new class to represent GridItemType.Root.
22112 * CategoryGridEntry.cs: reformat, and add boilerplate.
22114 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
22115 returns the UI parent anyway, and we need special handling to
22116 implement the GetTarget method in the face of it. Also, implement
22119 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
22120 a root grid item, and use that instead of PropertyGrid.grid_items.
22121 Also, make use of TypeConverters (and add limitted support for
22122 ICustomTypeDescriptors) when initially populating the grid.
22123 Arrays now show up more or less properly.
22125 2006-11-08 Chris Toshok <toshok@ximian.com>
22127 * Application.cs: set the modal dialog to non modal after we close
22128 it. Fixes bug #79866.
22130 2006-11-08 Jackson Harper <jackson@ximian.com>
22132 * TextControl.cs: When combining lines carry over the line end
22133 style from the end line.
22134 - Invalidate the selected area when setting it, if it is visible.
22135 * TextBoxBase.cs: Only rich text box can do full line selects.
22136 - Make sure to set the cursor position when there is a click,
22137 otherwise two clicks in separate areas could cause a large chunk
22140 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22142 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
22145 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22147 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
22148 time. Remove tooltips when ToolButton click events. Fixes #79856.
22150 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22152 * MenuAPI.cs: Ignore right click for menu actions and fixes
22153 menu border when clicked. Fixes #79846.
22155 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22157 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
22158 MouseState after create wParam for message, this fixes mouse button
22159 equal none in mouse up events.
22161 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
22163 * Control.cs : Focus() now calls Select to set the Container's
22164 Active Control and to give it focus. To avoid infinite recursion
22165 (because ActiveControl also calls Focus at one point), a check
22166 is made in Focus with the help of a new internal variable
22169 2006-11-07 Mike Kestner <mkestner@novell.com>
22171 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
22172 if there's a selection. Fixes #79849.
22174 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
22176 * PropertyGrid.cs: Avoid fixed height of help description label.
22177 Fixes part of bug #79829.
22179 2006-11-07 Chris Toshok <toshok@ximian.com>
22181 * XplatUIX11.cs: fix #79790 again, by using the
22182 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
22184 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22186 * ToolBar.cs: Fix left click checking.
22188 2006-11-07 Chris Toshok <toshok@ximian.com>
22190 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
22192 2006-11-07 Chris Toshok <toshok@ximian.com>
22194 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
22195 PropertyManager unit tests.
22197 * PropertyManager.cs: make property_name internal.
22199 2006-11-07 Chris Toshok <toshok@ximian.com>
22201 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
22202 pass a unit test. Also, don't set image_index to anything in
22203 response to setting the ImageList property.
22205 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22207 * ToolBar.cs: Ignore click events when mouse button is not a
22208 left button, only accepts other button for dropdown menus.
22211 2006-11-07 Chris Toshok <toshok@ximian.com>
22213 * DataGrid.cs: make the back and parent row buttons a little less
22216 2006-11-07 Jackson Harper <jackson@ximian.com>
22218 * TextBoxBase.cs: When converting to Text don't put line breaks in
22219 for soft line breaks.
22220 * TextControl.cs: There is an initial "fake" line in the document,
22221 this is now a soft break line, so that an extra line feed doesn't
22222 get added to the end of documents.
22224 2006-11-07 Chris Toshok <toshok@ximian.com>
22228 * CurrencyManager.cs: if the list is readonly, don't bother
22229 checking if IBindingList.AllowNew is true.
22231 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
22232 for non-DataRowView datasources.. or rather, make it not crash.
22233 (DataGridPaintRelationRow): make sure we limit the row painting to
22234 the area not covered by the row header, and make our cell width at
22235 least large enough to cover the relation area. This allows grids
22236 that have relations but no rows to render correctly.
22237 (DataGridPaintRowContents): same type of changes here.
22238 (SetDataSource): move back to always calling
22239 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
22240 navigating back through relations.
22241 (HitTest): handle the case where we have no cells but have
22242 relations. Right now we generate a hit in cell 0 of whatever the
22243 row is, not sure if this is strictly correct, but it works for our
22246 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
22247 bother doing anything.
22249 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
22251 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
22252 early version of StatusStrip. Not responsible for eaten
22253 application or firstborn children.
22255 2006-11-06 Chris Toshok <toshok@ximian.com>
22257 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
22258 call GetTabRect with a -1 index. Fixes #79847.
22260 2006-11-06 Jackson Harper <jackson@ximian.com>
22262 * TreeNodeCollection.cs: Update scrollbars after clearing.
22264 2006-11-06 Chris Toshok <toshok@ximian.com>
22266 * NumericUpDown.cs: fix the ToString method for some unit test
22269 2006-11-06 Chris Toshok <toshok@ximian.com>
22272 - set the initial SelectedGridItem if we can.
22274 - Exclude non-mergable properties only if we're merging > 1
22275 object. Merging 1 object isn't really merging, obviously.
22277 - Handle PropertySort.NoSort just like Alphabetical, which is
22278 wrong of course, but at least gets things on the screen.
22280 * PropertyGridView.cs:
22281 - Add method "FindFirstItem" which finds the first property grid
22282 item, so we can select it by default.
22284 - make use of GridEntry.CanResetValue.
22286 - Don't call RedrawBelowItemOnExpansion here anymore, the
22287 individual GridEntry's will do that.
22289 - Remove the ITypeDescriptorContextImpl internal class.
22292 - this class needs to implement ITypeDescriptorContext, as it's
22293 what MS's PropertyDescriptorGridEntry does, which means we can
22294 remove the ITypeDescriptorContextImpl internal class from
22295 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
22297 - keep a reference to our PropertyGridView, and move the call to
22298 RedrawBelowItemOnExpansion here from PGV. This means
22299 programmaticly setting Expanded actually does something visible.
22301 - add a CanResetValue() function which takes into account our
22302 possibly multiple "selected_objects" in the merged case. Shifting
22303 PropertyGridView to use this method fixes another unreported
22304 crasher found running the test for #79829.
22306 - when Top or Bounds is updated, make sure the PropertyGridTextBox
22307 is updated to reflect this.
22309 * CategoryGridEntry.cs: the ctor takes the PGV now.
22311 2006-11-06 Jackson Harper <jackson@ximian.com>
22313 * TextControl.cs: These are 1 based.
22314 * TextBoxBase.cs: When setting the selected text, don't change the
22315 selected text tags, this is done by ReplaceText, just position the
22316 cursor at the end of the new text.
22318 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
22320 * ListView.cs: Allow label edit only when, when LabelEdit is
22323 2006-11-06 Jackson Harper <jackson@ximian.com>
22325 * TextControl.cs: If a suitable wrapping position isn't found,
22326 just wrap right in the middle of a word.
22328 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
22330 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
22333 2006-11-06 Jackson Harper <jackson@ximian.com>
22335 * TreeView.cs: Can't use the VisibleCount property when setting
22336 scrollbar heights, because this doesn't take into account whether
22337 or not the horz scrollbar just came visible.
22339 2006-11-05 Everaldo Canuto <everaldo@simios.org>
22341 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
22342 activated. Fixes #79369, #79832.
22344 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
22346 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
22347 had to remove support for links that point to a directory. FileInfo
22348 returns no usefull information (means, the directory they point to)
22349 for such links. Replaced some empty string ("") with String.Empty.
22351 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
22353 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
22354 NullReferenceException when attempting to remove node that is not in
22355 collection. Throw NullReferenceException when null is passed to
22356 Remove. Allow first element of the collection to be removed. Fixes
22357 bug #79831. In GetEnumerator ().Current return null if positioned
22358 before the first element of the collection. In GetEnumerator ().Reset,
22359 position before first element of the collection.
22361 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
22363 * PropertyGrid.cs: To match MS, remove default title and description
22364 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
22367 2006-11-04 Chris Toshok <toshok@ximian.com>
22369 * Theme.cs: add a Clamp method, just for kicks.
22371 * ThemeWin32Classic.cs: clamp all color components to [0..255].
22373 2006-11-04 Chris Toshok <toshok@ximian.com>
22375 * Form.cs: if the form isn't visible, Close() does nothing.
22377 2006-11-03 Chris Toshok <toshok@ximian.com>
22379 * Form.cs (Close): if the form is modal, don't Dispose of it, only
22381 (WndProc): don't Dispose after handling the WM_CLOSE message.
22383 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
22384 them as such, instead of using casts from Control to Form. Also,
22385 don't Dispose of the modal dialog when we fall out of the loop -
22386 Close() it instead.
22390 2006-11-03 Chris Toshok <toshok@ximian.com>
22392 * Control.cs (Dispose): only go through the dispose thing if we're
22393 @disposing, and we haven't already been disposed. Fixes bug
22396 * Form.cs: no reason to call "base.Dispose()" here instead of
22399 2006-11-03 Mike Kestner <mkestner@novell.com>
22401 * ComboBox.cs : use ToString instead of casts in AddItem for
22402 sorting functionality. Fixes #79812.
22404 2006-11-03 Chris Toshok <toshok@ximian.com>
22406 * Application.cs: pave the way for actually using the thread
22407 exception dialog. it's ifdefed out at the moment.
22409 2006-11-03 Chris Toshok <toshok@ximian.com>
22411 * ThreadExceptionDialog.cs: until we get a better layout, actually
22412 hide the details textbox and label when we shouldn't see them.
22414 2006-11-03 Jackson Harper <jackson@ximian.com>
22416 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
22417 multiline textboxes anymore. This method also determines the
22418 width/height of a textboxes canvas area.
22419 - Sorta a revert of the last patch. For multiline just position
22420 the controls, then bail. This way the scrollbar width won't be
22423 2006-11-03 Everaldo Canuto <everaldo@simios.org>
22425 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
22426 it dont need. Fixes #79537.
22428 2006-11-02 Jackson Harper <jackson@ximian.com>
22430 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
22431 send the status after firing the DndOver event.
22433 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
22435 * TrackBar.cs: Now orientation only switches height / width if
22436 the control's handle is created (Win32 does it like this). Also
22437 fixed a typo in ToString() for a test to pass, changed the
22438 exception thrown in set_LargeChange and set_SmallChange to
22439 match Win32 behaviour, and added TrackBar tests to the unit
22442 2006-11-02 Chris Toshok <toshok@ximian.com>
22444 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
22445 not _NET_WM_STATE_NO_TASKBAR.
22447 2006-11-02 Jackson Harper <jackson@ximian.com>
22449 * TextControl.cs: Increment count by one, since in the update view
22452 2006-11-02 Jackson Harper <jackson@ximian.com>
22454 * TextBoxBase.cs: Use client rectangle not bounds for checking if
22455 the mouse is in the client rectangle (duh).
22457 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
22459 * TrackBar.cs: Fixed trackbar jumping around when clicking
22460 on it - the trackbar was not detecting correctly at which
22461 side of the thumb the click was done. (fixes #79718)
22463 2006-11-02 Everaldo Canuto <everaldo@simios.org>
22465 * ListBox.cs: scroll visible area when change SelectedIndex to
22466 a non visible area. Fixes #79481.
22468 2006-11-01 Jackson Harper <jackson@ximian.com>
22470 * TextControl.cs: When replacing the selection move the selection
22471 start/end/anchor to the end of the new text.
22473 2006-11-01 Jackson Harper <jackson@ximian.com>
22475 * XplatUIWin32.cs: When setting the parent change the controls
22476 visibility to it's visibility flag, not to it's old parents
22477 visibility (.Visible walks the parent chain).
22479 2006-11-01 Chris Toshok <toshok@ximian.com>
22481 * XplatUIX11.cs: revert the #79790 fix, as the simple.
22482 XSetTransientForHint fix breaks paint .net's tool windows. more
22483 work needed for that one.
22485 2006-11-01 Chris Toshok <toshok@ximian.com>
22487 * ScrollBar.cs: throw ArgumentException instead of Exception in
22488 LargeChange/SmallChange setters. fixes unit tests.
22490 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
22492 * ContainerControl.cs: reverted rev.67183 (which was itself
22493 a reversion of rev.66853... eh).
22495 * Control.cs: Fixes Reflector hang by changing Focus() call
22496 to what it was before rev.66643 (calling Select() here sets
22497 ActiveControl, which in some situations calls back Focus and
22498 eventually does a stack overflow). Temp fix.
22499 Changes to GetNextControl() to not look for children to select when
22500 parent cannot be selectable (so it looks for siblings instead)
22502 2006-10-31 Mike Kestner <mkestner@novell.com>
22504 * CheckedListBox.cs : off by one error in returned index from
22505 ObjectCollection.Add. Fixes #79758.
22507 2006-10-31 Chris Toshok <toshok@ximian.com>
22509 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
22510 calls for the textbox/spinner, to keep from recursing to the point
22511 where we crash. Fixes #79760.
22513 2006-10-31 Chris Toshok <toshok@ximian.com>
22515 * ListControl.cs (set_SelectedValue): don't throw exceptions on
22516 null/"" value, just return. matches ms's behavior and fixes some
22519 2006-10-31 Chris Toshok <toshok@ximian.com>
22521 * Control.cs (set_Capture): make a logic a little easier to
22524 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
22525 if it's being destroyed. A necessary fix surely, but a bandaid
22526 also, to fix the stuck capture problem in bug #78413.
22528 2006-10-31 Chris Toshok <toshok@ximian.com>
22530 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
22531 convention of clearing hwnd.ClientRect when we set the
22532 width/height (so it'll be recalculated by Hwnd).
22534 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
22536 * ContainerControl.cs: reversed Contains check from
22537 ActiveControl due to hanging problems. This fix
22538 partly regresses #79667 (button does not have
22539 initial focus), so this might be a symptom for
22540 a larger parenting problem (set_ActiveControl
22541 is being called but the child control does
22542 not have the parent set yet?)
22544 2006-10-31 Mike Kestner <mkestner@novell.com>
22546 * MenuAPI.cs : fix keynav when menu is click activated.
22548 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
22550 * ToolStrip*: Version 0.2.
22552 * MenuStrip.cs: Version 0.1.
22554 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
22556 2006-10-30 Chris Toshok <toshok@ximian.com>
22558 [ fixes the oversized notify icon issue in bug #79745 ]
22560 * NotifyIcon.cs: scale the icon down to the size we're given by
22561 the XplatUI layer (this would be faster if we did it once instead
22562 of whenever we paint..) Also, remove the WM_NCPAINT handling,
22563 since it's never invoked.
22565 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
22566 pixels high by default, so let's hardcode our systray icon to that
22567 size. The SYSTEM_TRAY protocol should really have a way for
22568 client apps to query for the correct icon size.. but oh well. A
22569 couple of patches to deal with the screwy client_window ==
22570 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
22571 instance, and also make sure we don't XSelectInput twice).
22573 2006-10-30 Chris Toshok <toshok@ximian.com>
22575 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
22576 recreating forms. Control recreation is the bane of my existence.
22577 Fix it in a way that keeps everyone happy.
22579 2006-10-30 Chris Toshok <toshok@ximian.com>
22581 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
22582 just non-CHILD ones. otherwise sometimes scrollbars end up with
22583 client_windows not being resized to the proper size (ReportBuilder
22584 shows this extremely well).
22586 2006-10-30 Chris Toshok <toshok@ximian.com>
22588 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
22589 for non-WS_EX_APPWINDOW windows. This is what keeps them from
22590 showing up in the gnome taskbar. Fixes bug #79790.
22592 2006-10-30 Chris Toshok <toshok@ximian.com>
22594 * ApplicationContext.cs: guard against a NRE.
22596 * Application.cs: null out the old MainForm for the context, so we
22597 don't try to use it again once it's disposed. Fixes bug #79783.
22599 2006-10-30 Chris Toshok <toshok@ximian.com>
22601 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
22602 BindingContext, set the data source directly, otherwise do the
22603 lazy approach - the actual ListManager will be created when we get
22604 a BindingContext. Fixes bug #79700.
22606 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
22608 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
22609 XplatUIX11.cs: Remove old 2 parameter SetVisible.
22611 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
22613 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
22615 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
22616 of SetVisible that allows a window to be shown, but not activated.
22617 This is needed on Windows for MenuStrip, and can probably be used
22618 with MainMenu and ComboBox to fix the focus stealing issues on
22621 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
22623 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
22625 * PictureBox.cs: Fix the output of the ToString method.
22627 2006-10-29 Chris Toshok <toshok@ximian.com>
22629 * Control.cs (get_TopLevelControl): fix bug #79781.
22631 2006-10-29 Chris Toshok <toshok@ximian.com>
22633 * ListControl.cs (set_DataSource): throw Exception here, not
22634 ArgumentException, to match MS behavior.
22636 2006-10-29 Chris Toshok <toshok@ximian.com>
22638 * Form.cs: remove the try-catch's around calls to GetWindowState.
22639 We can just check the return value.
22641 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
22644 * XplatUI.cs: Add note about additional return value for
22647 2006-10-29 Chris Toshok <toshok@ximian.com>
22649 * Control.cs (CreateHandle): when we create our handle, we also
22650 create the handles of our child controls. Fixes one of the
22651 Control unit tests (CH11).
22653 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
22655 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
22657 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
22659 * ThemeClearlooks.cs: A little speedup.
22661 2006-10-27 Chris Toshok <toshok@ximian.com>
22663 * Control.cs: implement Control.FromChildHandle in a way that
22664 matches the docs (and fixes the failed test.)
22666 2006-10-27 Chris Toshok <toshok@ximian.com>
22668 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
22671 * DataGrid.cs: implement ResetForeColor such that the tests
22674 2006-10-27 Chris Toshok <toshok@ximian.com>
22676 * ToolBarButton.cs: setting text/tooltiptext to null results in it
22677 being set to "". Fixes bug #79759.
22679 2006-10-27 Jackson Harper <jackson@ximian.com>
22681 * TextControl.cs: We need to clear the entire selection area when
22682 setting the start, otherwise multiline selections are still
22685 2006-10-26 Chris Toshok <toshok@ximian.com>
22687 * PropertyGridView.cs:
22689 - ifdef all the code specific to the double
22690 buffer case, and provide some alternatives in the non-doublebuffer
22691 code, which makes heavy use of XplatUI.ScrollWindow to move things
22692 around without having to invalidate (and cause flicker). There
22693 are still some drawing problems in the non-doublebuffered case, so
22694 DOUBLEBUFFER is defined by default.
22696 - Fix the way dropdowns are handled. now we explicitly watch for
22697 the events which might cause the dropdown to close, and break out
22698 of the nested event loop there. This gets rid of all Capture
22699 code, at the expense of the Msg special casing. Seems to work,
22700 though, and fixes bug #79743.
22702 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
22703 * Control.cs: SetIsRecreating now recreates implicitly added
22704 child controls as well. Finally fixes #79629. The flag passed to
22705 SetIsRecreating has also been removed since it wasn't used.
22707 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22709 * PageSetupDialog.cs: Clean some code, fix some bits,
22710 add some checks, and add a printer sub-dialog.
22712 2006-10-26 Chris Toshok <toshok@ximian.com>
22714 * PropertyGrid.cs: make set_SelectedObject call
22715 set_SelectedObjects, and move the duplicate logic to the
22716 SelectedObjects setter. Also, raise SelectedObjectsChanged.
22718 * PropertyGridView.cs: hide the textbox when we get a
22719 SelectedObjectsChanged event.
22723 2006-10-26 Chris Toshok <toshok@ximian.com>
22725 * PropertyGridView.cs: deal with the type converter not supporting
22726 GetStandardValues() or GetStandardValues() returning null, which
22727 is does in the default case. Fixes #79742.
22729 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
22731 * CheckedListBox.cs: nunit no longer crashes when selecting
22732 Project/Edit menu option
22734 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
22736 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
22737 is no menu selected. fixes #79739
22739 2006-10-25 Chris Toshok <toshok@ximian.com>
22741 * PropertyGridView.cs: factor out the splitter invalidation code
22742 into the SplitterPercent setter, and for kicks implement the
22743 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
22744 amount in either direction.
22746 2006-10-25 Chris Toshok <toshok@ximian.com>
22748 * PropertyGridView.cs: do some cleanup of the brush used to draw
22749 text - read only fields should be grayed out. not sure how to do
22750 this with the textbox, though. but the textbox's should also be
22751 readonly now at least. Also, hide/show the textbox when resizing
22754 * CursorConverter.cs: use System.Reflection when getting the
22755 properties of Cursors, as TypeDescriptor.GetProperties isn't
22756 returning static properties.
22758 2006-10-25 Chris Toshok <toshok@ximian.com>
22760 * PropertyGridView.cs: factor out the up/down handling, and reuse
22761 it for page up/down. also add End/Home support.
22763 2006-10-25 Chris Toshok <toshok@ximian.com>
22765 * PropertyGridView.cs:
22767 - ensure the selected grid item is visible in the scrolled area,
22770 - fix Keys.Down handling when you're on the last item in the
22773 2006-10-25 Mike Kestner <mkestner@novell.com>
22775 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
22776 clicks too. Fixes #79725.
22778 2006-10-24 Chris Toshok <toshok@ximian.com>
22780 * PropertyGrid.cs: use property.Converter instead of
22781 TypeDescriptor.GetConverter(property.PropertyType), so we catch
22782 TypeConverters declared on the property as well as on the
22783 PropertyType. Fixes bug #79678.
22785 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
22787 * MimeIcon.cs, Mime.cs:
22788 Fallback to the default platform handler if no shared mime info
22789 stuff exists (fixes #79693).
22791 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22792 * ContainerControl.cs: Incorrect contains check in ActiveControl
22793 from previous fix (duh).
22795 2006-10-20 Chris Toshok <toshok@ximian.com>
22797 * PropertyGridView.cs: the dropdown should be MIN(number of items
22798 in list, 15). Fixes #79551.
22800 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22801 Fixes #79384, #79394, #79652, #79667
22804 - Modal windows are now destroyed in the proper order for windows
22806 * ContainerControl.cs:
22808 - ActiveControl setter has more conditions on when to return:
22809 - if we're reselecting the active control, but it actually
22810 didn't have focus (window hidden or some such), it runs
22811 - if the active control being selected doesn't actually
22812 exist in the container, it returns
22816 - The ShowDialog now gets the current form as the owner when
22817 invoking without parameters, and correctly activates the owner
22822 - MessageBox now catches the Escape key to exit
22824 2006-10-20 Chris Toshok <toshok@ximian.com>
22826 * PropertyGridView.cs: fix a number of issues (bug #78565, and
22827 most of bug #79676):
22829 - you can navigate around the property grid with the arrow keys.
22831 - the dropdown is sized properly when the pg has a vertical
22834 - fix the indentation for subentries, and properly select the
22837 - fix the gray bar's drawing (only draw it to the last element,
22838 not for the height of the control. Also make sure we draw that
22839 last horizontal grid line.
22841 - use the same mechanism the datagrid uses wrt the editing textbox
22842 when scrolling/resizing/etc. Namely, we hide it first, do the
22843 operation, then show it again (if it's still visible).
22845 - aggressively remove a lot of unnecessary refreshes (and also
22846 calls to Invalidate(). call more limited variants, and only redraw
22851 - when we're populating the merged collection, fill in the UI
22852 parent with either the passed in item, or the category item we
22855 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
22857 * GridItem.cs: drop some fully qualified names.
22859 * GridEntry.cs: add a "UIParent", which is basically the parent
22862 * GridItemCollection.cs: add an IndexOf method.
22864 2006-10-20 Mike Kestner <mkestner@novell.com>
22866 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
22867 a working win32 NC invalidation mechanism, we can't invalidate
22868 menus. [Fixes #79705]
22870 2006-10-20 Mike Kestner <mkestner@novell.com>
22872 * ListBox.cs : don't update the VScrollbar if the list is empty,
22873 just hide it. [Fixes #79692]
22875 2006-10-20 Jackson Harper <jackson@ximian.com>
22877 * RichTextBox.cs: Handle some special chars better, and don't skip
22878 the entire group when we encounter a special char that we don't
22881 2006-10-18 Chris Toshok <toshok@ximian.com>
22883 * PropertyGridView.cs: address a number of issues from bug #79676,
22884 mostly of the cosmetic variety.
22886 - The highlight rectangle for indented items not extends all the
22889 - Indented items aren't indented so much.
22891 - the dropdown is properly sized width-wise if the pg has a
22892 vertical scrollbar.
22894 2006-10-18 Chris Toshok <toshok@ximian.com>
22896 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
22897 systray stuff is rather convoluted to begin with.
22899 systray icons are a single window for some reason (that I haven't
22900 figured out yet), and for them, client_window == whole_window.
22901 Given the way the tests are structured elsewhere to determine
22902 which paints are pending (client vs. nc), that situation will
22903 always yield PAINT, not NCPAINT. So, if we have a pending
22904 nc_expose and no pending expose, remove the hwnd from the paint
22905 queue, and also set nc_expose_pending to false, to keep us from
22906 blocking further expose's adding the hwnd to the paint queue.
22908 phew. like i said, a rather convoluted change. Fixes the
22909 notifyicon repaint issues in bug #79645.
22911 2006-10-18 Chris Toshok <toshok@ximian.com>
22913 * Form.cs: when getting the backcolor of the form, don't get
22914 base.BackColor, as this allows parents to influence the background
22915 color. This breaks mdi forms. Instead, if the background_color
22916 is empty, return the default.
22918 2006-10-18 Chris Toshok <toshok@ximian.com>
22920 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
22921 to being private instead of internal static.
22923 * Control.cs: remove all the stupid ParentWaitingOnRecreation
22924 crap, it wasn't working for more deeply nested controls anyway,
22925 and we already have the is_recreating flag - use that instead.
22926 Before calling DestroyHandle in RecreateHandle, recurse through
22927 the control tree setting it to true. this returns the recreate
22928 code to much of its original simplicity, while now guaranteeing we
22929 actually recreate everything we're supposed to. This change gets
22930 fyireporting actually showing mdi children.
22932 2006-10-17 Chris Toshok <toshok@ximian.com>
22934 * Form.cs: remove some debug spew, and collapse some duplicate
22935 code at the end of SetClientSizeCore.
22938 - add some more debug spew here too wrt Destroy handling.
22939 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
22940 in Control's handling of WM_DESTROY.
22941 - Remove the handling of zombie window DestroyNotifies from the
22942 event loop - we don't need it. Now the only DestroyNotifies we
22943 actually handle are ones generated by X.
22944 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
22945 match gtk's (functioning) handling of this. This keep metacity
22946 from leaving droppings in the form of wm borders with no window
22947 contents all over the place.
22950 - add a bunch of debug spew wrt control recreation.
22951 - fix a bug where we weren't tracking Visible properly on
22953 - fixed the WM_PAINT double buffer handling to support re-entrant
22954 calls (yes, i know it's gross, but it's happening to us).
22956 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
22957 * ThemeWin32Classic.cs: changed drawing of selected days
22958 to make them look better.
22960 2006-10-16 Chris Toshok <toshok@ximian.com>
22962 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
22963 drawing_stack. Nuke the ClientDC/NonClientDC properties.
22965 * XplatUIX11.cs: move away from using hwnd.client_dc and
22966 hwnd.non_client_dc and on to a stack of dc's (and in window's
22967 case, PAINTSTRUCT's), so we can deal with nested Paint calls
22968 without puking or not disposing of Graphics objects.
22970 * XplatUIOSX.cs: same.
22972 * XplatUIWin32.cs: same.
22974 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
22976 * FileDialog.cs: Don't call on_directory_changed inside
22977 OnSelectedIndexChanged (it changes the SelectedIndex too).
22978 Instead move it to OnSelectionChangeCommitted.
22980 2006-10-13 Chris Toshok <toshok@ximian.com>
22982 * XplatUIX11.cs: more Destroy work. the current code does the
22983 following things, in order:
22985 1. Enumerates all handles of all controls at or below the one
22986 being destroyed, in pre-order. As it is doing this, it marks the
22987 handles as zombie and clears all references to them.
22989 2. calls XDestroyWindow on the window passed in.
22991 3. SendMessage's WM_DESTROY to all he handles in the accumulated
22994 2006-10-13 Chris Toshok <toshok@ximian.com>
22996 * XplatUIX11.cs: set hwnd.zombie to true before calling
22997 SendMessage (WM_DESTROY). this keeps us from marking the new
22998 window a zombie, and also keeps us from calling sendmessage at
23001 2006-10-13 Jackson Harper <jackson@ximian.com>
23003 * TextControl.cs: Do not show the caret and selection at the same
23004 time. Reduces ugliness by 35%.
23006 2006-10-13 Chris Toshok <toshok@ximian.com>
23008 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
23009 zombie after we do the recursive call, so we actually do call
23010 SendMessage on the children controls.
23011 (GetMessage): if we find a pending paint event for a zombie hwnd,
23012 remove the hwnd from the paint queue, or else it will always be
23013 there (and we'll effectively loop infinitely)
23015 2006-10-13 Mike Kestner <mkestner@novell.com>
23017 * MenuItem.cs : add Selected format under keynav too.
23020 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
23022 * PropertyGrid.cs: Fixed some NRE's and small difference between our
23023 implementation and that of MS.
23025 2006-10-13 Chris Toshok <toshok@ximian.com>
23027 * Control.cs (OnInvalidated) only futz with the invalid_region if
23028 the control is double buffered. this fixes the apparent hang in
23029 the ListView unit tests. Someone needs to make the
23030 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
23032 2006-10-13 Chris Toshok <toshok@ximian.com>
23034 * PropertyGridView.cs:
23036 - do a little refactoring so that only one place calls
23037 dropdown_form.Hide, and that is CloseDropDown. make everywhere
23038 else call that. Also make it Refresh, since there are redraw bugs
23039 otherwise (we should take a look at that...)
23041 - do a little more refactoring work to share the body of code
23042 involved with the drop down. it was duplicated in the code
23043 dealing with the listbox handling and in the code dealing with the
23046 - add a Capture to the dropdown form's control once it's
23047 displayed, and add a MouseDown handler that checks to make sure
23048 the position is inside the control. If it's not, close the
23049 dropdown. This fixes #78190.
23051 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
23052 if the value is different than the initial value.
23054 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
23056 * Control.cs: see #78650
23057 - Fixed GetNextControl for several cases:
23058 - Changed FindFlatForward to return
23059 correct sibling control when more than one
23060 control has same TabIndex as the currently
23062 - Changed FindFlatBackward to loop children
23063 from last to first and apply same logic as in
23065 - Changed FindControlForward to search for
23066 children when control is not a container
23067 but has children, or search for siblings if
23068 control is a container...
23069 - Changed FindControlBackward to continue
23070 searching for child controls when hitting
23073 - Fixed Focus method to update ActiveControl
23074 (FocusTest.FocusSetsActive failure)
23077 - Focus rectangle now refreshes when gaining
23079 - Removed grab for Tab key on IsInputKey that
23080 was keeping tab navigation from working (#78650)
23082 2006-10-13 Chris Toshok <toshok@ximian.com>
23084 * PropertyGridView.cs:
23085 - Rewrite SetPropertyValue to loop over SelectedGridItem's
23088 - Deal with GridItem.Value == null a few places.
23091 - replace the PopulateGridItemCollection with a pair of methods
23092 which compute the intersection of all the properties in the
23093 SelectedObjects array. Fixes #79615.
23095 - Throw ArgumentException from set_SelectedObjects if there's a
23098 - Add GetTarget method which can be used to traverse up the
23099 GridItem.Parent chain. It depends on the assumption that
23100 selected_objects for different GridEntries are always in the same
23101 order (a safe assumption). Use this method and loop over all the
23102 selected objects in the entry when calling RemoveValueChanged and
23105 * GridEntry.cs: Make this handle multiple selected objects.
23106 .Value returns null if not all the selected objects share the same
23109 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
23110 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
23111 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
23112 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
23113 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
23114 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
23115 add additional functionality.
23117 2006-10-12 Mike Kestner <mkestner@novell.com>
23119 * ErrorProvider.cs : new ToolTipWindow ctor sig.
23120 * HelpProvider.cs : new ToolTipWindow ctor sig.
23121 * ToolTip.cs : remove ToolTip param from Window sig since it is
23123 * ToolBar.cs : add tooltip support. Fixes #79565.
23125 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
23127 * ComboBox.cs: move the events in set_SelectedIndex to
23128 after the call to HighlightIndex in order to avoid
23129 possible recursion and subsequent problems with the call
23130 to HighlightIndex and include a range check in
23131 set_HighlightIndex. Fixes #79588
23133 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
23135 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
23136 to ui thread's settings instead of sunday.
23137 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
23139 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
23141 * DateTimePicker.cs
23143 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
23144 and implement missing functionality (selecting different parts
23145 of the date and edit them individually with the keyboard).
23147 2006-10-11 Chris Toshok <toshok@ximian.com>
23149 * Control.cs (OnInvalidated): fix NRE relating to last change.
23151 2006-10-11 Chris Toshok <toshok@ximian.com>
23153 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
23154 atoms in _NET_WM_STATE here if the window is maximized. We need
23155 to do this because we're *replacing* the existing _NET_WM_STATE
23156 property, so those atoms will be lost otherwise, and any further
23157 call to GetWindowState will return Normal for a window which is
23158 actually maximized. Fixes #79338.
23160 2006-10-11 Jackson Harper <jackson@ximian.com>
23162 * TextControl.cs: Special case for setting selection end to
23163 selection start, we basically kill the anchor.
23164 - some todo comments.
23166 2006-10-11 Chris Toshok <toshok@ximian.com>
23168 * Control.cs: switch to using an "invalid_region" to track which
23169 parts of the image buffer need updating. This is more code than
23170 the simple fix from r66532. That version just attempted to always
23171 fill the entire buffer on redraw, which turns out to be
23172 inefficient when invalidating small rectangles. This version
23173 simply adds the invalid rectangle to the invalid region. When we
23174 get any WM_PAINT message we see if it can be filled using the
23175 image buffer, and if it can't (if the paint event's clip rectangle
23176 is visible in the invalid region) we first fill the image buffer.
23177 So, the image buffer is still a cache, we just fill it lazily.
23179 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
23180 need it any longer.
23182 2006-10-11 Chris Toshok <toshok@ximian.com>
23184 * XplatUIX11.cs (SetWindowPos): we need to update both position as
23185 well as size after calling XMoveResizeWindow. This keeps us from
23186 ignoring future SetWindowPos calls. Fixes the disappearing
23187 DateTimePicker in the ToolBarDockExample from bug #72499.
23189 2006-10-11 Chris Toshok <toshok@ximian.com>
23191 * TextBoxBase.cs: reorder things a bit when it comes to
23192 resizing-causing-recalculation. we were recalculating the
23193 document when our position was changed, which shouldn't happen.
23194 We only care about size changes. Clear up some more redundant
23195 recalculation calls while I'm at it. This makes the toolbar dock
23196 example snappy when you're just dragging toolbars around (since it
23197 causes a relayout whenever you move one.)
23199 2006-10-11 Chris Toshok <toshok@ximian.com>
23201 * ToolBarButton.cs (get_Rectangle): this only returns
23202 Rectangle.Empty if Visible == false, or Parent == null.
23203 Parent.Visible doesn't matter.
23205 2006-10-10 Chris Toshok <toshok@ximian.com>
23207 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
23208 by .net 1.1, so switch to an internal method instead.
23210 2006-10-10 Chris Toshok <toshok@ximian.com>
23212 * Control.cs (WM_PAINT): when a control is double buffered we draw
23213 initially to the ImageBuffer and then copy from there. But when a
23214 parent control which has child controls is double buffered, the
23215 initial drawing doesn't encompass the entire ClientRectangle of
23216 the parent control, so we end up with uninitialized bits (this is
23217 easily seen by dragging the top toolbar in
23218 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
23219 manually set the ClipRectangle of the paint_event (only the one we
23220 use to populate the ImageBuffer) to ClientRectangle. Fixes more
23221 of the nastiness in bug #72499.
23223 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
23224 which we use in Control.cs's WM_PAINT handling.
23226 2006-10-10 Jackson Harper <jackson@ximian.com>
23228 * TextBoxBase.cs: Finish off the autoscrolling stuff.
23230 2006-10-10 Chris Toshok <toshok@ximian.com>
23232 * Cursor.cs: Apply a slightly different patch to the one suggested
23235 2006-10-10 Jackson Harper <jackson@ximian.com>
23237 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
23238 not the parent form.
23239 * TextControl.cs: use difference in old line count vs new count to
23240 calculate how many lines were added, this takes into account soft
23241 line breaks properly.
23243 2006-10-10 Chris Toshok <toshok@ximian.com>
23245 * LinkLabel.cs: don't call MeasureCharacterRanges against a
23246 rectangle located at 0,0 and the size of the text. Use
23247 ClientRectangle instead. This fixes rendering of non-left aligned
23250 2006-10-10 Jackson Harper <jackson@ximian.com>
23252 * TextBoxBase.cs: When we set the selection start position the
23254 * TextControl.cs: Need to update the caret when we decrement it to
23256 - Make sure that the selection_visible flag gets reset to false if
23257 the selection isn't visible. Before this you could get it set to
23258 visible by changing the selection start, then changing the end to
23261 2006-10-09 Jackson Harper <jackson@ximian.com>
23263 * TreeView.cs: Don't update scrollbars when we aren't visible.
23264 * TreeNodeCollection.cs: Only need to update scrollbars if being
23265 added to an expanded visible node or the root node.
23267 2006-10-09 Chris Toshok <toshok@ximian.com>
23269 * XplatUIX11.cs (SendMessage): fix NRE.
23271 2006-10-09 Jackson Harper <jackson@ximian.com>
23273 * TextBoxBase.cs: Implement horizontal autoscrolling.
23274 * TextControl.cs: Add a movement types that allows moving forward
23275 and backwards without wrapping.
23277 2006-10-09 Mike Kestner <mkestner@novell.com>
23279 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
23280 with focus "expansion" of labels. Fixes #79532 and then some.
23281 * ThemeWin32Classic.cs : add LineLimit to ListView label format
23284 2006-10-09 Jackson Harper <jackson@ximian.com>
23286 * TextBoxBase.cs: Set the default max values to MaxValue since
23287 we use the scrollbar for autoscrolling and the default value is
23288 100. If we don't do this the caret won't keep up with typing
23289 after about 18 characters.
23290 * TextControl.cs: Make sure the selection is offset by the
23291 viewport x. This fixes selection when using auto scrolling.
23293 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
23295 * Form.cs: The active control should be selected after the
23296 OnLoad so that any child control initialization that affects
23297 the selection is done. Fixes #79406
23299 2006-10-06 Chris Toshok <toshok@ximian.com>
23301 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
23302 to have no evil effects.
23304 - Stop selecting StructureNotifyMask on non-toplevel windows.
23306 The only way children should be resized is by using the SWF api,
23307 and we already send WM_WINDOWPOSCHANGED messages in those cases.
23308 Toplevel windows can be interacted with via the window manager,
23309 and so we keep the input mask there.
23311 The other event StructureNotifyMask gives us (that we care
23312 about) is DestroyNotify. The code is already structured such
23313 that it assumes we won't be getting a DestroyNotify event for
23314 the window we pass to XDestroyWindow (which is what
23315 StructureNotifyMask is supposed to guarantee.) So, that code
23316 shouldn't be affected by this either.
23318 - Stop selecting VisibilityChangeMask altogether.
23320 We weren't doing anything with the resulting events anyway.
23322 This vastly reduces the number of X requests and events we see
23323 when resizing/laying out a large ui.
23325 2006-10-06 Chris Toshok <toshok@ximian.com>
23327 * ScrollableControl.cs (DisplayRectangle): we need to take into
23328 account the DockPadding regardless of whether or not auto_scroll
23329 == true. rework this slightly to this effect, and fix bug #79606,
23330 and part of #72499 (you can now see the drag handles and drag
23333 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
23335 * ListViewItem.cs: Collections of selected and checked items are now
23336 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
23337 we mark the collection "dirty".
23338 * ListView.cs: Marked collections readonly. Modified UpdateSelection
23339 to only clear SelectedItems when a new item is selected and MultiSelect
23340 is enabled. CheckedItems and SelectedItems now subscribe to Changed
23341 event of ListViewItemCollection, and mark its list dirty whenever
23342 that event is fire. This allows us to return selected/checked items
23343 in the same order as they are in the Items collection. This matches
23346 2006-10-06 Chris Toshok <toshok@ximian.com>
23348 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
23349 right mouse clicks. Fixes bug #79593.
23351 2006-10-06 Chris Toshok <toshok@ximian.com>
23353 * Splitter.cs: doh, fix splitters that don't want to cancel the
23354 movement when you drag them. Also, impose the limits on the
23355 values we send to the SplitterMovingEvent. Fixes #79598.
23357 2006-10-06 Jackson Harper <jackson@ximian.com>
23359 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
23360 since we use this for auto scrolling also.
23362 2006-10-05 Chris Toshok <toshok@ximian.com>
23364 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
23365 beginning to think that most datagrid column types don't need this
23366 method. Fixes bug #79392.
23368 2006-10-05 Chris Toshok <toshok@ximian.com>
23370 * DataGrid.cs: move back to a more lazy scheme for creating the
23371 CurrencyManager, so we aren't updating it every time you set
23372 either DataSource or DataMember. Also, don't call
23373 RecreateDataGridRows if the currency manager hasn't changed.
23375 2006-10-05 Chris Toshok <toshok@ximian.com>
23377 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
23378 emitted, SelectedIndex should already be updated. Fixes bug
23381 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
23383 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
23384 ToolStripTextBox.cs: Initial commit.
23385 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
23387 2006-10-05 Jackson Harper <jackson@ximian.com>
23389 * TabControl.cs: We need to invalidate the tab control area when
23390 new ones are added (duh).
23392 2006-10-03 Chris Toshok <toshok@ximian.com>
23394 * Form.cs (ProcessDialogKey): if the focused control is in this
23395 form and is a button, call its PerformClick method here. Fixes
23398 2006-10-04 Jackson Harper <jackson@ximian.com>
23400 * TabPage.cs: Ignore setting of Visible, and add an internal
23401 method for setting the controls visibility. TabPage's Visible
23402 property is a little strange on MS, this seems to make us
23403 compatible, and fixes cases where people set all the tab pages to
23405 * TabControl.cs: Use the new internal setting on tab pages
23408 2006-10-03 Mike Kestner <mkestner@novell.com>
23410 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
23412 2006-10-03 Mike Kestner <mkestner@novell.com>
23414 * ListView.cs : use is_visible instead of Visible to check if
23415 scrollbars should be placed/sized. Also some max_wrap_width
23416 love for LargeIcon view. [Fixes #79533]
23418 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
23421 Make set_TextAlign() do actually update the align. Fixed #78403.
23423 2006-10-03 Chris Toshok <toshok@ximian.com>
23425 * DataGrid.cs: fix a crash when switching datasources if the
23426 vertical scrollbar is at someplace other than Value = 0. Also,
23427 reduce the number of recalculation passes we do in SetDataSource
23430 2006-10-03 Jackson Harper <jackson@ximian.com>
23432 * TextBoxBase.cs: Move the if value the same bail check up, we
23433 don't want to empty the document if it is already empty, this
23434 seems to severly mess up the caret. TODO: I should probably fix
23435 the empty statement to update teh caret somehow.
23437 2006-10-03 Chris Toshok <toshok@ximian.com>
23439 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
23440 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
23441 reflection, an internal row type, properties on said type, etc.)
23442 will work with our datagrid. Fixes #79531.
23444 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
23446 * FileDialog.cs: Don't crash if a path is not accessible
23447 (System.UnauthorizedAccessException). Fixes #79569.
23448 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
23449 a ':' too. Return unknown icon for those paths/files.
23451 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
23453 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
23454 GetContainerControl returns null.
23456 2006-10-02 Chris Toshok <toshok@ximian.com>
23458 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
23459 call to XGetWindowAttributes instead of "handle". fixes an X
23460 error using notifyicon after the NotifyIconWindow to Form base
23463 2006-10-02 Chris Toshok <toshok@ximian.com>
23465 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
23466 server grab and looping we need to do to get down to the most
23467 deeply nested child window.
23468 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
23469 QueryPointer again after the WarpPointer so we can generate a
23470 proper (fake) MotionNotify event to be enqueued in the destination
23472 (GetCursorPos): call QueryPointer.
23476 2006-10-02 Jackson Harper <jackson@ximian.com>
23478 * NotifyIcon.cs: Derive the notify icon from a form, so things
23479 like FindForm work on it.
23480 - Swallow the WM_CONTEXTMENU message, since that is generated on
23481 mouse down, and context menu is a mouse up kinda guy. I believe
23482 the correct fix here is probably to make the notify icon entirely
23483 NC area, but this seems to work fine for anyone not manipulating
23486 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
23488 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
23489 ToolStripItemCollection.cs, ToolStripLabel.cs,
23490 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
23491 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
23492 Initial implementation.
23493 * TextRenderer.cs: Provide padding to MeasureText.
23495 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
23497 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
23498 of ButtonBaseAccessibleObject. Fix bug #79552.
23500 2006-10-02 Jackson Harper <jackson@ximian.com>
23502 * MdiWindowManager.cs: When maximizing use the containers client
23503 rect, not it's bounds, so nc area is accounted correctly.
23504 - Use the parent form's size for the menu position, since the
23505 client isn't always the full form size.
23507 2006-10-01 Chris Toshok <toshok@ximian.com>
23509 * ScrollableControl.cs: make sure neither right_edge or
23510 bottom_edge are < 0, since they're used as LargeChange for the
23511 horiz/vert scrollbars respectively. Fixes #79539.
23513 2006-10-01 Chris Toshok <toshok@ximian.com>
23515 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
23516 the xplatuix11 code can cause us to destroy/recreate our handle.
23520 - this code can be invoked many times for the same Hwnd. Make
23521 sure we only destroy the client window once (the first time this
23522 method is called). This fixes bug #79544.
23523 - Remove the call to the improperly bound XSync. why we had two
23524 bindings to this, I will never know, but this call resulted in
23525 events being discarded from the queue(!).
23526 - correct a misunderstanding of _XEMBED_INFO - the second atom is
23527 not our current state but the state we wish to be in. So, 0 if
23528 we don't want to be mapped. Change it to 1.
23529 (SystrayRemove): The XEMBED spec makes mention of the fact that
23530 gtk doesn't support the reparent of client windows away from the
23531 embedder. Looking at gtksocket-x11.c seems to agree with this.
23532 The only avenue we have for removing systray icons is to destroy
23533 them. We don't want the handle to go away for good, though, so
23534 call InternalRecreateHandle on the NotifyIconWindow. Fixes
23537 2006-10-01 Chris Toshok <toshok@ximian.com>
23539 * Form.cs (WndProc): inline the native_enabled variable usage into
23540 the cases in which it's used. Fixes #79536.
23542 2006-09-29 Mike Kestner <mkestner@novell.com>
23544 * ListView.cs : toggle the selection state for ctrl clicks in
23545 multiselect mode. [Fixes #79417]
23547 2006-09-29 Mike Kestner <mkestner@novell.com>
23549 * ListView.cs : kill CanMultiSelect and refactor the selection
23550 code to support multiselection in the absence of mod keys. Steal
23551 arrow/home/end keys by overriding InternalPreProcessMessage to
23552 restore regressed keynav behavior.
23555 2006-09-29 Jackson Harper <jackson@ximian.com>
23557 * MdiClient.cs: Repaint the titlebars when the active window is
23560 2006-09-29 Chris Toshok <toshok@ximian.com>
23562 * Application.cs: when entering a runloop with a modal, make sure
23563 the hwnd is enabled. Fixes #79480.
23565 2006-09-29 Chris Toshok <toshok@ximian.com>
23567 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
23568 when ListManager.CanAddRows == false, bump us back one.
23570 * DataGridColumnStyle.cs (ParentReadOnly): remove the
23571 listmanager.CanAddRows check. This makes ArrayLists uneditable
23572 using a datagrid, which is not right.
23573 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
23574 is an IEditable, but call property_descriptor.SetValue regardless.
23577 2006-09-29 Chris Toshok <toshok@ximian.com>
23579 * DataGridBoolColumn.cs: we need to test equality in the face of
23580 possible null values (as is the case with the default NullValue).
23581 This patch keeps us from crashing in that case.
23583 2006-09-29 Jackson Harper <jackson@ximian.com>
23585 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
23586 here, since it will get called for every node collection in the
23587 tree. This is now done in the treeview once the sorting is
23589 * TreeView.cs: Recalculate the visible order, and update the
23590 scrollbars after sorting, set the top nope to the root so that the
23591 recalc actually works.
23593 2006-09-29 Chris Toshok <toshok@ximian.com>
23595 * LinkLabel.cs: more handling of the default link collection in
23596 the face of LinkArea manipulation. The default link collection
23597 contains 1 element (start=0,length=-1). If the user sets LinkArea
23598 to anything and the links collection is the default, clear it.
23599 Then only add the link if its nonempty. Fixes #79518.
23601 2006-09-29 Chris Toshok <toshok@ximian.com>
23603 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
23604 piece correctly when we hit a '\n'. Fixes #79517.
23606 2006-09-29 Chris Toshok <toshok@ximian.com>
23608 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
23609 change the binding of gdk_init_check to take two IntPtr's, and
23610 pass IntPtr.Zero for both of them. Fixes #79520.
23612 2006-09-29 Mike Kestner <mkestner@novell.com>
23614 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
23617 2006-09-28 Jackson Harper <jackson@ximian.com>
23619 * XplatUIX11.cs: When translating NC messages make sure we go from
23620 whole window to screen, not client window to screen.
23621 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
23622 method doesn't exist
23623 - Skip over controls that aren't forms when arranging.
23625 2006-09-28 Jackson Harper <jackson@ximian.com>
23627 * XplatUIWin32.cs: Clip the rect to the parent window.
23628 * XplatUIStructs.cs: Add clipping modes struct.
23629 * InternalWindowManager.cs: New private method that factors title
23630 bar heights in when calculating the pos of an NC mouse message.
23631 - Use SendMessage to force a paint when the form's size is changed
23632 instead of painting the decorations immediately.
23633 - Don't let the NC button click messages get to DefWndProc,
23634 because they will attempt to handle windowing themself, and this
23635 messes up z-order (it will put them in front of the scrollbars).
23636 * XplatUIX11.cs: Make sure that we don't reset window managers if
23637 we already have one (ie the window is an MDI window).
23639 2006-09-28 Chris Toshok <toshok@ximian.com>
23641 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
23642 menu code really needs going over.
23644 2006-09-27 Chris Toshok <toshok@ximian.com>
23646 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
23647 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
23648 window is maximizable. So, we need to make sure that even if we
23649 clear the border/wm frame of those functions, they're still
23650 available (basically, we remove the decoration without removing
23651 the function). Half the fix for #79338.
23653 2006-09-27 Chris Toshok <toshok@ximian.com>
23655 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
23658 2006-09-27 Chris Toshok <toshok@ximian.com>
23660 * Splitter.cs: reorder things a bit so that we don't actually
23661 draw/move the splitter until after calling OnSplitterMoving. This
23662 lets users cancel/disallow the movement by explicitly setting
23663 event.SplitX/SplitY. Fixes #79372.
23665 2006-09-27 Jackson Harper <jackson@ximian.com>
23667 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
23668 because it is most likely on a window being destroyed, and that
23669 will give us an X11 error.
23671 2006-09-27 Chris Toshok <toshok@ximian.com>
23673 * PropertyGridView.cs: half of the fix for #78190. Clicking on
23674 the dropdown button now toggles between showing and hiding the
23675 dropdown. Also, get rid of dropdown_form_showing and just use
23676 dropdown_form.Visible. We still don't do a grab, but I'll leave
23677 that part to someone who has handled Capture-fu before.
23679 2006-09-27 Chris Toshok <toshok@ximian.com>
23681 * DataGrid.cs: return false if alt isn't pressed when '0' is
23682 pressed. this keeps the '0' key from being swallowed, and fixes
23685 2006-09-27 Chris Toshok <toshok@ximian.com>
23687 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
23688 Calling Refresh (in response to a scrollbar event) screws up the
23689 scrollbar painting. Fixes bug #78923.
23691 2006-09-27 Chris Toshok <toshok@ximian.com>
23693 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
23694 then insert into hashtable" blocks threadsafe.
23696 2006-09-27 Chris Toshok <toshok@ximian.com>
23698 * MessageBox.cs (CreateParams): the styles should be |'ed with our
23699 baseclass's, since otherwise the
23700 ControlBox/MinimizeBox/MaximizeBox assignments above have no
23701 effect. This gets the close button back in messageboxes.
23703 2006-09-27 Chris Toshok <toshok@ximian.com>
23705 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
23706 flag, not just != 0. this makes flags that are actually multiple
23707 bits (like WS_CAPTION) work. fixes bug #79508.
23709 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
23711 * PageSetupDialog.cs: add support for getting and settings the
23712 paper size, source and orientation.
23714 2006-09-26 Chris Toshok <toshok@ximian.com>
23716 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
23717 and caption == "", we need to remove the resize handles as well as
23720 * Control.cs (set_Text): turns out that setting Text on a form
23721 should change the WM styles on the window, since if ControlBox ==
23722 false, the only way to get a window border is to have a non-""
23723 Text property. check winforms/forms/text.cs for an example. so,
23724 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
23725 update both window styles and title. This fixes a lot of dialogs
23726 (including the preferences dialog in MonoCalendar.)
23728 2006-09-26 Chris Toshok <toshok@ximian.com>
23730 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
23731 control isn't a Form), call Win32ShowWindow to hide the window,
23732 but don't update the control Visible property. When we reparent
23733 back to a parent control, call SetVisible in order for the
23734 window's visibility to be reinstated.
23736 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
23739 * Control.cs (ControlCollection.Remove): remove that value.Hide()
23740 call for good, since it breaks MonoCalendar (and other things I'm
23741 sure.) Also, set all_controls to null *after* the owner calls,
23742 which end up regenerating it.
23743 (ChangeParent): allow new_parent to be == null, passing
23744 IntPtr.Zero down to XplatUI.
23746 this fixes #79294 the right way.
23748 2006-09-26 Mike Kestner <mkestner@novell.com>
23750 * GridEntry.cs : internal SetParent method.
23751 * PropertyGrid.cs : attach to property changed on the proper
23752 target if we have a hierarchical grid with subobjects. Setup
23753 GridItem.Parent for hierarchical items.
23754 * PropertyGridView.cs : Set value on the correct target for
23755 hierarchical grids. [Fixes #78903]
23757 2006-09-26 Chris Toshok <toshok@ximian.com>
23759 * Control.cs (ChildNeedsRecreating): this should return true if
23760 either we're being recreated and the child is in our list, or our
23761 parent is waiting for our recreation.
23763 2006-09-26 Chris Toshok <toshok@ximian.com>
23765 * Control.cs (ControlCollection.Remove): reinstate the
23766 value.Hide() call as suggested in bug #79294.
23768 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
23770 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
23771 coordinates (versus a relative move).
23773 2006-09-26 Chris Toshok <toshok@ximian.com>
23775 * Control.cs: rework child recreation a little bit. It turns out
23776 that we race between the DestroyNotify the WM_DESTROY message. If
23777 the parent gets its DestroyNotify before the child gets the
23778 WM_DESTROY message, the child ends up not recreating (since the
23779 parent finishes its recreation on DestroyNotify, and the child
23780 checks ParentIsRecreating.)
23782 So, instead we store off a list of all the child controls which
23783 need to be recreated when the parent control starts to recreate
23784 itself. Then, when child controls get their WM_DESTROY message we
23785 check to see if they're in the parent's pending recreation list,
23786 and if so, we recreate. This removes all dependency on ordering
23787 from the code and fixes the initial MonoCalendar upgrade dialog.
23789 2006-09-26 Jackson Harper <jackson@ximian.com>
23791 * TextControl.cs: Use the Line to get the length of the line,
23792 since soft line breaks can change the end line.
23794 2006-09-26 Chris Toshok <toshok@ximian.com>
23796 * Control.cs (ControlCollection.AddImplicit): don't add the
23797 control again if it's already in one of our lists. This keeps us
23798 from adding controls over and over again for comboboxes when their
23799 handle gets recreated (as the combobox adds implicit controls in
23800 OnHandleCreated). Fixes the X11 errors in bug #79480.
23802 2006-09-26 Jackson Harper <jackson@ximian.com>
23804 * TextControl.cs: When deleting characters make sure that any
23805 orphaned zero lengthed tags get deleted.
23806 - Fix ToString for zero lengthed tags.
23808 2006-09-25 Jackson Harper <jackson@ximian.com>
23810 * TextControl.cs: When getting a tag at the location there can be
23811 multiple tags at the same spot, these are 0-lengthed tags that
23812 appear when extra formatting has been stuck in a location. We
23813 need to pull out the last of these 0 lengthed tags.
23815 2006-09-25 Jackson Harper <jackson@ximian.com>
23817 * TextControl.cs: Fix print out in debug method.
23818 * TextBoxBase.cs: When text is set bail if we are setting to the
23821 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
23823 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
23824 It is now possible to change the selected index in a FontXXXListBox
23825 with the up and down arrow keys from the FontXXXTextBoxes.
23826 Also, send the FontXXXTextBox mouse wheel event to the corresponding
23827 FontXXXListBoxes to match ms.
23829 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
23831 * SystemInformation.cs: Return a clone of the theme's MenuFont because
23832 anyone can dispose it, anytime. All other properties returns enums,
23833 structs or basic types so they don't need such tricks.
23835 2006-09-22 Jackson Harper <jackson@ximian.com>
23842 * XplatUIDriver.cs: Update interface to add a primary selection
23843 flag, so the driver can use the primary selection buffer if
23845 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
23847 * RichTextBox.cs: We need to supply the data object to paste now
23848 (so we can choose to supply CLIPBOARD or PRIMARY).
23849 * TextBoxBase.cs: Supply data object to paste (see above).
23850 - Middle click uses the primary selection data object.
23852 2006-09-21 Chris Toshok <toshok@ximian.com>
23854 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
23855 of SetWMStyles. It's still a rat's nest and is largely
23856 order-dependent which I dislike immensely. This also fixes the X
23857 button disappearing from toplevel forms.
23859 2006-09-21 Mike Kestner <mkestner@novell.com>
23861 * ListBox.cs: move Jordi's click/dblclick raising code to the
23864 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
23866 * ListBox.cs: Fixes 79450
23868 2006-09-21 Mike Kestner <mkestner@novell.com>
23870 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
23871 to deal with people updating the TreeNodeCollection after the tree
23872 is disposed. "Fixes" 79330.
23874 2006-09-20 Jackson Harper <jackson@ximian.com>
23876 * TextControl.cs: Push the cursor record onto the undo stack
23877 before the delete action. This fixes 78651.
23879 2006-09-20 Jonathan Chambers <joncham@gmail.com>
23881 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
23882 CreateParams. Fixes 79329.
23884 2006-09-19 Chris Toshok <toshok@ximian.com>
23886 * XplatUIX11.cs: a couple of blanket code massage passes to clean
23887 things up a bit. First, get rid of the NetAtoms array (and the NA
23888 enum), and just embed the atoms as static fields. Also, add a
23889 couple of functions (StyleSet and ExStyleSet) to clean up all the
23890 bitmask testing of styles.
23892 * X11Structs.cs: remove the NA enum, not needed anymore.
23894 2006-09-19 Chris Toshok <toshok@ximian.com>
23896 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
23897 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
23898 added cleanup to get MessageBox titles appearing again, which were
23899 broken by my earlier fix for caption-less/ControlBox-less windows.
23901 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
23903 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
23904 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
23905 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
23906 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
23907 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
23908 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
23909 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
23910 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
23911 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
23912 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
23913 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
23915 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
23916 ToolStripButton.cs: Stubs needed for above.
23917 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
23919 2006-09-15 Chris Toshok <toshok@ximian.com>
23922 - make the MessageQueues hashtable Synchronized.
23924 - SendMessage: if the Hwnd is owned by a different thread, use the
23925 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
23926 thread. Fixes bug #79201.
23928 2006-09-15 Chris Toshok <toshok@ximian.com>
23930 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
23931 ControlBox == false, we disallow maximize/minimize/close. If the
23932 form Caption is "" we also disallow move (and get rid of the Title
23933 decoration). Unfortunately, regardless of how things are set,
23934 we're stuck with the Title and WM menu.
23936 2006-09-15 Chris Toshok <toshok@ximian.com>
23938 * Application.cs: add locking around the static message_filters
23939 ArrayList, part of #79196.
23941 2006-09-15 Chris Toshok <toshok@ximian.com>
23943 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
23944 Form.ControlBox == false, the window has no titlebar nor resize
23945 handles. fixes bug #79368.
23947 2006-09-15 Chris Toshok <toshok@ximian.com>
23949 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
23950 >= 0. Fixes bug #79370.
23952 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
23953 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
23955 Add properties: LayoutEngine, Margin, DefaultMargin.
23956 Add method: GetPreferredSize.
23957 Move layout logic from PerformLayout to layout engines.
23959 2006-09-13 Chris Toshok <toshok@ximian.com>
23961 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
23962 fix for #79326 broke #78718, so this change addresses that.
23964 - in SendWMDestroyMessages remove the call to
23965 CleanupCachedWindows, since we might be recreating the control and
23966 need to maintain the references to right Hwnd handles. Also, set
23967 the zombie flag to true for each of the children in the hierarchy
23968 instead of calling hwnd.Dispose. This will cause GetMessage to
23969 ignore all events for the window except for DestroyNotify.
23971 - In GetMessage, ignore messages except for DestroyNotify for
23974 * Control.cs: revert the is_recreating fix from the last
23975 ChangeLog. It's definitely "right", but it breaks switching from
23976 an MDI form to a non-MDI form. Will need to revisit that.
23978 * Hwnd.cs: add a zombie flag, which means "the
23979 client_window/whole_window handles are invalid, but we're waiting
23980 for the DestroyNotify event to come in for them". Set the flag to
23981 false explicitly if setting WholeWindow/ClientWindow, and also
23984 2006-09-13 Chris Toshok <toshok@ximian.com>
23986 * XplatUIX11.cs: rework window destruction slightly.
23988 - when destroying the windows associated with a control, we don't
23989 need 2 separate XDestroyWindow calls. Just the one for the
23990 whole_window (or for client_window if whole_window is somehow
23991 IntPtr.Zero -- can this happen?) is enough.
23993 - reworked SendWMDestroyMessages slightly, so we always dispose
23994 the child control hwnd's after sending the messages.
23996 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23997 the two places it was used (one was even using hwnd.Handle and the
23998 other hwnd.client_window. ugh), adding another call in
23999 SendWMDestroyMessages. We need this new call because now the
24000 DestroyNotify events in the queue will be ignored for the child
24001 controls (as their hwnd's were disposed, and the window id's
24002 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
24004 - this fixes bug #79326.
24006 2006-09-13 Chris Toshok <toshok@ximian.com>
24008 * Control.cs: don't always set is_recreating to false at the end
24009 of RecreateHandle, since sometimes we're not done (and won't be
24010 until WndProc handles the WM_DESTROY message). Also, set
24011 is_recreating to false in the WM_DESTROY handling code. Part of
24012 the fix for bug #79326.
24014 2006-09-13 Miguel de Icaza <miguel@novell.com>
24016 * X11DesktopColors.cs: Start the droppage of debugging messages.
24018 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
24020 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
24022 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
24024 2006-09-12 Chris Toshok <toshok@ximian.com>
24026 * DataGrid.cs (get_ListManager): if the list_manager is null, try
24027 to create it using SetDataSource. Fixes bug #79151.
24029 2006-09-11 Chris Toshok <toshok@ximian.com>
24031 * XEventQueue.cs: add a DispatchIdle property.
24033 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
24034 either the queue is null, or the queue has DispatchIdle set to
24036 (DoEvents): set queue.DispatchIdle to false around the
24037 peek/translate/dispatch message loop in this method. This keeps
24038 Application.Doevents from emitting idle events. Part of the fix
24041 2006-09-11 Chris Toshok <toshok@ximian.com>
24043 * DataGrid.cs (set_DataSource): make this work for both the
24044 winforms/datagrid test and ReportBuilder. It seems as though when
24045 we've created a ListManager (or maybe it's if we have a
24046 BindingContext?), when we set the DataSource it clears the
24047 DataMember to "". otherwise we reuse the datamember. Fixes bug
24050 2006-09-11 Chris Toshok <toshok@ximian.com>
24052 * XplatUIX11.cs: deal with queue being null, which happens in all
24053 the Clipboard functions. Fixes one of the two problems mentioned
24056 2006-09-11 Chris Toshok <toshok@ximian.com>
24058 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
24059 button on various spots (including outside the menu) works closer
24060 to MS, and doesn't crash. Fixes #79343.
24062 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
24064 * ListView.cs: Do not initialize item_sorter in init. To match MS,
24065 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
24066 and the internal comparer is set. When a new ListViewItemSorter is set,
24067 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
24068 was specified. No further processing is necessary if SortOrder is set
24069 to it's current value. If Sorting is modified to None, and View is
24070 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
24071 (either custom or our internal ItemComparer) to null, on 1.0 profile
24072 only set item_sorter to null if its our internal IComparer. If Sorting
24073 is modified to Ascending or Descending, then use our internal IComparer
24074 if none is set, and if the current IComparer is our internal one then:
24075 on 2.0 profile always replace it with one for new Sorting, and on 1.0
24076 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
24077 Enum.IsDefined to verify whether a valid View value is specified in
24078 its setter. Automatically sort listview items when listview is
24079 created. In Sort, do nothing if ListView is not yet created, or if
24080 no item_sorter is set (no Sorting was set, Sorting was explicitly set
24081 to None or ListViewItemSorter was set to null). Added Sort overload
24082 taking a bool to indicate whether the ListView should be redrawn when
24083 items are sorted (we use this in ListViewItemCollection to avoid double
24084 redraws). Modified our internal IComparer to take the sort order into
24085 account. In Add and AddRange methods of ListViewItemCollection, also
24086 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
24087 view), but use overload with noredraw option to avoid double redraw.
24088 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
24089 true when View is Tile, and do the same when attempting to set View to
24090 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
24091 for selected/checked indices, as it involves overhead when sorting is
24092 done while these collections are not used all that often. Instead
24093 we'll build the indices on demand. Modified IList implementation of
24094 CheckedIndexCollection to use public methods if object is int.
24095 Modified CheckedListViewItemCollection to hide checked items if
24096 ListView.CheckBoxes is false. Removed LAMESPEC remark in
24097 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
24098 IList implementation in SelectedIndexCollection to use public methods
24099 if object is int. Modified SelectedListViewItemCollection to hide
24100 selected items if listview is not yet created.
24101 * ListViewItem.cs: CheckedIndices list no longer needs to be
24102 maintained separately (see ListView changes). Also clone font, fixes
24105 2006-09-11 Mike Kestner <mkestner@novell.com>
24107 * ComboBox.cs: if we are updating the contents of the currently
24108 selected index, refresh the control or the textbox selection.
24111 2006-09-11 Mike Kestner <mkestner@novell.com>
24113 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
24114 the 'specified' logic has been moved there. This seems like a bug
24115 in Control.cs, since our current SetBoundsCore completely ignores
24116 the specified parameter. Peter's commit seems to indicate that is
24117 the way the MS control implementation works. [Fixes #79325]
24119 2006-09-10 Jonathan Chambers <joncham@gmail.com>
24121 * XplatUI.cs: Set default_class_name to be composed
24122 of current domain id. This allows MWF to be loaded in multiple
24125 2006-09-09 Miguel de Icaza <miguel@novell.com>
24127 * X11Keyboard.cs: If we are unable to obtain the input method, do
24128 not call CreateXic to create the input context. Should fix
24131 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
24133 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
24134 Simplified gnome support by adding more pinvokes to get the
24135 icon for a file or mime type.
24137 2006-09-08 Jackson Harper <jackson@ximian.com>
24139 * MenuAPI.cs: Deslect popup context menu items before closing the
24140 window, so that you don't see the previously selected item
24141 selected when you reopen the menu.
24142 * TextControl.cs: Update the cursor position even if we don't have
24143 focus. This fixes typing in things like the ComboBox. I'm not
24144 totally sure we should always set the visibility if we don't have
24145 focus, but couldn't find any corner cases where the cursor showed
24146 up when it shouldn't.
24148 2006-09-08 Chris Toshok <toshok@ximian.com>
24150 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
24151 our arrays are length 256. & 0xff before indexing. Fixes the
24152 crash in bug #78077.
24154 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24156 * ThemeWin32Classic.cs:
24157 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
24158 is true. Handle that check box too.
24160 2006-09-07 Chris Toshok <toshok@ximian.com>
24162 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
24165 2006-09-07 Chris Toshok <toshok@ximian.com>
24167 * Control.cs: in set_BackColor only do the work if
24168 background_color != value.
24170 * XplatUIX11.cs: move the clearing of invalid areas (both client
24171 and nc) to the same block of code where we set (nc_)expose_pending
24172 to false. That is, move it from PaintEventEnd to PaintEventStart,
24173 so things that cause invalidates from within OnPaint will trigger
24174 another call to OnPaint. Fixes bug #79262.
24176 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
24178 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
24179 * FileDialog.cs: Fix typo
24181 2006-09-07 Jackson Harper <jackson@ximian.com>
24183 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
24184 for tab pages if they have any.
24186 2006-09-06 Mike Kestner <mkestner@novell.com>
24188 * Splitter.cs: use the "current" rect when finishing drag handle
24189 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
24191 2006-09-06 Mike Kestner <mkestner@novell.com>
24193 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
24194 support offset splitters. [Fixes #79298]
24196 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
24198 * Mime.cs: Fixed a bug that could override the global mime type
24201 2006-09-05 Jackson Harper <jackson@ximian.com>
24203 * TabControl.cs: Better calculation method for setting the slider
24204 pos. Prevents crashes on really wide tabs.
24205 - Draw Image on tab pages if an image list is used.
24207 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24209 * MonthCalendar.cs: When Font changes, the Size should be
24210 updated to fit the new font's space requirements.
24212 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
24214 * ListBox.cs: If the items are cleared with Items.Clear set
24217 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24219 * MonthCalendar.cs: Handle arrow keys as input keys. Also
24220 fire DateChanged event instead of DateSelected event when
24221 the date was changed by keyboard interaction.
24223 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24225 * DateTimePicker.cs: Handle DateChanged for the associated
24226 month_calendar control, and set month_calendar.Font from
24227 OnFontChanged method, as well as resize the height of the
24228 control when needed. Make PreferredHeight proportional.
24230 2006-09-01 Chris Toshok <toshok@ximian.com>
24232 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
24235 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
24237 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
24239 * FileDialog.cs: Set ClientSize instead of window size, to allow space
24240 for decorations (Fixes #79219)
24242 2006-09-01 Mike Kestner <mkestner@novell.com>
24244 * ComboBox.cs: first stab at sorting plus some selection handling
24245 fixes to bring us more in line with MS behavior. Also switches back
24246 to index based selection. Alternative patches for index-based
24247 selection were provided by Jackson Harper, Carlos Alberto Cortez,
24248 and latency@gmx.de on bug 78848. I assume they were similar to this
24249 code I've had simmering in my tree forever.
24252 2006-09-01 Chris Toshok <toshok@ximian.com>
24254 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
24255 when setting list position guard against ending up with a -1 index
24256 (the other part of the fix for #78812). Should probably make sure
24257 we don't need the analogous fix in the ItemDeleted case.
24260 - in SetDataSource, work around the fact that the way
24261 OnBindingContextChanged is invoked will cause us to re-enter this
24262 method. I'll remove the hack once I investigate
24263 OnBindingContextChanged.
24265 - fix the logic in set_DataSource and set_DataMember (basically
24266 what to do if the other of the two is null.)
24268 - in OnListManagerItemChanged, we need to take into account the
24269 edit row when deciding whether or not to call RecreateDataGridRows
24270 (part of the fix for #78812).
24272 2006-09-01 Jackson Harper <jackson@ximian.com>
24274 * Splitter.cs: Don't do anything if there is no control to affect
24275 (prevents us from crashing in weird tet cases).
24276 * TreeView.cs: Bounding box for the mouse movement reverting
24277 focus/selection back to previously selected node. This matches
24278 MS, and makes the tree a lot more useable.
24279 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
24280 use clipping so they are not drawn. This fixes when the control
24281 is set to have a transparent background, or if it was over an
24284 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
24286 * MimeIcon.cs: Improved handling for reading default icons when
24287 using gnome (2.16 made it necessary). Check and read svg icons
24288 first, then 48x48 and then 32x32 icons.
24290 2006-08-31 Chris Toshok <toshok@ximian.com>
24292 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
24295 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
24296 ProcessKeyPreview. Fixes part of #77806.
24298 * DataGrid.cs: big patch.
24300 - revert the queueing up of DataSource/DataMember if inside
24301 BeginInit/EndInit calls. That's not the way the datagrid achieves
24302 its delayed databinding. Instead, call SetDataSource in
24303 OnBindingContextChanged. This mimic's MS's behavior, and fixes
24306 - Also, it wasn't mentioned in #78811, but the test case exhibits
24307 behavior that was lacking in our datagrid implementation - Columns
24308 that have mapping names that don't exist in the datasource's
24309 properties aren't shown. Yuck. To fix this I added the bound
24310 field to the column style, and basically any calculation to figure
24311 out anything about columns uses a loop to find the bound columns.
24312 still need to investigate if I can cache an array of the bound
24313 columns or if the indices must be the same.
24315 - When setting CurrentCell, we no longer abort if the cell being
24316 edited was in the add row. This fixes the other part of #77806.
24318 - The new code also fixes #78807.
24320 * ThemeWin32Classic.cs: perpetrate the same disgusting
24321 column.bound field hack, and only render bound fields.
24323 2006-08-31 Chris Toshok <toshok@ximian.com>
24325 * DataGridColumnStyle.cs: add bound field. this field is true if
24326 the datasource has a property corresponding to the mapping name.
24328 * DataGridTableStyle.cs: set the bound field on the column styles
24329 depending on whether or not we have a column for that property.
24331 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
24333 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
24334 splitter control (fixes #79228)
24336 2006-08-31 Chris Toshok <toshok@ximian.com>
24338 * DataGridColumnStyle.cs: we need to delay the assignment of
24339 property descriptor until the last possible moment due to the lazy
24340 databinding stuff in the datagrid. Also, fix the exceptions
24341 thrown by CheckValidDataSource to match MS.
24343 2006-08-31 Jackson Harper <jackson@ximian.com>
24345 * Form.cs: When activated select the active control, if there is
24346 no active control, we select the first control.
24347 * XplatUIX11.cs: If there is no focus control when we get a
24348 FocusIn event, find the toplevel form and activate it. This
24349 occurs when you popup a window, it becomes the focus window, then
24350 you close that window, giving focus back to the main window.
24352 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24354 * MonthCalendar.cs:
24355 * ThemeWin32Classic.cs: Cache Font in bold style, as well
24356 as StringFormat with Center alignments in MonthCalendar,
24357 instead of creating new ones when drawing the control.
24358 Also, draw the month name in bold style.
24360 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
24363 - PerformLayout(): It would seem MS performs the fill even if the
24364 control is not visible (part of #79218 fix)
24365 - ResetBackColor(): Use the setter to reset the color, to allow
24366 overriders to catch the change.
24368 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
24369 - CreateHandle(): dito (part of $79218 fix)
24370 - Don't set an icon if we have a dialog
24371 * ScrollableControl.cs:
24372 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
24373 - ScrollIntoView(): No need to scroll if control is already visible
24374 (resolves fixme and fixes #79218)
24376 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24378 * MonthCalendar.cs: Change proportions in SingleMonthSize
24379 to match the aspect of the original control.
24381 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
24383 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
24384 get updated when they get maximized.
24386 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
24388 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
24390 2006-08-29 Chris Toshok <toshok@ximian.com>
24392 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
24394 2006-08-29 Jackson Harper <jackson@ximian.com>
24396 * TreeView.cs: Need to track selected node and highlighted node,
24397 they aren't always the same thing, when the mouse is down on a
24398 node it is hilighted, but not selected yet.
24399 - Do the HideSelection stuff right
24400 - Need to focus on rbutton mouse down. And redraw selection when
24401 right click is mouse upped.
24403 2006-08-29 Mike Kestner <mkestner@novell.com>
24405 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
24406 when SubItems.Count < Columns.Count. [Fixes #79167]
24408 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
24410 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
24412 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
24414 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
24415 from X. Only send based on ConfigureNotify if we don't have the
24416 correct location in hwnd (if the window manager moved us)
24418 2006-08-28 Mike Kestner <mkestner@novell.com>
24420 * ListView.cs: remove a TODO.
24421 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
24422 [Fixes ListView part of #79166]
24424 2006-08-28 Mike Kestner <mkestner@novell.com>
24426 * ListView.cs: move wheel handler to parent since it is focused
24427 instead of the item_control now. [Fixes #79177]
24429 2006-08-28 Mike Kestner <mkestner@novell.com>
24431 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
24432 when the control is focused. [Fixes #79171]
24434 2006-08-28 Mike Kestner <mkestner@novell.com>
24436 * ListView.cs: size the item and header controls for empty and
24437 unscrollable views.
24438 * ThemeWin32Classic.cs: draw disabled backgrounds.
24441 2006-08-28 Chris Toshok <toshok@ximian.com>
24443 * Form.cs: remove unused "active_form" static field.
24445 * Hwnd.cs: lock around accesses to static windows collection.
24447 * Application.cs: lock threads in Exit ().
24449 2006-08-28 Chris Toshok <toshok@ximian.com>
24451 * NativeWindow.cs: lock around accesses to window_collection.
24453 2006-08-28 Chris Toshok <toshok@ximian.com>
24455 * Control.cs: err, fix this the right way, by locking on controls
24456 when using it. not by making it synchronized.
24458 2006-08-28 Chris Toshok <toshok@ximian.com>
24460 * Control.cs: make the static "controls" field synchronized, as it
24461 gets updated from multiple threads.
24463 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
24465 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
24466 Prevent other threads from exiting when calling thread sets quit state.
24467 * XEventQueue.cs: Added PostQuitState property
24469 2006-08-27 Chris Toshok <toshok@ximian.com>
24471 * AsyncMethodData.cs: add a slot for the window handle.
24473 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
24474 window (the destination control's window, not the foster window).
24476 * Control.cs (BeginInvokeInternal): store the window's handle in
24477 the AsyncMethodData.
24480 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
24483 - PostQuitMessage: Removed resetting S.D display handle, we might have
24484 another loop started after calling PostQuitMessage (Fixes #79119)
24485 - Created destructor to reset S.D handle
24487 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
24489 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
24491 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24493 * TextControl.cs (Insert): Update the caret position even if we don't
24494 have a handle yet, just don't call the driver in that case.
24495 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
24496 to the end of the new selection text (Fixes #79184)
24498 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24500 * Form.cs (Activate): Only activate if the handle is created)
24502 - Mark window as invisible when it's disposed
24503 - Check if window handle is created when setting window visible,
24504 instead of relying just on the is_created variable
24505 - Check if object is disposed when creating the control (Fixes #79155)
24507 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24509 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
24510 when allowing layout again. Otherwise we re-generate the anchoring
24511 distance to the border again and actually alter what the user wanted
24512 This is ugly, it'd be better if we used DisplayRectangle instead of
24513 ClientRectangle for Control.UpdateDistances, but that causes us to
24514 have other problems (initial anchoring positons would be wrong)
24517 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24520 - The size and location setters shouldn't go directly to
24521 SetBoundsCore, but to SetBounds, which triggers layout on the
24522 parent, then calls SetBoundsCore. (Related to fix for #78835)
24523 - SetBounds: Moved actual location update code into this function
24524 from SetBoundsCore, to match MS. Added call to PerformLayout if
24525 we have a parent (to trigger resizing of anchored parents if the
24526 child size has changed (see testcase for #78835)
24527 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
24529 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
24531 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24533 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
24534 System.Drawing when a toplevel window gets closed; there might
24535 be other toplevel windows belonging to the same app (Fixes #78052)
24537 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
24539 * FileDialog.cs: After reading FileDialog settings from mwf_config
24540 use Desktop prefix only if a real folder doesn't exist anymore.
24541 * FontDialog.cs: Added char sets.
24542 It is now possible to select the font, size or style with the
24545 2006-08-25 Kornél Pál <kornelpal@gmail.com>
24547 * PrintPreviewDialog.cs: Use assembly name constants.
24549 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24551 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
24552 scrollbar from whacking it's buttons)
24554 2006-08-24 Chris Toshok <toshok@ximian.com>
24556 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
24557 in this patch (aggregating setting Left/Top/Width/Height to
24558 setting Bounds on the scrollbars), but the crux of the fix is in
24559 Recalculate, where we scroll by the remaining scroll_position if
24560 we're hiding a scrollbar. The 2*$5 reward in the comment is
24563 2006-08-24 Jackson Harper <jackson@ximian.com>
24566 * MdiWindowManager.cs: If the form is made a non-mdi window we
24567 need to remove the form closed event so that closing forms works
24570 2006-08-24 Jackson Harper <jackson@ximian.com>
24572 * Control.cs: Make IsRecreating internal so that the driver can
24574 - Temporarily remove the Hide when controls are removed, its
24575 making a whole bunch of things not work because visibility isn't
24576 getting reset elsewhere correctly
24577 * Form.cs: Need to do a full handle recreation when the mdi parent
24579 * XplatUIX11.cs: If we are recreating handles don't dispose the
24580 HWNDs. What was happening is the handles were being recreated in
24581 SendWMDestroyMessages, but then flow continued on in that method
24582 and destroyed the new handles.
24584 2006-08-23 Jackson Harper <jackson@ximian.com>
24586 * Form.cs: MdiClient is always at the back of the bus
24587 * Control.cs: When the order of items in the collection is changed
24588 we need to reset the all_controls array
24589 - do the same sorta setup thats done when adding a control when a
24590 control is set on the collection.
24592 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24594 * TextBoxBase.cs (get_Text): Return an empty array if our document
24595 is empty (fixes #79052)
24597 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24599 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
24600 on WM_SYSCHAR messages (fixes #79053)
24602 2006-08-23 Chris Toshok <toshok@ximian.com>
24604 * DataGrid.cs: fix flickering when scrolling vertically.
24606 2006-08-23 Chris Toshok <toshok@ximian.com>
24608 * DataGrid.cs (EndEdit): only invalidate the row header when we
24611 2006-08-23 Chris Toshok <toshok@ximian.com>
24613 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
24614 methods. fixes the flicker when scrolling around.
24616 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24618 * FileDialog.cs: Making sure the control is created before we get a
24619 chance to use it with BeginInvoke (Fixes #79096)
24621 2006-08-23 Chris Toshok <toshok@ximian.com>
24623 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
24624 width to use when painting the rows.
24626 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24629 - Throw ArgumentException if a negative value is passed to SelectionLength
24630 - Update the selection end if start is moved. end needs to be always
24631 after start. (Fixes #79095)
24632 - Track selection length; MS keeps the selection length even if start
24633 is changed; reset on all other operations affection selection
24635 2006-08-22 Jackson Harper <jackson@ximian.com>
24637 * TreeView.cs: Make sure both scrollbars get displayed and sized
24638 correctly when the other bar is visible.
24639 - Use the original clip rectangle for checking if the area between
24640 the two scrollbars is visible, not the viewport adjusted clipping
24643 2006-08-22 Jackson Harper <jackson@ximian.com>
24645 * Binding.cs: We don't use IsBinding because it requires the
24646 control to be created, which really shouldn't be necessary just to
24647 set a property on the control.
24649 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24651 * ComboBox.cs: Some CB.ObjectCollection methods must throw
24652 ArgumentNullReferenceException when the argument is null.
24654 2006-08-21 Jackson Harper <jackson@ximian.com>
24656 * Timer.cs: Track the thread that the timer is started in (NOT
24657 CREATED), this way messages for it will only be triggered on its
24659 * XEventQueue.cs: Track the timers here, this makes timers per
24661 * XplatUIX11.cs: The timers are moved to the XEventQueue.
24663 2006-08-19 Chris Toshok <toshok@ximian.com>
24665 * XplatUIX11.cs: after further communication with pdb, we get the
24666 best of both worlds. SetZOrder working for un-Mapped windows, and
24667 no X errors for un-mapped windows.
24669 2006-08-19 Chris Toshok <toshok@ximian.com>
24671 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
24672 as it was causing pdn toolbars to not have the correct stacking.
24674 2006-08-18 Mike Kestner <mkestner@novell.com>
24676 * ListView.cs : guard against negative ClientArea.Width in scrollbar
24677 calculation. Not sure why control should ever be setting a negative
24678 width though. Fixes #78931.
24680 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24682 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
24683 null items in ObjectCollection class.
24684 * ListBox.cs.: Likewise.
24686 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
24688 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
24689 as the base method in ThemeWin32Classic should work fine.
24692 2006-08-18 Jackson Harper <jackson@ximian.com>
24694 * Binding.cs: When validating if the value entered doesn't convert
24695 properly reset to the old value.
24696 * RadioButton.cs: Don't fire click when we get focus.
24698 2006-08-18 Jackson Harper <jackson@ximian.com>
24700 * FileDialog.cs: Paint the selection on the directory combobox the
24703 2006-08-17 Jackson Harper <jackson@ximian.com>
24705 * ErrorProvider.cs: Don't allow the error control to be selected.
24706 * Control.cs: Don't send the SetFocus messages, the control
24707 activation will do this, and if we do it blindly here validation
24710 2006-08-17 Jackson Harper <jackson@ximian.com>
24713 * ContainerControl.cs: Make validation events fire in the correct
24714 order. TODO: For some reason the first validation event is not
24717 2006-08-17 Mike Kestner <mkestner@novell.com>
24719 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
24721 2006-08-17 Mike Kestner <mkestner@novell.com>
24723 * ComboBox.cs : implement scroll wheel support for popped-down
24724 state. Fixes #78945.
24726 2006-08-17 Jackson Harper <jackson@ximian.com>
24728 * TreeView.cs: Specify treeview actions (old patch that didn't get
24729 committed for some reason).
24730 - Don't let the mouse wheel scroll us too far. Just want to make
24731 the bottom node visible, not scroll it all the ways to the top.
24733 2006-08-17 Jackson Harper <jackson@ximian.com>
24735 * XplatUIX11.cs: Mouse wheel events go to the focused window.
24737 2006-08-17 Mike Kestner <mkestner@novell.com>
24739 * ComboBox.cs : don't do mouseover selection in simple mode.
24741 2006-08-16 Jackson Harper <jackson@ximian.com>
24743 * Form.cs: Fire the closing events for all the mdi child windows
24744 when a window is closed. If the cancel args are set to true, the
24745 main window still gets the event fired, but it doesn't not close.
24746 * MdiWindowManager.cs: Do this closing cleanup in a Closed
24747 handler, instead of when the button is clicked, so cancelling the
24748 close works correctly.
24749 * ComboBox.cs: Send the mouse down to the scrollbar.
24751 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24753 * ListBox.cs: When passing 'null' to SelectedItem,
24754 set SelectedIndex to -1, to unselect items. This is the
24755 observed behaviour in .Net.
24757 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
24759 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
24760 MS flags saying there won't be any. (fixes #78800)
24761 * Control.cs (HandleClick): Made virtual
24763 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
24765 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
24766 cultures. Fixed bug #78399.
24768 2006-08-16 Jackson Harper <jackson@ximian.com>
24770 * Form.cs: Use the MdiClients MdiChildren property to access
24771 MdiChildren instead of creating the array from the child controls.
24772 * MdiClient.cs: Maintain a separate array of the mdi children, so
24773 that insertion order is maintained when the Z-order is changed.
24775 2006-08-16 Mike Kestner <mkestner@novell.com>
24777 * ListView.cs : add an ItemComparer and default to it for sorting.
24778 Fixes #79076, but sorting needs a complete overhaul to be compat with
24781 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24783 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
24785 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24787 * Hwnd.cs (Mapped): Properly traverse the tree
24789 2006-08-15 Chris Toshok <toshok@ximian.com>
24791 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
24792 pass manager.Current.GetType() to ParseData. It has to be the
24793 property type. So, hold off doing the ParseData until we're in
24794 SetPropertyValue where we know the type. This fixes the crash in
24795 #78821 but the textbox is still empty.
24797 2006-08-15 Chris Toshok <toshok@ximian.com>
24800 - when we're scrolling, only call Edit() again if the
24801 current cell is still unobscured. Fixes bug #78927.
24802 - when handling mousedown on a cell, ensure the cell is visible
24803 before calling Edit.
24804 - remove the properties from DataGridRow, and remove the
24805 DataGridParentRow class altogether.
24808 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24810 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
24811 fire OnTextChanged by ourselves. There's no point calling base,
24812 we don't set the base value anywhere else. Fixes #78773.
24814 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24816 * ListBox.cs: Call CollectionChanged when modifying
24817 an item from Items indexer, to update the actual items
24820 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24822 * PrintDialog.cs: Small fixes for focus and a pair of checks,
24823 to match .Net behaviour.
24825 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24827 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
24829 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24831 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
24833 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24835 * MessageBox.cs: Prevent potential NRE exception.
24836 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
24838 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
24840 * MessageBox.cs: Calculate the owner of a messagebox, also make
24841 it topmost. Fixes #78753
24843 2006-08-14 Chris Toshok <toshok@ximian.com>
24845 * XplatUIX11.cs: A couple of fixes so that metacity will let us
24846 programmatically move windows. first, set the PPosition hint as
24847 well as the USPosition hint. Second include some code from pdb
24848 that sets the window type to NORMAL when we set the transient for
24849 hint. This is because, in the absence of a window type, metacity
24850 thinks any window with TransientFor set is a dialog, and refuses
24851 to let us move it programmatically. fascists.
24853 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
24855 * XplatUIX11.cs: When setting normal hints, take into consideration
24856 an different hints previously set so we don't delete them (fixes #78866)
24858 2006-08-12 Chris Toshok <toshok@ximian.com>
24860 * ToolBarButton.cs: make Layout return a boolean, if something to
24861 do with the button's layout changed.
24864 - add another parameter to Redraw, @force, which all existing
24866 - make the Layout function return a boolean which is true if the
24867 layout has actually changed. Redraw now uses this (and @force)
24868 to determine when to invalidate. At present the only place
24869 where @force can be false is the call from OnResize, when
24870 background_image == null. So, resizing a toolbar when the
24871 layout doesn't change results in no drawing.
24873 2006-08-12 Chris Toshok <toshok@ximian.com>
24875 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
24876 the VScrollBar and HScrollbar reversed. oops.
24878 * DataGrid.cs: fix the logic that assigns sizes to the implicit
24879 scrollbars. we were assigning them twice (once in
24880 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
24881 therefore causing two scrollbar resizes (and redraws?) to happen
24884 2006-08-12 Chris Toshok <toshok@ximian.com>
24886 * ToolBarButton.cs: redraw the entire button if the theme tells us
24889 * Theme.cs: add ToolBarInvalidateEntireButton.
24891 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
24892 buttons, just the border.
24894 * ThemeNice.cs: redraw the entire toolbar button since we need to
24895 draw the highlight image.
24897 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
24898 we need to redraw the entire button (not just the border).
24900 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
24902 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
24903 for vertical bars. Fixes the mismatches shown by #78513
24905 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
24907 * FileDialog.cs: If a saved/remembered path doesn't exist
24908 anymore, fall back to "Desktop".
24910 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
24912 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
24913 parent. It's apparently legal to not have one
24915 - SetZOrder: Don't try to set Z-Order on an unmapped window
24916 - CreateWindow: 0,0 are legal coordinates for a window. don't move
24917 it unless the coordinates are negative
24919 2006-08-10 Mike Kestner <mkestner@novell.com>
24921 * ListControl.cs: allow null for DataSource. Clear DisplayMember
24922 when setting to null per msdn docs. Fixes #78854.
24924 2006-08-10 Chris Toshok <toshok@ximian.com>
24926 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
24927 flickering by setting a clip rectangle on the Graphics when we
24928 need to redraw just a particular menuitem. Also, rename "OnClick"
24929 to "OnMouseDown" to reflect what it actually is.
24931 * Form.cs: track the OnMouseDown change.
24933 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
24935 * CommonDialog.cs: Properly inherit the CreateParams from the form
24936 and only change what we need. Fixes #78865
24938 2006-08-10 Chris Toshok <toshok@ximian.com>
24940 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
24941 flickering in flat mode (and most of the flickering in general) by
24942 only invalidating the button border (and not the entire rectangle)
24943 when the state changes. A couple of cases still flicker:
24944 ToggleButtons, and the dropdown arrow case when the user mouse
24947 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
24949 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
24950 for german keyboards. Numlock state shouldn't affect the behaviour
24951 of the Del key. Fixes bug #78291.
24953 2006-08-10 Chris Toshok <toshok@ximian.com>
24955 * ListControl.cs: remove the items.Clear line from BindDataItems,
24956 as this is the first thing done by both subclasses in their
24957 SetItemsCore overrides. Also, add a ItemChanged handler, and when
24958 passed -1, refresh the list. This gets databinding working when
24959 the datasource is set on the list before the datasource is
24960 populated (as in wf-apps/ReportBuilder.)
24962 * ComboBox.cs: remove the argument to BindDataItems. This call
24963 should really go away, and be initiated by the ListControl code.
24965 * ListBox.cs: same.
24967 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
24969 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
24970 if no data is in the document when the control is displayed
24972 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
24974 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
24977 - PositionCaret: Allow positioning of caret but don't call methods
24978 requiring a handle if the window isn't created yet
24979 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
24980 - owner_HandleCreated: Don't position the caret, just update it's
24981 location. User might have already set a different position
24983 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
24985 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24986 windows. Screws up the returned coordinates for child windows.
24987 Fixes #78825. I'm hoping this doesn't break something, since the
24988 code was explicitly put in 8 months ago, but no bug was attached.
24989 Menus still seem to work properly.
24991 2006-08-08 Chris Toshok <toshok@ximian.com>
24993 * DataGrid.cs: make BeginInit/EndInit actually do what they're
24994 supposed to do - delay data binding until the EndInit call. Also,
24995 make the table style collection's CollectionChangeAction.Refresh
24998 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24999 (with action = Refresh) when a consituent table's MappingName is
25002 2006-08-08 Chris Toshok <toshok@ximian.com>
25004 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
25005 Invalidate, since changing the text can change the size of the all
25008 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
25010 * Form.cs (AddOwnedForm): Still need to add the form to our listif
25011 we don't have it yet
25013 2006-08-08 Chris Toshok <toshok@ximian.com>
25015 * PrintControllerWithStatusDialog.cs: don't .Close() the status
25016 dialog, as this causes X errors later on, since we actually
25017 destroy the window. Instead, .Hide() it.
25019 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
25021 * ComboBox.cs: Added focus reflection for popup window
25023 - Removed transient setting for non-app windows for now, not sure it
25025 - Fixed logic checking if we have captions when deciding
25026 override_redirect, WS_CAPTION is two bits and a 0 check was not
25028 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
25031 - AddOwnedForm: Don't just add the form to the list, call the property
25032 to ensure the driver is informed about the ownership as well
25033 - CreateHandle: Set the TopMost status in the driver if we have an owner
25034 * XplatUI.cs: Fixed debug statement
25036 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
25037 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
25038 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
25039 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
25040 TrackBarRenderer.cs: Make constructor private.
25041 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
25042 * ProfessionalColorTable.cs: Make properties virtual.
25044 2006-08-06 Duncan Mak <duncan@novell.com>
25046 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
25049 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
25050 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
25051 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
25052 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
25053 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
25054 Initial import of new 2.0 classes.
25056 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
25057 * Application.cs: Add 2.0 VisualStyles properties.
25059 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
25060 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25061 XplatUIX11.cs: Create property to allow access to existing private
25062 variable "themes_enabled"
25064 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25066 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
25067 file size, as otherwise our class libraries fail using windows. Fixes
25070 2006-08-04 Jackson Harper <jackson@ximian.com>
25073 * XplatUIX11.cs: Move the toolwindow window manager creation into
25074 the X11 driver, this way on win32 we can let windows create/handle
25077 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25079 * PrintDialog.cs: Remove some redundant checks, add some others,
25080 clean some code, and move the focus to the text boxes when the
25081 values are incorrect.
25083 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
25085 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
25087 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
25089 * NumericUpDown.cs: Setting the Minimum and Maximum is now
25090 handled correctly. Fixes bug #79001.
25092 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25094 * PrintDialog.cs: The "Copies" numeric up down must have
25095 set the Minimum property to 1; only if the value is bigger
25096 than 1, activate "Collate" check box. This is the behaviour of .Net.
25097 Also modify the Document elements only if it is not null.
25099 2006-08-03 Jackson Harper <jackson@ximian.com>
25101 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
25102 length. (We have a larger array then actual node count).
25104 2006-08-03 Jackson Harper <jackson@ximian.com>
25106 * ComboBox.cs: Don't show selection by default.
25107 - The SelectAll isn't needed here, since the focus code should do
25109 - DDL style lists to manual selection drawing, so when they
25110 get/lose focus they have to invalidate.
25112 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
25114 * TextBoxBase.cs: Don't always show all selections by default.
25116 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
25117 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
25118 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
25119 Fixed various typos.
25121 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
25123 * Control.cs: Removing the controls in a ControlCollection with
25124 Clear now hides the controls as expected. Fixes bug #78804.
25126 2006-08-03 Jackson Harper <jackson@ximian.com>
25128 * Control.cs: Revert previous focus patch, it breaks reflector.
25130 2006-08-03 Jackson Harper <jackson@ximian.com>
25132 * ComboBox.cs: Cleanup selection and focus with the combobox.
25133 This also eliminates some duplicated keyboard code, since now
25134 everything is handled by the main class.
25135 - Make list selection work on mouse up instead of down, to match
25138 2006-08-02 Jackson Harper <jackson@ximian.com>
25140 * Control.cs: Setting focus needs to go through the whole
25141 selection mechanism.
25143 2006-08-02 Chris Toshok <toshok@ximian.com>
25145 * PrintPreviewDialog.cs: change MinimumSize to use
25146 base.MinimumSize so it works.
25148 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
25151 - UpdateCaret: Added sanity check in case caret isn't defined yet
25152 - Line.Delete: Now updating selection and caret markers if we're
25153 transfering a node (Properly fixes #78323)
25154 - SetSelectionEnd: Added sanity check
25155 * TextBoxBase.cs: Removed broken attempt to fix #78323
25157 2006-08-01 Chris Toshok <toshok@ximian.com>
25159 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
25160 Close() call is handled in Form, not here.
25162 2006-08-01 Chris Toshok <toshok@ximian.com>
25164 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
25167 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
25168 for sizes < 100% zoom. The code now aggressively attempts to keep
25169 from calling document.Print (), and tries not to use the scaling
25170 g.DrawImage whenever possible (it still does if you scale to >
25171 100%, since usually that involves huge images).
25173 * PrintPreviewControl.cs: hook up the close button.
25175 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
25176 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
25177 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
25178 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
25179 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
25180 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
25181 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
25182 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
25183 Removed [Serializable] for 2.0 Event Handlers.
25185 2006-07-31 Jackson Harper <jackson@ximian.com>
25187 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
25188 * TextControl.cs: Uncomment out the body of this method.
25190 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
25192 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
25195 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
25197 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
25198 that embed TextBox and need selections visible even if textbox is not
25199 focused to enforce that behaviour.
25200 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
25203 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
25206 - Added new SetSelectionStart/SetSelectionEnd overloads
25207 - Fixed viewport width assignment to be accurate
25208 - Adjusted alignment line shift calculations to allow cursor on right
25209 aligned lines to be always visible at the right border (like MS)
25211 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
25212 - TextBoxBase_SizeChanged: recalculating canvas on size changes
25213 - CalculateScrollBars: Use ViewPort size instead of window size, to
25214 properly consider space occupied by the border and scrollbars
25216 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
25217 calculations; no longer leaves artifacts
25218 - CaretMoved: Adjusted window scrolling to match MS and fixed several
25219 calculation bugs (Still missing right/center align calculations)
25221 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
25223 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
25224 use of both scroll rect and clip rect, as they do the same.
25226 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
25228 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
25229 in the event handler (fixes #78912)
25231 2006-07-31 Chris Toshok <toshok@ximian.com>
25233 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
25234 grid.ListManager.Count, since grid.ListManager might be null.
25235 This of course begs the question "why are we drawing rows for a
25236 grid with no list manager (and therefor no rows)?" Fixes the
25237 crash in bug #78929.
25239 2006-07-31 Chris Toshok <toshok@ximian.com>
25241 * RelatedPropertyManager.cs: Don't always chain up to the parent
25242 ctor. instead, call SetDataSource if the parent's position is !=
25243 -1. Fixes the crash in #78822.
25245 2006-07-31 Chris Toshok <toshok@ximian.com>
25247 * DataGrid.cs (get_ListManager): use field instead of property
25248 accessors for datasource and datamember.
25249 (RowsCount): make internal again.
25250 (OnMouseDown): end edits before resizing columns/rows.
25251 (OnMouseUp): restart edits after resizing columns/rows.
25253 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
25255 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
25256 This fixes the situation where the last set cursor is displayed
25257 whenever the mouse is over scrollbars.
25259 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25261 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
25262 Document properties, as well as initial values.
25264 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
25266 * XplatUIWin32.cs (SetBorderStyle): Setting both border
25267 and ClientEdge results in a 3-pixel border, which is
25270 2006-07-28 Jackson Harper <jackson@ximian.com>
25272 * TreeNodeCollection.cs: Fix the clear method.
25273 - Fix the Shrink also
25275 2006-07-27 Jackson Harper <jackson@ximian.com>
25277 * TreeView.cs: Make sure the visible order is computed when we
25278 attempt to size the scrollbars (for trees that mess with the
25279 scrolling when they shouldn't.
25280 - Make sure to give the scrollbars valid values.
25282 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
25284 * XplatUIX11.cs: Move motion compression code to where it
25285 has less performance impact
25287 2006-07-26 Jackson Harper <jackson@ximian.com>
25289 * UpDownBase.cs: When the control is selected make the child
25290 controls non selectable, so that a click on them won't do a
25291 focus/unfocus cycle.
25292 - Don't give focus to the text box when the spinner is selected.
25293 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
25295 2006-07-26 Chris Toshok <toshok@ximian.com>
25297 * ThemeWin32Classic.cs: add print preview rendering. I'm not
25298 satisfied with this solution. If the bitmaps are small, we should
25299 just cache them in the PrintPreviewDialog and draw them here.
25300 Also, the layout is broken for the 2-up and 3-up cases.
25302 * Theme.cs: add PrintPReviewControlPaint.
25304 * PrintPreviewDialog.cs: first pass implementation.
25306 * PrintPreviewControl.cs: first pass implementation. No
25309 * PrintDialog.cs: only validate fields if that particular portion
25310 of the UI is enabled. Also, set the document's controller to a
25311 PrintControllerWithStatusDialog wrapping the document's print
25314 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
25315 bring up a SaveFileDialog (i hope we don't want to match the
25316 behavior of the crappy windows file entry) and set the
25317 PrinterSettings.PrintFileName accordingly.
25319 2006-07-26 Jackson Harper <jackson@ximian.com>
25321 * ContainerControl.cs: Add a field that disables auto selecting
25322 the next control in a container when the container is activated.
25323 * UpDownBase.cs: Don't select the text box when the up down is
25326 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
25328 * XEventQueue.cs: Added methods for peeking (used for compression
25329 of successive events)
25330 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
25331 mouse move events (fixes #78732)
25333 2006-07-25 Jackson Harper <jackson@ximian.com>
25335 * UpDownBase.cs: Use an internal class for the textbox so that we
25336 can control focus. the updown control should always have focus,
25337 if either the text area or the buttons are clicked.
25338 - Send the key messages to the textbox, since it never actually
25340 - Activate and decativate the textbox caret.
25342 2006-07-24 Jackson Harper <jackson@ximian.com>
25344 * Control.cs: Use the directed select when selecting a control,
25345 this way the container controls override will get called and the
25346 whole ActiveControl chain will get triggered. TODO: probably need
25347 to make sure this gets done everywhere instead of the old
25349 * ContainerControl.cs: Implement the directed Select method to
25350 find and activate the correct child control.
25352 2006-07-22 Mike Kestner <mkestner@novell.com>
25354 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
25355 menu handling code so that clicks without a grab work too.
25358 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
25360 * FileDialog.cs: Enable the BackButton when dirstack has one element.
25361 Added some small optimizations.
25363 2006-07-21 Matt Hargett <matt@use.net>
25365 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
25367 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
25369 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
25370 tests pass and match MS in some strange border cases.
25372 2006-07-21 Chris Toshok <toshok@ximian.com>
25374 * ThemeWin32Classic.cs: handle drawing of the relation links and
25375 parent row buttons.
25377 * Theme.cs: change args to DataGridPaintParentRow.
25379 * DataGrid.cs: Don't use controls for the relation links and
25380 parent buttons, so we have to handle all their interactions in
25381 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
25382 when we're navigating through child tables, so we can reinstate
25383 selection, expanded state, current cell, etc.
25385 2006-07-20 Chris Toshok <toshok@ximian.com>
25387 * ToolBar.cs: When we redraw a button, for whatever reason,
25388 there's no reason to redraw the entire toolbar. Also, don't call
25389 Control.Refresh from within Redraw, as it's much heavier than
25390 Invalidate (which is really what we want).
25392 2006-07-20 Chris Toshok <toshok@ximian.com>
25394 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
25395 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
25396 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
25397 traces from within a debug IBindingList datasource
25398 (in mono/winforms/datagrid) for *days*, I've finally gotten things
25399 to work in a similar fashion.
25401 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25403 * ListBox.cs: Don't call Sort () when setting
25404 the Sorted property to false (avoid an unnecessary sort).
25406 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25408 * ListControl.cs: DataSource should throw an ArgumentException
25409 instead of a normal exception when the argument is not of the
25412 2006-07-20 Mike Kestner <mkestner@novell.com>
25414 * Control.cs: add InternalPreProcessMessage to allow us to steal
25415 key events before MWF gets its paws on them. Adapted from a
25417 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
25418 up/down/left/right navigation. Override the new internal control
25419 method to steal the events since they never make it to WndProc.
25420 * ToolBarButton.cs: don't worry about pushed when setting hilight
25421 since the drawing code prefers pushed to hilight. Invalidate on
25422 Hilight changes. Fixes #78547 and #78525.
25424 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
25426 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
25427 the canvas size. Fixes #78868
25429 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
25431 * Splitter.cs: Track requested split position until first layout
25432 is performed. Fixes #78871
25434 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
25436 * Application.cs: Removed code that forces 1.x for the version
25437 number if the version started with 0. Not sure why that code was
25438 there and I couldn't find any bugs that indicated we needed it.
25441 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
25443 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
25444 ResetDefaults(), just write some output to the console until it's
25445 implemented. Fixes bug #78907 for now. Eliminated two warnings.
25447 2006-07-19 Jonathan Chambers <joncham@gmail.com>
25449 * PropertyGridView.cs: set StartPosition of drop down forms
25450 so they appear in correct initial spot. Fixes #78190.
25452 2006-07-19 Mike Kestner <mkestner@novell.com>
25454 * ThemeWin32Classic.cs: use parent background color when drawing
25455 flat toolbars. Restructure the conditionals to make sure non-flat
25456 non-Divider toolbars are filled too. Fixes #78837.
25458 2006-07-19 Mike Kestner <mkestner@novell.com>
25460 * ListBox.cs: Sort on collection changes even if the handle
25461 isn't created yet. Fixes #78813.
25463 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25465 * ListControl.cs: DisplayMember should never be null,
25466 and now we assign String.Empty when null is passed to it (this
25469 2006-07-17 Mike Kestner <mkestner@novell.com>
25471 * ListViewItem.cs: restructure Font and subitem Font handling
25472 to hold a specific font and refer back to owner on null.
25475 2006-07-17 Mike Kestner <mkestner@novell.com>
25477 * ToolBar.cs: bandaid for side-effect of previous patch which was
25478 discarding explicit heights for non-AutoSize toolbars. Need to
25479 extend my format tester to deal with AutoSize=false. Fixes #78864.
25481 2006-07-15 Jackson Harper <jackson@ximian.com>
25483 * LabelEditTextBox.cs:
25484 * TreeView.cs: Use a new LabelEdit class for node editing, this
25485 class automatically 'closes' itself when it gets the enter key or
25487 - Use the client rectangle when setting the trees scrollbars, so
25488 border style is taken into account.
25490 2006-07-14 Jackson Harper <jackson@ximian.com>
25493 * TreeView.cs: Make the editing work similar to MSs, firing the
25494 events correctly and ending edits correctly.
25496 2006-07-14 Mike Kestner <mkestner@novell.com>
25498 * ToolBarButton.cs:
25499 * ToolBar.cs: layout restructuring and redraw enhancements to support
25500 formatting changes gracefully, like setting TextAlign, ImageList,
25501 ButtonSize, and Appearance. Handles explicit button sizing quirks
25502 of the MS controls. Things like flat toolbars ignoring button size
25503 but becoming constant sized at the largest button's size. Normal
25504 toolbars with an image set cannot be shrunk smaller than the image,
25505 but text can be clipped/ignored.
25506 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
25507 is zero. Seems like DrawString should be smart enough to not put
25508 anything on screen though. Also trim labels and ellipsize at the char
25509 boundary, not word.
25510 Fixes #78711 and #78483.
25512 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
25514 * FolderBrowserDialog.cs: Disable "New Folder" button and
25515 "New Folder" contextmenu menuitem if a folder like "My Computer"
25518 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
25520 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
25521 * FolderBrowserDialog.cs:
25522 - Use MWFConfig to store and read size and position settings
25523 - Added code to create a new folder (button or context menu).
25524 Use TreeView labeledit to change the name of the new folder.
25526 2006-07-14 Jackson Harper <jackson@ximian.com>
25528 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
25529 when the tree is scrolled we end editing.
25531 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
25533 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
25536 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
25538 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
25539 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
25540 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
25541 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
25542 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
25543 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
25544 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
25545 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
25546 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
25547 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
25548 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
25549 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
25550 ListViewItemSelectionChangedEventHandler.cs,
25551 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
25552 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
25553 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
25554 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
25555 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
25556 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
25557 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
25558 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
25559 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
25560 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
25561 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
25562 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
25563 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
25564 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
25565 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
25566 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
25567 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
25568 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
25569 WebBrowserNavigatingEventHandler.cs,
25570 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
25572 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
25574 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
25575 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
25576 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
25577 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
25578 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
25579 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
25580 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
25581 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
25582 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
25583 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
25584 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
25585 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
25586 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
25587 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
25588 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
25589 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
25590 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
25591 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
25592 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
25593 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
25594 ListViewItemStates.cs, MaskFormat.cs: Added
25596 2006-07-13 Jonathan Chambers <joncham@gmail.com>
25598 * PropertyGridView.cs: Fix keyboard navigation of drop down.
25599 Patch from eno for bug 78558.
25601 2006-07-13 Jackson Harper <jackson@ximian.com>
25603 * TreeView.cs: When an edit is finished make sure that the
25604 selected node is visible.
25605 - When setting the top/bottom use the scrollbars is_visible, so
25606 everything will be set correctly even if the tree isn't visible
25609 2006-07-13 Jackson Harper <jackson@ximian.com>
25611 * ComboBox.cs: Revert the item->index part of my previous patch.
25612 * TreeView.cs: Use LostFocus instead of Leave for detecting when
25613 the edit box has lost focus (duh).
25614 - Just make the edit box not visible when we get return, that will
25615 take the focus, which will call EndEdit
25616 * TreeNode.cs When we start editing, notify the treeview.
25618 2006-07-12 Jackson Harper <jackson@ximian.com>
25620 * ComboBox.cs: Clear out old items before setting the item list.
25621 This prevents databound controls from having their items added
25623 - Switch the combobox to use indices whereever possible instead of
25624 using Item's. This allows usto navigate through lists that have
25625 more then one item with the same string value (ie a, b, b, a).
25626 - Scroll the listboxes scrollbar when a non visible item is
25628 - Allow keypress to cycle through all the possible values. For
25629 example if you have b1, b2, b3 and hold down the B key all the
25630 values will be cycled through.
25632 2006-07-12 Jackson Harper <jackson@ximian.com>
25635 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
25636 this using the internal methods.
25637 * Control.cs: Add OnGotFocusInternal. A new method that allows
25638 controls to "override" OnGotFocus and change focus behavior if
25640 - Same thing for LostFocus
25641 * ComboBox.cs: Pass off focus to the text control properly.
25643 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
25645 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
25646 * FolderBrowserDialog.cs: Almost a complete rewrite.
25647 - Better support for Environment.Specialfolders
25648 - Added support for MWFVFS
25649 - Made setting SelectedPath work
25651 2006-07-12 Jackson Harper <jackson@ximian.com>
25653 * Control.cs: Optimze getting all the controls.
25655 2006-07-11 Jackson Harper <jackson@ximian.com>
25657 * ContainerControl.cs: Override SETFOCUS in the container control,
25658 so that it is not selected on mouse click.
25660 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
25662 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
25663 Hopefully we will have a better way once all of focus is complete.
25665 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
25667 * ThemeWin32Classic.cs: Commented out some debug code and fixed
25668 a compile error with csc.
25670 2006-07-11 Jackson Harper <jackson@ximian.com>
25672 * Control.cs: When hiding a control only select the next control
25673 if the current control was focused.
25674 - Don't handle enter/leave when setting/killing focus, this is
25675 done by the container control.
25676 - Remove is_selected, it's not needed anymore.
25677 - Add utility methods for selecting a child control, and for
25678 firing the Enter/Leave events.
25679 * ContainerControl.cs: When a control is activated fire the
25680 enter/leave events.
25681 - Don't wrap when processing the tab key, so that focus can be
25682 moved outside of the container.
25683 - Use the correct active control
25685 2006-07-11 Jackson Harper <jackson@ximian.com>
25687 * ComboBox.cs: Remove some debug code that was blinding me.
25688 * UpDownBase.cs: These controls actually aren't implicit, they are
25689 visible to the user.
25691 2006-07-10 Chris Toshok <toshok@ximian.com>
25693 * DataGrid.cs: move back to the is_adding boolean field. god i
25694 hate this is_editing/is_adding/is_changing stuff.
25696 2006-07-10 Chris Toshok <toshok@ximian.com>
25698 * DataGridTableStyle.cs: just check if the property type is bool.
25699 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
25700 Don't use CanRenderType.
25702 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
25703 if our text == NullText. Remove CanRenderType.
25705 * DataGridBoolColumn.cs: nuke CanRenderType.
25707 * DataGrid.cs: reenable some code to end the current edit inside
25708 of set_CurrentCell. This fixes the other 1.1.16 regression.
25709 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
25710 Also, remove the visible_row_count arg from CalcRowHeaders, since
25711 we don't need to worry about the actual height of the area.
25713 2006-07-10 Chris Toshok <toshok@ximian.com>
25715 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
25718 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
25719 the real sense of the IsInEditOrNavigateMode property (true =
25720 navigate, false = edit). Also, update OnKeyPress to reflect this.
25722 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
25723 column style exists, we still need to set its property descriptor
25724 to match up with our list manager.
25726 2006-07-10 Chris Toshok <toshok@ximian.com>
25728 * ThemeWin32Classic.cs: implement the new row/header painting
25729 approach. The parent row painting will likely go away and
25730 replaced with label controls, but the rest seems to work ok (and
25733 * Theme.cs: change the way we draw datagrid rows. we don't draw
25734 the row headers as a block now. Instead we draw them in the
25735 normal draw-row loop. Add some calls for drawing parent rows and
25738 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
25739 a default table style. Set the defaults from ThemeEngine.Current,
25740 not SystemColors. Fix lots of misc issues with property setters.
25742 * DataGrid.cs: move loads of style information out of this class
25743 as it's being duplicated with DataGridTableStyle. keep track of a
25744 special DataGridTableStyle for the properties we used to mirror
25745 here. Switch all the style properties to access this table style
25746 instead of instance fields of this class. Also add a internal
25747 class to represent parent rows (more needs to be stored here, like
25748 the selection state from the parent table, as well as the
25749 expansion state.) Also, for datasources with relations, do the
25750 right thing for collapse/expand, and add support for the
25751 navigation/parent row buttons.
25753 Lastly, fix the crash in the 1.1.16 build.
25755 * GridTableStylesCollection.cs: make the explicit interface
25756 implementations call the class's methods as opposed to duplicating
25759 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
25760 0 so the text doesn't jump around when we move the cursor.
25762 2006-07-10 Jackson Harper <jackson@ximian.com>
25765 * ListBox.cs: Match MS's ToString (this makes debugging focus
25766 stuff infinitely easier).
25768 2006-07-10 Jackson Harper <jackson@ximian.com>
25770 * Control.cs (SelectNextControl): When checking the control's
25771 parent use this instead of ctrl.parent so that null can be passed
25772 to SelectNextControl. (I have unit tests for this).
25773 - Remove unused var.
25775 2006-07-10 Chris Toshok <toshok@ximian.com>
25777 * CurrencyManager.cs: correct one regression, the removal of the
25778 finalType field. Also, add a MonoTODO on CanAddRows, implement
25779 Refresh() correctly, and fix some event emission in
25780 ListChangedHandler.
25782 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
25784 * FileDialog.cs: Don't use brackets for new folders if they exist
25785 under *nix. Instead use -(number of existing folders +1).
25787 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
25790 - Fixed really nasty bug #78771
25791 - Don't block the whole GUI when reading directories with a lot of
25792 entries. Use an other thread instead and call BeginInvoke to
25793 update the ListView in MWFFileView
25795 2006-07-07 Chris Toshok <toshok@ximian.com>
25797 * Control.cs (Dispose): release any Capture when disposing.
25799 2006-07-07 Chris Toshok <toshok@ximian.com>
25801 * LinkLabel.cs (Select): if we chain up to the parent, set
25802 focused_index to -1 so we'll search for the first available link
25803 the next time the user tabs into us. Also, if the direction is
25804 backward and focused_index == -1, start the search from the last
25807 2006-07-07 Chris Toshok <toshok@ximian.com>
25809 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
25810 is beyond the end of the text, don't do anything.
25811 (CreateLinkPieces): set our ControlStyles.Selectable based on
25812 whether or not we have any links.
25813 (Link.Invalidate): use a loop instead of foreach.
25814 (Link.set_Start): null out owner.sorted_links so it'll be
25815 recreated by CreateLinkPieces.
25817 2006-07-06 Chris Toshok <toshok@ximian.com>
25819 * LinkLabel.cs: revert the SetStyle change.
25821 2006-07-06 Chris Toshok <toshok@ximian.com>
25823 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
25824 (OnEnableChanged): s/Refresh/Invalidate
25825 (OnGotFocus): if we have a focused index already, refocus it (so
25826 if we mouse out/in to the window it'll focus the right link).
25827 (OnKeyDown): move the tab handling out of here.
25828 (OnLostFocus): don't set focused_index to -1, so we can refocus it
25829 when we lose focus.
25830 (OnMouseDown): don't Capture here - Control handles it. Also,
25831 focus the active link.
25832 (OnMouseUp): don't deal with Capture.
25833 (OnPaintBackgroundInternal): remove.
25834 (OnTextAlignChanged): CreateLinkPieces before calling the
25835 superclass's method.
25836 (OnTextChanged): call CreateLinkPieces before calling superclass's
25838 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
25840 (Select): implement this, moving the selection between different
25841 links, and call parent.SelectNextControl if we don't have another
25842 link to focus in the given direction.
25843 (CreateLinkPieces): call Invalidate instead of Refresh.
25845 2006-07-06 Chris Toshok <toshok@ximian.com>
25847 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
25848 new LinkLabel internals.
25850 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
25851 over pieces looking for active/focused/etc links. also, deal with
25852 runs of text (and links) with embedded \n's in them, and use
25853 MeasureCharacterRanges instead of MeasureString to figure out the
25854 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
25857 2006-07-04 Jackson Harper <jackson@ximian.com>
25859 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
25860 XKB or key auto repeat, do it manually. Without key auto repeat,
25861 when a key is held down we get key press, key release, key press,
25862 key release, ... with auto repeat we get key press, key press, key
25863 press ..., and then a release when the key is actually released.
25865 2006-07-03 Jackson Harper <jackson@ximian.com>
25868 * ThemeWin32Classic.cs: Tabs do not obey normal background color
25869 rules, they are always control color regardless of the background
25872 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
25874 * FileDialog.cs: Added internal class MWFConfig.
25875 Removed Registry support and replaced it with support for the new
25876 MWFConfig class. See MWFConfig comments for more information.
25878 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
25880 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
25881 rectangle. Added some patches from eno from bug #78490 and fixed
25882 the arrow position for small up and down CPDrawScrollButtons.
25884 2006-06-30 Jackson Harper <jackson@ximian.com>
25886 * InternalWindowManager.cs: Remove some debug code.
25887 * Form.cs: When an MdiParent is set to null, the window is
25888 "detatched" and becomes a normal window.
25889 * MdiClient.cs: Don't bring the new child form to the front until
25890 it is activated (setting it as active does this), this makes the
25891 previously active forms titlebar get redrawn as inactive.
25893 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
25895 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
25896 with later controls
25898 2006-06-29 Mike Kestner <mkestner@novell.com>
25900 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
25901 arrow in keynav state. Fixes #78682.
25903 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
25905 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
25906 order (fixes #78393)
25908 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
25910 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
25911 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
25912 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
25913 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
25914 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
25915 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
25916 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
25917 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
25918 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
25919 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
25920 enumerations (FlagsAttribute, SerializableAttribute, added/removed
25923 2006-06-28 Mike Kestner <mkestner@novell.com>
25925 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
25927 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
25930 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
25931 item lines from other area (It also makes BackColor consistent and
25932 compatible with .NET). Fixed bug #78564.
25934 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
25936 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
25937 Patch from Eno for #78555.
25939 2006-06-27 Chris Toshok <toshok@ximian.com>
25941 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
25943 * DataGridColumnStyle.cs: same.
25945 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
25947 * DataGridDrawingLogic.cs: nuke.
25949 2006-06-27 Chris Toshok <toshok@ximian.com>
25951 * DataGridTableStyle.cs: clean up the constructors, and build the
25952 list of child relations for this table. I have no idea if this is
25953 where we should be doing it (it probably isn't), but since we're
25954 already iterating over the properties..
25956 * DataGrid.cs: add row resizing. for now we add a DataGridRow
25957 struct and array for keeping track of row information, similar to
25958 what's shown in a hack on
25959 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
25961 * Theme.cs: be consistent about the naming of DataGrid methods,
25962 prefering ColumnWidths and RowHeights over columnsWidths and
25965 * ThemeWin32Classic.cs: same, and also add support for variable
25966 sized rows (and the +/- expansion icons for related rows).
25968 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
25970 * TextBoxBase.cs: Applied Eno's patch from #78660
25972 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
25974 * Form.cs (ScaleCore): We don't want to scale our form if it's
25975 state is minimized or maximized, but we still need to scale our
25976 child windows. Also, added try/finally block to ensure layout
25977 gets reset (Fixes #78697)
25979 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
25981 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
25983 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
25985 * Form.cs: Fixed c+p error and added check to resize form if minimum
25986 size is bigger than current size (Fixes #78709)
25988 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
25990 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25992 2006-06-26 Mike Kestner <mkestner@novell.com>
25994 * ComboBox.cs: only do Keypress handling in the combo when there
25995 are items in the collection. Fixes #78710.
25997 2006-06-26 Chris Toshok <toshok@ximian.com>
25999 * Binding.cs: make this work bi-directionally. also, clear up
26000 other mixups between Push/Pull Data (e.g. we're supposed to pull
26001 data when validating).
26003 * BindingManagerBase.cs: trim some fully qualified collection
26006 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
26008 2006-06-23 Chris Toshok <toshok@ximian.com>
26010 * PropertyManager.cs: It appears (according to the unit tests)
26011 that PropertyManager doesn't use
26012 PropertyDescriptor.AddValueChanged to track propery value changes
26013 in its datasource, but uses the same scheme as Binding, where it
26014 looks for a <Property>Changed event and binds to it.
26016 Also, according to the docs, IsSuspended always returns false for
26017 a property manager with a non-null datasource.
26019 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
26021 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
26022 need to update the actual DialogResult. (Fixes #78613)
26024 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
26026 * Form.cs (ShowDialog): Release any captures before running the
26027 new message pump (fixes #78680)
26029 2006-06-22 Mike Kestner <mkestner@novell.com>
26031 * ListView.cs: Layout column widths properly in details mode even
26032 if HeaderStyle.None is set. Fixes #78691.
26034 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
26036 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
26038 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
26040 * Control.cs (ContainsFocus): Using new driver method to get focused
26041 window, instead of trying to use internal tracking var, which can
26042 recursion issues (Fixes #78685)
26043 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
26044 XplatUIWin32.cs: Added GetFocus method to return focused window
26046 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26048 * ColorDialog.cs: when the mouse button is pressed inside the color
26049 matrix, don't let the cursor move out of it until the button is
26050 released, which is the behavior on windows. Changed 'colours' by
26051 'colors' to use the same word consistently.
26053 2006-06-21 Chris Toshok <toshok@ximian.com>
26055 * DataGrid.cs: add in some basic navigation stuff (navigating to a
26056 child relation and back, using a stack). Also, remove
26057 GetDataSource and the code that calls it - it's not needed. Also,
26058 track CurrencyManager.ListName's removal.
26060 2006-06-21 Chris Toshok <toshok@ximian.com>
26062 * CurrencyManager.cs: push some of the original type checking from
26063 BindingContext.CreateBindingManager to here, and remove some of
26064 the finalType stuff. Need more tests to make sure I've got the
26065 ListName part right, and we might need more in SetDataSource.
26067 * PropertyManager.cs: add a ctor that takes just the datasource,
26068 and no property name. Make SetDataSource work with a null
26069 property_name, and make Current return the data_source if the
26070 property descriptor is null. this makes 'string foo = "hi";
26071 BindingContext[foo].Current' return "hi" as it should.
26073 * RelatedCurrencyManager.cs: make this code more generic - there's
26074 no reason the parent manager has to be CurrencyManager, and
26075 there's no reason to pass the DataRelation. It suffices to use a
26076 BindingManagerBase and PropetyDescriptor.
26078 * RelatedPropertyManager.cs: make a similar change here.
26080 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
26081 flower I knew it could be.
26083 2006-06-20 Chris Toshok <toshok@ximian.com>
26085 * PropertyManager.cs: the PropertyChangedHandler is invoked when
26086 data in the source has changed and we need to update the control,
26087 so s/PullData/PushData.
26089 * CurrencyManager.cs: Refresh is meant to update the control from
26090 data in the datasource. So, s/PullData/PushData.
26092 * BindingContext.cs: add more ugliness (we weren't handling the
26093 case where data_source = DataTable and data_member = column_name).
26095 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
26096 from the perspective of the datasource. PullData pulls from the
26097 control, PushData pushes to the control.
26099 2006-06-20 Chris Toshok <toshok@ximian.com>
26101 * BindingContext.cs: rewrite the CreateBindingManager code to
26102 handle navigation paths more or less properly. This could
26103 definitely stand some more work, in particular to push the
26104 recursion up to the toplevel. But that relies on fixes in other
26105 places (System.Data comes to mind).
26107 Also, move to a flat hashtable (and encode the twolevel nature of
26108 the dictionary into the hash key). This lets us implement the
26109 IEnumerable.GetEnumerator method.
26111 * RelatedCurrencyManager.cs: new class. Update our view based on
26112 our relation and our parent CurrencyManager's position.
26114 * CurrencyManager.cs: split out some logic from the ctor into
26115 SetView, so it can be called from the new RelatedCurrencyManager
26118 * RelatedPropertyManager.cs: new class. Update our datasource
26119 based on the position of our parent CurrencyManager.
26121 * PropertyManager.cs: split out some logic from the ctor into
26122 SetDataSource, so it can be called from the new RelatedDataSource
26123 subclass. Also, make the Current getter return the value
26124 of the PropertyDescriptor, not the data_source.
26126 * Binding.cs: no need to duplicate the string splitting code here.
26128 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
26131 - set_Enabled: OnEnabledChanged is not called if the inherited state
26132 of the control is not altered, even though we might be changing the
26133 internal state of the control (#78458)
26134 - set_Enabled: (Re)Moved the enabling/disabling of the window to
26135 OnEnabledChanged, to allow easy altering of any child window state
26136 - OnEnabledChanged: Added code to enable/disable driver window state
26137 - OnParentEnabledChanged: Instead of firing the event, call
26138 OnEnabledChanged, which will fire the event and also a) set driver
26139 window state and pass the enabled state to any grandchildren (#78458)
26141 2006-06-19 Jackson Harper <jackson@ximian.com>
26143 * InternalWindowManager.cs: We don't set the cursor explicitly
26144 thats done via the response to NCHITTESTs.
26145 - Don't need to adjust for titlebar heights anymore, the
26146 coordinates are coming in the correct coordinates now (see peters
26150 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
26152 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
26153 being translated relative to whole window, instead of client window.
26154 That caused broken offsets on mouseclick (and caused gas for our
26155 InternalWindowManager)
26157 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
26160 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
26161 - Undo(): Added replay of cursor move on DeleteChars action; added
26162 calling Undo() again if a recorded cursor move is invalid (to
26163 ensure that some action is performed on Undo)
26164 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
26166 2006-06-16 Jackson Harper <jackson@ximian.com>
26168 * MdiClient.cs: Instead of just sizing maximized windows when
26169 there is a resize we also have to adjust the Y of minimized
26170 windows, so they stay pinned to the bottom of the mdi container.
26171 - Eliminate separate tracking of the active control, we can just
26172 get this from the controls collection.
26173 - Paint the decorations for the newly activated titlebar so we get
26175 * InternalWindowManager.cs:
26176 * ThemeWin32Classic.cs: Minimized windows get all three buttons
26177 even if they are a tool window.
26179 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
26181 * TextControl.cs (Undo): Handle non-existent cursor locations in the
26182 undo buffer, these can happen when text was deleted and the cursor
26183 was recorded first. Since we will also have a recorded cursor
26184 after the delete this is not an issue. (Fixes #78651)
26186 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
26188 * AccessibleObject.cs: Remove dependence on Control.is_selected;
26189 instead properly track control states internally (allows us to
26190 remove is_selected from Control)
26192 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26194 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
26195 whose width is not a multiple of 8.
26197 2006-06-13 Jackson Harper <jackson@ximian.com>
26199 * MdiClient.cs: Only maximize the next child if the current one
26202 2006-06-13 Chris Toshok <toshok@ximian.com>
26204 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
26205 modified. Also, guard against grid or grid_drawing being null in
26208 * DataGrid.cs: Reformat tons of getters/setters. In the
26209 DataMember setter, just call SetNewDataSource instead of
26210 duplicating some of its functionality. In SetNewDataSource, don't
26211 check ListManager for null, since the property getter creates the
26214 * DataGridTableStyle.cs: don't set TableStyle or call
26215 SetDataGridInternal on the column here, it's done in
26216 GridColumnStylesCollection.Add.
26218 * GridColumnStylesCollection.cs: fix all the explicit interface
26219 implementations to just call our methods. Nuke AddInternal() and
26220 move the body of it to Add(). Also, add a call to
26221 column.SetDataGridInternal to Add().
26223 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
26224 base()+duplicate code. Also, use the Format property instead of
26225 format to generate an Invalidate ala MS. Lastly, create the
26226 textbox here, unconditionally.
26227 (set_Format): call Invalidate.
26228 (get_TextBox): no need to call EnsureTextBox.
26229 (Commit): remove the message box.
26230 (Edit) remove the call to EnsureTextBox.
26231 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
26232 (EnterNullValue): no need to check textbox for null.
26233 (HideEditBox): no need to check textbox for null.
26234 (SetDataGridInColumn): add the textbox to the grid's controls.
26235 (EnsureTextBox): nuke.
26237 2006-06-13 Jackson Harper <jackson@ximian.com>
26239 * MdiWindowManager.cs: Hook up to the maximized menus paint event
26240 and redraw the buttons when needed. Unhook when the window is
26242 * MainMenu.cs: Add an internal Paint event, the mdi window manager
26243 needs this so that it can redraw its buttons when the menu is
26245 * InternalWindowManager.cs:
26246 * Form.cs: The method order has changed for DrawMaximizedButtons,
26247 so that it can be a PaintEventHandler.
26249 2006-06-13 Jackson Harper <jackson@ximian.com>
26251 * MdiClient.cs: When we close a maximized mdi window, the next mdi
26252 window is activated and maximized, even if it wasn't before.
26253 - When a new window is activated repaint the decorations of the
26254 old one, so that it no longer has the Active "look" (the blue
26256 * InternalWindowManager.cs: Open up CreateButtons to base classes
26257 so they can recreate the buttons on state changes.
26258 - If a window is maximized give it all three buttons
26259 * MdiWindowManager.cs: Create the titlebar buttons when the state
26260 is changed, this is needed because a toolwindow will not have all
26261 three buttons until it is maximized.
26263 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
26265 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
26268 2006-06-12 Jackson Harper <jackson@ximian.com>
26270 * KeysConverter.cs: Make sure we handle the Ctrl special case
26271 if its the only key.
26273 2006-06-12 Jackson Harper <jackson@ximian.com>
26275 * Theme.cs: Add a method to get the size of a managed window
26277 * InternalWindowManager.cs: Remove the ButtonSize property, this
26278 should be retrieved from the theme.
26279 * MdiWindowManager.cs: Get the button size from the theme
26280 * ThemeWin32Classic.cs: Make the method to get the managed window
26281 titlebar button size public.
26282 - Handle the different button sizes of maximized toolwindows
26283 (should match any maximized window).
26284 - Get the titlebar height from the theme, not the WM (which gets
26285 it from the theme).
26287 2006-06-12 Jackson Harper <jackson@ximian.com>
26289 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
26290 event down to the mdi window manager.
26291 - Expose some extra stuff to base classes
26292 - Make sure to end the Capture on an NC Mouse up, so that we can
26293 get double clicks properly, and the sizing doens't stick.
26294 - When doing PointToClient contain it in the workable desktop
26295 area, this prevents windows from changing size when the cursor is
26296 pulled outside of the working area while sizing.
26297 * MdiWindowManager.cs: When we get a double click maximize the
26299 - Reset the cursor after handling mode changes.
26301 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
26303 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
26304 current desktop, instead of just assuming a 0, 0 origin. This
26305 is needed for our internal window manager, to know the top
26306 margin of the desktop
26308 2006-06-12 Chris Toshok <toshok@ximian.com>
26310 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
26311 we need this to get rid of the selected background in the bool
26313 (CancelEditing): move the ConcedeFocus call to above the Abort
26314 call. Also, set is_changing to false and invalidate the row
26315 header if we were changing before.
26316 (ProcessKeyPreviewInternal): remove, since noone outside this
26317 class calls it anymore. Roll the code into ProcessKeyPreview.
26318 (EndEdit): remove the internal version.
26319 (InvalidateCurrentRowHeader): make private.
26321 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
26322 Keys.Escape handling (and with it the last call to
26323 DataGrid.EndEdit from outside the class.)
26326 2006-06-12 Chris Toshok <toshok@ximian.com>
26328 * DataGridTextBox.cs (.ctor): isedit defaults to false.
26329 (OnKeyPress): set isedit to true.
26330 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
26331 already handled by the grid.
26333 * DataGrid.cs (set_CurrentCell): more work here. it's still not
26335 (set_DataSource): SetDataSource always returns true, so stop
26336 putting it in an if statement.
26337 (EndEdit): get rid of some {}'s
26338 (ProcessGridKey): return true in case Keys.Escape.
26339 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
26340 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
26341 PositionChanged, stopped connecting to CurrentChanged.
26342 (GetDataSource): simplify this a bunch.
26343 (SetDataSource): change return type from bool to void.
26344 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
26345 to this, and make sure we don't set ListManager.Position inside
26347 (OnListManagerItemChanged): if we're passed an actual index,
26350 * CurrencyManager.cs (set_Position): don't call PullData here.
26352 2006-06-09 Jackson Harper <jackson@ximian.com>
26354 * TreeNode.cs: Recalculate the visible order before doing the
26355 Expand/Collapse Below calls, because those calls generate an
26357 - Reduce calls to the TreeView property, which is mildly expensive
26358 by using a local var.
26359 * Form.cs: Layout the MDI child windows when creating the parent
26361 - Don't use the internal constructor anymore
26362 * MdiClient.cs: use the parent form width/height (if available)
26363 when laying out the child windows, we do this because the
26364 mdiclient isn't docked yet when the initial layout is done.
26365 - Don't need an internal constructor anymore.
26367 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26369 * FileDialog.cs: handle access errors when trying to create a folder
26370 or changing to a directory. No need to initialize out parameters.
26372 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26374 * FileDialog.cs: Append a number when creating a new folder if the
26375 folder already exists (use parenthesis instead of square brackets)
26377 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26380 - Disabled registry support for windows and added better registry
26381 error checking for other systems (need to investigate why it
26382 works perfectly on my system)
26383 - If a folder already exist show an error MessageBox instead of
26384 trying to create an indexed name.
26385 - Fixed a non intentional typo.
26387 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26389 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
26391 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26393 * FileDialog.cs: When creating a new folder don't crash if the
26394 folder already exists.
26396 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26398 * FileDialog.cs: Allmost a complete rewrite.
26399 - added a "virtual" file system that handles the differences
26400 between unix and windows file systems (especially the directory
26401 structure). Moved most of the directory and file handling code
26403 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
26404 UnixFileSystem and FSEntry.
26405 - Recently used folder/directory, size, location and used file names
26406 (file name ComboBox) are now stored in the registry and get read
26407 before the dialog shows up (fixes part 6 of bug #78446).
26408 - Creation of new folders/directories is now possible (context menu
26409 or ToolBar). Added TextEntryDialog for this that fills in the gap
26410 until ListView.LabelEdit works.
26411 - Fixed cursor handling (bug #78527) and focus handling for
26413 - Various "Search in" ComboBox enhancements. The content of the
26414 dropdown listbox now almost matches ms.
26415 - Changed the behaviour when the user switches to SpecialFolder
26416 Recent to show the ListView in View.Details.
26417 - Beside using the ToolBar to change the View property of the
26418 file ListView it is now possible to use the context menu too.
26420 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26422 * ComboBox.cs: Don't create a new ObjectCollection when an item
26423 gets inserted. Just insert the item in the existing object_items
26426 2006-06-08 Jackson Harper <jackson@ximian.com>
26428 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
26429 that the treeview and root node checks are done also, this fixes a
26430 regression i caused in the unit tests.
26432 2006-06-07 Wade Berrier <wberrier@novell.com>
26434 * RichTextBox.cs: More ISO8859-1 -> unicode
26436 2006-06-07 Mike Kestner <mkestner@novell.com>
26438 * ComboBox.cs : use items to hold highlight/selection so that
26439 collection insertions don't require synchronization.
26441 2006-06-07 Jackson Harper <jackson@ximian.com>
26443 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
26444 routine. We now always keep the sized edge at the cursor instead
26445 of computing movement and adjusting rects. There is one buglet
26446 with this method though when the cursor is moved over area that
26447 the window can not expand too (such as the toolbars on the desktop).
26449 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26451 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
26452 here. Fixes crash on startup in AlbumSurfer.
26454 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
26456 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
26459 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26461 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
26462 statement to avoid calling XNextEvent which will block if another thread
26463 took the event that we were expecting. Fixes bug #78605.
26465 2006-06-07 Mike Kestner <mkestner@novell.com>
26467 * ListView.cs : isolated checkbox clicking from the selection logic.
26468 Toggle check state on item doubleclicks. Really fixes #78454 part2.
26470 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
26472 * Form.cs: Check that the value passed to Form.DialogResult
26473 is a valid enum value.
26475 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26477 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
26478 Computer'. Clicking it in the network view goes to 'My Computer'.
26479 Added CIFS filesystem type. Display the mount point of filesystems.
26480 Avoid duplicate mount points (happens for me with CIFS);
26482 2006-06-06 Jackson Harper <jackson@ximian.com>
26484 * InternalWindowManager.cs: Draw the maximized windows buttons
26487 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26489 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
26490 all other dialogs. Fixes bug #78585.
26492 2006-06-06 Mike Kestner <mkestner@novell.com>
26494 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
26495 Only invalidate checkbox on checkstate changes to avoid flicker.
26496 * ListBox.cs : avoid unselect/select when clicking selected item.
26497 avoid reselection flicker for already multiselected items.
26500 2006-06-06 Jackson Harper <jackson@ximian.com>
26502 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
26503 the parent form so that the menu is removed if needed.
26505 2006-06-06 Mike Kestner <mkestner@novell.com>
26507 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
26508 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
26510 2006-06-06 Mike Kestner <mkestner@novell.com>
26512 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
26515 2006-06-06 Jackson Harper <jackson@ximian.com>
26517 * Control.cs: Use the property (instead of the field) to get the
26518 default cursor so it is instantiated correctly.
26519 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
26520 resizes so we need to manually repaint the window decorations here.
26521 - Set the titlebar button locations as soon as they are created,
26522 otherwise they are not set correctly on win32.
26524 2006-06-06 Chris Toshok <toshok@ximian.com>
26526 * CurrencyManager.cs (set_Position): call PullData before
26528 (AddNew): after calling IBindingList.AddNew, update our
26529 listposition, and call OnCurrentChanged/OnPositionChanged (without
26531 (OnCurrentChanged): remove the call to PullData from here.
26532 (OnItemChanged): remove the call to PushData from here.
26533 (OnPositionChanged): change the test from == null to != null to
26534 match the other methods.
26535 (ListChangedHandler): the grossest part of the patch. Implement
26536 this such that it passes the unit tests in CurrencyManagerTest and
26537 the output more or less matches that of MS's implementation.
26539 2006-06-06 Mike Kestner <mkestner@novell.com>
26541 * ListView.cs : only update check state on single click.
26542 * ThemeWin32Classic.cs : fix focus drawing for details view without
26543 fullrowselect. Fixes #78454.
26544 * XplatUIX11.cs : fix for double click emission.
26546 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
26548 * PropertyGridView.cs : Applied Atsushi's patch to fix
26549 font dialog bug (#78197).
26551 2006-06-05 Jackson Harper <jackson@ximian.com>
26553 * TreeNode.cs: Compute the next node for expanding/collapsing
26554 correctly. We now factor in nodes without a NextNode
26555 correctly. (Fixes somes cases in nunit-gui).
26556 * InternalWindowManager.cs: Set the bounds when updating the
26557 virtual position of a tool window.
26559 2006-06-05 Chris Toshok <toshok@ximian.com>
26561 * DataGrid.cs: rename cached_currencymgr to list_manager.
26562 (set_CurrentCell): move SetCurrentCell code here, and clean it up
26564 (CurrentRow, CurrentColumn): single accessors so we can make the
26565 cursor movement code a lot easier to understand.
26566 (CurrentRowIndex): implement this in terms of CurrentRow.
26567 (BeginEdit): clean this up a bit.
26568 (CancelEditing): sort out the is_editing/is_changing/is_adding
26570 (EndEdit): minor changes.
26571 (OnKeyDown): add a comment about a (most likely) unnecessary
26573 (OnMouseDown): cancel editing when we click on a row header. And
26574 use the CurrentRow setter, not CurrentCell.
26575 (ProcessDialogKey): directly call ProcessGridKey.
26576 (UpdateSelectionAfterCursorMove): factor out this common block of
26577 code (it's used everywhere that we move the cursor by updating row
26579 (ProcessGridKey): pretty substantial overhaul. Use the
26580 CurrentRow/CurrentColumn properties to make the code a lot more
26581 readable. Only use the CurrentCell property when we have to
26582 modify both row and column at once. Tab behavior is still broken,
26583 and Delete is untested.
26584 (Select): if we have no selected rows, set selection_start to
26586 (EditCurrentCell): rename EditCell this. It was only ever invoked
26587 with CurrentCell as the arg, so drop the arg and rename it.
26589 * DataGridColumnStyle.cs: clean up the constructors a little, and
26590 drop CommonConstructor().
26592 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
26593 actually get notified when the user hits it.
26594 (ProcessKeyMessage): *substantially* simplify this method.
26595 There's no reason (that I can see) for the textbox to be making
26596 calls into the datagrid at all. Remove all of them but the ones
26597 for Enter handling. those will take some more work.
26599 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
26600 calling HideEditBox.
26601 (HideEditBox): if we have an active textbox, render it invisible
26602 without causing a re-layout of the datagrid.
26604 2006-06-05 Mike Kestner <mkestner@novell.com>
26606 * ListView.cs : fix NRE crasher when focuseditem is cleared by
26607 collection changes by resetting it to Items[0]. Fixes #78587.
26609 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26611 * MessageBox.cs: if the height of the text is larger than the icon_size,
26612 use that. Fixes bug #78575.
26614 2006-06-05 Jackson Harper <jackson@ximian.com>
26616 * TreeView.cs: Fix line drawing when scrolling. To do this each
26617 node is basically responsible for drawing its entire horizontal
26618 area. When drawing a node it draws its parent node lines if
26620 - Adjust the clip area to the viewport rectangle
26621 - Fix Left/Right key handling to match MS. (It expand/collapses
26622 and moves to parents/first child but does not move selection to
26624 - Fix SetTop to work with new bound calculation code
26625 - When scrollbars are no longer needed we need to reset scrolling
26626 vars and recalculate the visible order so the redraw is correct
26627 * TreeNode.cs: We can't expand/collapse nodes with no children.
26629 2006-06-03 John Luke <john.luke@gmail.com>
26631 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
26632 so the colors work without dev packages
26634 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
26637 - Select: Implemented to just use activate. Seems to match MS
26638 behaviour closest. Documented to only do actual control walking
26639 based on it's parameters if in a container control so I moved
26641 - Removed selection check logic from our internal Select() method
26642 * ContainerControl.cs:
26643 - Select: Moved selection logic from Control here, since MS documents
26644 that containers obey the bool arguments. No longer calling base
26646 2006-06-02 Jackson Harper <jackson@ximian.com>
26648 * TreeView.cs: If the selected node isn't changed when we get
26649 focus update the previously selected node so that we see the
26652 2006-06-02 Mike Kestner <mkestner@novell.com>
26654 * ComboBox.cs: restructure grab and general mouse event handling.
26655 Make the composite control raise mouse events like it was a single
26656 control for leaves/enters/motion/up/down events. fix dropdown list
26657 coordinate mangling and refactor it into the scrollbar subclass to
26658 reduce code duplication. Fixes #78282 #78361 and #78457.
26660 2006-06-02 Mike Kestner <mkestner@novell.com>
26662 * ScrollBar.cs: remove Capture setting/clearing, as it happens
26663 automatically in the Control.WndProc.
26665 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26667 * FileDialog.cs: fix crash when running SharpChess, which sets the
26668 FilterIndex to 2 with only one Filter.
26670 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26672 * ToolBar.cs: add SizeSpecified property.
26673 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
26674 try to figure out our real size, otherwise fallback to what the
26677 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
26679 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
26680 * Control.cs (WndProc): MS always calls the DefWndProc to pass
26683 2006-06-01 Mike Kestner <mkestner@novell.com>
26685 * ListView.cs: revamp the focus management in ListView. It still
26686 causes churn of LostFocus/GotFocus emissions on clicks, but it's
26687 better than not handling focus at all. Will revisit when pdb feels
26688 the general focus handling is solid. Fixes #78526.
26690 2006-06-01 Jackson Harper <jackson@ximian.com>
26692 * TreeView.cs: Set the default border style in the constructor.
26693 - Move painting to use OnPaintInternal instead of capturing
26694 WM_PAINT, this is the correct way of doing things
26695 - UpdateBelow shouldn't invalidate the scrollbar area
26696 - Cap the top on update below in case the node was above the top
26697 of the viewport rectangle.
26698 - ExpandBelow and Collapse below need to obey Begin/End Update.
26699 * TreeNode.cs: Make is_expanded internal so the treenode
26700 collection can change it without firing the whole event chain.
26701 * TreeNodeCollection.cs: When clearing all the child nodes make
26702 sure to recalc the visible order.
26703 - Improve algo for remove the top node
26705 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
26707 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
26708 SendMessage directly calling window procedures, which in turn might
26711 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
26713 * Control.cs: Don't handle WM_SETFOCUS if the same window already
26714 has focus (works around X11 sending a FocusIn after our SetFocus)
26715 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
26717 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
26719 * Mime.cs: Fix for the NET_2_0 build.
26720 NameValueCollection needs StringComparer now.
26722 2006-05-31 Chris Toshok <toshok@ximian.com>
26724 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
26725 return (via an out parameter) the starting X of the column.
26726 (UpdateVisibleColumn): track change to FromPixelToColumn.
26727 (HitTest): add a ColumnResize case here.
26728 (DrawResizeLine): new function, probably poorly named.
26730 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
26731 only need to keep one reference.
26732 (set_ListManager): same.
26733 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
26734 Also, add support for HitTestType.ColumnResize.
26735 (OnMouseMove): add column resize behavior here, and change the
26736 cursor to the correct one as we move around the datagrid.
26737 (OnMouseUp): terminate the column resize if we're resizing.
26738 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
26739 for the current cell.
26740 (ConnectListManagerEvents): use cached_currencymgr.
26741 (DisconnectListManagerEvents): fill this in, using
26742 cached_currencymgr.
26743 (SetCurrentCell): remove cached_currencymgr_events handling.
26744 (SetDataMember): only call DisconnectListManagerEvents if
26745 cached_currencymgr is != null.
26746 (SetDataSource): same.
26747 (OnListManagerCurrentChanged): cached_currencymgr_events ->
26748 cached_currencymgr.
26750 2006-05-31 Jackson Harper <jackson@ximian.com>
26752 * BindingManagerBase.cs: Remove somedebug code that creeped into
26754 * TreeNode.cs: We get the indent level dynamically right now, so
26755 don't track it as a member.
26756 * TreeNodeCollection.cs: Make sure all nodes added to the list
26757 have parents, treeviews/topnodes setup properly.
26758 - Don't attempt to track indent level.
26760 2006-05-30 Jackson Harper <jackson@ximian.com>
26762 * BindingContext.cs: Create the currency manager tables here.
26763 This allows us to more easily create null tables (when bad data
26764 members are used), and more easily create related currency
26766 * CurrencyManager.cs: All the table creation stuff is done by the
26767 binding context now.
26768 - Current should throw an exception if listposition is -1.
26769 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
26772 2006-05-30 Mike Kestner <mkestner@novell.com>
26774 * ListView.cs: allow reexpansion of zero-width column headers.
26777 2006-05-28 Chris Toshok <toshok@ximian.com>
26779 * CurrencyManager.cs (get_Current): after the late binding
26780 listposition = -1 fix, we need to guard against it here and return
26781 null, otherwise we raise an exception (which is swallowed
26782 elsewhere, and breaks datagrid databinding.)
26784 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
26786 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
26787 than WM_SYSKEY, don't throw if get something unexpected (#78507)
26789 2006-05-26 Jackson Harper <jackson@ximian.com>
26792 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
26793 values, it's faster and it's all we care about (we don't care if
26794 the names aren't equal).
26795 * KeyboardLayouts.cs: Eliminate some dead code.
26797 * X11Keyboard.cs: Lazy init keyboard detection.
26798 - Cleanup access modifiers a little.
26800 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
26802 * XplatUIX11.cs: Once again, attempting to get layout just right.
26804 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
26806 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
26807 the sizes of each link section, that will result in sizes that
26808 match DrawString's layout (Fixes #78391)
26810 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
26812 * FileDialog.cs: If AddExtension property is true autocomplete the
26813 extensions in SaveFileDialog correctly. Fixes bug #78453.
26814 Set MyNetwork and MyComputer to "C:\" for windows. This should
26815 fix part 8 of bug #78446 for now.
26817 2006-05-26 Chris Toshok <toshok@ximian.com>
26819 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
26820 invalidate the current row header if we need to, but presumably
26821 we'll invalidate the row corrsponding to the bounds or
26823 (GridHScrolled): switch back to this method, as it's part of the
26824 public api. *sigh*.
26825 (GridVScrolled): same.
26826 (OnMouseWheel): hack up something that more or less works. Call
26827 GridHScrolled/GridVScrolled directly, instead of duplicating much
26828 of their code here.
26829 (EnsureCellVisibility): reinstate a bunch of this code, since we
26830 can't just set the scrollbar Value and expect to do all the work
26831 in the ValueChanged handler. Also, Call Update() after scrolling
26832 in one direction so the other XplatX11.ScrollWindow call has the
26833 proper stuff in the proper places.
26834 (EditCell): set is_editing to true before calling .Edit.
26836 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
26837 don't bother comparing first.
26838 (OnKeyPress): call grid.ColumnStartedEditing before calling
26839 base.OnKeyPress. this will set is_changing and invalidate the row
26840 header if necessary.
26841 (ProcessKeyMessage): for WM_CHAR messages, call
26842 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
26845 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
26846 it's done in the DataGrid.
26847 (NextState): call grid.ColumnStartedEditing, which takes care of
26848 invalidating the row header (and setting is_changing).
26850 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
26851 here. it's done in the DataGrid.
26853 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26855 * Control.cs: allow changing the cursor when the mouse position is
26856 out of bounds but Capture is set.
26857 * LinkLabel.cs: handle the case when the mouse button is pressed on the
26858 linklabel but released somewhere else.
26860 2006-05-25 Jackson Harper <jackson@ximian.com>
26862 * TreeView.cs: When we get focus if there is no selected node make
26864 - Remove some uneeded setup code from Draw.
26865 * TreeNodeCollection.cs: If the tree doesn't have a top node when
26866 a new node is inserted make the new node the top.
26868 * Timer.cs: Use Utc time so that no local time zone stuff needs to
26869 be used (should be faster).
26871 2006-05-25 Chris Toshok <toshok@ximian.com>
26873 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
26874 problem with the last commit.
26876 2006-05-25 Chris Toshok <toshok@ximian.com>
26878 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
26879 need the invalidate call here, while scrolling right-to-left via
26880 the left arrow key (i.e. moving the editing cell while scrolling).
26882 * DataGrid.cs (.ctor): remove the initialization of
26883 ctrl_pressed/shift_pressed. We no longer track them using key
26884 up/down handlers, but by using Control.ModifierKeys. Also, switch
26885 to using ValueChanged handlers on the scrollbars instead of
26886 Scrolled event handlers. This simplifies a bunch of the scrolling
26888 (GridHValueChanged): rename from GridHScrolled, and change it to
26889 work with the new event args.
26890 (GridVValueChanged): same.
26891 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
26892 (OnMouseWheel): actually scroll the datagrid. Don't change the
26894 (ProcessGridKey): correct all the keyboard navigation stuff I
26895 could find. Ctrl up/down/left/right/home/end work now.
26896 (EnsureCellVisibility): correct method name spelling. Also,
26897 simplify this a touch by not explicitly calling the
26898 ScrollToRow/ScrollToColumnInPixels methods. We just set the
26900 (OnKeyUpDG): no need for this method now.
26902 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26904 * LinkLabel.cs: display the OverrideCursor when hovering the label.
26907 2006-05-25 Chris Toshok <toshok@ximian.com>
26909 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
26912 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
26914 * Application.cs: Moved setting of is_modal and closing to before
26915 we create the control, to allow the event handlers called as a
26916 result of creation affect closing. Also removed Gonzalo's previous
26917 change to setting DialogResult, the behaviour has been moved to
26920 - ShowDialog(): Removed explicit creation of the form, let RunLoop
26922 - ShowDialog(): If no dialog result is set, we need to return Cancel
26923 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
26924 the close is cancelled
26926 2006-05-25 Jackson Harper <jackson@ximian.com>
26928 * StatusBar.cs: We only need to update the sizes of the other
26929 panels when we have auto size contents. Also we are only updating
26930 the contents of the panel, not the borders, so compensate for the
26931 border width (TODO: get this width from the theme somehow).
26932 * TreeView.cs: Scrollable is true by default
26933 - Use invalidate instead of refresh where needed
26934 - Factor the scrollable value into scrollbar updating
26935 - Update the scrollbars if the Scrollable property is altered
26936 - Update the selected node if its ImageIndex is changed
26937 - Handle null nodes in UpdateNode (mainly so we don't have to
26938 check if selected is null when updating it
26939 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
26940 are factored into the visible count
26941 - Use VisibleCount for clarity in the code
26942 - When the font is changed we need to recurse through all the
26943 nodes and invalidate their sizes
26945 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26947 * Application.cs: set the DialogResult to fixed when the main form is
26948 hidden or destroyed while being modal.
26950 2006-05-25 Miguel de Icaza <miguel@novell.com>
26952 * Theme.cs: Use Tangoified messagebox icons.
26954 (GetSizedResourceImage): Also cope with width = 0 and do not
26955 trigger a warning in that case (0 means "give me your icon from
26956 the resouce, no special size needed).
26958 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
26960 * Application.cs: Leave runloop if the the main modal form is
26961 hidden (fixes #78484)
26963 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
26965 * BindingContext.cs : reject null datasource in Contains() and
26967 * CurrencyManager.cs : check data_member validity when data_source
26968 is dataset. When it is late binding, the initial position is -1.
26970 2006-05-24 Jackson Harper <jackson@ximian.com>
26972 * TreeNodeCollection.cs: Dont't recalculate the visible order on
26973 inserted nodes that aren't visible. This changes the
26974 max_visible_order which confuses scrollbar settings.
26975 - Use the enumerator to get the prev node instead of duplicating
26977 * TreeView.cs: Use new method for setting scrollbar values
26978 - Don't set the bounds every time the scrollbar is updated
26979 - When updating below the root node use an invalidate instead of a
26980 refresh to prevent the child controls (scrollbars) from being
26981 refreshed. (UpdateBelow still needs to be reworked anyways).
26982 - Reenable SetBottom now that visible orders are set correctly,
26983 added some debug code incase we ever get bad values there again.
26984 - Set the scrollbar max to 2 less then the max value, this
26985 compensates for the max value being one above the node count, and
26986 for scrollbars adding one extra "notch".
26987 - When drawing image nodes if there is an imagelist we draw the
26988 first image in the list if the supplied image index is out of the
26989 image list's bounds.
26991 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
26993 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
26994 we receive a size change from the WM (Fixes #78503)
26996 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
26998 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
26999 rectangle (Fixes #78501)
27001 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
27004 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
27006 - Fixed MouseMove to no longer switch pressed state unless the left
27007 mouse button is pressed. Atsushi provided the original patch (#78485)
27009 2006-05-24 Jackson Harper <jackson@ximian.com>
27011 * ScrollBar.cs: New internal methods that allow us to change a
27012 couple values on the scrollbar (the most common case is maximum
27013 and large change) without getting multiple invalidates.
27015 2006-05-24 Chris Toshok <toshok@ximian.com>
27017 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
27018 (Edit): save off the original state in oldState, and set
27019 grid.is_editing to true.
27020 (OnKeyDown): abort editing if escape is pressed. also, call
27021 NextState if space is pressed.
27022 (OnMouseDown): call NextState.
27023 (NextState): factor out shared code from OnKeyDown and OnMouseDown
27024 here. Also, only invalidate the row header once (on the initial
27025 is_changing switch) to save on redraws.
27027 2006-05-24 Chris Toshok <toshok@ximian.com>
27029 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
27030 if the value in the cell is different than it was before. This
27031 keeps us from triggering a layout when we move around a datarid
27032 with a highlighted cell.
27033 (Edit): suspend layout when creating/positining the text box, and
27034 resume passing false so we don't ever actually re-layout.
27035 (ReleaseHostedControl): same.
27036 (EnsureTextBox): reformat slightly, and set WordWrap to false.
27038 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
27039 control-key sequences should go to the datagrid - remove that
27040 lock. Also, modify the conditions under which we move between
27041 cells when moving the cursor within a cell, and remove the "this"
27042 and "base" from field accesses. We weren't even consistent, given
27043 they all were in the base class.
27045 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
27047 * Binding.cs : (.ctor)
27048 An obvious NRE fix for BindingTest.CtorNullTest().
27050 2006-05-23 Chris Toshok <toshok@ximian.com>
27052 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
27053 them between lines. This fixes some quirks editing cells in the
27056 2006-05-23 Jackson Harper <jackson@ximian.com>
27058 * TreeView.cs: Use begin/end update when doing expand/collapse all
27059 so that we don't get flicker on the scrollbar.
27061 2006-05-23 Jackson Harper <jackson@ximian.com>
27063 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
27064 treenode calculations to be independant of the painting code. To
27065 do this nodes track a visible order which is calculated by the
27067 - Call new methods for expanding/collapsing nodes. These methods
27068 use scrollwindow so we don't have to update everything below the
27070 * TreeView.cs: Refactored drawing and scrolling code. We don't
27071 need to update nodes when drawing anymore or calculate scrollbar
27073 - Added new methods for expanding/collapsing nodes. These methods
27074 use ScrollWindow so as to not have to redraw all the nodes below.
27075 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
27076 we add/remove nodes or sort.
27077 - Handle removing the selected and the top node properly.
27079 2006-05-23 Chris Toshok <toshok@ximian.com>
27081 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
27082 maybe this should actually happen in the datagrid code?
27083 (EndEdit): no need to invalidate anything, given that
27084 ReleaseHostedControl causes the datagrid to relayout, which
27085 invalidates everything anyway.
27087 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
27088 in SetCurrentCell).
27089 (set_SelectionBackColor): call InvalidateSelection instead of
27091 (set_SelectionForeColor): same.
27092 (BeginEdit): Flesh this out a bit.
27093 (CancelEditing): only do any of this if we're editing/adding.
27095 (OnMouseDown): there's no need to cancel editing here, it's done
27097 (SetCurrentCell): only invalidate the current row header if it's a
27098 different row than the new one.
27099 (ShiftSelection): fix this to work like MS does.
27100 (ResetSelection): factor out the invalidation of selected_rows to
27101 InvalidateSelection.
27102 (SetDataSource): cancel any editing that's going on.
27104 * DataGridColumnStyle.cs
27105 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
27106 call the non-interface version.
27108 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
27109 header rectangle with the clip rectangle so we don't redraw the
27110 entire header for just a small area. Gets rid of the last flicker
27111 when horizontally scrolling.
27112 (DataGridPaintRow): same.
27114 2006-05-23 Mike Kestner <mkestner@novell.com>
27116 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
27117 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
27118 poorly placed checkbox on the MS control. Fixes Alex's unfiled
27119 Critical bug report.
27121 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
27123 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
27124 and this fixes #78493
27126 2006-05-23 Miguel de Icaza <miguel@novell.com>
27128 * Theme.cs (GetSizedResourceImage): Scale images if the proper
27131 * FileDialog.cs: Do not change the background for the side bar as
27132 it wont work nicely with the theme, and also reduces the artifacts
27133 in rendering the icons (which I want to fix too).
27135 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
27136 resources, not resgen resources.
27138 (PlatformDefaultHandler): Pull images using the new API.
27140 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
27142 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
27143 a reference to the hwnd and will not remove it unless there are
27144 no pending exposures (fixes #78341)
27145 * XplatUI.cs: Improved debug
27147 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
27149 * MenuAPI.cs : don't handle OnClick event when it was not the left
27150 button. Fixed bug #78487.
27152 2006-05-23 Mike Kestner <mkestner@novell.com>
27154 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
27155 prefer submenus to the top menu for item lookup, to avoid popping down
27158 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
27160 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
27161 Graphics.FillRectangle as the visual results are really bad (even
27162 on win). We now draw perfect arrows (and perfect shadows when the
27163 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
27164 Pen.DashPattern to draw the dots of each line.
27166 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
27168 * FileDialog.cs: Update the filename combobox when navigating through
27169 the ListView with the cursor keys. Fixes part 7 of bug #78446.
27171 2006-05-22 Mike Kestner <mkestner@novell.com>
27173 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
27176 2006-05-22 Mike Kestner <mkestner@novell.com>
27178 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
27179 requests. Fix a misspelled parameter and a copy paste exception error
27182 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
27184 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
27185 to get the same width/height (5/13) on X11 as the default font has on
27186 win32. This means that our DefaultFont emSize is smaller than the
27187 the MS SWF equivalent (even thought the width/height stays the same)
27189 2006-05-20 Jackson Harper <jackson@ximian.com>
27192 * MdiWindowManager.cs:
27193 * InternalWindowManager.cs: Make sure to use the border width from
27196 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
27198 * PrintDialog.cs: Implements printer details
27200 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
27202 * FileDialog.cs: Added focus handling for PopupButtonPanel.
27203 Fixes part 1 and 2 of bug #78446
27205 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
27207 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
27208 instead of sticking to the first ever calculated value
27210 2006-05-19 Mike Kestner <mkestner@novell.com>
27212 * ComboBox.cs: fix mouse motion selection to use MousePosition and
27213 PointToClient, since Capture is set. Fixes #78344.
27215 2006-05-19 Mike Kestner <mkestner@novell.com>
27217 * ListView.cs: match MS behavior in Details view where items are not
27218 drawn if Columns.Count == 0.
27219 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
27220 Use a separate pen to draw the check, since changing the width affects
27221 the box as well. Fixes #78454.
27223 2006-05-18 Miguel de Icaza <miguel@novell.com>
27225 * ListView.cs: ArgumentOutOfRangeException, single versions of the
27226 exception should throw the name of the invalid argument.
27228 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
27229 there are no files listed.
27231 2006-05-18 Jackson Harper <jackson@ximian.com>
27233 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
27236 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
27238 * Control.cs: Brought back our old UpdateZOrder method as a private
27239 function and switched our calls from UpdateZOrder to the new one.
27240 This fixes the Paint.Net canvas disappearing bug.
27242 2006-05-18 Jackson Harper <jackson@ximian.com>
27245 * ThemeWin32Classic.cs:
27246 * InternalWindowManager.cs: Move the drawing into the theme,
27247 expose everything the theme should need from the window manager.
27249 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
27251 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
27252 from the call to NativeWindow to avoid walking up the parent chain
27253 further than needed (speeds up setting cursors and avoids setting
27254 the wrong cursor if a parent has another cursor defined)
27255 * Cursor.cs: When loading an icon as cursor, MS uses the center of
27256 the icon as hotspot, not what's contained as hotspot in the icon
27257 file. This fixes the perceived drawing offset seen with Paint.Net
27259 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
27262 - Store the calculated rectangle in Hwnd object and use it when
27263 setting the client size
27264 - Force Toolwindows to always be type Dock, to ensure they're on top
27266 2006-05-18 Mike Kestner <mkestner@novell.com>
27268 * ComboBox.cs: first pass at ComboBox rework. Layout is more
27269 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
27270 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
27271 Substantial refactoring to remove confusing nested classes. Coding
27272 standard and Get+Set->property refactorings. Shift to index based
27273 highlighting in ComboListBox instead of constantly using IndexOf and
27274 Items[]. Add invalidations on resize for DropDownList to fix ugliness
27275 in FileDialog growth. Draw borders manually since Simple mode needs
27276 to look like two independent controls. Make listbox border
27277 conditional to DropDownStyle. Improved OwnerDraw support.
27279 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
27281 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
27282 Don't set the disposed graphics to null, so we can throw the "right"
27283 exception if the graphics is reused later (added a flag to avoid
27284 double disposing). Some behaviours are different under 2.0 and are
27285 filled under bug #78448.
27287 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
27289 * Control.cs: When double-buffering is enabled, we need to reset
27290 our graphics context between paint calls. Otherwise, any
27291 transformations and other alterations on the context will
27292 become cumulative (#77734)
27294 2006-05-18 Mike Kestner <mkestner@novell.com>
27296 * ListView.cs: do focused item selection like MS on clicks.
27297 Rework focus handling for ItemControl so LostFocus invalidates as
27299 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
27300 the ListView ItemControl has focus.
27302 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
27304 * XplatUIX11.cs: If client_window ends up being width or height zero
27305 due to border settings, move it off window inside whole_window (#78433)
27307 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
27309 * Mime.cs: Shrink the mime file cache correctly.
27311 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
27313 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
27315 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27317 * XplatUIX11.cs (AddExpose): More sanity checks
27319 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27322 - AddExpose: Don't add expose ranges outside the size of our
27324 - Cast opacity values to Int32 to avoid crashes with certain
27326 - Added disabled code paths that protect against illegal cross-
27327 thread painting (Developers.exe)
27329 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27331 * ProgressBar.cs: Invalidate the control when it's resized
27332 since block size is based on control size. (#78388)
27334 2006-05-16 Miguel de Icaza <miguel@novell.com>
27336 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
27337 of setting the incoming argument to the "reset" value, we set the
27338 this.datamember to string.empty (before we were invalidating the
27343 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27345 * Form.cs: Only apply transparency settings after the form
27346 is created. (Fixes #77800)
27348 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27350 * ApplicationContext.cs: Grab the HandleDestroyed event so
27351 we know when to fire OnMainFormClosed
27353 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27355 * Application.cs: Introduced sub-class to allow tracking of
27356 threads and centralized triggering of the event mess for
27357 ThreadExit, AppExit, etc.. (#76156)
27359 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
27362 - Do not return a null icon index value for a mime subclass.
27363 Instead try the main mime type class too.
27364 - Seems that some newer distributions don't have a link to some
27365 gnome default icons anymore. So check the default gnome dir too.
27368 2006-05-16 Jackson Harper <jackson@ximian.com>
27370 * MdiClient.cs: Don't paint the parent background image if we have
27371 our own background image.
27373 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27376 - PerformLayout: Do not shrink space filled by DockStyle.Fill
27377 controls, all filled controls are supposed to overlap (#78080)
27378 - UpdateZOrder is supposed to update the control's z-order in the
27379 parent's z-order chain. Fixed to behave like that
27380 - BringToFront: Removed obsolete code
27381 - SendToBack: Simplyfied
27382 - SetChildIndex: Trigger layout calculations when Z-order changes
27383 since layout is done by z-order
27385 2006-05-16 Chris Toshok <toshok@ximian.com>
27387 [ fixes bug #78410 ]
27388 * DataGrid.cs (set_AlternatingBackColor): use
27389 grid_drawing.InvalidateCells instead of Refresh().
27390 (set_BackColor): call grid_drawing.InvalidateCells.
27391 (set_BackgroundColor): use Invalidate instead of Refresh.
27393 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
27394 invalidate the cell area.
27396 2006-05-15 Chris Toshok <toshok@ximian.com>
27398 [ fixes bug #78011 ]
27399 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
27400 on to DataGridPaintRow.
27401 (DataGridPaintRow): take a clip argument, and only draw the cells
27402 which intersect it. same with the not_usedarea.
27404 * Theme.cs (DataGridPaintRow) add @clip parameter.
27406 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
27407 XplatUI.ScrollWindow.
27408 (ScrollToRow): same.
27410 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
27411 with last column which was causing a gray swath to appear with the
27412 XplatUI.ScrollWindow code.
27414 2006-05-15 Chris Toshok <toshok@ximian.com>
27416 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
27417 use XplatUI.ScrollWindow.
27418 (VerticalScrollEvent): use XplatUI.ScrollWindow.
27420 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
27422 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
27424 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
27426 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
27427 file since there are no equivalent X11 cursors
27429 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
27431 * MonthCalendar.cs : DateTimePicker should reflect selected date
27432 on mouse*up*, not mouse*down*. Fixed originally reported part of
27435 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
27437 * TabControl.cs : When argument index is equal or more than tab
27438 count, just ignore. Fixed bug #78395.
27440 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
27442 * Control.cs: Dispose all child controls when control is diposed (#78394)
27444 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
27446 * ColorDialog.cs: Finally it is possible to select the color with
27449 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
27451 * PrintDialog.cs: Fix typo
27453 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
27455 * PrintDialog.cs: PrintDialog is not resizable
27456 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
27457 color. Made some ToolBar drawing methods protected virtual.
27459 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
27461 * PrintDialog.cs: Implementation of the PrintDialog
27463 2006-05-12 Chris Toshok <toshok@ximian.com>
27465 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
27466 thumb, instead use MoveThumb. This has the side effect of making
27467 most of the other thumb moving machinery use MoveThumb as well.
27468 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
27469 need to actually invalidate the rectangle where the new thumb will
27471 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
27472 We force an Update() after, so it's not as fast as it could be,
27473 but at least there's zero flicker and no droppings.
27474 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
27475 (UpdateThumbPos): add another argument (dirty), which says whether
27476 or not to calculate/add dirty regions which we later invalidate.
27477 For cases where we know we're going to use MoveThumb, we pass
27478 false for this. Otherwise, pass true.
27480 2006-05-12 Jackson Harper <jackson@ximian.com>
27482 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
27485 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
27487 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
27488 and GetClipRegion methods and UserClipWontExposeParent property.
27489 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
27490 overriding UserClipWontExposeParent property, setting to false, since
27491 Win32 handles the required expose messages to draw our clipped parent
27493 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
27494 PaintEventStart to set the user clip region if set.
27496 - Now internally tracking the Region for the control since we need to
27497 store it if the handle is not yet created and only set it when it
27498 becomes created. Before setting the region forced handle creation
27499 - Added code to draw the parents underneath a user-clipped region
27500 * Hwnd.cs: Added UserClip property
27502 2006-05-12 Chris Toshok <toshok@ximian.com>
27504 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
27505 (set_Maximum): same.
27506 (set_Minimum): same.
27507 (set_SmallChange): same.
27508 (OnMouseUpSB): remove the call to refresh when releasing the
27509 thumb. We shouldn't need it.
27511 2006-05-12 Miguel de Icaza <miguel@novell.com>
27513 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
27514 AutoSize set to None, we do not need to relayout everything, we
27515 just need to invalidate the current region.
27517 (Draw): Do not draw the entire ClientArea, just redraw the
27518 clip area being passed.
27520 * MdiClient.cs: Make MdiClient constructor with the Form argument
27523 2006-05-12 Jackson Harper <jackson@ximian.com>
27525 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
27526 parents background image, but strangely not their own.
27527 - (DrawStatusBarPanel): Take into account horizontal alignment
27528 when drawing the strings and icons.
27530 2006-05-12 Mike Kestner <mkestner@novell.com>
27532 * ListBox.cs: avoid invalidations for focus when the collection is
27535 2006-05-12 Chris Toshok <toshok@ximian.com>
27537 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
27538 invalidate the entire thumb area. Call InvalidateDirty which
27539 limits the redraw to the thumb itself and surrounding pixels.
27541 * XplatUIX11.cs (ScrollWindow): optimize copying.
27543 2006-05-12 Chris Toshok <toshok@ximian.com>
27545 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
27546 Figure out the positioning/layout in a single pass instead of
27547 multiple recursive invocations. Speeds up the initial display of
27548 the data grid. Also, make many things private that were
27549 originally public but unused outside this class.
27551 2006-05-11 Jackson Harper <jackson@ximian.com>
27553 * MdiClient.cs: Improved layout code.
27555 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
27557 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
27558 not SelectedObject.
27560 2006-05-11 Chris Toshok <toshok@ximian.com>
27562 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
27563 union of that will always be {0,0,width,height}.
27565 2006-05-11 Jackson Harper <jackson@ximian.com>
27567 * Form.cs: Match MS's DefaultSize for forms (they must have
27568 changed the size in sp2).
27570 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
27572 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
27574 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
27576 * TextControl.cs : Fixed bug #78109. This incorrect position
27577 comparison caused crash on automatic line split.
27578 * TextBoxBase.cs : reduce duplicate code.
27580 2006-05-10 Jackson Harper <jackson@ximian.com>
27582 * MdiClient.cs: Active form is only sent to the back when using
27583 the Next form functionality, when a form is clicked the current
27584 active shouldn't be sent to the back.
27585 - Layout the mdi windows when the container is first made visible.
27586 * Form.cs: Give the MdiClient a ref to the containing form when we
27589 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
27591 * LinkLabel.cs : link_font could be uninitialized, so populate one
27592 before actual use. Fixed bug #78340.
27594 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
27596 * XplatUIX11.cs : clipboard format native value is IntPtr.
27599 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
27602 - Instead of showing context menus directly we send WM_CONTEXTMENU,
27603 which is passed up the parent chain by DefWndProc
27604 - We now handle WM_CONTEXTMENU to display any menu, or pass it
27605 to DefWndProc (#77956)
27606 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
27608 2006-05-10 Jackson Harper <jackson@ximian.com>
27610 * MdiClient.cs: We need to remove the controls from the mdi
27611 collection, when we close the window.
27612 * MdiWindowManager.cs: Special handling of closing mdi windows.
27613 * InternalWindowManager.cs: Make the close method virtual so the
27614 mdi window manager can handle it specially.
27616 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
27619 - Recalculate grid when the data source has changed
27620 - Matches styles provided by user from all data sources types
27621 * DataGridTableStyle.cs: For columns that provided by the user set the
27622 with the preferred value is there was unassigned.
27623 * CurrencyManager.cs: throw OnItemChanged event
27625 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
27627 * PictureBox.cs: Don't animate until handle is created. Start animation
27628 when handle is created.
27630 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
27632 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
27634 * XEventQueue.cs: We don't need to provide the extra info
27636 2006-05-10 Jackson Harper <jackson@ximian.com>
27638 * MdiClient.cs: If the mdi clients parent form has a background
27639 image set, we draw that background image for the mdi area's
27642 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
27644 * TextBoxBase.cs: Set IBeam cursor (#78347)
27646 2006-05-10 Mike Kestner <mkestner@novell.com>
27648 * ToolBar.cs: fix some text padding issues with ButtonSize
27649 calculation. Update the default size to match MS documentation.
27650 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
27651 button size. Fixes #78296.
27653 2006-05-10 Mike Kestner <mkestner@novell.com>
27655 * ListBox.cs: use is_visible for scrollbar positioning in case the
27656 control isn't on screen yet. Fix off by one with Right vs Width
27657 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
27659 2006-05-10 Jackson Harper <jackson@ximian.com>
27661 * X11Dnd.cs: Drop to a control with another control on top of it.
27662 * ToolBar.cs: Work on a copy of the buttons list, so that it can
27663 be modified in click handlers. TODO: Look for similar problems in
27666 2006-05-09 Jackson Harper <jackson@ximian.com>
27668 * Form.cs: Window managers need the old window state when setting
27670 * InternalWindowManager.cs: Allow the base mdi window manager to
27671 handle more of the MDI only stuff (like maximize buttons).
27672 * MdiWindowManager.cs: Fix some snafus in changing the window
27673 state. Add all the menu functionality, for both popup and
27675 * MdiClient.cs: When a new form is selected the currently
27676 activated form is sent to the back, this matches MS.
27677 - Implement a new method to activate the next mdi child window.
27679 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
27682 - Added new InternalCapture method to allow controls to prevent
27683 the capture behaviour on the click handlers
27684 - Switched to use InternalCapture
27686 - Using InternalCapture to prevent mouse captures from being released
27687 on mouse button release (Fixes #78100)
27688 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
27689 returns Form borders if a caption is present. (Fixes #78310)
27691 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
27693 * TreeNode.cs: Changed serialization .ctor to not require every field
27694 to be present. (#78265)
27695 * OwnerDrawPropertyBag.cs: Added serialization .ctor
27697 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
27699 * MimeIcon.cs: for is faster than foreach for strings.
27701 2006-05-05 Mike Kestner <mkestner@novell.com>
27703 * CheckedListBox.cs: update check handling code to not use selected.
27704 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
27705 behavior for visual feedback, motion response, shift/ctrl handling,
27706 and properly deal with all 4 selection modes. Updates to bounds
27707 handling logic. Add scroll wheel support. [Fixes #77842]
27709 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
27712 - Moved adding of Implicit controls into .ctor. That way, subsequent
27713 creation of the controls will not cause them to think they are
27714 toplevel windows (fixes #78200 header problem)
27715 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
27716 - Switched visibility setting of header control to use internal field
27717 to avoid triggering handle creation
27718 - Now checking if handle is created before causing a refresh when items
27719 are added (This makes us now match handle creation time with MS)
27720 * Splitter.cs: Removed loading of private splitter cursor, switched to
27721 Cursors version now that that is loading the right ones
27722 * Cursors.cs: Load proper splitter cursors from resources
27723 * Cursor.cs: Added second method of loading resource cursors for the
27724 VS.Net users amongst us
27726 2006-05-05 Mike Kestner <mkestner@novell.com>
27728 * ListView.cs: give header_control a minimum size based on the
27731 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
27733 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
27734 window seems to do that with metacity, so set that type. (#78120)
27736 2006-05-05 Mike Kestner <mkestner@novell.com>
27738 * ListViewItem.cs: fix Details mode checkbox layout bug.
27739 * ThemeWin32Classic.cs: draw a ListView column header for unused space
27740 at the end of the header, if it exists. [Fixes for #78200]
27742 2006-05-04 Jackson Harper <jackson@ximian.com>
27744 * MdiClient.cs: Add a helper property to get the container form.
27745 * MdiWindowManager.cs: We have to make sure to use the menu origin
27746 when drawing the icons and buttons, this fixes maximized window
27747 icons/buttons on win32.
27748 * InternalWindowManager.cs: Reset the restore captions when a
27749 window goes from Maximized to Minimized and vice versa. Move the
27750 DrawMaximizedButtons into the MdiWindowManager source, tool
27751 windows can't be maximized. NOTE: This could use a little
27752 refactoring if time ever permits.
27754 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
27756 * TextBox.cs: Add MWFCategoryAttributes
27757 * TextBoxBase.cs: Add MWFCategoryAttributes
27758 * Form.cs: Add MWFCategoryAttributes
27760 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
27762 * Control.cs: Add MWFCategoryAttributes
27763 * ScrollableControl.cs: Add MWFCategoryAttributes
27765 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
27767 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
27768 Divider is true. Fix a little glitch in PropertyToolBar
27771 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
27774 - Dispose: Call base.Dispose, this causes the disposed event
27775 to be fired (and probably other, more important stuff)
27776 - SetVisibleCore: Set is_visible to true after creating the
27777 window so that the window still gets created invisible (if
27778 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
27779 to generate a WM_ACTIVE message
27780 * Form.cs: Call Dispose when we want to destroy the window, instead of
27781 just destroying the handle (Dispose will do that for us)
27783 - RootWindow also needs a queue, so we can properly process the
27784 property change events from RootWindow (like Activate)
27785 - Generatic synthetic WM_ACTIVE message when the active window is
27788 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
27790 * LinkLabel.cs: Trigger a recalc of our label dimensions when
27793 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
27795 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
27796 for determining width and height (image might not be assigned if
27797 we're drawing an imagelist)
27799 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
27801 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
27802 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
27804 * Theme.cs: No longer returns hardcoded menu height, instead calls
27806 * Form.cs (OnLoad): Scaling happens before triggering Load events
27809 2006-05-01 Mike Kestner <mkestner@novell.com>
27811 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
27813 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
27815 * TextBoxBase.cs: Removed Fixme
27816 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
27818 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
27821 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
27822 the rectangle relative to the parent, considering borders. We
27823 don't really want that.
27824 - ScrollWindow: Fixed warning to be more understandable
27825 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
27826 scrollbars and scroll only the visible area
27827 * RichTextBox.cs: Removed debug output
27829 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27831 * NumericUpDown.cs (Text): Just use base
27832 * UpDownBase.cs: Ensure txtView is created before using it
27834 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27836 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
27837 casting to IntPtr to avoid 64bit overflow errors
27839 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27842 - AllowDrop: Don't force handle creation.
27843 - CreateHandle: Added call to tell driver if we're allowed to drop
27845 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
27847 * FileDialog.cs: Remember the last directory not only for the
27848 current instance but also for new FileDialog instances.
27850 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27852 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
27853 broke sending async messages
27855 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27858 - ScrollWindow: Fixed method. We finally generate expose events again
27859 for scrolled areas. This was causing 'garbage' when scrolling
27860 textbox and other controls that used ScrollWindow
27861 - Switched from using the regular queue for paint events to the MS
27862 model of 'generating' paint events when the queue is empty.
27863 We use the new XQueueEvent.Paint subclass to store which windows
27865 - AddExpose now takes the x/y/width/height of the exposed area
27866 and inserts the window into the paint queue if not already there
27867 - InvalidateWholeWindow: Switched to use new AddExpose method
27868 - UpdateMessageQueue: Added which queue to monitor for paint events
27869 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
27870 the unlikely case nothing above handles it. We reset the expose
27871 pending states to get them off the queue.
27872 - GetMessage: Now pulls a paint event if no other events are in the
27874 - Invalidate: Switched to new AddExpose method
27875 - PeekMessage: Updated to understand pending paint events
27876 - UpdateWindow: Fixed logic bug. We were only updating if the window
27877 didn't need updating. Also switched to sending WM_PAINT directly,
27879 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
27880 and random access Remove(). The random access is needed to handle
27881 UpdateWindow() where a WM_PAINT is sent directly without accessing
27883 * ScrollBar.cs: Added Update() calls to cause immediate updates to
27884 allow for better feedback when scrolling. Scrollbars are small and
27885 the immediate update should make it 'feel' more responsive without
27886 slowing things down. ScrollBar still needs it's invaliate logic
27887 updated to not always invalidate the whole bar on certain changes.
27889 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27892 (BackColor): if the control does not support a transparent background,
27893 return the default backcolor when the parent backcolor is transparent.
27895 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
27897 * Application.cs: Updated to new StartLoop/GetMessage API
27898 * RichTextBox.cs: Provide some output on RTF parsing errors
27899 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
27900 new queue_id argument to GetMessage and PeekMessage to allow faster
27901 handling of per-thread queues in drivers.
27902 * Hwnd.cs: Added Queue tracking and property
27903 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
27904 * XEventQueue.cs: Added thread trackingA
27905 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
27907 - Implemented new per-thread queue
27908 - GetMessage: Fixed return/break behaviour on several cases. We were
27909 returning stale messages in some cases, instead of just processing
27912 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
27914 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
27916 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
27918 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
27919 fixed off-by-one comparisons between Width/Height and Right/Bottom.
27921 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
27923 * PropertyGridView.cs: Fix drop down width.
27925 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
27927 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
27928 a mess in DrawToolBar, so I removed one of them.
27930 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
27932 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
27933 needed (clip). Otherwise we get artifacts.
27935 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
27937 * FixedSizeTextBox.cs: Added constructor to allow specifying which
27939 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
27940 and switched FixedSizeTextBox to only be fixed vertical (#78116)
27941 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
27942 if it matches the scale base font (avoids unneeded scaling)
27944 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
27946 * X11DesktopColors.cs: One gtk_init_check should be enough
27948 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
27950 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
27953 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
27956 - Generate OnTextChanged for Backspace even if we're only deleting
27957 the current selection
27958 - When setting the Text property, only select all text if the
27959 control does not have focus when it is being set. Otherwise
27960 just place the cursor at the beginning of the control
27962 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
27964 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
27965 Added a little helper to draw PropertyGrid ToolBar with a different
27966 border and a different BackColor.
27967 * PropertyGrid.cs: Some background parts didn't get painted with the
27968 correct background color. Added a class that helps us to draw the
27969 correct border for PropertyGridView and a class that helps us to
27970 draw ToolBars with a different backcolor
27971 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
27973 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
27975 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
27976 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
27978 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
27980 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
27981 into the palette entries. Also, since we're working on a copy
27982 we needed to copy the palette back onto the bitmap.
27983 * Cursor.cs: Same fix as XplatUIWin32.cs.
27985 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
27987 * ImageListStreamer.cs: Need to read the var (or we're off)
27989 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
27991 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
27992 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27993 TextBoxBase.cs: Unused var fixes
27994 * AxHost.cs: Small 2.0 fix
27995 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
27996 as it seems that is what at least Metacity expects. This will make
27997 icons show up on 64bit platforms. We still have some 64bit size
27998 issues, though, since the startup app window size still won't match.
28000 2006-04-25 Mike Kestner <mkestner@novell.com>
28002 * *.cs: cleanup newly reported exception var unused warnings.
28004 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
28006 * ThemeWin32Classic.cs: Button image alignment now matches exactly
28009 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
28011 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
28012 image. The image position is always the same, no matter if the
28013 button is pressed or not.
28015 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
28017 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
28018 selection and set the correct filename for SaveFileDialog.
28019 Patch by Emery Conrad.
28021 2006-04-24 Mike Kestner <mkestner@novell.com>
28023 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
28024 check for item.X outside the ClientRect instead of item.Y. Fixes
28027 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28029 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
28030 trust that value blindly and do some sanity check. Fixes bug #77814.
28032 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28034 * ImageListStreamer.cs: save the mask as a 1bpp image.
28036 2006-04-21 Mike Kestner <mkestner@novell.com>
28038 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
28039 pass Checked and Indeterminate to the Theme Engine. Improve
28040 encapsulation with ListBox.
28041 * ListBox.cs: Keep a StringFormat instead of calculating it every item
28042 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
28043 nested types. Move all CheckState functionality to CheckedListBox.
28044 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
28045 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
28046 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
28047 single base list. Fix scrollbar sizing and placement to mirror MS.
28048 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
28050 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
28051 for CheckedListBox by using new DrawItemState info. Center the
28052 checkboxes on the items. Use new StringFormat property.
28054 2006-04-18 Jackson Harper <jackson@ximian.com>
28056 * Form.cs: MdiChildren don't do default locations the same way as
28057 regular forms. This prevents a crash when trying to position the
28060 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
28062 * PropertyGridTextBox.cs: Formatting, copyright
28063 * PropertiesTab.cs: Formatting
28064 * PropertyGrid.cs: Formatting
28065 * PropertyGridView.cs: Formatting, fix drop down, enabled double
28066 click toggling of values
28068 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
28070 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
28071 * Control.cs (.ctor): verify_thread_handle is static, don't reset
28072 every time a control is created
28073 * Application.cs: Removed obsolete EnableRTLMirroring method
28075 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
28077 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
28078 SelectedIndex to -1. Fixes bug #78121.
28080 2006-04-17 Jackson Harper <jackson@ximian.com>
28082 * Binding.cs: Handle null values for Current and BindingContext.
28083 This occurs when binding is a little delayed.
28084 * CurrencyManager.cs: return null for Current when there are no
28086 - Hookup to the listchanged event on the DataView and update
28087 bindings when the list is changed. This fixes late binding of
28090 2006-04-17 Jackson Harper <jackson@ximian.com>
28093 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
28096 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
28098 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
28100 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
28101 with the correct ButtonState
28103 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
28105 * XplatUIX11.cs: Improved distinguishing between window types to
28106 tell the WM a type closer to what the app wants (Fixes #78107)
28108 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
28110 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
28113 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
28115 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
28116 drawing code to reflect the size grip changes
28118 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28120 * ImageListStreamer.cs: fix handling of the mask that follows the main
28121 bitmap when deserializing and serialize it properly. The generated mask
28122 should better be a 1bpp image, but I'll do that later.
28124 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
28126 * FileDialog.cs: Show something in the DirComboBox on *nix if the
28127 path doesn't fit into some of our Current.Places
28129 2006-04-13 Jackson Harper <jackson@ximian.com>
28131 * ComboBox.cs: Use borders instead of drawing our own decorations,
28132 try to obey correct rules for heights.
28135 * ThemeClearLooks.cs:
28136 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
28137 this is now handled by borders.
28138 - Remove unused DrawListBoxDecorationSize method.
28140 2006-04-13 Mike Kestner <mkestner@novell.com>
28142 * MenuAPI.cs: null guarding for the disbled click check fixes crash
28145 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
28147 * ThemeWin32Classic.cs:
28148 - Fixed CPDrawStringDisabled
28149 - Corrected drawing of disabled menu items
28150 - Fixed drawing of disabled radio buttons (bug #78095)
28151 - Draw check in a disabled CheckBox with color ControlDark
28153 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28155 * Form.cs: Use the provided width when calculating the menu size;
28156 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
28157 and ClientSize.Width won't be updated yet
28158 * Application.cs: Use Visible instead of Show() to make form visible,
28159 this way we create the handle later and menusize is considered
28161 2006-04-12 Mike Kestner <mkestner@novell.com>
28163 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
28166 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28168 * TextBox.cs: Implemented context menu
28170 2006-04-12 Mike Kestner <mkestner@novell.com>
28172 * ListView.cs: implement box selection. fixes #77838.
28173 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
28175 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28177 * XplatUIX11.cs: Added setting of window type when transient window
28178 is created (metacity would move it otherwise)
28179 * X11Structs.cs: Added WINDOW_TYPE atoms
28180 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
28181 background (the control is Opaque but still wants transparent
28184 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28186 * Control.cs: Added OnPaintBackgroundInternal to allow controls
28187 that set Opaque but don't mean it (like all ButtonBase-derived
28188 controls) to still draw their background
28189 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
28192 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28194 * Control.cs (PaintControlBackground): Set the graphics object
28195 on our PaintEvent to null to prevent it from being disposed
28196 when the PaintEvent gets disposed
28198 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
28200 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
28201 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
28203 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28206 - Added transparency check to BackColor property. Transparent
28207 backgrounds are only allowed if the control styles permit it
28208 - Added recursive painting of parent control background and
28209 foreground if a control with a transparent backcolor is drawn
28210 (Thanks to Tim Ringenback for providing his 'hack' as a base
28211 for this patch) Fixes #77985 and #78026.
28212 - Added Opaque style check before calling OnPaintBackground, no
28213 need to draw the background if the control is opaque
28214 - Removed ControlAccessibleObject owner variable (inherited from
28215 base, no need to define again)
28216 - Added some documentation links explaining the drawing events
28219 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28221 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
28222 that the affected control is the located at the left border of our
28223 parent (Fixes #77936)
28225 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28227 * TextBoxBase.cs: When rendering disabled or readonly controls,
28228 draw the background with 'Control' instead of 'Window' color as
28229 long as the user hasn't specifically set a color
28231 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28233 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
28234 since that won't be updated if the user types text (only if it's
28235 programatically set)
28237 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28239 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
28240 layout changes do to app-triggered resizes will have the proper
28241 display rectangle for layout
28243 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
28245 * ThemeWin32Classic.cs:
28246 - Make use of the SystemBrushes and SystemPens wherever possible
28247 - Corrected some highlight colors
28248 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
28250 * Theme.cs: Added Empty field to CPColor struct
28252 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28254 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
28255 is displayed when calculating the display rectangle. Thanks to Mike
28256 for teaching me the err of my ways.
28258 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
28260 * ScrollableControl.cs:
28261 - Rewrote DisplayRectangle code, now returning the proper x/y coords
28262 (instead of 0,0) and we now return the real width/height instead of
28263 just the clientrectangle, adjusted for padding. The rectangle is
28264 now cached and created by the new CalculateDisplayRectangle method.
28265 - Created new CalculateDisplayRectange method, which basically does
28266 what get_DisplayRectangle() did originally, but now using the
28267 right edge instead of DisplayRectangle to determine the size of
28269 - get_Canvas(): Fixed it to properly calculate canvas for
28270 right/bottom controls which seem to be placed to the right/bottom
28271 of any controls that have a fixed location
28272 - Removed TODO that's taken care of
28273 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
28274 and SetDisplayRectLocation according to new MSDN2 docs
28275 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
28276 event when that is called, this is added for compatibility
28277 - ScrollControlIntoView(): Implemented.
28278 - Switched scrollbars to be implicit, they shouldn't be selectable
28279 * ContainerControl: Now that ScrollControlIntoView is implemented, we
28280 call it when the active control is set/changed
28281 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
28282 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
28283 implicit_control variable (used for native Win32 message generation)
28284 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
28285 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
28286 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
28287 * XplatUIStructs.cs: Added ScrollBarCommands enum
28289 2006-04-10 Jackson Harper <jackson@ximian.com>
28292 * CheckedListBox.cs:
28299 * PrintPreviewControl.cs:
28305 * UpDownBase.cs: Fixup base event overrides.
28307 2006-04-06 Mike Kestner <mkestner@novell.com>
28309 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
28310 all user-initiated value changes to min <= value <= max-thumbsz+1.
28311 (set_Value): check for vert/horiz when calculating new thumb position.
28312 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
28314 (OnMouseMoveSB): refactor the thumb dragging code and refine
28315 invalidation logic to reduce flicker.
28316 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
28317 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
28318 (UpdateThumbPosition): small code readability cleanup
28320 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
28322 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
28325 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
28327 * ThemeNice.cs: Use a better graphics effect when a button is pressed
28329 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
28331 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
28332 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
28333 This dramatically reduces the number of Pen.Dispose calls.
28334 Where possible call ResPool methods only once instead of calling it
28335 over and over again (for example for the same color).
28337 2006-04-06 Mike Kestner <mkestner@novell.com>
28339 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
28340 Also remove an unused private field on the collection. Fixes #77972.
28342 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
28344 * ThemeNice.cs: Added ToolBar drawing code
28346 2006-04-06 Mike Kestner <mkestner@novell.com>
28348 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
28349 I'm assuming that means we need to look up the toplevel for the
28350 provided control. Fixes the crash trace in #77911 but exposes another
28351 crash in some strange reflection usage in NDocGui.
28353 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
28355 * ThemeNice.cs: Gave it a little silver touch and added Images
28357 * FontDialog.cs: FontDialog is not resizable
28358 * FileDialg.cs: Added SizeGripStyle.Show
28360 2006-04-05 Jackson Harper <jackson@ximian.com>
28362 * KeyboardLayouts.cs: Remove warning.
28364 2006-04-05 Jackson Harper <jackson@ximian.com>
28366 * Control.cs: Enable OnPaintInternal so we can use it for drawing
28367 all of our controls instead of Paint +=.
28382 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
28383 use OnPaintInternal. Remove Width/Height and Visible checks in
28384 paint handler, this is done at a higher level now.
28385 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
28386 * PaintEventArgs.cs: Add a handled flag so controls that don't
28387 want anymore painting after OnPaintInternal can make sure OnPaint
28390 2006-04-05 Mike Kestner <mkestner@novell.com>
28392 * Form.cs: fix the menu WndProc hacks to respect the native enabled
28393 state of the form, so that we don't process events when Modal dialogs
28394 are up. Fixes #77922.
28396 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
28398 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
28401 2006-04-05 Mike Kestner <mkestner@novell.com>
28403 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
28405 2006-04-05 Mike Kestner <mkestner@novell.com>
28407 * ListView.cs (HeaderMouseMove): null guarding for the over column
28408 when setting up the drag_to_index. Fixes #78015.
28410 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
28412 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
28413 in the taskbar. Transient windows seem to accomplish that.
28415 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
28418 - Re-enabled CreateParams.X/Y code for FormStartPosition
28419 - Added code for manual placement when creating the Control
28420 - Incomplete patch to treat MDI forms differently when
28421 setting the ClientSizeCore. (Still need to figure out handling
28424 - When we're explicitly setting the X/Y position of a non-Child
28425 window, let the WM know. Metacity really wants this.
28427 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
28429 * ThemeNice.cs: Added CPDrawButton
28431 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
28433 * ThemeNice.cs: Changed the color for focused buttons and activated
28434 the arrows for small scroll buttons.
28436 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
28438 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
28439 anymore. Changed some method modifiers to protected (virtual)
28440 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
28442 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
28443 Updated drawing of menus, buttons and progressbars; added
28446 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28448 * ImageListStreamer.cs: implemented serialization/deserialization
28451 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
28453 * ThemeWin32Classic.cs:
28454 - Removed all the DrawFrameControl stuff; CPDrawButton,
28455 CPDrawCheckBox and CPDrawRadioButton are now handled directly
28457 - Updated and corrected the drawing code of CPDrawButton,
28458 CPDrawCheckBox and CPDrawRadioButton to better match ms
28459 - Updated theme checkbox and radiobutton code to use the CP*
28462 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
28464 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
28467 2006-03-31 Jackson Harper <jackson@ximian.com>
28469 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
28471 * UpDownBase.cs: Don't CreateGraphics manually, use a
28472 Refresh. Ideally we would invalidate the correct areas here.
28474 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
28477 - We now track the mapping state of windows. If a window (or
28478 one of it's parents) is not mapped we no longer permit
28479 WM_PAINT messages to be generated since we'd otherwise get
28480 lots of BadMatch X errors. Jackson did all the work figuring
28482 - Destroying the caret if the window it's contained in is
28483 destroyed. Can't use regular DestroyCaret method since it
28484 might fall into a drawing function (trying to remove the
28485 caret) and with that generate new BadMatch errors. Again,
28486 Jackson tracked this down.
28487 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
28488 make sure we send the messages to all windows. (The old code
28489 would send the WM_DESTROY to the window, and then all child
28490 windows would be 'gone' because the WM_DESTROY handle lookup
28491 would no longer find the destroyed window)
28492 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
28493 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
28495 2006-03-31 Jackson Harper <jackson@ximian.com>
28497 * ScrollableControl.cs: Dont recalc if we are not visible.
28499 2006-03-31 Mike Kestner <mkestner@novell.com>
28501 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
28502 the visibility branch.
28504 2006-03-31 Jackson Harper <jackson@ximian.com>
28506 * ScrollBar.cs: Cap values when incrementing/decrementing.
28508 2006-03-31 Mike Kestner <mkestner@novell.com>
28510 * MenuAPI.cs: setup menu.tracker for popup/context menus.
28511 * ToolTip.cs: guard against timer expirations with no active control.
28512 Not sure why it happened.
28514 2006-03-31 Mike Kestner <mkestner@novell.com>
28516 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
28518 * ToolTip.cs: Position the tooltip based on where the cursor is at
28519 popup time, not at MouseEnter time. Add a Down state so that we don't
28520 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
28521 positioning offset. Lookup DisplaySize at positioning time, since it
28522 can theoretically change during invocation.
28523 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
28524 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
28526 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
28528 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
28529 Fixes behaviour when the Text property of the box is String.Empty
28531 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
28533 * XplatUIX11.cs: Only send mouseleave for our client windows, not
28534 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
28537 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
28539 * FileDialog.cs: Visual enhancement for the popup buttons in
28542 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
28544 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
28547 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
28549 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
28550 highlighted menu items to match ms
28552 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
28554 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
28556 2006-03-30 Mike Kestner <mkestner@novell.com>
28558 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
28559 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
28560 go active to account for HotLight to Selected transition.
28561 * MenuItem.cs: add internal Selected prop. Fill out the Status
28562 property by calculating it from item info. Add HotLight,
28563 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
28565 2006-03-30 Mike Kestner <mkestner@novell.com>
28567 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
28569 2006-03-29 Jackson Harper <jackson@ximian.com>
28571 * Form.cs: Implement TODO.
28573 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
28575 * PrintPreviewDialog.cs: Implemented missing methods and events; still
28576 missing proper dialog setup in the constructor
28578 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
28580 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
28582 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
28583 - Fixed ResetBindings and removed TODO
28584 - Added check for cross-thread calls to get_Handle()
28585 - Added Marshaller attribute for set_Font to satisfy class status
28586 * FontDialog.cs: Removed TODOs that seemed implemented
28587 * UpDownBase.cs: Removed unneeded TODO and Fixme
28588 * MessageBox.cs: Implemented support for Default button and removed TODO
28589 * FileDialog.cs: Removed obsolete TODO
28590 * DomainUpDown.cs: Removed obsolete TODO
28591 * ButtonBase.cs: Removed obsolete TODO
28592 * XplatUIWin32.cs: Removed obsolete TODO
28594 - Removed obsolete TODO
28595 - Calling CheckAcceptButton when the acceptbutton is changed to allow
28596 internal status updates
28597 - Making sure the active control is selected when the control is created
28598 * CurrencyManager.cs: Removed obsolete TODO
28600 2006-03-29 Mike Kestner <mkestner@novell.com>
28602 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
28603 of PrintPreviewDialog and RichTextBox.
28605 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
28607 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
28608 DarkDark, Light and LightLight colors for a specific color
28609 * ThemeWin32Classic.cs:
28610 - Use Button drawing code to draw RadioButtons and CheckBoxes with
28611 Appearance = Button
28612 - Make use of the new ResPool helper CPColor
28613 - Draw ProgressBar and StatusBar with correct 3D borders
28615 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
28617 * ColorDialog.cs: Return selected color. Fixes bug #77940.
28619 2006-03-28 Mike Kestner <mkestner@novell.com>
28621 * ListView.cs: fix Icon layout to plan for scrollbar widths when
28622 calculating col/row counts.
28624 2006-03-28 Mike Kestner <mkestner@novell.com>
28630 switch to explicit interface method implementation for some methods
28631 corcompare identifies as inconsistent with MS.
28633 2006-03-28 Mike Kestner <mkestner@novell.com>
28637 add a few missing methods from the class status output.
28639 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
28641 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
28644 2006-03-28 Mike Kestner <mkestner@novell.com>
28646 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
28648 2006-03-27 Mike Kestner <mkestner@novell.com>
28650 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
28651 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
28653 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
28655 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
28657 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
28659 * ThemeWin32Classic.cs:
28660 - GroupBox: Inserted a little gap between the text and the lines
28662 - Made the code in CPDrawBorder3D more readable
28663 - Corrected the drawing location of the up and down arrows in
28666 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
28668 * ControlPaint.cs: Corrected line widths in DrawBorder for
28669 ButtonBorderStyle Inset and Outset
28671 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
28673 * ThemeWin32Classic.cs:
28674 - Rewrote the totally broken CPDrawBorder3D method. That was
28675 one of the main problems for the terrific ThemeWin32Classic
28677 - Updated and corrected Button drawing
28678 - Correct the dimensions of the SizeGrip to match ms ones
28679 - Removed a small drawing glitch in DrawComboBoxEditDecorations
28680 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
28681 Border3DStyle.Sunken to match ms.
28683 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
28685 * ThemeWin32Classic.cs: First small part of the "de-uglify
28686 ThemeWin32Classic" effort, SizeGrip
28688 2006-03-24 Jackson Harper <jackson@ximian.com>
28690 * XplatUIX11.cs: Give a max idle time of one second, this matches
28691 MS and forces an Idle event every second when there are no other
28692 events in the queue.
28694 2006-03-24 Mike Kestner <mkestner@novell.com>
28696 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
28697 * ListView.Item.cs: fix layout issues with null image lists and images
28698 smaller than checkbox size.
28699 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
28700 mode like MS does. It's weird, but consistent. ;-)
28703 2006-03-24 Mike Kestner <mkestner@novell.com>
28705 * ListView.cs: Scroll wheel support for the item control. Fixes
28708 2006-03-23 Jackson Harper <jackson@ximian.com>
28710 * ScrollableControl.cs: Special case negative sized areas, not
28712 * MonthCalendar.cs: Save the rect of the clicked date so we can
28713 use it for invalidation.
28714 - Try to cut down on the number of invalidates
28715 - Invalidate the rect the mouse is over and was over when moving
28716 the mouse, so we get the focus box following the cursor.
28718 2006-03-23 Mike Kestner <mkestner@novell.com>
28720 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
28721 focus rectangle drawing. Fixes #77835.
28723 2006-03-23 Mike Kestner <mkestner@novell.com>
28725 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
28726 the if and else if and reverting back to the original == check on the
28729 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
28731 * FontDialog.cs: Update the example panel if the selected index of
28732 the fontListBox changes.
28734 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
28736 * FileDialog.cs: Make FileDialog remember which directory it was in
28737 last in the same execution.
28739 2006-03-22 Mike Kestner <mkestner@novell.com>
28741 * FileDialog.cs: make the DropDownMenu on the toolbar display
28742 RadioChecks since they are mutually exclusive and that's what MS does.
28744 2006-03-22 Mike Kestner <mkestner@novell.com>
28746 * Theme.cs: add Color param to CPDrawMenuGlyph.
28747 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
28748 checks and radio marks and arrows are visible on highlighted items.
28749 * ControlPaint.cs: update to use new Theme signature.
28751 2006-03-22 Mike Kestner <mkestner@novell.com>
28753 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
28754 is active. Fixes #77870.
28756 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
28758 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
28759 to be focused/selected after startup
28761 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
28764 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
28765 CustomColors and ShowHelp properties
28766 - Some internal rewrites to get better results when using the
28769 2006-03-22 Mike Kestner <mkestner@novell.com>
28771 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
28772 HoverSelection. Fixes #77836.
28774 2006-03-22 Mike Kestner <mkestner@novell.com>
28776 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
28777 ToggleButtons. (De)Sensitize the Back button around a stack count of
28778 1, not 0. Update ButtonSize based on a pixel count of the win32
28779 control. Adjust the toolbar size/location for new button size.
28781 2006-03-22 Jackson Harper <jackson@ximian.com>
28783 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
28785 * ScrollBar.cs: When doing increments and decrements we need to
28786 set the Value property so that ValueChanged gets raised. A
28787 possible optimization here would be to make an internal SetValue
28788 that doesn't invalidate immediately.
28789 * ToolTip.cs: Tooltips get added to their container (when
28790 supplied) so they get disposed when the container is disposed.
28791 - Don't create tooltips for String.Empty. This prevents all these
28792 little 2-3 pixel windows from showing up when running nunit-gui
28793 and driving me mad.
28794 * Form.cs: Don't set topmost when setting the owner if the handles
28795 haven't been created yet. The topmost set will happen when the
28796 handles are created.
28798 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
28801 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
28802 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
28803 visible (to allow them to recalculate their sizes)
28805 2006-03-21 Mike Kestner <mkestner@novell.com>
28807 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
28808 methods. Removed a ton of redundant code. Still not really happy with
28809 the border rendering, but I think that's mainly because of the
28810 ControlDarkDark being black instead of a dark grey. Depending on how
28811 close we want to be, we might want to revisit those color choices.
28812 Among the new features added during the refactor were DropDownArrow
28813 pressed rendering, Disabled image rendering. Proper flat appearance
28814 boundary rendering. Removed the Divider and Wrapping dividers since I
28815 can't figure out any combination of themes and conditions to make the
28816 MS control draw a horizontal line on a toolbar despite what the
28817 Divider property docs indicate.
28818 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
28819 conditions and incorrect layout. Updated to coding standard.
28820 * ToolBarButton.cs: refactored layout and positioning code from
28821 ToolBar to here. Invalidate wherever possible instead of forcing
28822 redraws of the whole toolbar.
28823 (Known remaining issues: explicit ButtonSize smaller than provided
28826 2006-03-21 Mike Kestner <mkestner@novell.com>
28828 * ContextMenu.cs (Show): use the position parameter instead of just
28829 showing at the MousePosition.
28831 2006-03-21 Jackson Harper <jackson@ximian.com>
28833 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
28834 control handle this.
28835 * TreeNodeCollection.cs: If we are clearing the root node we need
28836 to reset top_node so calcs can still happen.
28837 * ThemeWin32Classic.cs: This is a Flags so we need to check
28840 2006-03-21 Jackson Harper <jackson@ximian.com>
28842 * DataGrid.cs: Create columns when the binding context has been
28844 * X11Structs.cs: Keysyms are uints.
28845 - Add size to fix build.
28847 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
28849 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28851 - Added ResetMouseHover method to allow controls to retrigger
28852 hovering if they need it more than once
28853 - Implemented MouseHoverTime and MouseHoverSize properties
28854 * Timer.cs: Start() must reset the interval
28855 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
28858 2006-03-21 Jackson Harper <jackson@ximian.com>
28860 * X11Keyboard.cs: improved layout detection. Move the nonchar
28861 tables into this file.
28862 * KeyboardLayouts.cs: Move the tables into resource files.
28864 2006-03-21 Mike Kestner <mkestner@novell.com>
28866 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
28868 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
28870 * Mime.cs: Various speed optimizations. Looking up mime types
28871 is now 2 times faster than before
28873 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
28875 * CreateParams.cs: Added internal menu field
28877 - Switched call order for UpdateBounds; now we always call
28878 the one that also takes ClientSize, and we're calculating the
28879 client size via driver method in the others. The previous
28880 method of tracking client size by difference wasn't working
28881 for forms where even the starting client size wouldn't match
28882 the overall form size (due to borders) (Part of fix for #77729)
28883 - CreateParams(): Do not use parent.Handle unless the handle is
28884 already created. Causes havoc with Nexxia and throws off our
28885 creation of controls
28887 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
28888 - Switched handling of ConfigureNotify over to new PerformNCCalc
28889 method (consolidates code)
28890 - Changed RequestNCRecalc to use new PerformNCCalc method
28891 - Added calls to RequestNCRecalc when menus and borders are changed
28892 to allow app to set NC size. (Part of fix for #77729) This matches
28893 when MS send a WM_NCRECALC on Win32 windows.
28894 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
28895 (Part of fix for #77729). This matches what MS does, they also
28896 send that message when the form is made visible.
28897 - XException.GetMessage: Improved usability of X errors by including
28898 a translation of the window into Hwnd and Control class
28899 - Improved debug info for window creation, reparenting and destruction
28900 - Created helper method WindowIsMapped() [Currently not used]
28901 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
28903 - CreateParams: Now setting our menu on the new internal menu field
28904 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
28905 avoid calculating the same property twice
28907 - Improved usability of ToString() for debugging purposes
28908 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
28909 determine the height of the menu, instead of just the font. This
28910 required to also create a graphics context and to keep a bmp
28911 around (for performance reasons)
28913 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
28915 * MenuAPI.cs: Added OnMouseUp method
28917 - Now remembering the requested client size, avoids size errors
28918 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
28919 instead of base if the menu is active. This is required due to
28920 control now capturing and releasing on down/up and it would
28921 prematurely release our menu capture
28923 2006-03-17 Jackson Harper <jackson@ximian.com>
28925 * KeyboardLayouts.cs: Add the czech layouts.
28927 2006-03-16 Jackson Harper <jackson@ximian.com>
28929 * Control.cs: Use the viewport space when sizing not the controls
28930 client size, so things like ScrollableControl that effect the
28931 viewport size (when scrollbars are added) are computed correctly.
28932 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
28934 - Handle creating BindingManagers for null data sources.
28935 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
28936 source, otherwise when rows are added they are added to the 'fake'
28937 datasource and we will crash when trying to set the position in
28939 - Use Implicit scrollbars on the datagrid so they arent
28942 2006-03-16 Jackson Harper <jackson@ximian.com>
28945 * InternalWindowManager.cs:
28946 * MdiWindowManager.cs:
28947 * X11Keyboard.cs: I really want Mike to love me again (fix
28948 compiler warnings).
28950 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
28953 - OnMouseDown: Switch to editing mode when clicking on the cell
28954 even if we're clicking on the cell that's currently
28956 - ProcessGridKey: Left/Right now wrap like MS.Net does
28957 - ProcessGridKey: Tab now knows to add a new row when tab is
28958 pressed in the cell of the last column of the
28960 - ProcessGridKey: Enter now adds another row if pressed in the last
28961 row and selectes the new row, same column cell
28962 - ProcessGridKey: Home/End navigate columns, not rows, like
28963 originally implemented
28964 - Broke ProcessKeyPreview code out into an extra Internal method
28965 so it can be called from the edit code
28966 * DataGridTextBox.cs (ProcessKeyMessage):
28967 - Switched to accept Tab keypresses
28968 - Added F2 handling to allow jumping to the end of the edited cell
28969 - Added logic to allow moving caret left/right inside edited cell
28970 and making the edited cell jump when the caret hits cell borders
28971 - Tab and Enter are now passed to the datagrid after being handled
28973 - Removed capture code now that Control handles it
28974 - set_SelectionStart now ensures caret is visible
28976 2006-03-16 Jackson Harper <jackson@ximian.com>
28978 * TrackBar.cs: Debackwards the increment/decrement for handling
28979 mouse clicks on the bar with vertical trackbars.
28980 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
28981 bottom to match MS.
28983 2006-03-16 Mike Kestner <mkestner@novell.com>
28985 * ListView.cs: make shift/ctrl keyboard and mouse selection
28986 consistent with the MS control. Fix a bug in
28987 SelectedListViewItemCollection.Clear that was pissing me off for the
28988 better part of a day because the collection was being altered
28989 underneath us as we walked the list.
28991 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
28993 * Control.cs: Not sure how we could miss this so long, but it seems
28994 that MS.Net has Capture set all the way from before calling
28995 OnMouseDown through sending the mouse events until after
28996 OnMouseUp. This will fix DataGrid's selection being set to end
28997 at the location of the MouseUp.
28999 2006-03-15 Jackson Harper <jackson@ximian.com>
29001 * BindingContext.cs: Check the binding after its added so that it
29002 can initialize the binding managers and hookup to events.
29003 * Binding.cs: Data members seem to sometimes include rows/cols in
29004 the format Row.Column we now take this into account.
29005 - Hookup to the position changed event so we can update the
29006 control when the position has changed in the data set.
29007 * CurrencyManager.cs: Take into account the row/col naming
29008 convention when creating dataset tables.
29009 * BindingContext.cs: Using a newer better way of storing
29010 datasource/datamember pairs. Hopefully this better matches MS for
29011 looking up binding managers.
29014 2006-03-15 Jackson Harper <jackson@ximian.com>
29016 * BindingContext.cs: The currency manager needs the data member
29017 name, if the member is a data set we use the name to find the
29019 * CurrencyManager.cs: When creating the list prefer an IList over
29021 - Attempt to create a DataTable from a DataSet (TODO: might need
29022 some better error checking here, although MS doesn't seem to have much)
29023 - If we have a DataTable create a view and use it as our list.
29025 2006-03-15 Mike Kestner <mkestner@novell.com>
29027 * ListView.cs: keep a matrix of the icon mode layout to facilitate
29028 keyboard navigation. Support Up/Down/Left/Right selection correctly
29029 for all 4 View modes.
29030 * ListViewItem.cs: add internal row/col fields for icon layouts.
29032 2006-03-15 Jackson Harper <jackson@ximian.com>
29034 * TabControl.cs: Redraw the tabs when we resize so their newly
29035 calculated sizes are drawn on screen.
29036 * X11Keyboard.cs: Begginnings of XIM support. We also now support
29037 composite characters.
29038 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
29039 - filter events so that composite characters can be created
29041 * X11Structs.cs: Add XIMProperties enum.
29043 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
29045 * Control.cs (BringToFront, SendToBack): Don't use window or handle
29046 unless it's created
29048 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
29050 * Control.cs (PerformLayout): We don't need to consider visiblity
29051 for anchoring, only for docking. This fixes 'whacky' alignment
29052 in listbox and other controls that use implicit scrollbars after
29053 the previous PerformLayout patch
29054 * ListBox.cs: Switched to use implicit scrollbars
29056 2006-03-14 Mike Kestner <mkestner@novell.com>
29060 - chain up the "new event" overrides to base and use
29061 OnEvent to raise them. Part of fix for bug #76509.
29063 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
29065 * FileDialog.cs: Do not select an item in the parent directory
29068 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
29070 * Control.cs (PerformLayout): It would seem that we considered
29071 invisible windows for our layout. Not quite the right thing
29072 to do. Now we don't any longer, thereby fixing bug #76889.
29074 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
29076 * Control.cs (CanFocus): I goofed. A control can have focus
29077 even though it's not selectable. Made it match MS docs.
29079 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
29081 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
29082 center by default (fixes #76895)
29083 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
29084 all uses of Border3DSides.All with the explicit ORd together
29085 Left|Right|Top|Bottom because I assume that nobody was aware
29086 that All also implies a center fill. Most places I checked had
29087 a fill right above.
29088 * ProgressBarStyle.cs: Added
29090 2006-03-13 Mike Kestner <mkestner@novell.com>
29092 * ListView.cs: fix breakage in drag shadow header positioning
29093 from Peter's csc compilation fix.
29095 2006-03-13 Mike Kestner <mkestner@novell.com>
29097 * ListView.cs: fix NRE produced by backspacing twice in a focused
29100 2006-03-13 Mike Kestner <mkestner@novell.com>
29102 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
29104 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
29106 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
29108 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
29109 the allowed size before making programmatic size changes
29111 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
29113 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
29114 set, metacity is broken and will still use the emty sizes in
29115 the struct. (Fix for #77089)
29117 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
29119 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
29120 WindowExStyles and marked both enums as Flags
29121 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
29122 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
29123 to match WindowStyles split
29125 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
29126 - Updated to match WindowStyles split
29128 - Fixed FosterParent creation, was using ExStyle on the Style field
29129 (This should help with Popup focus issues)
29130 - Updated to match WindowStyles split
29132 2006-03-13 Jackson Harper <jackson@ximian.com>
29134 * MdiWindowManager.cs: Use the system menu height. Fixes some
29135 strange sizing issues.
29137 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
29139 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
29141 - Scroll to caret after inserting text (#77672)
29142 - Make scroll range one pixel higher, fixes off-by-one error (and
29143 makes underlines visible on the last line)
29145 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
29147 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
29148 the keyboard state from being stuck with keys in 'pressed' state when
29149 focus is switched away via keyboard
29150 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
29151 reset the keyboard if no X11 KeyUp events are expected to come
29152 * X11Structs.cs: Switched type of Visible to bool to match driver
29154 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
29157 - Switched caret to be just 1 pixel wide, matches MS and looks less
29159 - Moved caret display 1 pixel down from the top of the control
29161 - InsertCharAtCharet: Update the selection start if moving the caret
29162 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
29163 - No longer always creating the caret when the caret methods are
29164 called. Only the actual ShowCaret/HideCaret will do that now
29165 - Only setting caret visible if the owner control has focus
29166 - UpdateView: Added invalidation-shortcut logic for center and right
29167 aligned text. Previously we'd update all according to the left
29168 logic which caused drawing errors. Also fixed height of invalidated
29169 areas, now properly invalidating the whole area (was off-by-one)
29170 - owner_HandleCreated: Always generate the document when the
29171 handle is created; this ensures that
29173 - Fixed situation where caret would disappear under the right
29174 window border, also improved scrolling behaviour on left-
29176 - Fixed right-aligned textboxes to have a border to the
29177 right instead of the caret being under the right border
29179 - Switched from 'nested' to simple visible/not visible tracking
29180 for caret (part of fix for #77671)
29181 - No longer passing through translated FocusIn/FocusOut messages
29182 since we were notifying too often and the wrong windows. Instead
29183 we just notify our focussed window of receiving or loosing focus
29184 * XplatUIWin32.cs: Switched from 'nested' show/hide
29185 counting for caret to simple visible yes/no behaviour (part of
29188 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
29190 * Mime.cs: Remove debug code...
29192 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
29194 * MimeGenerated.cs: Removed
29195 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
29196 and subclasses) from /usr/(local/)share/mime and
29197 $HOME/.local/share/mime.
29199 2006-03-10 Jackson Harper <jackson@ximian.com>
29201 * MdiWindowManager.cs: Recalc the NC area when a window is
29202 maximized/restored so that the menu area is drawn on forms that
29205 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29207 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
29208 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
29209 us to force a WM_NCCALCRESIZE message being sent. This is needed
29210 for MDI maximizing.
29212 2006-03-10 Jackson Harper <jackson@ximian.com>
29214 * Form.cs: We need to use the ActiveMenu when calculating menu
29216 - Fix nullref when the window manager hasn't been created yet.
29217 * Control.cs: Fix nullref when we try to bring a control to the
29218 front that has no parent.
29219 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
29221 - Add a dummy item to the maximized menu so it always has the
29222 correct height. Otherwise when there are no menus we don't get our
29226 2006-03-10 Jackson Harper <jackson@ximian.com>
29228 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
29230 * Form.cs: Make the window_state internal so the window managers
29232 - When an MDI child is maximized let its window manager create the
29233 main menu (so it can add its icon).
29234 - Notify the window managers of state changes
29235 - Let the window manager paint its buttons and handle button
29236 clicks on the menu when it is maximized.
29237 * InternalWindowManager.cs: Move the prev_bounds into the mdi
29238 window manager, since tool windows don't use it, only mdi windows.
29239 - Tell the main form that we don't want it to handle NCPAINT
29240 itself to avoid extra painting.
29241 - Handle clicks on a maximized windows menu.
29242 - Handle window state changes
29243 - Handle minimize/maximize clicks correctly by setting the window state.
29244 * MdiWindowManager.cs: Add an icon menu that (the menu you get
29245 when clicking on the forms icon).
29246 - New method to create a forms maximized menu. This is its normal
29248 - Handle window state changes.
29249 - Handle sizing of maximized windows. Maximized windows are just
29250 drawn bigger then the parent visible area. All controls are still
29251 there, they are just outside the visible area (this matches windows).
29252 * MdiClient.cs: No scrollbars when a child window is maximized.
29253 - Let the children windows figure out how big they should be when
29254 sizing maximized windows.
29255 - Implement a version of ArrangeIconicWindows somewhat similar to
29256 Windows version. There are some little differences, but I don't
29257 think any app will rely on the layout of minimized mdi windows.
29259 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29261 * Padding.cs: Several fixes to allow compiling with csc 2.0
29263 2006-03-09 Jackson Harper <jackson@ximian.com>
29266 * MenuItem.cs: Cheap hack so we can add items to the list without
29267 the events being raised. This allows adding mdi items during
29268 drawing. TODO: Should probably find a better time to add the items.
29270 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29272 * ThemeWin32Classic.cs:
29273 - CheckBox_DrawText: Added logic to not wrap if not enough space
29274 is available (Fix for bug #77727)
29275 - RadioButton_DrawText: Added logic not to wrap if not enough
29276 space is available (Fix for bug #77727). Also removed some
29277 duplicate code, DrawString always drawing the regular text
29278 before hitting the if statement.
29280 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29282 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
29284 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29286 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
29287 * ContainerControl.cs: Partial implementation of some 2.0 scaling
29288 methods. Moved the new 2.0 properties into alphabetical order with
29289 other properties and added MonoTODO tags
29291 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29293 * AutoScaleMode.cs: Added. Fix build.
29295 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29297 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29298 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
29299 and was requiring premature handle creation for calls from above
29300 * Form.cs, Control.cs: Removed handle arguments from calls to
29301 CalculateClientRect()
29303 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29305 * ListView.cs (HeaderMouseMove): Fix csc compilation.
29306 drag_column.column_rect is MarshalByRef and can't be used that way
29308 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29310 * AxHost.cs: Added deserialization constructor for
29311 AxHost+State (fixes 77743)
29313 2006-03-09 Mike Kestner <mkestner@novell.com>
29316 - Added column drag reordering for details view.
29317 - fixed behavior when mouse is dragged off column and
29318 AllowColumnReorder is false.
29319 * ColumnHeader.cs: clone the format too in Clone.
29320 * Theme.cs: add DrawListViewHeaderDragDetails method.
29321 * ThemeWin32Classic.cs:
29322 - impl new method for drawing drag column shadows and targets.
29323 - support column offset for details mode in DrawListViewItem.
29325 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29327 * TextControl.cs: Reset the char_count when the document is cleared
29328 (Fixes bug reported on mono-winforms mailing list)
29330 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29332 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
29333 of calling base we simply process the key ourselves, since both
29334 DefWindowProc and the handled method would set m.Result.
29337 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29339 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
29340 method also moves the window; instead implemented a copy of
29341 Control.ScaleCore (Part of fix for #77456)
29343 - Created new CreateGraphicsInternal method to allow providing
29344 a graphics context when no handle is created without triggering
29345 handle creation. (Part of fix for #77456)
29346 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
29348 - Switched Constructor to require TextBoxBase instead of Control (to
29349 allow uncast access to CreateGraphicsInternal)
29350 - Safeguarded use of owner.Handle property. No longer accessing it
29351 unless the handle is already created.
29352 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
29353 - Now triggering a recalc when owning control becomes visible
29354 * TextBox.cs, RichTextBox.cs: Switched to use new internal
29355 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
29356 premature handle creation (Part of fix for #77456)
29358 - We now only destroy our double-buffering buffers when the
29359 control is resized or disposed, but not when visibility
29360 changes. (The code even re-created them twice every time)
29361 - Now requiring a redraw of the buffer on visibility changes
29362 (fixes bug 77654 part 2)
29363 - Not passing OnParentVisibleChanged up unless the control
29365 - CanFocus: Fixed to match MS documentation
29366 - Focus: Fixed to return actual focus state and to check if
29367 setting focus is legal before setting it
29369 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
29371 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
29372 when to draw focus rectangle by looking at parent focus and
29373 selected state instead. This fixes TabPages on Linux sometimes
29374 having none or multiple focus rectangles.
29375 * XplatUIX11.cs (SetFocus):
29376 - Don't set the focus if the same window already has focus
29377 - Use SendMessage instead of PostMessage (like it's Win32
29378 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
29379 to match MS behaviour
29380 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
29381 are not selectable.
29383 2006-03-07 Jackson Harper <jackson@ximian.com>
29385 * PictureBox.cs: Revert line I accidently committed last week.
29387 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
29390 - Added new IsRecreating and ParentIsRecreating properties to
29391 allow testing if RecreateHandle has been called on ourselves
29392 or one of our parents
29393 - WndProc(WM_DESTROY): If our control handle is being recreated
29394 we immediately need to create the handle when receiving the
29395 destroy, that way our child windows find a valid parent handle
29396 when they themselves are being recreated upon WM_DESTROY receipt
29397 (fix for bug #77654 part 1)
29399 - DestroyWindow: WM_DESTROY must be sent to our own window before
29400 notifying any child windows. MS documents that child windows
29401 are still valid when WM_DESTROY is received. (Control now relies on
29403 - Added some fine-grain debug options
29405 2006-03-06 Jackson Harper <jackson@ximian.com>
29407 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
29408 box and base calculations off this.
29409 * MdiChildContext.cs:
29410 * MdiWindowManager.cs: Don't need to ensure scrollbars here
29413 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
29415 * Splitter.cs: In situations where the affected control is added
29416 to the parent's control list after the splitter, we would not
29417 populate affected. Now we try populating it on mousedown, if
29418 it's not already set, and force it to be re-set whenever our
29421 2006-03-03 Matt Hargett <matt@use.net>
29423 * Control.cs: implement Control.Padding
29424 * Padding.cs: -Padding.All returns -1 when constructing with the
29425 implicit default ctor
29426 -Padding.ToString() matches MS.NET
29427 * ContainerControl.cs: implement
29428 ContainerControl.AutoScaleDimensions
29429 * ListControl.cs: implement ListControl.FormattingEnabled
29430 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
29432 * TabPage.cs: Implement UseVisualStyleBackColor.
29433 * PictureBox.cs: Implement PictureBox.InitialImage.
29435 2006-03-03 Mike Kestner <mkestner@novell.com>
29437 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
29438 event declarations to proxy to base event.
29439 * ListViewItem.cs: update to use ItemControl.
29440 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
29441 * ThemeWin32Classic.cs: update to new ListView theme API and fix
29442 column header label rendering for 0 width columns.
29444 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
29446 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
29447 that causes the control to be created. Fixes #77476.
29449 2006-03-02 Jackson Harper <jackson@ximian.com>
29451 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
29454 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
29456 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
29457 passed in for the EventArgs (fixes #77690)
29459 2006-03-01 Jackson Harper <jackson@ximian.com>
29461 * ScrollBar.cs: Refresh afterbeing resized.
29463 2006-02-28 Mike Kestner <mkestner@novell.com>
29465 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
29466 Clean up a tracker compile warning.
29467 * MenuItem.cs: add internal PerformPopup method.
29470 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
29472 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
29473 implicit expose) when the text is set to null
29475 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
29477 * RichTextBox.cs (FlushText): When newline is true, we always
29478 need to split the line, even if no text is on it and we may
29479 never eat newlines. (Fixes #77669)
29481 2006-02-28 Mike Kestner <mkestner@novell.com>
29483 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
29484 and set Selected instead.
29485 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
29488 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
29490 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
29492 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
29495 - Got rid of the panel. All controls are now directly added to
29497 - It is now possible to set a font with the Font property
29498 - MinSize and MaxSize property do now what they should
29499 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
29500 - Searching and selecting a font with the font textbox works now,
29501 the same applies to the style and size textbox
29502 - Draw the correct 3D border in the example panel
29503 - Fixed a little mem leak (unused fonts didn't get disposed)
29504 - Many other internal updates/rewrites...
29507 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
29510 - InsertRTFFromStream: Added 'number of characters inserted' argument
29511 - set_SelectedRTF: Now using the number of characters to calculate
29512 the new location for the selection and cursor (x/y cannot be used
29513 due to potentially already wrapped text)
29515 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
29517 * TextControl.cs: Added property and implemented means to allow
29518 disabling recalculation of a document (can be used to speed up
29519 multiple inserts and is needed to make RTF inserts predictable, see
29521 * RichTextBox.cs: Using the new NoRecalc property of Document to
29522 keep x/y insert locations predictable. Also makes it faster inserting
29523 large chunks of RTF
29525 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
29527 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
29528 it's easier for a child control to handle the other messages without
29529 having to duplicate the special functionality
29531 - WndProc: Removed calling base handler for WM_KEYDOWN and added
29532 code to handle processing the key ourselves, in order to get
29533 access to the result of KeyEventArgs.Handled. We now only call
29534 ProcessKey if they key hasn't been handled already. Fixes #77526.
29535 - set_Text: If null or empty string is given, just clear the
29536 document. Fixes part of #77526
29538 2006-02-27 Jackson Harper <jackson@ximian.com>
29540 * SizeGrip.cs: Paint the background color before painting the grip
29541 so things look right.
29542 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
29544 2006-02-27 Mike Kestner <mkestner@novell.com>
29547 - Restructure layout and invalidation model to remove a ton of
29548 flicker from the control and speed up performance in general.
29549 - Add manual column resize, flickers like crazy, but I already have
29550 some ideas on how I'll fix that. (#76822)
29551 - Merge the three Icon-based views into a single layout method.
29552 - Move item selection interaction logic from the item since
29553 interaction with the collections is more appropriate to the view.
29554 - Deselection on non-item clicks.
29556 - Encapsulate most of the layout. Add some internal props to trigger
29557 layout. Move to a model where Items invalidate themselves instead
29558 of just invalidating the whole control every time something changes.
29559 - Invalidate on Text/Caption changes.
29560 - switch to an offset based layout model to avoid having to absolute
29561 position every element on item moves.
29562 - correct checkbox layout to conform to MS layout.
29563 * ThemeWin32Classic.cs:
29564 - refactor some column header drawing code.
29565 - fix string justification for column headers (#76821)
29566 - make SmallIcon labels top justified for compat with MS impl.
29567 * ThemeClearlooks.cs:
29568 - adjust to new ListViewItem internal checkbox bounds api.
29570 2006-02-27 Jackson Harper <jackson@ximian.com>
29572 * Control.cs: Change where implicit controls fall in the zorder.
29573 They are now on top of all children.
29574 - Synced AddImplicit code with Add
29575 - Removed unused enumerator.
29576 * SizeGrip.cs: Remove the TODO as its been TODONE.
29578 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
29580 * TextControl.cs(Insert): Combine the last lines unless the insertion
29581 string ends with \n\n, otherwise we leave one line too many (Fixes
29582 something I noticed with the testapp for #77526; the bug itself was
29583 already fixed in the previous checkin)
29585 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
29588 - SelectionColor and SelectionFont methods no longer set absolute
29589 styles. Instead, the keep font or color respectively (This
29590 resolves a long-standing FIXME in the code)
29591 - When flushing RTF text, the insert code now considers text trailing
29592 behind the insertion point (Fixes the bug where when replacing
29593 the selected text via SelectedRTF the remainder of the line behind
29594 the selection would stay on the first insertion line)
29596 - AppendText now updates the selection points after inserting text
29597 - AppendText now ensures that the last tag (sometimes 0-length) of
29598 the document is used for the style information (Fixes part of
29601 - Created new FontDefiniton class to allow describing partial style
29603 - StreamLine() now takes a lines argument, to allow it to decide
29604 whether an encountered zero-length tag is the last in the document
29605 (which must be kept to not loose the font/color contained in it,
29607 - Created Combine() and Split() methods for Marker structs, to
29608 support marker updates due to reformatted documents (soft line
29610 - Implemented Document.CaretTag setter
29611 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
29612 of the last line (Not the cause, but also exposed by bug #77220)
29613 - Added LineTag argument to InsertString method, to allow callers
29614 to force a certain tag to be used (required to force use of the
29615 trailing zero-length tag of a document)
29616 - Now updating markers in Combine(), to avoid stale tag markers
29617 - Added some method descriptions to aid maintenance
29618 - Implemented new FormatText concept, allowing additive/subtractive
29619 formatting by only specifying the components that are to be
29620 changed. This was needed for resolving the RTB.SelectedColor/
29621 RTB.SelectedFont fixmes
29622 - Added Break() support method to allow breaking up linetags (used
29623 for partial formatting)
29624 - Added GenerateTextFormat() method. It is used for partial
29625 formatting and allows to generate a full font/color from given
29626 attributes and an existing tag.
29628 2006-02-26 Jackson Harper <jackson@ximian.com>
29630 * XplatUIX11.cs: Use the correct caption height.
29631 - Translate hittest coordinates to screen coords to match MS.
29632 * XplatUIWin32.cs: When we create MDI windows we need to reset
29633 some of the style flags, so we get a nice blank window, and can
29634 draw all the decorations ourselves.
29635 - Set a clipping rectangle on the non client paint event, the
29636 window manager drawing code needs one.
29637 * Form.cs: The window manager needs to know when the window state
29639 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
29640 don't need to factor in border and title sizes in these
29641 methods. TODO: Remove the args and fix the call points.
29642 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
29644 - Let the driver set the cursors.
29645 - Improve active window handling
29646 - Correct sizes for title bars and buttons.
29647 - Match MS drawing better
29648 * MdiWindowManager.cs: We don't need to handle border style
29649 updates specially anymore.
29650 - Check for scrollbars when windows are done moving
29651 - Handle Active properly.
29652 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
29653 correctly. I am spewing the exception though, so we don't hide the
29656 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
29658 * DataGridViewRowPostPaintEventArgs.cs,
29659 DataGridViewCellPaintingEventArgs.cs,
29660 DataGridViewRowCollection.cs,
29661 DataGridViewRowPrePaintEventArgs.cs,
29662 DataGridViewCell.cs: Clear a few warnings and implement a few
29663 exceptions that should be thrown.
29665 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
29667 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
29668 'inheriting' our parent's (non-default) cursor. (Part of
29669 the fix for #77479)
29671 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
29673 * XplatUIX11.cs: Fixed cast to make csc happy
29675 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
29677 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
29678 it's for the client area (part of fix for #77479 and needed
29679 for MDI window cursor handling)
29681 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
29682 the appropriate default cursors and also passing the message
29683 up the parent chain
29684 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
29685 for non-client areas
29687 2006-02-15 Jackson Harper <jackson@ximian.com>
29689 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
29690 is a real MDI window
29692 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
29694 * X11DesktopColors.cs: Instead of checking the desktop session
29695 string for "KDE" check if it starts with "KDE"
29697 2006-02-10 Jackson Harper <jackson@ximian.com>
29699 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
29702 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
29704 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
29707 - Got rid of the panel. All controls are now directly added to
29709 - Changed to mono coding style
29711 2006-02-10 Jackson Harper <jackson@ximian.com>
29713 * InternalWindowManager.cs: We don't need the set visibility to
29714 false hack anymore now that peter has written beautiful shutdown
29717 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
29719 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
29720 where already explicitly destroyed
29722 2006-02-10 Jackson Harper <jackson@ximian.com>
29724 * MdiClient.cs: Handle the case where windows are too high or to
29725 the left and we need scrollbars.
29727 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
29729 * MimeIcon.cs: Added some icons
29732 - Got rid of the panel. All controls are now directly added to
29734 - Changed to mono coding style
29735 - On Linux "My Computer" and "My Network" will now show some
29736 more usefull information. A new class, MasterMount, gathers
29737 this information from /proc/mount. Updated MWFFileView to make
29738 use of this information
29739 - Fixed a bug that caused FileDialog to crash when
29740 ".recently_used" file had a zero size
29741 - FilterIndex does now what it should
29743 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
29746 2006-02-09 Jackson Harper <jackson@ximian.com>
29748 * ComboBox.cs: Don't touch if null.
29750 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
29752 * Cursor.cs: 64bit safeness fix
29753 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
29755 2006-02-09 Jackson Harper <jackson@ximian.com>
29757 * Form.cs: If a form is made into an MDI form update the styles so
29758 all the props can get set correctly.
29759 - Kill the mdi_container when we dont need it anymore.
29760 * InternalWindowManager.cs: Add missing NOT
29762 2006-02-08 Jackson Harper <jackson@ximian.com>
29764 * InternalWindowManager.cs: Respek clipping when drawing MDi
29767 2006-02-08 Jackson Harper <jackson@ximian.com>
29769 * Hwnd.cs: Add bits to track non client expose events.
29770 * XplatUIX11.cs: Track non client expose events on the hwnd. This
29771 gives us a proper invalid rect and will allow for some nice
29772 optimizations with NC client drawing
29773 - MDI windows are children windows, so move their style handling
29774 into the child window block.
29775 * InternalWindowManager.cs: Remove a state reset that was
29776 getting invoked at the wrong time. Fixes managed windows getting
29777 into a 'stuck' captured state.
29779 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
29781 * TextControl.cs (Document.ctor): Now initializing
29782 selection_anchor. Fixes #77493
29784 2006-02-07 Jackson Harper <jackson@ximian.com>
29786 * TrackBar.cs: The increment/decrements were backwards.
29788 2006-02-07 Mike Kestner <mkestner@novell.com>
29790 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
29791 to the instance itself.
29793 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
29795 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
29796 on ulongs and pointers, the size differs between 32bit and 64bit
29799 2006-02-07 Mike Kestner <mkestner@novell.com>
29801 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
29802 for 64 bit platforms to work around a metacity bug.
29804 2006-02-07 Jackson Harper <jackson@ximian.com>
29806 * TrackBar.cs: Process the input keys we need, and hookup to
29807 KeyDown instead of using WndProc, so we get key messages.
29809 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
29811 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
29813 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
29814 we need to translate the XdndVersion atoms array before sending it
29816 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
29819 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
29820 number of bits for the property, not the number of bytes. The
29821 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
29822 but would not crash since it specified 8 bits instead of 4 bits)
29823 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
29824 defined as XID -> long in the C headers)
29825 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
29826 references since those are now IntPtr to begin with
29827 - Switched all Atom.XXX 'int' casts to IntPtr casts
29828 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
29829 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
29830 - Added XChangeActivePointerGrab DllImport (for X11DnD)
29832 - Changed 'int' type for Atoms in XEvent structures to IntPtr
29833 - Changed atom in HoverStruct to be IntPtr
29835 - Removed local DllImports, switched code to use those from XplatUIX11
29836 - Removed/fixed casts related to the switch of Atom to be a IntPtr
29838 2006-02-06 Mike Kestner <mkestner@novell.com>
29840 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
29841 method signatures in the import region. There may still be some
29842 lingering struct marshaling issues, as I didn't drill down into those.
29845 2006-02-06 Jackson Harper <jackson@ximian.com>
29847 * ComboBox.cs: Dont manually set the top_item, this is computed
29848 when the scrollbar position is set.
29850 2006-02-06 Mike Kestner <mkestner@novell.com>
29852 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
29853 startup crashes on amd64. There's other fixes needed. All pinvoke
29854 usage of Atom needs to be mapped to IntPtr for example. And there are
29855 likely other int/long issues to be addressed.
29857 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
29859 * FileDialog.cs: One more...
29861 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
29863 * FileDialog.cs: Next try
29865 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
29867 * FileDialog.cs: First part of fix for #77464
29869 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
29871 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
29872 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
29873 AcceptButton border drawing.
29875 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
29877 * Form.cs: Moved positioning of form after auto scaling is applied,
29878 otherwise it would possibly use wrong form size.
29880 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
29882 * Control.cs (RecreateHandle): No need to re-create any child
29883 controls, the child windows will get destroyed automatically by
29884 the windowing system or driver, and re-created when the handle
29885 is being accessed the first time. Fixes #77456
29886 * Form.cs: No longer setting the form to closing if the handle is
29887 being recreated. This seems like the right thing to do, don't
29888 have a bug or testcase for this, though.
29890 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
29892 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
29893 controls to avoid unwanted side effects
29895 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
29898 - ScaleCore needs to scale the bounds, not the ClientSize of the
29899 control. Fixes #77416.
29900 - DefaultSize is 0,0 for control
29902 - DefaultSize is 100, 20
29903 - SetBoundsCore: Now enforcing the height, no matter if the provided
29904 height is more or less than the preferred one, as long as AutoSize
29906 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
29908 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
29911 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
29912 call unless both performLayout is true *and* we have a pending
29914 - ResumeLayout: MS does not completely nest Suspend and Resume,
29915 they bottom out at 0, fixed our code to match that.
29916 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
29917 SetBoundsCore, we were updating even when we shouldn't. This fixes
29918 swf-anchors mis-anchoring when resizing the app fast and lots.
29919 - UpdateDistances: Now only setting the left and top distance if
29920 we have a parent and are not suspended, this is based on
29921 a suggestion by Don Edvaldson in bug #77355.
29922 - OnVisibleChanged: Fixed logic when to create the control. We may
29923 not create the control if we have no parent or if it's not visible;
29924 switched to using Visible property instead of is_visible field
29925 since the property also considers parent states. This fixes a bug
29926 when starting Paint.Net
29928 2006-02-02 Jackson Harper <jackson@ximian.com>
29930 * Form.cs: If the forms handle hasn't been created yet don't call
29931 into xplatui to make it top most, just set the topmost flag on the
29932 form in CreateParams
29933 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
29935 2006-02-01 Jackson Harper <jackson@ximian.com>
29937 * ScrollableControl.cs: Refactored the Recalculate method a
29938 little, this wasn't handling all the variants of bottom and right
29939 bars needed to be added and added/removed based on their
29940 counterparts being added/removed (which changes the drawable
29941 size). Also we special case client widths and heights of 0 and
29942 don't add the scrollbar for those.
29944 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
29947 - Added method to get AbsoluteGeometry(); currently unused, but might
29948 be used in the future, if we try again to figure out toplevel
29949 coordinates with some more crappy window managers
29950 - Added FrameExtents() method to retrieve the WM set decoration size
29951 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
29952 to deal with at least KDE, FVWM and metacity (Fixes #77092)
29954 - Added whacky_wm tracking var for metacity
29955 - Added logic to have default menu height if the actual menu height
29956 has not yet been calculated (part of fix for #77426)
29957 * Form.cs: Keep track whether client size has been set and re-set
29958 it if a menu is added/removed afterwards (Fixes #77426)
29960 2006-01-31 Jackson Harper <jackson@ximian.com>
29962 * Control.cs: When a new Site is set on the component attempt to
29963 pull the AmbientProperties from it.
29965 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
29967 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
29968 in the background of the owning form. Fixes #77332
29970 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
29972 * MimeIcon.cs: Fix for #77409
29974 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
29976 * XplatUIX11GTK.cs: Initial import
29978 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
29980 * FixedSizeTextBox: fixes class signature
29982 2006-01-30 Jackson Harper <jackson@ximian.com>
29984 * FixedSizeTextBox.cs: New internal class that represents a
29985 textBox that will not be scaled.
29988 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29991 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
29993 * XplatUIX11.cs: Retrieve default screen number instead of
29994 assuming 0. Attempted fix for #77318
29996 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
29999 - GetWindowPos: When a window is parented by FosterParent, use
30000 the desktop instead of FosterParent as the base to get coordinates
30001 - CreateWindow: Don't make FosterParent the parent window for Popups
30002 if we don't want a taskbar entry, Popups automatically don't get one
30003 * Hwnd.cs: Need to call remove to actually remove the key from the
30006 2006-01-30 Mike Kestner <mkestner@novell.com>
30008 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
30010 2006-01-30 Jackson Harper <jackson@ximian.com>
30013 * TreeNode.cs: Raise events no matter how the treenode is
30014 checked. Patch by Don Edvalson.
30016 2006-01-30 Jackson Harper <jackson@ximian.com>
30018 * TreeNode.cs: Signature fix.
30020 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
30022 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
30024 2006-01-20 Mike Kestner <mkestner@novell.com>
30026 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
30027 event forwarding when menus are active.
30028 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
30029 Most of the patch is pdb's with a little rework.
30031 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
30033 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
30034 Removed GetMenuDC and ReleaseMenuDC methods; replaced
30035 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
30036 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
30037 * InternalWindowManager.cs: Added use of PaintEventStart/End to
30038 handling of WM_NCPAINT message, now passing the PaintEventArgs to
30039 the PaintWindowDecorations method
30040 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
30041 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
30042 * MenuAPI.cs: Made tracker window invisible
30044 - Removed GetMenuDC and ReleaseMenuDC methods
30045 - Implemented the client=false path for PaintEventStart and
30048 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
30050 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
30051 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
30054 - MaximizeBox, MinimizeBox: Recreate the handle when setting
30056 - CreateParams: Reworked the styles to match MS look'n'feel,
30057 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
30058 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
30060 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
30062 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
30063 window is not mapped, since otherwise every form that's being
30064 created is considered minimized, which is wrong.
30065 * Form.cs: Catching the exception and returning our internal value
30068 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
30070 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
30071 SetWindowMinMax() to have means to tell the driver about the minimum,
30072 maximum and maximized state window sizes. (Part of the fix for #76485)
30074 - Implemented tracking of minimum and maximum window size, now calling
30075 new SetWindowMinMax() driver method to tell the driver (Part of the
30077 - Finished handling of WM_GETMINMAXINFO method, now setting all values
30078 (Completes fix for #76485)
30079 - Calling new SetWindowMinMax driver method when the handle for a
30080 form is created, to make sure the driver knows about it even if
30081 the values have been set before the window was created
30082 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
30083 to avoid messing up our anchoring calculations (partial fix
30085 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
30087 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
30088 - Improved GetWindowState() to detect 'Minimized' state on Metacity
30089 (and presumably other freedesktop.org compliant WMs). Left the
30090 assumption unmapped=minimized, needed for SetVisible to work.
30091 - Now setting the window state when creating windows
30092 - Fixed SetVisible to consider/set the window state when mapping
30093 a Form. We cannot set the state before it's mapped, and we cannot
30094 use Form.WindowState once it's mapped (since it would ask the
30095 driver and get 'normal'. Therefore, we grab the state before
30096 mapping, map, and then set state.
30097 - Implmemented SetWindowMinMax method; Metacity does not seem to
30098 honor the ZoomHints, though.
30100 - Removed MINMAXINFO (moved to XplatUIStructs)
30101 - Added SetWindowMinMax stub (on Win32 the only way to set that
30102 information is in response to the WM_GETMINMAXINFO message, which
30103 is handled in Form.cs)
30104 - Added logic to SetVisible to set the proper window state when a
30105 form is made visible (fixes #75720)
30107 2006-01-26 Jackson Harper <jackson@ximian.com>
30109 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
30110 same way we handle them with Invoke.
30112 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
30115 - Added tracking of window state so CreateParams can return
30116 the appropriate style
30117 - Moved setting of WS_CAPTION style in CreateParams to allow
30118 styles without caption
30119 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
30120 control if the TextBox property is accessed. Fixes #77345
30122 - get_Created: now uses is_disposed and is_created to determine
30123 return value (suggested by Jackson)
30124 - CreateHandle: No longer exits if the handle is being recreated
30125 - RecreateHandle: If the handle is not yet created call the
30126 appropriate method to create either control or handle. If the
30127 control is already created CreateHandle will simply exit instead
30128 of just creating the handle
30129 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
30130 now SendMessage WM_DESTROY directly to the control when DestroyWindow
30133 - When DestroyWindow is called, instead of waiting for the
30134 DestroyNotification from X11, we directly post it to the WndProc
30135 and immediately dispose the hwnd object.
30136 Same applies to DestroyChildWindows, and this obsoletes the
30137 expose_pending tracking. Contrary to Win32 behaviour we destroy our
30138 child windows before our own, to avoid X11 errors.
30139 - Removed the direct sending of WM_PAINT on UpdateWindow
30141 - Reworked DoEvents and GetMessage to allow access to internal queue
30142 even when trying non-blocking access to the queue. Fixes #77335.
30143 Based on a patch suggestion by Don Edvalson. The new private
30144 GetMessage can now also be used as a backend for a PeekMessage
30146 * XplatUI.cs: Improved debug output for CreateWindow
30148 2006-01-25 Jackson Harper <jackson@ximian.com>
30150 * Help.cs: Allow param to be null. Patch by Don Edvalson.
30152 2006-01-24 Jackson Harper <jackson@ximian.com>
30154 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
30155 when we have a MaxDropItems lower then the selected index.
30157 2006-01-24 Jackson Harper <jackson@ximian.com>
30159 * Control.cs: Don't allow selection of non visible controls, allow
30160 selection of controls without parents.
30162 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
30164 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
30165 * DataGridDrawingLogic.cs: Add editing row only when is necessary
30167 2006-01-23 Jackson Harper <jackson@ximian.com>
30169 * UpDownBase.cs: Make the textbox handle all the selection and
30170 tabbing. This fixes tabing to updown controls.
30172 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
30174 * TextBoxBase.cs: fixes exception thown the object was null
30176 2006-01-23 Jackson Harper <jackson@ximian.com>
30178 * ButtonBase.cs: Just use the base CreateParams. They set
30179 visibility and enabled correctly.
30182 * MonthCalendar.cs: Lets let the base set as much of the
30183 createparams as possible so we don't have duplicate code all over
30186 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
30188 * ThemeGtk.cs: Added TrackBar and some experimental code to
30189 get double buffering back
30191 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
30193 * DataGrid.cs: Allows row number set internally higher than the last
30194 when creating a new row. Restores the editing functionality.
30196 2006-01-20 Mike Kestner <mkestner@novell.com>
30198 * MimeIcon.cs: delay Image creation until the icons are accessed
30199 instead of creating 190 scaled images on GnomeHandler startup.
30201 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
30203 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
30204 first call base before processing the event. Fixes #77279
30206 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
30208 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
30209 that the stride for the GDI bitmap would match the stride of
30212 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
30214 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
30216 2006-01-19 Jackson Harper <jackson@ximian.com>
30218 * ComboBox.cs: Hookup the text controls keydown event so we get
30219 those when the text control has the focus.
30221 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
30223 * Label.cs: Now using the base events instead of defining new ones;
30224 this allows us to just call the base properties without having to
30225 duplicate all base property logic
30227 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
30229 * Label.cs: A label by default is not a tabstop (Fixes one of our
30230 failing nunit tests)
30232 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
30234 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
30235 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
30237 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
30239 * Cursor.cs: Reimplemented creating cursor bitmaps without using
30240 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
30243 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
30244 constructor creates images that can't be saved. Part of the fix
30246 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
30247 - SetWindowState: Switched ShowWindow flags (part of an upcoming
30248 bug fix for handling window state in forms properly)
30250 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
30252 * ThemeGtk.cs: Simplify ScrollBar drawing
30254 2006-01-18 Jackson Harper <jackson@ximian.com>
30256 * Splitter.cs: Set the default dock style for the splitter control
30257 in the constructor.
30259 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
30261 * ThemeGtk.cs: Corrected StateType and ShadowType for
30264 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
30266 * Control.cs: Make use of Theme.DoubleBufferingSupported
30268 - Added drawing for flat style buttons
30269 - Added ScrollBar drawing
30271 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
30273 * ThemeClearlooks.cs: Removed some unneeded code.
30274 * ThemeGtk.cs: First part of ThemeGtk enhancements.
30276 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
30278 * LinkLabel.cs: We need to update the hover drawing when
30279 leaving the control as well.
30281 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
30283 * DataGrid.cs: Clicking on non empty areas in the columns
30284 area was giving an exception
30286 2006-01-17 Jackson Harper <jackson@ximian.com>
30288 * ThemeWin32Classic.cs:
30289 * ListView.cs: Do not draw/clip the headers when the header style
30292 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
30294 * DataGrid.cs: Fixes 77260
30296 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
30298 * DataGrid.cs: Clicking on a column on a empty grid was giving
30301 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
30303 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
30304 or any keypress will crash the grid.
30306 2006-01-17 Mike Kestner <mkestner@novell.com>
30308 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
30309 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
30310 invisible/previously-visible items.
30313 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
30315 * ThemeClearlooks.cs:
30316 - Added CL_Draw_Button method; now other theme controls that are
30317 not derived from button or do not have a button can draw buttons
30319 - Updated ComboBox drawing
30320 - Beautified RadioButton drawing
30321 - Corrected drawing of bottom and left tabs
30322 - Beautified DateTimePicker and MonthCalendar
30323 - Added CPDrawButton and CPDrawRadioButton
30325 2006-01-16 Jackson Harper <jackson@ximian.com>
30327 * ComboBox.cs: Set the initial value of the scrollbar to the
30328 current index. Reduce the numbers of refreshs and IndexOfs called.
30330 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
30332 * FileDialog.cs: When the file listview is focused hitting the
30333 backspace key moves the fileview to the parent directory
30335 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
30338 - Added RecreateHandle call when changing taskbar visibility to
30339 trigger reparenting in Win32 driver (Fixes #75719)
30340 - If a window has minimize or maximize buttons, it cannot have
30343 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
30344 the toplevel form with FosterParent (A toolwindow not on the
30345 taskbar) (Fixes #75719)
30346 - Made FosterParent a toolwindow
30348 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
30350 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
30352 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
30354 * ToolTip.cs: If SetToolTip is called from a control and the mouse
30355 is currently over that control, make sure that tooltip_window.Text
30358 2006-01-13 Mike Kestner <mkestner@novell.com>
30360 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
30362 2006-01-13 Jackson Harper <jackson@ximian.com>
30364 * TreeView.cs: On MS GetNodeAt never actually factors in the X
30365 value passed. Also redraw the selected node when we recieve
30366 focus, so tabbing between trees works correctly.
30368 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
30370 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
30371 ~/.gconf/%gconf-tree.xml, so use
30372 .gconf/desktop/gnome/interface/%gconf.xml
30374 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
30376 * TextControl.cs: Draw text in gray if control is disabled
30378 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
30380 * TreeView.cs: Draw the focus rectangle outside the highlight, to
30381 make sure it's always visible. Fixes #76680.
30383 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
30385 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
30387 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
30389 * PageSetupDialog.cs: Added.
30390 * PrintDialog.cs: Attributes.
30391 * PrintPreviewControl.cs: Updates.
30392 * PrintPreviewDialog.cs: Updates.
30394 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30396 * Control.cs: Undid my selection check fix, since it's not needed
30398 - Now considering the presence of hscroll/vscroll when sizing
30399 vscroll/hscroll respectively. Fixed bug #77077
30400 - Added Left/Up/Down/Right to IsInputKey list to prevent
30401 ContainerControl from stealing them. This fixes what I broke
30402 with my last checkin.
30404 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30406 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
30407 I finally understand how the property can be set without a setter :-)
30409 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30412 - Switched RunLoop to use static Message.Create to create a
30414 - Added PreProcessMessage call in runloop for keyboard events; this
30415 is part of the fix for #77219, I overlooked this originally in the
30416 MSDN doc for PreProcessMessage
30418 - Removed call to PreProcessMessage from handling of keyboard
30419 messages; it's supposed to be done in the message pump
30420 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
30421 per MSDN documentation.
30422 - IsInputChar: All chars are input chars by default; removed the
30423 parent calling chain, MS does not document that
30424 - PreProcessMessage: If IsInputChar is true, we want to return false
30425 to allow dispatching of the message
30426 - When selecting the next control, now also check that we're not
30427 selecting ourselves again and therefore return a false positive.
30429 - Tried to match return values for IsInputKey and ProcessDialogKey
30430 to what MS returns; moved processing of our special keys outside
30431 ProcessDialogKey since MS does not seem to return true on those.
30432 - Moved code that previously was in ProcessDialogKey into new private
30433 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
30434 - Reworked handling of WM_CHAR to not have to duplicate code from
30435 Control.cs anymore, instead we simply call down to base.
30437 2006-01-12 Jackson Harper <jackson@ximian.com>
30439 * ComboBox.cs: We always need to refresh the text area when
30440 EndUpdate is called. Fixes the combobox in the file dialog.
30441 * Control.cs: Don't create the creator_thread until the controls
30442 handle is created. Also in InvokeRequired we check if the
30443 creator_thread is null. This gives the effect of InvokeRequired
30444 returning true if the controls handle is not created yet, and
30447 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30450 - Added StartLoop() driver method. This is used to allow drivers to
30451 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
30452 loop for a particular thread
30453 - Added EndLoop() driver method. This is called once the message
30454 pump for the thread is shut down
30455 - Added SupportsTransparency method to allow the driver to indicate
30456 opacity support for windows
30458 - Removed TODO attribute, completed AllowTransparency property
30459 - Added documented logic to Opacity
30460 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
30461 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
30462 versions of CompatibleTextRendering
30463 * X11Structs.cs: Added opacity atom to our atom enumeration
30464 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
30465 of a form might be set before it's reparented by the WM, and we need
30466 the opacity value without calling up to Form)
30467 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
30468 SupportsTransparency() driver methods
30469 * Application.cs: Now calling StartLoop and EndLoop driver methods
30471 - Added opacity atom registration
30472 - Added StartLoop()/EndLoop() methods. They're empty right now but
30473 will need to get implemented when we switch to a per-thread queue
30474 - Implemented SupportsTransparency() method
30475 - Implemented SetWindowTransparency() method
30476 - Added support for setting the opacity value when a window is
30477 reparented (since the opacity needs to be set on the WM frame)
30478 * XplatUIOSX.cs, XplatUIWin32.cs:
30479 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
30481 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
30483 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
30485 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
30487 * FileDialog.cs: Added ToolTip for MWFFileView
30488 * MimeIcon.cs: Rewrote GnomeHandler.
30489 - Get currently used gnome icon theme from
30490 ($HOME)/.gconf/%gconf-tree.xml
30491 - Make use of inherited icon themes
30492 - Support SVG icon themes like Tango via librsvg
30494 2006-01-12 Miguel de Icaza <miguel@novell.com>
30496 Revert's Jackson's revert which broke 2.0 builds. Fix both
30499 * Application.cs: Move the use_compatible_text_rendering outside
30500 the NET_2_0 define. If we ever need to use the
30501 use_compatible_text_rendering on the individual controls they will
30502 access the variable from the common shared code paths.
30504 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30507 - Added more granular debug options
30508 - Added method to print both window text and id
30509 - Switched debug output to use new Window() debug method
30510 - Added IsEnabled() driver method
30511 - Added EnableWindow() driver method
30513 - Removed end_modal; no longer needed, new loop handles termination
30514 via 'closing' variable
30515 - If form is modal, setting DialogResult will now initiate loop
30516 termination via 'closing' variable
30517 - Added support for is_enabled/WS_DISABLED to CreateParams
30518 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
30520 - Removed code that's now in RunLoop from ShowDialog()
30521 - Added various documented sanity checks to ShowDialog()
30522 - Added handling of WM_DESTROY message; we set 'closing' on getting
30523 the message to indicate the message pump to terminate
30524 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
30525 send by the Application.ExitThread method. (We send the message
30526 to destroy the window after all other events have been
30527 processed through the queue, instead of destroying the handle
30529 - Moved code from Close() method to WM_CLOSE handler; added logic
30530 to only send close-related events if the form is not displayed
30532 * Splitter.cs (..ctor): Fixed typo in resource name
30534 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
30536 - set_Cursor: Now only setting calling into XplatUI if the handle for
30537 the control is already created; this avoids implict handle creation
30538 or crashes if it's not created
30539 - set_Enabled: Now setting the enabled state via the new driver method
30540 instead of just tracking it
30541 - CreateParams: Added logic to set WS_DISABLED based on enabled state
30542 - CreateControl: Reordered event firing and method calls to more
30543 closely fire events in the order MS does. Now setting the
30544 enabled state in the driver when creating the control.
30545 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
30547 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
30548 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
30549 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
30551 - Added tracking of window enabled state (get_Enabled/set_Enabled)
30552 - Added EnabledHwnd property to easily allow a driver to find the
30553 handle of the first enabled window in the parent chain (this is
30554 used by drivers to pass up input events of disabled windows)
30555 * XplatUIDriver.cs: Added IsEnabled() method
30557 - Removed crude and obsolete exiting tracking variable
30558 - Removed internal ModalRun(); replaced by RunLoop()
30559 - Implemented private CloseForms() method to allow closing all
30560 windows owned by a particular (or all) threads
30561 - Exit() now properly closes all windows without forcing the message
30563 - Removed obsolete InternalExit() method
30564 - Changed Run() methods to use new RunLoop() message pump
30565 - Implemented new RunLoop() method for both modal and non-modal forms
30567 - get_CreateParams: Added setting of WS_DISABLED
30568 - Simplified ShowDialog(); now all the work is done in RunLoop(),
30569 invoked via Form.ShowDialog()
30570 * NativeWindow.cs: We don't remove the window from the collection when
30571 the handle is destroyed; there might still be messages for it in the
30572 queue (mainly the resulting WM_DESTROY); instead it will be removed
30573 when Control calls InvalidateHandle in the WM_DESTROY handler
30575 - CreateWindow: Added logic to handle the WS_DISABLED window style
30576 - EnableWindow: Implemented based on Hwnd.Enabled
30577 - GetMessage: Reset PostQuitState so the method can be called again
30578 - Implemented support for disabled windows (passing messages to the
30579 first enabled parent) in handling all input messages
30580 - Added optimizations for handling Expose events
30581 - Implemeted new driver method IsEnabled()
30582 - Now always resetting paint pending tracking vars when we start paint
30583 - Re-implemented UpdateWindow via just sending a WM_PAINT message
30584 * XplatUIOSX.cs: Added IsEnabled method stub
30585 * XplatUIWin32.cs: Implemented new IsEnabled() method
30587 2006-01-11 Jackson Harper <jackson@ximian.com>
30589 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
30590 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
30591 variables a little.
30592 * ColorDialog.cs: Clear out the old form before adding the new
30595 2006-01-11 Jackson Harper <jackson@ximian.com>
30597 * X11Dnd.cs: Make sure to add all the text formats when adding
30598 strings to the data object.
30599 * TreeNodeCollection.cs: When adding to a sorted tree we need to
30600 do some redrawing too. Also change the UpdateNode to an
30601 UpdateBelow so the newly added node gets painted.
30603 2006-01-11 Miguel de Icaza <miguel@novell.com>
30605 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
30606 LinkLabel.cs, PropertyGrid.cs: Implement the
30607 UseCompatibleTextRendering property for 2.x
30609 * Application.cs (SetCompatibleTextRenderingDefault): Add.
30611 2006-01-11 Jackson Harper <jackson@ximian.com>
30613 * TreeView.cs: Use the property for setting the selected node so
30614 the correct events get raised.
30615 * TreeNode.cs: Update the tree when the fore/back colours of a
30618 2006-01-10 Jackson Harper <jackson@ximian.com>
30620 * TreeView.cs: Allow setting SelectedNode to null.
30622 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30624 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
30626 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30628 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
30630 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30632 * PrintDialog.cs: Added attributes and set default property values.
30634 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30636 * PrintControllerWithStatusDialog.cs:
30637 Added PrintControllerWithStatusDialog.
30639 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30641 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
30642 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
30644 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30646 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
30648 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
30650 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
30651 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
30653 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
30655 * MimeIcon.cs: Added internal class SVGUtil.
30657 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
30659 * FileDialog.cs: Don't crash if there are two files with the
30660 same name but different locations.
30662 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
30664 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
30665 dates across multiple month grids. Used to not highlight entire
30666 month, but does now.
30668 2006-01-06 Jackson Harper <jackson@ximian.com>
30670 * MonthCalendar.cs: Removed DoEvents call to prevent a running
30671 message loop. Change timer intervals to numbers that seem more
30674 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
30676 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
30677 object for location info since screen object is now implemented.
30679 2006-01-05 Jackson Harper <jackson@ximian.com>
30681 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
30682 * AsyncMethodResult.cs: We no longer use a WeakReference for the
30683 AsyncMethodResult, this is because we ALWAYS want the
30684 ManualResetEvent to get set.
30685 * Control.cs: When disposing use an async invoke to call shutdown
30686 code, so that thigns don't block on the finalizer thread. Also
30687 check if we even have a message loop before trying to send
30688 messages, if we don't then don't bother sending messages.
30689 - No more weak references for async methods
30690 * XplatUIDriver.cs: No more weak references for async methods.
30692 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
30694 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
30695 returns two FontFamily with the same name
30697 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
30699 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
30700 drawing disabled text. Instead using the ColorGrayText color
30702 2006-01-04 Jackson Harper <jackson@ximian.com>
30704 * TreeNode.cs: redraw the node when its image index is changed.
30706 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
30708 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
30709 time I checked there are no others like it.
30711 2006-01-04 Jackson Harper <jackson@ximian.com>
30713 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
30714 this gives the behavoir I was looking for.
30715 * Control.cs: Special case Invoking EventHandlers, this matches MS
30716 and fixes part of bug #76326.
30718 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
30720 * ThemeClearlooks.cs, FileDialog.cs:
30721 - Reflect the latest Theme class changes
30722 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
30725 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
30727 * Theme.cs: Cache UI resource images and resize them if needed
30729 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
30731 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
30732 is called. This fixes the crash in Nexxia when setting the font
30733 attributes in the chat. [However, RTF needs a look-over to make sure
30734 that all SelectionXXX methods handle the special case that selection
30735 is empty and therefore the change must be applied to all text starting
30736 at the cursor/selection start]
30738 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
30740 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30741 XplatUIOSX.cs: Added SendMessage and PostMessage methods
30742 * X11Keyboard.cs: Switched to new way of calling PostMessage
30744 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
30746 * Theme.cs: Added theme interface for images to allow the theme to
30747 control what images are used for things like FileDialog, MessageBox
30749 * MessageBox.cs: Now uses the new Theme icon/image interfaces
30751 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
30754 - Removed some dead code
30755 - Opening a recently used file does work now
30756 - Small UI enhancements
30759 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
30761 * FileDialog.cs: Forgot too add __MonoCS__
30763 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
30765 * FileDialog.cs: We are able to read recently used files now let's
30766 go on and write them.
30768 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
30770 * FileDialog.cs: Breathe some life into "last open"/"recently used"
30772 * MimeIcon.cs: Do a check for the top level media type also
30774 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
30776 * ThemeClearlooks.cs:
30777 - Added CPDrawStringDisabled
30778 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
30779 some chars if the text doesn't fit into text_rect
30780 - DrawListViewItem: If View = View.LargeIcon center the image;
30781 rewrote the drawing of ListViewItem.Text if View =
30784 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
30786 * MimeIcon.cs: Use default KDE icon theme if there is no
30787 "48x48" directory for the current icon theme, fixes #77114
30788 * Mime.cs: Disable not working and actually not used code.
30789 * ThemeWin32Classic.cs:
30790 - Replace "new SolidBrush" in GetControlBackBrush and
30791 GetControlForeBrush with ResPool.GetSolidBrush
30792 - Changed DrawListViewItem from private to protected virtual
30794 - Added form.MaximizeBox = true
30795 - Don't throw an exception if there is a broken symbolic link
30797 2005-12-23 Jackson Harper <jackson@ximian.com>
30799 * TabControl.cs: Give the panels focus, keyboard navigation is
30800 fixed so this works correctly now.
30801 - We need these key events also.
30802 * ToolBar.cs: Remove some of the poor mans double buffering.
30804 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
30806 * ComboBox.cs: The internal TextBox now returns the focus.
30808 2005-12-23 Jackson Harper <jackson@ximian.com>
30810 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
30812 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
30814 * Control.cs: Removed debug code
30815 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
30818 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
30820 * Control.cs: When creating the control, update the Z-order after
30821 all it's children are created, too. (Fixes nexxia not showing
30824 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
30826 * Control.cs: Do not update the anchoring distances if layout is
30827 suspended, instead do it once layout is resumed
30829 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
30832 - After many hours of debugging, for both Jackson and
30833 myself, it turns out that it helps to set the parent of a control
30834 if you want to actually see it onscreen. In the spirit of that
30835 discovery, we're now setting the parent of the control and
30836 it's children when the control's handle is created. This fix
30837 will make Lutz Roeder's Reflector run happily.
30838 - now just creating the handle instead of the whole control when
30839 getting a graphics context for the control.
30841 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
30843 * ScrollableControl.cs: When calculating the canvas, don't consider
30844 the scrollbar widths. Instead, predict if horizontal scrollbar
30845 will affect canvas when deciding on vertical display and vice versa.
30847 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
30849 * RichTextBox.cs: Set default RTF font for documents that don't
30850 have a font table (Fixes #77076)
30852 2005-12-22 Jackson Harper <jackson@ximian.com>
30854 * TextBoxBase.cs: It's difficult to do, but you can have an empty
30855 clipboard. This prevents a NullRef in that case.
30856 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
30857 clipboard. PRIMARY is for the currently selected text only. (We
30858 should implement PRIMARY at some point.
30860 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30862 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
30863 a Unicode function with a structure that was defined in Ansi way.
30866 2005-12-21 Jackson Harper <jackson@ximian.com>
30868 * StatusBar.cs: Statusbar handles its fore/back colours on it's
30869 on. Because thats how it rolls. (and this avoids it using ambient
30871 * ThemeWin32Classic.cs: Use the proper back color for filling.
30872 * Menu.cs: Use the system menu bar color for drawing menu
30873 bars. Using the window back color will bring ambient colours into
30876 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
30878 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
30879 Bitmaps were created and not disposed.
30881 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30883 * Control.cs (CreateControl): Don't do anything if the control is
30884 already created, otherwise we'd fire the OnCreated event more than
30887 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30889 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
30890 will always match. Instead return -1. Fixes #76464.
30892 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30894 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
30895 neither the beginning nor the end of the line (Fixes bug #76479)
30897 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30900 - ControlNativeWindow.ControlFromHandle(): Now handling situation
30901 where handle is invalid
30902 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
30903 instead of slower linear search
30904 * NativeWindow.cs: Don't remove the window from the hashtable until
30905 after the driver has destroyed it (since the driver might use
30906 Control.FromHandle to lookup the control object
30907 * Hwnd.cs: Added DestroyPending property to track if a window is
30908 already destroyed as far as the driver is concerned and only hasn't
30909 yet notified the control
30911 - Activate(): Check if the window is still valid before using the
30913 - Implemented DestroyChildWindow() method to mark child windows as
30914 destroyed when a window is destroyed. This prevents situations
30915 where we might call an X method based on queued events for a
30916 window that already has been destroyed but we haven't yet pulled
30917 the destroy method from the queue.
30918 - Added a call to the new DestroyChildWindow() method to the drivers
30919 DestroyWindow code. Also now marking the destroyed window itself
30922 2005-12-20 Jackson Harper <jackson@ximian.com>
30925 * StatusBarPanel.cs: Don't calculate panel sizes on draw
30926 anymore. Just do them when needed, also track the rects of panels
30927 so that we can optimize refreshing more in the future.
30929 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
30931 * ColorDialog.cs: Fixed focus drawing in small color controls
30933 2005-12-19 Jackson Harper <jackson@ximian.com>
30935 * InternalWindowManager.cs:
30936 * MdiWindowManager.cs: Cleanup some coordinate system changes so
30937 moving windows works properly.
30939 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
30942 - Removed call to InitLayout() from SetBoundsCore(); doc says
30943 it's only called when a control is added to a container
30944 - Split InitLayout logic, moved to separate UpdateDistances() method
30945 since we need to perform those calculations more often than just
30946 when adding the control to a container. (Needed to fix #77022)
30947 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
30948 - Reduced the OnBindingContextChanged events count, don't send them
30949 unless the control is created, we still aren't totally matching
30950 MS, but I can't quite figure out some of their rules
30952 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
30954 * ThemeClearlooks.cs: Corrected distance between ProgressBar
30957 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
30959 * ThemeClearlooks.cs:
30960 - Updated ProgressBar drawing
30961 - Corrected drawing of ScrollBars and scroll buttons
30962 - Some temporary fixes for minor pixel artefacts
30964 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
30967 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
30968 cause events to be sent in the same order as MS does.
30969 - Added ChangeParent() method to trigger various OnXXXChanged events
30970 that need to be fired when a parent changes (This is a reworking
30971 of the patch from r54254, with the X11 errors fixed)
30972 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
30973 since on MS we get OnLayoutChanged events when calling Clear()
30974 - Changed Enabled property to consider parent state as well, if a
30975 parent is not enabled, the control will not be either
30976 - Changed Parent property to simply call Controls.Add() since that
30977 now does all the work required, this way we avoid code duplication
30978 - Threw in a few OnBindingsContextChanged calls to try and match
30979 when MS sends them. We seem to send a few too many, though.
30980 - Added call to CreateControl when adding the control to a parent.
30981 We were never calling CreateControl. Still needs some work, in
30982 some places we treat HandleCreated and ControlCreated as equal,
30984 - Removed obsolete commented out code from UpdateZOrder()
30986 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
30988 * ThemeClearlooks.cs: Updated TrackBar drawing.
30990 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
30992 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30994 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
30996 * FileDialog.cs: Add the Help button and the open readonly
30997 checkbox only if needed
30999 2005-12-16 Jackson Harper <jackson@ximian.com>
31001 * Control.cs: Make sure we have an active menu before trying to
31002 process commands on it. Prevents menu-less forms from crashing
31003 when Alt is pressed.
31004 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
31006 * RichTextBox.cs: Expand statement to help out gmcs and fix the
31009 2005-12-16 Jackson Harper <jackson@ximian.com>
31011 * InternalWindowManager.cs: Don't translate tool windows screen
31012 coordinates. This fixes windows 'bouncing' around when being moved.
31014 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
31017 - MaxLength now treats 2^31-1 equal to unlimited length (this is
31018 not quite MS compatible, MS uses that number only for single line
31019 and 2^32-1 for multi-line, but I figure it won't hurt keeping
31021 - Now enforcing the MaxLength limit when entering characters
31022 - Added argument to internal Paste() method to track if it's called
31023 from programatically or via keyboard, since keyboard driven pastes
31024 need to enforce max-length
31025 - Added logic to Paste to only paste as many chars as MaxLength
31027 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
31029 - Added Length property to return number of characters in document
31030 - Added private CharCount property which only tracks actual chars
31031 in the document (no linefeeds) and fires event when CharCount
31033 - Added tracking of character count to all methods that alter it
31034 - Added LengthChanged event to allow applications to subscribe
31035 to any changes to the document
31037 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
31040 - Removed local password_char field (moved to TextBoxBase)
31041 - Now setting the document's password var when password is
31044 - Added password_char field (needed here so MultiLine can
31046 - Added logic to MultiLine property setter to set the document's
31047 variable when password display is allowed
31048 - Removed debug code and made some debug code conditional
31050 - Added RecalculatePasswordLine() method to handle special password
31052 - Added PasswordChar property, also added related tracking vars
31053 - Draw() method now uses local text var for grabbing text to draw,
31054 this var is set to line.text unless we're doing password display,
31055 then it is set to the pre-generated all-password-chars line
31056 - Added calling RecalculatePasswordLine() method for password lines
31058 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
31061 - Added Reparented property to allow tracking of Window Manager
31062 reparenting actions (which affect X/Y calculations of toplevel
31064 - Made ToString() print window handles in hex
31066 - AddConfigureNotify(): Now uses reparented state off Hwnd to
31067 determine if X/Y needs offsetting
31068 - AddConfigureNotify(): Fixed offset calculations
31069 - Now adds ReparentNotify messages into the queue
31070 - Now processes ReparentNotify messages and causes a
31071 WM_WINDOWPOSCHANGED message to be sent upstream if a window
31072 is reparented (as most likely it's X/Y coordinates are changed
31075 2005-12-14 Jackson Harper <jackson@ximian.com>
31077 * XplatUIX11.cs: Tool windows still need to respek focus.
31079 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
31081 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
31082 have a working release
31084 2005-12-13 Jackson Harper <jackson@ximian.com>
31086 * Form.cs: Update styles after setting the border style regardless
31087 of whether or not the window is using a window manager.
31089 2005-12-13 Jackson Harper <jackson@ximian.com>
31091 * Form.cs: We now hook into an internal window manager instead of just an
31092 MDI subsystem, this is so we can have properly behaving tool windows.
31093 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
31094 * InternalWindowManager.cs: New internal class that acts as a
31095 window manager for tool windows and as a base for mdi windows.
31096 * MdiWindowManager.cs: New class that acts as a window manager for
31099 2005-12-12 Jackson Harper <jackson@ximian.com>
31101 * Control.cs: Updates so we match behavoir for for implicit
31102 controls. Fixes explosions in MDI.
31104 2005-12-12 Jackson Harper <jackson@ximian.com>
31106 * Control.cs: Implement Invalidate (Region).
31108 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
31111 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
31112 the same events as MS does. MS fires events for each property
31113 except, for unknown reasons, Cursor, when the control is reparented.
31114 I can't seem to totally match add/remove since MS also fires some
31115 VisibleChanged events, which makes no sense. Consolidated the
31116 parenting code into a separate method so it can be called from
31117 both Add and Remove. set_Parent no longer needs any special logic
31118 as it calls the parent's add method which implicitly fires
31120 - Removed some obsolete code and debug output
31121 - Enabled state is inherited from parents, if this is enabled
31123 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
31125 * Form.cs: Removed commented out code
31127 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
31130 - Added internal version of Invoke, with additional argument
31131 indicating if we're calling it from a Dispose() handler. That
31132 way we can avoid BeginInvoke throwing an exception if we're
31133 calling for an already destroyed window.
31134 - Added a dispose argument to BeginInvokeInternal, and made the
31135 check if a valid window handle chain exists conditional on
31136 it not being a dispose call
31137 - Removed code in DestroyHandle to destroy our children. Since we
31138 now handle the WM_DESTROY message we will catch all our children
31140 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
31142 - Added a field to track the application context of the form.
31143 - No need to set closing variable as response to WM_CLOSE, instead
31144 we destroy the window. We also call PostQuitMessage if the form
31145 has an application context (which makes it the main app form,
31146 which, when closed terminates the app)
31148 - Dropped Exit() method, it's naming was confusing
31149 - Added PostQuitMessage() which causes GetMessage to return false
31150 once the message queue is empty
31151 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
31153 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
31154 no longer a valid XplatUI method, but left it in since it's used
31155 internally. Added empty PostQuitMessage() method.
31156 * MenuAPI.cs: Replaced call to Exit() with call to
31157 PostQuitMessage, even though this is probably no longer needed.
31158 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
31159 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
31161 - Replaced call to XplatUI.Exit() with PostQuitMessage()
31162 - Removed old debug code that would call XplatUI for exception
31163 display, enabled standard exception handling (Still not enabled
31164 though, until NativeWindow's ExternalExceptionHandler define
31167 - Added internal method to allow control to update NativeWindow
31168 after a window has been destroyed
31169 - Added handling of already destroyed windows when calling i
31171 - Added removal of handle from list on ReleaseHandle
31173 - Dropped GetMessageResult var and related code
31174 - Added PostQuitState to field to track if PostQuitMessage has been
31176 - Dropped Exit() method
31177 - Added PostQuitMessage() method
31178 - GetMessage now will return false if PostQuitState is set and no
31179 more messages are in the queue.
31180 - Expose handler will no longer generate WM_PAINT messages if we are
31181 in PostQuitState since it's very likely any windows have already
31182 been destroyed, and since Hwnd won't get updated until we have
31183 processed the DestroyNotify we'd be causing X errors.
31185 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31187 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
31188 Thanks to Mike for pointing out the err of my ways.
31190 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31192 * Control.cs(PreProcessMessage): Moved menu handling back, but
31193 after all other key handling, to match MS (who handles Menu in
31195 * Menu.cs (WndProc): Removed my brainfart
31197 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31199 * Control.cs(PreProcessMessage): Removed special menu handling
31200 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
31202 2005-12-07 Mike Kestner <mkestner@novell.com>
31204 * Control.cs : special case SYSKEYUP so that we can adjust keynav
31205 state according in tracker.
31206 * Menu.cs : promote tracker field to base class and provide a tracker
31207 lookup capability. Add/Remove shortcuts dynamically if the top menu
31208 has a tracker. Unparent items that are removed from the collection.
31209 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
31210 * Theme*.cs: add always_show_hotkeys field to support configurability
31211 of mnemonic display. win32 doesn't show mnemonics until Alt is
31214 2005-12-07 Jackson Harper <jackson@ximian.com>
31216 * MdiChildContext.cs: Use Control.ResetCursor.
31217 * Control.cs: ResetCursor needs to set the property so that the
31218 correct XplatUI call gets made.
31220 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31222 * Control.cs: More fixes to make our key events match MS. We
31223 were not setting the modifier state on KeyData, and we were
31224 not generating any events when Alt was pressed with a key
31225 since handling of WM_SYSxxx was missing for the OnKey methods.
31227 2005-12-07 Jackson Harper <jackson@ximian.com>
31229 * MdiChildContext.cs: reenable the sizing code.
31230 - When the mouse leaves a window reset its cursor.
31232 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
31234 * ThemeClearlooks.cs: Reflect latest Hwnd changes
31236 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31238 * Hwnd.cs: Now using the theme 3d bordersize to calculate
31239 widths of Fixed3D borders
31241 2005-12-07 Jackson Harper <jackson@ximian.com>
31243 * MdiClient.cs: Fix warnings. Earn Mike's love.
31245 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
31247 * ThemeClearlooks.cs:
31248 - Adjusted mouse over button color
31249 - Added first parts of CheckBox drawing
31250 - Added correct color for selected text background
31251 - Fixed ComboBox drawing
31252 - Added CPDrawBorder3D and CPDrawBorder
31254 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
31256 * XplatUIX11.cs: Added call to XBell for AudibleAlert
31258 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
31260 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
31261 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
31262 alert users via sound. We could add an enum arg with different
31263 types of alerts in the future
31265 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
31267 * Control.cs: Fix behaviour problems pointed out by Mike
31269 2005-12-05 Mike Kestner <mkestner@novell.com>
31271 * StatusBarPanel.cs: add Invalidate method and hook it into all the
31272 prop setters. Calls parent.Refresh for now, but could be maybe be
31273 optimized with an internal method on StatusBar at some point.
31276 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
31278 * RichTextBox.cs: Implemented get_SelectionColor
31280 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
31282 * ThemeClearlooks.cs:
31283 - Removed dead code
31284 - Draw black button border only if button is Form.AcceptButton
31285 - Draw correct button color for pressed RadioButton if the mouse
31286 has entered the button
31287 - Updated ProgressBar drawing!
31288 - Updated CPDrawSizeGrip drawing
31289 - Updated StatusBarPanel drawing
31291 2005-12-05 Mike Kestner <mkestner@novell.com>
31293 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
31294 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
31296 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
31298 * ThemeClearlooks.cs: Initial check-in, activate with
31299 export MONO_THEME=clearlooks
31300 * ThemeEngine.cs: Added ThemeClearlooks
31302 2005-12-03 Mike Kestner <mkestner@novell.com>
31304 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
31307 2005-12-02 Jackson Harper <jackson@ximian.com>
31309 * Form.cs: If the child form has no menu the default main menu is
31310 used as the active menu.
31312 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
31314 * ListBox.cs: Check if any items exist before trying to resolve
31315 coordinates into items
31317 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
31319 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
31320 as the second color for the background hatch
31322 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
31324 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
31325 * RichTextBox.cs: FormatText position arguments are 1-based, now making
31326 sure that what we pass to FormatText is always 1-based. Fixes #76885
31328 2005-11-29 Miguel de Icaza <miguel@novell.com>
31330 * NumericUpDown.cs (EndInit): When we are done initializing,
31331 reflect any updates on the UI.
31333 2005-12-02 Jackson Harper <jackson@ximian.com>
31335 * ImplicitHScrollBar.cs:
31336 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
31337 their container controls.
31338 * TreeView.cs: Use the new implicit scrollbars.
31340 2005-12-02 Jackson Harper <jackson@ximian.com>
31342 * TreeView.cs: Make top_node internal so the TreeNodeCollections
31344 * TreeNodeCollection.cs: If we remove the topnode we need to
31345 update topnode to the next node in line.
31346 - When clearing nodes go through the same process as removing
31347 them, so they get depareneted and checked if they are top node.
31349 2005-12-01 Jackson Harper <jackson@ximian.com>
31351 * TreeView.cs: When imagelists are used the image area is
31352 selectable as well as the text.
31353 - If there are no selected nodes select the first one.
31354 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
31355 so don't do it more then we need to.
31357 2005-12-01 Jackson Harper <jackson@ximian.com>
31359 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
31360 that arrows can be scaled.
31362 2005-12-01 Jackson Harper <jackson@ximian.com>
31364 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
31365 fail. Patch by Dieter Bremes
31367 2005-11-30 Jackson Harper <jackson@ximian.com>
31369 * Form.cs: Property is 2.0 only
31370 * PrintDialog.cs: Signature fix.
31372 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
31375 - No longer artificially moves text 2 pixels down (now that we have
31376 borders this is no longer needed)
31377 - Added calcs for left, hanging and right indent
31379 2005-11-23 Mike Kestner <mkestner@novell.com>
31381 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
31383 2005-11-30 Jackson Harper <jackson@ximian.com>
31385 * MdiChildContext.cs: Set the cloned menus forms, as these don't
31386 get cloned as part of CloneMenu ().
31387 * Menu.cs: Make sure the parent of the items get set correctly
31388 when they are added. And the owners are notified of the changes.
31389 * Form.cs: Create an ActiveMenu property, so that when MDI is used
31390 we can change the menu being displayed/handled by the form without
31391 changing the menu assosciated with the form.
31392 - Don't let Mdi children draw/handle menus.
31394 2005-11-30 Jackson Harper <jackson@ximian.com>
31396 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
31397 a MenuChanged event. Just to make the API a little more
31400 * MenuItem.cs: Use the new OnMenuChanged
31401 * MdiChildContext.cs: Handle menu merging.
31402 * Form.cs: Implement MergedMenu.
31404 2005-11-30 Jackson Harper <jackson@ximian.com>
31406 * Menu.cs: We were misusing Add. Add goes behind the specified
31407 index according to the docs, and does not replace the specified
31408 index. So I added an Insert method.
31410 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
31412 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
31413 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
31415 * RichTextBox.cs: Added calls to base for DnD events
31417 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
31420 - Fixed drag-selection related crash; style fixes
31421 - Implemented undo class
31422 o Implemented method to capture document state for specified
31423 range in document tree
31424 o Implemented method to restore captured document state
31425 o Implemented cursor tracking
31426 o Implemented basic undo stack
31427 - Added undo cursor tracking to methods altering cursor location
31428 - Added undo tracking to selection deletion (still missing
31429 other text-altering hookups)
31431 - Added SelectionLength property
31432 - Implemented CanPaste()
31433 - Implemented Paste()
31434 - Added missing protected methods
31435 - Fixed RTF->Document conversion; now uses font index 0 and color
31436 index 0 as the default font for the parsed text
31437 - Fixed RTF<->Document font size translation
31438 - Fixed RTF generation, now properly handles cross-tag boundaries
31439 for single line selection
31440 - No longer always appends blank line to generated RTF
31442 - Added missing attributes
31443 - Hooked up undo-related methods
31445 - Implemented Copy()
31446 - Implemented Paste()
31447 - Implemented Cut()
31448 - Fixed caret mis-behaviour on backspace across line-boundaries
31450 2005-11-29 Jackson Harper <jackson@ximian.com>
31452 * MdiClient.cs: Add a method for activating mdi children. Very
31453 basic right now. I imagine someday it might need more girth.
31454 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
31455 children windows names are added to the menu item.
31456 * ThemeWin32Classic.cs: Draw the arrow if the item is an
31457 mdilist. This happens regardless of whether or not there are any
31458 mdi windows to see in the list, and according to my tests happens
31459 before the items are even added. Also happens if there isn't even
31460 an mdi client to get windows from.
31462 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
31464 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
31465 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
31467 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
31469 * DataGridTableStyle.cs:
31470 - Create always the styles for the missing columns even if they are
31471 provided by the user (not default table style)
31474 - Fixes SetDataBinding (always re-attach source)
31475 - Fixes SetNewDataSource (only clear styles if they are not for
31477 - Expands OnTableStylesCollectionChanged to handle style refresh
31478 and remove properly
31480 2005-11-29 Jackson Harper <jackson@ximian.com>
31482 * FileDialog.cs: Implement missing bits, remove some dead
31484 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
31485 creation of the panel so that the options set on the dialog are
31486 seen when the panel is created.
31487 * TreeView.cs: raise a click when items are clicked.
31489 2005-11-29 Jackson Harper <jackson@ximian.com>
31491 * MdiClient.cs: Pass some signature methods through to base.
31493 2005-11-28 Jackson Harper <jackson@ximian.com>
31495 * ListView.cs: Raise the click event when items are clicked.
31497 2005-11-28 Jackson Harper <jackson@ximian.com>
31499 * MdiClient.cs: Make this algorithm even more beautiful. And fix
31502 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
31504 * ThemeNice.cs: - Removed 1 pixel bitmaps
31505 - Use SmoothingMode.AntiAlias where it makes sense
31506 (ScrollButton arrow for example)
31507 - Enhanced Button focus drawing
31508 - Fixed ComboBox drawing (no artefacts anymore, focus
31509 rectangle is back again, reduced size of ComboButton, etc.)
31510 - Fixed RadioButton focus drawing for Appearence.Button
31511 - Slight ScrollButton redesign
31512 - Some LinearGradientBrush size fixes
31513 - GroupBoxes have now rounded edges
31514 - Fixed StatusBar drawing
31516 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
31518 * ThemeNice.cs: - Remove dead code
31519 - use correct background colors for menus, etc.
31520 - Fake pixel drawing with 1 pixel bitmaps
31522 2005-11-24 Jackson Harper <jackson@ximian.com>
31524 * MdiClient.cs: Size the scrollbars when resizing the window.
31525 - Resize the maximized windows when the client is resized
31526 * Form.cs: Make the child context available
31528 2005-11-23 Jackson Harper <jackson@ximian.com>
31530 * MdiChildContext.cs: Don't size windows if they are maximized.
31532 2005-11-23 Mike Kestner <mkestner@novell.com>
31534 * ContextMenu.cs: use MenuTracker.
31535 * Control.cs: remove menu handle usage.
31536 * Form.cs: remove menu handle usage.
31537 * Hwnd.cs: remove menu handle usage.
31538 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
31539 motion and clicks to the new Tracker handlers.
31540 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
31542 * MenuAPI.cs: refactored to combine popup and menubar event handling.
31543 Killed the MENU and MENUITEM data types and associated collections
31544 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
31545 MenuTracker class that exposes the leftovers from the old MenuAPI
31546 static methods. Restructured Capture handling so that only one grab is
31547 done for the entire menu hierarchy instead of handing off grabs to
31548 submenus. Tracker now has an invisible control to Capture when active.
31549 * MenuItem.cs: add sizing accessors, kill Create
31551 * Theme.cs: remove menu handle and MENU(ITEM) usage.
31552 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
31553 MENU(ITEM). remove menu handle usage, use Menu directly.
31554 * XplatUIDriver.cs: remove menu handle usage.
31555 * XplatUIOSX.cs: remove menu handle usage.
31556 * XplatUIWin32.cs: remove menu handle usage.
31557 * XplatUIX11.cs: remove menu handle usage.
31559 2005-11-22 Jackson Harper <jackson@ximian.com>
31561 * Hwnd.cs: Don't compute the menu size for
31562 DefaultClientRectangle.
31563 - Reenable menu sizes being computed for GetClienRectangle.
31564 * Form.cs: Remove comment of trechery
31566 2005-11-22 Jackson Harper <jackson@ximian.com>
31568 * Hwnd.cs: The adjustments for the menu bar are made when it is
31569 attached to the form.
31571 2005-11-19 Jackson Harper <jackson@ximian.com>
31573 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
31574 (just like on windows).
31576 2005-11-19 Jackson Harper <jackson@ximian.com>
31578 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
31579 use real buttons anymore because they are in non client area. The
31580 one TODO here is that I need to somehow invalidate a section of
31581 the non client area.
31583 2005-11-18 Jackson Harper <jackson@ximian.com>
31585 * Control.cs: Put the enum check back in now that MDI doesnt have
31586 to use this to set border styles.
31587 * Form.cs: Only set mdi child windows borders if the handle has
31589 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
31590 this directly on to the driver.
31591 - Get the move start position before adjusting for the titlebar
31592 height, this fixes the windows "skipping" when they are first
31595 2005-11-18 Jackson Harper <jackson@ximian.com>
31597 * XplatUIX11.cs: Just compute the mdi borders separately as they
31598 don't totally match up with normal form borders.
31600 2005-11-18 Jackson Harper <jackson@ximian.com>
31602 * Control.cs: Set WS_ styles for borders, so that the driver does
31603 not have to retrieve the control instance to figure out what kind
31604 of borders it should have.
31605 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
31606 driver can know its an mdi child easily.
31607 * XplatUIX11.cs: Get the border styles and whether the window is
31608 MDI from the Styles and ExStyles params instead of having to get a
31609 control. This prevents a chicken and egg problem.
31611 2005-11-18 Jackson Harper <jackson@ximian.com>
31613 * MdiClient.cs: Fix typo so scrollbars show up correctly.
31615 2005-11-18 Jackson Harper <jackson@ximian.com>
31617 * MdiClient.cs: Calculate when to add and remove scrollbars
31619 * MdiChildContext.cs: Adjust the y position to take the titlebar
31621 - No height for FormBorderStyle.None
31623 2005-11-18 Jackson Harper <jackson@ximian.com>
31625 * Control.cs: Allow non enum values to be used for
31626 InternalBorderStyle. MDI does this to set a special border style.
31627 - New utility methods for converting points to/from client coords
31628 - Add the newly created control to the Controls collection before
31629 updating its style. This way UpdateStyle can walk the control
31630 heirarchy to find the control if needed.
31631 so I don't need to create a new Point object all the time.
31632 * Form.cs: Let MDI windows handle their border styles.
31633 - Set styles on MDI windows so the correct title style is derived.
31634 * MdiChildContext.cs: Move all the painting and window handling
31635 into the non client area.
31636 - Use correct sizing and put correct buttons on frames based on
31637 the FormBorderStyle.
31638 - Notify the mdi client about scrolling
31639 - Need to handle the buttons ourselves now, because they are all
31640 in non client areas and we can't add controls there.
31641 * MdiClient.cs: Halfway to scrolling, this implementation is
31642 somewhat broken though, we need to check to make sure other
31643 windows aren't causing scrolling before removing the bars. Also
31644 the bars need to be drawn on top, maybe I can switch implicit
31645 controls to be on top.
31646 * Hwnd.cs: caption_height and tool_caption_height are now
31647 properties of an hwnd, this way they can be set by the driver
31648 based on the type of window they are. In X11 the window manager
31649 handles the decorations so caption_height is zero unless its an
31651 - Add 3 pixel borders for MDI windows (0xFFFF).
31652 - Get rid of some code duplication, have DefaultClientRectanle
31653 just call GetClientRectangle.
31654 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
31656 - Set border styles differently for mdi windows.
31657 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
31660 2005-11-15 Mike Kestner <mkestner@novell.com>
31662 * Menu.cs: when adding an item to the collection, if item is already
31663 parented, remove it from the parent.
31665 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
31667 * X11DesktopColors.cs: Added KDE support
31669 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
31672 - Clipboard methods now can translate Rtf format
31673 - No longer removes clipboard contents whenever a new format is added
31674 to allow placing multiple formats on the clipboard
31675 * Clipboard.cs: Clipboard now supports getting a IDataObject and
31676 will place all formats contained in it onto the clipboard. Also
31677 now cleans the clipboard before placing a new object onto it
31679 - Implemented set_Rtf
31680 - Implemented set_SelectedRtf
31681 - Created InsertRTFFromStream() method to allow single code base
31682 for all properties and methods that insert RTF into document
31683 - Removed debug output
31685 - Fixed Delete(int) to fix up line numbers
31686 - Fixed ReplaceSelection to combine start and end line
31687 - Fixed serious DeleteChars bug that would leave the document tree
31689 - Improved DumpTree with several logic checks to detect broken
31691 - Removed debug lines
31692 - Fixed Caret.WordForward/WordBack moving code, now always also
31693 updates caret.tag (fixes crash when word-selecting across tag
31694 boundaries via keyboard)
31695 - Added Insert() method for inserting multiline text into documents
31696 - Fixed DeleteChars() calculation errors that would cause a broken
31697 tag chain with multiple tag lines
31698 - DeleteChars() no longer crashes on multi-tag lines if not all tags
31699 - Split() no longer moves caret if split is at caret location
31700 - ReplaceSelection() now updates the cursor and re-displays it
31701 - ReplaceSelection() now uses new Insert() method to avoid code
31703 - FormatText() can now handle formatting partial lines
31705 - Append now uses new TextControl.Insert() method (this avoids
31707 - Implemented Ctrl-X (Cut) (
31708 - Implemented Ctrl-C (Copy)
31709 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
31710 regeneration when pasting text; roundtripping Copy&Paste within
31711 edit control still fails due to some calculation bugs in GenerateRTF)
31712 - The Delete key will now remove the current selection if it is visible
31713 * TextBox.cs: Removed debug lines
31714 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
31715 driver to be initialized and can't therefore be done via a static ctor)
31717 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
31719 * TextControl.cs: Added backend code for finding char arrays and strings
31721 - Added mouse wheel scroll support
31722 - Added support for VScroll and HScroll events
31724 - Implemented all seven Find() variants
31725 - Implemented GetCharFromPosition()
31726 - Implemented GetCharIndexFromPosition()
31727 - Implemented GetLineFromIndex()
31728 - Implemented GetPositionFromCharIndex();
31729 - Implemented SaveFile for PlainText and UnicodeText
31730 - Fixed set_Font, now setting a new font applies that font to
31732 - Implemented generic Document to RTF converter
31733 - Implemented SaveFile for RichText format (still missing unicode
31734 conversion for non-ansi chars)
31735 - Implemented get_Rtf
31736 - Implemented get_SelectedRtf
31738 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
31740 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
31741 to allow any captures to be released before triggering OnClick. This
31742 way a click handler may capture the mouse without interference.
31743 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
31744 This way we send them even though X may not allow a grab (if the window
31745 isn't visible, for example)
31747 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
31749 * DataGridViewRowEventArgs.cs: DataGridView implementation
31750 * DataGridViewElement.cs: DataGridView implementation
31751 * DataGridViewComboBoxCell.cs: DataGridView implementation
31752 * DataGridViewDataErrorContexts.cs: DataGridView implementation
31753 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
31754 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
31755 * ImageLayout.cs: DataGridView implementation
31756 * DataGridViewComboBoxColumn.cs: DataGridView implementation
31757 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
31758 * DataGridViewSelectionMode.cs: DataGridView implementation
31759 * IDataGridViewEditingControl.cs: DataGridView implementation
31760 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
31761 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
31762 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
31763 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
31764 * DataGridViewColumnSortMode.cs: DataGridView implementation
31765 * DataGridView.cs: DataGridView implementation
31766 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
31767 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
31768 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
31769 * Padding.cs: DataGridView implementation
31770 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
31771 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
31772 * DataGridViewRowEventHandler.cs: DataGridView implementation
31773 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
31774 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
31775 * DataGridViewButtonCell.cs: DataGridView implementation
31776 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
31777 * DataGridViewEditMode.cs: DataGridView implementation
31778 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
31779 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
31780 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
31781 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
31782 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
31783 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
31784 * DataGridViewCellEventHandler.cs: DataGridView implementation
31785 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
31786 * DataGridViewCellStyleConverter.cs: DataGridView implementation
31787 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
31788 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
31789 * DataGridViewColumnEventArgs.cs: DataGridView implementation
31790 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
31791 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
31792 * QuestionEventArgs.cs: DataGridView implementation
31793 * IDataGridViewEditingCell.cs: DataGridView implementation
31794 * DataGridViewTriState.cs: DataGridView implementation
31795 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
31796 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
31797 * DataGridViewColumnCollection.cs: DataGridView implementation
31798 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
31799 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
31800 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
31801 * DataGridViewColumn.cs: DataGridView implementation
31802 * DataGridViewCellBorderStyle.cs: DataGridView implementation
31803 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
31804 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
31805 * DataGridViewRow.cs: DataGridView implementation
31806 * DataGridViewImageCellLayout.cs: DataGridView implementation
31807 * DataGridViewImageCell.cs: DataGridView implementation
31808 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
31809 * DataGridViewCheckBoxCell.cs: DataGridView implementation
31810 * DataGridViewHeaderCell.cs: DataGridView implementation
31811 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
31812 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
31813 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
31814 * DataGridViewTextBoxColumn.cs: DataGridView implementation
31815 * QuestionEventHandler.cs: DataGridView implementation
31816 * DataGridViewCellStyleScopes.cs: DataGridView implementation
31817 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
31818 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
31819 * DataGridViewCell.cs: DataGridView implementation
31820 * DataGridViewCellEventArgs.cs: DataGridView implementation
31821 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
31822 * DataGridViewCellStyle.cs: DataGridView implementation
31823 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
31824 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
31825 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
31826 * TextFormatFlags.cs: DataGridView implementation
31827 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
31828 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
31829 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
31830 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
31831 * DataGridViewButtonColumn.cs: DataGridView implementation
31832 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
31833 * HandledMouseEventArgs.cs: DataGridView implementation
31834 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
31835 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
31836 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
31837 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
31838 * DataGridViewRowCollection.cs: DataGridView implementation
31839 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
31840 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
31841 * DataGridViewHitTestType.cs: DataGridView implementation
31842 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
31843 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
31844 * DataGridViewColumnEventHandler.cs: DataGridView implementation
31845 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
31846 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
31847 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
31848 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
31849 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
31850 * DataGridViewContentAlignment.cs: DataGridView implementation
31851 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
31852 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
31853 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
31854 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
31855 * DataGridViewPaintParts.cs: DataGridView implementation
31856 * DataGridViewCellCollection.cs: DataGridView implementation
31857 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
31858 * DataGridViewImageColumn.cs: DataGridView implementation
31859 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
31860 * DataGridViewElementStates.cs: DataGridView implementation
31861 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
31862 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
31863 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
31864 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
31865 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
31866 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
31867 * DataGridViewRowHeaderCell.cs: DataGridView implementation
31868 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
31869 * DataGridViewTextBoxCell.cs: DataGridView implementation
31870 * DataGridViewBand.cs: DataGridView implementation
31871 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
31872 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
31873 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
31874 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
31875 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
31876 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
31877 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
31878 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
31879 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
31880 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
31881 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
31883 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
31885 * ThemeWin32Classic.cs:
31886 - Draw the outside focus rectangle around buttons
31887 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
31888 doesn't use end caps for every dash of a line anymore. This
31889 workaround ignores the forecolor.
31891 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
31893 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
31896 2005-11-07 Jackson Harper <jackson@ximian.com>
31898 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
31900 2005-11-07 Jackson Harper <jackson@ximian.com>
31902 * ScrollableControl.cs: Calculate the maximum and change vars
31903 (more) correctly so that scrollbars appear as a sensible size.
31905 2005-11-04 Jackson Harper <jackson@ximian.com>
31907 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
31909 * TreeView.cs: When the tree is sorted null out the top_node so
31910 that it is recalculated.
31911 - Use dotted lines instead of dashed lines to match MS better.
31913 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
31916 - Implements key search for items. Useful when browsing files with FileDialog
31917 - When changing view mode or when clear the items reset scrollbar positions
31919 2005-11-04 Jackson Harper <jackson@ximian.com>
31921 * CurrencyManager.cs: Implement the MetaDataChanged event, the
31922 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
31923 as to what the method may do as there is no real way of creating a
31924 derived CurrencyManager and calling the method.
31926 2005-11-03 Jackson Harper <jackson@ximian.com>
31928 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
31929 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
31930 method which seems to just be used internally to refresh the tabs.
31932 2005-11-03 Jackson Harper <jackson@ximian.com>
31934 * TabControl.cs: Implement the remove method. Fix some broken
31937 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
31939 * DateTimePicker.cs:
31940 - Added missing DateTimePickerAccessibleObject class
31941 - Added missing events
31942 - Added OnFontChanged method
31943 * Form.cs: Added missing attributes
31944 * TreeView.cs: Added missing attributes
31946 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
31948 * GridItemCollection.cs: Fix signatures
31950 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
31952 * XplatUI.cs: Updated build rev/date
31953 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
31954 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
31955 * Application.cs: Trigger context-specific ExitThread events
31957 2005-11-03 Jackson Harper <jackson@ximian.com>
31961 * GridTableStylesCollection.cs:
31966 * MonthCalendar.cs: Signature fixes
31968 2005-11-03 Jackson Harper <jackson@ximian.com>
31970 * TreeNodeCollection.cs: Remove should not be virtual.
31971 * TreeView.cs: Implement the last of the missing methods.
31973 2005-11-03 Jackson Harper <jackson@ximian.com>
31975 * TreeNodeConverter.cs: Implement to get off my class-status back.
31977 2005-11-03 Jackson Harper <jackson@ximian.com>
31979 * TreeView.cs: Hookup the bits for drag and drop.
31980 * TreeNode.cs: Don't cache the tree_view or index anymore, now
31981 that nodes can be moved from tree to tree easily this just causes
31982 all sorts of problems.
31983 * TreeNodeCollection: Don't need to give treenodes an index and
31984 treeview anymore when they are added, these are computed on the
31985 fly. Also make sure to remove a node before its added.
31987 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
31990 - Added CaretSelection enum
31991 - Added comparison methods to Marker struct, makes selection code
31993 - Added SelectionStart and SelectionEnd as 'moveable' location for
31994 the CaretDirection enum and handler
31995 - Added selection_prev variable to track optimized invalidation for
31996 word and line selection
31997 - Added SelectionVisible property (returns true if there is a valid
31999 - Switched CaretHasFocus to only display the caret if there is no
32001 - Avoiding StringBuilder.ToString to retrieve a single char, instead
32002 using the direct character index; should be much faster
32003 - Added various conditional debug statements
32004 - Fixed invalidation calculation for selection ranges
32005 - Added ExpandSelection() method to support word and line selection
32006 - Switched SetSelectionToCaret to use new Marker compare overloads
32007 - Added central IsWordSeparator() method to determine word
32008 separators/whitespace and FindWordSeparator() to streamline common
32009 usage of IsWordSeparator()
32011 - Removed unneeded grabbed variable, it was just mirroring
32013 - No longer firing OnTextChanged event when Text setter is called,
32014 since the base will fire the event for us
32015 - Added handling of Ctrl-Up/Down selection
32016 - Added handling of Shift-Cursorkey selection
32017 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
32019 - Added handling of Shift and Ctrl-Shift-Home/End selection
32020 - Removed some debug output
32021 - Added handling for single/double/tripple-click to place caret/
32022 select word/select line respectively (Fixes bug #76031)
32023 - Added support for drag expansion of word/line selection
32024 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
32027 2005-11-02 Jackson Harper <jackson@ximian.com>
32029 * X11Dnd.cs: If the drag is going to and from a MWF window just
32030 copy the data instead of sending it out through the X Selection
32033 2005-11-02 Jackson Harper <jackson@ximian.com>
32036 * XplatUIX11.cs: When in a drag we don't want motion notify
32037 messages to get passed on to the other controls. This prevents
32038 mouse move messages from showing up in the drag source.
32040 2005-11-02 Jackson Harper <jackson@ximian.com>
32042 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
32043 the correct button is release to end a drag.
32044 * XplatUIX11.cs: Make the button state internal so the drag system
32045 can access it. Dragging needs to know about all button releases,
32046 not just left button.
32048 2005-11-02 Miguel de Icaza <miguel@novell.com>
32050 * Form.cs (Icon): If the icon is null, reset the icon to the
32053 * Cursor.cs: When writing the AND-mask bitmap do not include the
32054 number of colors, but hardcode those to two (black and white),
32055 fixes the loading of color cursors (Paint Dot Net).
32057 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
32058 turn off autoscaling.
32060 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
32062 2005-11-02 Jackson Harper <jackson@ximian.com>
32064 * X11Dnd.cs: Make sure to send a status message if the pointer
32065 enters a control that can not accept a drop, otherwise the cursor
32066 isn't updated correctly. Also tried to compress the lines of code
32069 2005-11-02 Jackson Harper <jackson@ximian.com>
32071 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
32072 set actions correctly. This isn't perfect as XDND and win32 have
32073 some differences on how you allow actions. I'll clear this up by
32074 adding a path for drag from MWF to MWF windows.
32075 * XplatUIX11.cs: Hook into the dnd system.
32077 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
32079 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
32080 previously shown but they are no longer need it. Very obvious when
32081 browsing files with FileDialog.
32083 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
32085 * Control.cs: We always need to call OnPaintBackground. We pretty much
32086 ignore AllPaintingInWmPaint and always do the painting there, whether
32087 it's set or not, since we always ignore the WM_ERASEBKGND message
32088 (which we don't generate on X11). This fixes #76616.
32089 * Panel.cs: Removed unneeded background painting. This happens properly
32090 in Control.cs already
32092 2005-10-31 Mike Kestner <mkestner@novell.com>
32094 * Menu.cs: Add items to collection before setting their index.
32095 * MenuItem.cs : add range checking with ArgumentException like MS.
32098 2005-10-31 Jackson Harper <jackson@ximian.com>
32100 * ListBox.cs: Invalidate if the area is visible at all not just
32101 contained in the visible rect. Fixes unselection of semi visible
32104 2005-10-31 Jackson Harper <jackson@ximian.com>
32106 * Control.cs: Consistently name the dnd methods. Make them
32107 internal so we can override them to match some MS behavoir
32109 * Win32DnD.cs: Use the new consistent names.
32111 2005-10-31 Jackson Harper <jackson@ximian.com>
32113 * TreeView.cs: Don't draw the selected node when we lose focus.
32115 2005-10-31 Jackson Harper <jackson@ximian.com>
32117 * X11Dnd.cs: We still need to reset the state even though a full
32118 reset isn't being done, otherwise status's still get sent all over
32121 2005-10-31 Jackson Harper <jackson@ximian.com>
32123 * Control.cs: Make the dnd_aware flag internal so the dnd
32124 subsystem can check it. Catch exceptions thrown in dnd handlers to
32126 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
32127 * X11Dnd.cs: Handle null data in the converters. Set the XDND
32128 version when sending a XdndEnter. Use the control/hwnd dnd_aware
32129 flags to reduce the number of dnd enters/status's sent.
32131 2005-10-31 Jackson Harper <jackson@ximian.com>
32133 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
32135 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
32137 * PictureBox.cs: Fixes 76512
32139 2005-10-28 Jackson Harper <jackson@ximian.com>
32141 * X11Dnd.cs: Early implementation to support winforms being a drag
32142 source for data on X11. Also restructured the converters so they
32143 can go both ways now.
32144 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
32146 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
32148 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
32151 2005-10-27 Jackson Harper <jackson@ximian.com>
32153 * TreeNode.cs: Implement serialization so my DnD examples will work.
32155 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
32157 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
32158 TreeView.cs: Don't dispose objects that are not owned.
32160 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
32162 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
32163 should retrieve the current cursor and report that, but XplatUI
32164 doesn't (yet) have an interface for that (and I'm not sure I even
32166 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
32167 until any message loop processing is done (and the WM_SETCURSOR
32168 replaces the cursor to the proper one)
32170 - Fixed override behaviour, we can't set the cursor globally on X11,
32171 just for our windows.
32172 - Invalidating the System.Drawing X11 display handle when we are
32174 * Control.cs: Fix to make csc happy
32176 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
32179 - get_Text: Add last line (without trailing newline) to returned
32180 value (Fixes 76212)
32181 - get_TextLength: Count last line in returned length
32182 - ToString: Call Text property instead of duplicating code
32184 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
32186 * ImageList.cs: Dispose ImageAttributes objects.
32188 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
32190 * ImageList.cs: Use attribute constructors with less arguments where
32193 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
32195 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
32196 Use typeof instead of strings when assembly is referenced. Added
32197 some more comments.
32199 2005-10-21 Jackson Harper <jackson@ximian.com>
32201 * ListView.cs: Raise a double click event. Also tried to somewhat
32202 fix when the selectedindexchanged event is raised. Its still
32205 2005-10-21 Jackson Harper <jackson@ximian.com>
32207 * TreeView.cs: New method to invalidate the plus minus area of a
32208 node without invalidating the whole node (maybe this can be used
32209 in some more places).
32210 * TreeNodeCollection.cs: When adding to an empty node we need to
32211 invalidate its plus minus area so the little block shows up.
32213 2005-10-21 Jackson Harper <jackson@ximian.com>
32215 * TreeView.cs: Make sure that when we invalidate a node the bounds
32216 are big enough to cover the selected box and the focus
32217 rectangle. Use a different colour for the lines connecting nodes
32218 so they show up with all themes.
32220 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
32222 * NativeWindow.cs: Don't call anything that could call into the driver,
32223 we might be on a different thread.
32225 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
32227 * Control.cs(Dispose): Since Dispose might run on a different thread,
32228 make sure that we call methods that could call into the driver via
32229 invoke, to avoid thread issues
32231 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
32233 * XplatUI.cs: Removed finalizer
32234 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
32235 not allowing to be called on the finalizer thread.
32237 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
32240 - Reverted r51889 and r51891.
32241 - Added ImageListItem class that stores unmodified image items and image
32242 properties required to create list images until handle is created.
32243 - Added AddItem and moved image creation logic to AddItemInternal.
32244 - Added CreateHandle method that creates images based on unmodified items.
32245 - Added DestroyHandle that changes state to store unmodified items.
32246 - Add and AddStrip methods no more create handle.
32247 - ReduceColorDepth has no return value.
32248 - Dispose destroys handle.
32249 - Modified other methods to reflect the above changes.
32250 - Implemented key support.
32251 - Added profile 2.0 members and attributes.
32252 - Added private Reset and ShouldSerialize methods that provide the same
32253 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
32254 them as they are private.
32255 - Added some more comments about implementation details.
32257 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
32259 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
32261 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
32263 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
32265 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
32267 * DataGridDrawingLogic.cs: Fixes column hit calcultation
32268 * DataGridColumnStyle.cs: Remove debug message
32270 2005-10-20 Jackson Harper <jackson@ximian.com>
32272 * TreeView.cs: We can always get input keys regardless of whether
32273 or not editing is enabled. They are used for navigation.
32275 2005-10-20 Jackson Harper <jackson@ximian.com>
32277 * TreeNode.cs: Use the viewport rect for determining if a node
32278 needs to be moved for visibility. Don't use Begin/End edit. This
32279 calls a full refresh when its done.
32280 * TreeView.cs: New SetBottom works correctly. Make the viewport
32281 rect property internal so the treenodes can see it. When clicking
32282 on a node we need to ensure that its visible because it might just
32283 be partly visible when clicked.
32285 2005-10-20 Jackson Harper <jackson@ximian.com>
32287 * TreeNodeCollection.cs: Remove debug code.
32289 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
32291 * Datagrid.cs: Implements column sorting in Datagrid
32292 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
32294 2005-10-20 Jackson Harper <jackson@ximian.com>
32296 * TreeNodeCollection.cs: Remove items properly. Update the correct
32297 area after removing them.
32299 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
32301 * Datagrid.cs: Should not call base.OnPaintBackground
32303 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
32305 * XplatUIX11.cs (GetMessage):
32306 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
32307 window instead of client window
32308 - Now properly calculates NC_xBUTTONUP message coordinates
32309 - ScreenToMenu now properly calculates it's coordinates of whole
32310 window, since menus are in the whole window, not in the client
32312 - Added WholeToScreen coordinate translation method
32314 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
32316 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
32317 want to return a message, loop back to the beginning of the function
32318 and grab the next real message to process instead.
32320 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
32322 * Splitter.cs: Properly set limits if no filler control is used
32324 2005-10-19 Jackson Harper <jackson@ximian.com>
32326 * ColorDialog.cs: Don't show the help button if it is not enabled
32327 instead of disabling it (this is what MS does). Don't create the
32328 panel until the dialog is run, otherwise the vars (such as
32329 ShowHelp) are not set yet.
32331 2005-10-19 Jackson Harper <jackson@ximian.com>
32333 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
32334 are reduced when adding nodes.
32336 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
32339 2005-10-19 Jackson Harper <jackson@ximian.com>
32341 * FolderBrowserDialog.cs: End editing our treeview so the window
32342 actually gets refreshed.
32344 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
32346 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
32347 Obsoleted handling of WM_ERASEBKGND, now always draws our background
32350 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
32352 * MenuAPI.cs: Returns after Hidding window
32353 * XplatUIX11.cs: Added TODO found while debugging menu issues
32355 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
32357 * XplatUIX11.cs: Do not re-map the whole window when it's size
32358 becomes non-zero unless it's supposed to be actually visible
32360 2005-10-18 Jackson Harper <jackson@ximian.com>
32362 * TreeView.cs: We don't need to keep a count anymore.
32363 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
32364 use the Grow method.
32366 2005-10-18 Jackson Harper <jackson@ximian.com>
32368 * TreeNodeCollection.cs: Insert is not supported on arrays, so
32369 implement it manually here.
32371 2005-10-18 Jackson Harper <jackson@ximian.com>
32373 * ImageList.cs: Dont kill the list when the colour depth is
32374 changed, just change the colour depth of all the images.
32375 - Same goes for setting the image size. Just resize them all
32376 instead of killing the list softly.
32378 2005-10-18 Jackson Harper <jackson@ximian.com>
32380 * Control.cs: Don't invalidate empty rectangles.
32382 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
32385 - Adds checked item to the Checked/Item lists (where empty before)
32386 - Do not add items to the Selected lists if they are already present
32388 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
32389 - When deleting items make sure that we delete them for the Selected
32390 and Checked list also.
32392 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
32394 * Label.cs: Dispose objects no longer used
32395 * ThemeWin32Classic.cs: Dispose objects no longer used
32397 2005-10-18 Jackson Harper <jackson@ximian.com>
32399 * TabControl.cs: Don't refresh the whole control when the tabs are
32400 scrolled, we just need to refresh the tab area.
32402 2005-10-17 Jackson Harper <jackson@ximian.com>
32404 * XplatUIX11.cs: Compress code a little bit. Only calculate the
32405 after handle when we need it.
32407 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
32409 * Control.cs: When the parent size changes, recalculate anchor
32410 positions. Partial fix for #76462
32412 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
32414 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
32415 drawn. Fixes #76462
32417 2005-10-17 Jackson Harper <jackson@ximian.com>
32419 * MonthCalendar.cs: Don't create the numeric up down until our
32420 handle is created. Otherwise our handle is created in the
32421 constructor and we don't know if we are a WS_CHILD or WS_POPUP
32424 2005-10-17 Jackson Harper <jackson@ximian.com>
32426 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
32429 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32430 * TreeNode.cs : small logical fix (was using local var instead of field)
32432 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
32434 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
32436 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
32438 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
32440 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
32443 - Re-implemented anchoring code. My first version was really broken.
32444 This fixes bug #76033. Unlike the previous implementation we will
32445 no longer have round errors since all numbers are calculated from
32446 scratch every time. Removed various anchor-related obsolete vars.
32447 - InitLayout no longer causes layout event firing and layout to be
32450 2005-10-16 Jackson Harper <jackson@ximian.com>
32452 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
32455 2005-10-16 Jackson Harper <jackson@ximian.com>
32457 * TabControl.cs: Remove debug code.
32459 2005-10-16 Jackson Harper <jackson@ximian.com>
32461 * XEventQueue.cs: Increase the default queue size (very simple
32462 apps needed to grow the queue).
32463 * Hwnd.cs: No finalizer so we don't need to suppress
32464 finalization. Compute the invalid area manually so a new rectangle
32465 does not newto be created.
32466 * ScrollableControl.cs: Don't set any params (otherwise visibility
32467 isn't set correctly).
32468 * MdiChildContext.cs: New constructor takes the mdi parent so it
32469 doesn't have to be computed and avoids a crash on windows. Draw
32470 the window icon properly, and allow the text to be seen.
32471 * Form.cs: Use new MdiChildContext constructor. Make sure the
32472 child context isn't null in wndproc.
32473 * TabControl.cs: Don't set focus, this is muddling keyboard
32474 behavoir. Expand the tab rows when a window size increase will
32475 allow extra tabs to be seen. Don't allow tabs smaller than the
32476 width of a window to be scrolled out of view.
32478 * TreeView.cs: Use measure string to calculate a nodes width, the
32479 width is cached and only updated when the text or the font is
32480 changed. Don't check for expand/collapse clicks on the first level
32481 nodes if root lines are disabled.
32483 2005-10-16 Ritvik Mayank <mritvik@novell.com>
32485 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
32487 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
32489 * DataGridBoolColumn.cs: fixes warning
32491 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
32493 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
32494 to match more to match more precisely the MS Net behavior
32496 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
32498 * Hwnd.cs: Added field to track if window is mapped
32500 - Unmap windows if they become 0-size, re-map when
32501 they are >0 again; fixes #76035
32502 - Re-set our error handler after initializing X11Desktop
32503 to override any error handlers Gtk or whatever was called
32506 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
32508 * CheckedListBox.cs: Removed unused vars
32509 * ListView.cs: Fixed signatures
32510 * RichTextBox.cs: Removed unused vars
32511 * TextBoxBase.cs: Removed unused vars
32512 * XplatUIWin32.cs: Removed unused vars
32513 * XplatUIX11.cs: Removed unused vars
32514 * XplatUI.cs: Updated version and date to latest published
32516 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
32518 * Cursor.cs: Added private .ctor to work around a bug in
32519 resourceset (Thanks to Geoff Norton for the help on this)
32520 * SplitterEventArgs.cs: Made fields accessible so we don't
32521 waste boatloads of objects and can reuse the same one
32523 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
32524 any captions and borders when generating screen coordinates
32525 * Splitter.cs: Reimplemented control, now fully complete, uses
32526 rubberband drawing, supports and obeys all properties, has
32529 2005-10-13 Miguel de Icaza <miguel@novell.com>
32531 * Form.cs (Form): Setup default values for autoscale and
32532 autoscale_base_size; Make these instance variables, not static
32535 (OnLoad): on the first load, adjust the size of the form.
32537 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
32539 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
32540 width argument to DrawReversibleRectangle()
32541 * XplatUIWin32.cs, XplatUIX11.cs:
32542 - Implemented width for DrawReversibleRectangle()
32543 - Added logic to DrawReversibleRectangle that recognizes a zero
32544 width or height and only draws a line in that situation
32546 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
32548 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
32549 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
32550 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
32551 method (it uses our FosterParent window to get a graphics context)
32553 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
32555 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
32556 and SetWindowBackground methods
32558 - Setting proper ControlStyles
32559 - We no longer call XplatUI.SetWindowBackground and XplatUI.
32560 EraseWindowBackground, instead we draw the window background
32561 ourselves in PaintControlBackground. This behaviour is
32562 required to match MS, where, when OnPaintBackground is not
32563 called, the background is not drawn.
32564 - Removed unneeded Refresh() in set_Text
32565 * Hwnd.cs: Dropped the ErasePending support. No longer needed
32567 - Created DeriveStyles method to translate from CreateParams to
32568 FormBorderStyle and TitleStyle, also handles BorderStyle (which
32569 matches FormBorderStyle enum values)
32570 - Consolidated SetHwndStyles and CalculateWindowRect border/title
32571 style calculations into single DeriveStyles method
32572 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
32573 from redrawing the whole window on any resize or expose.
32574 - Fixed CreateWindow usage of SetWindowValuemask. Before not
32575 all styles were applied to our whole/client window appropriately
32576 - Removed EraseWindowBackground() and SetWindowBackground() methods
32577 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
32578 no longer clear/redraw the background through X
32579 - Removed handling of erase_pending bit, we have no use for it (or
32582 - Removed generation and handling of WM_ERASEBKGND message
32583 - Removed EraseWindowBackground() and SetWindowBackground() methods
32584 - Removed handling of hwnd.ErasePending flag
32586 - Removed EraseWindowBackground() and SetWindowBackground() methods
32587 - We no longer call EraseWindowBackground on PaintEventStart, we
32588 ignore the fErase flag, erasing is handled in Control in the
32590 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
32591 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
32592 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
32593 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
32594 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
32595 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
32596 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
32598 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
32600 * PropertyGrids.cs: Get sub properties
32601 * PropertyGridView.cs: Fix drawing code
32603 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
32605 * ListBox.cs: Fixes 76383
32607 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
32609 * DataGridTextBoxColumn.cs: Sets location and size before attachment
32610 * ThemeWin32Classic.cs: Fixes border drawing and calculations
32611 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
32614 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
32616 * ComboBox.cs: Fixes border drawing
32618 2005-10-10 Miguel de Icaza <miguel@novell.com>
32620 * MimeIcon.cs: Ignore errors if the file can not be read.
32622 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
32624 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
32625 - Fixed border calculations
32626 - Fixed horizontal scrolling in single column listboxes
32627 - Fixed drawing issues
32629 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
32631 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
32632 FormBorderStyle enum
32633 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
32634 code to determine FormBorderStyles from CreateParams
32636 - Fixed bug where we'd set the wrong window styles if we were
32637 not creating an MDI window
32638 - Added call to XplatUI.SetBorderStyle when form borders are set
32639 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
32641 - Removed obsolete edge style
32642 - Switched from BorderStyle to FormBorderStyle
32644 2005-10-10 Jackson Harper <jackson@ximian.com>
32646 * Form.cs: Use the property to get the window handle instead of
32647 accessing it directly. Prevents a null reference exception.
32649 2005-10-10 Jackson Harper <jackson@ximian.com>
32651 * TreeView.cs: Don't adjust the rect given to DrawString now that
32652 our libgdiplus draws correctly.
32654 2005-10-08 Jackson Harper <jackson@ximian.com>
32656 * TreeView.cs: Don't try to find the clicked on node if there are
32657 no nodes in the tree.
32659 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
32665 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
32667 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
32668 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
32670 Use ResPool for brushes and dispose System.Drawing objects that
32671 are not used anymore.
32673 2005-10-07 Jackson Harper <jackson@ximian.com>
32675 * MdiChildContext.cs: Use the new borders instead of drawing them
32678 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
32680 * Calling UpdateBounds after changing the window's BorderStyle
32681 since the style can change the ClientSize
32683 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32685 * Control.cs: Made PaintControlBackground virtual
32686 * Panel.cs: Overriding PaintControlBackground instead of using paint
32687 event; paint event method was interfering with 'real' users of the
32690 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
32692 * ThemeWin32Classic.cs: remove border drawing since it is handled
32693 by the base control class now and was causing double border drawing.
32695 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32697 * Panel.cs: Redraw our background on paint. Not a pretty solution,
32698 but it does seem to match MS behaviour. This fixes bug #75324
32700 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32702 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
32703 somewhat hackish looking
32705 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32708 - We now accept Enter even if AcceptEnter is false, if the containing
32709 form does not have an AcceptButton configured (fixes bug #76355)
32710 - Calculations are now fixed to no longer use Width/Height, but
32711 ClientSize.Width/Height, since we now support borders (this was
32712 a result of fixing borders and therefore bug #76166)
32713 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
32714 true (fixes bug #76354)
32716 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32719 - Defaulting BorderStyle and setting it in XplatUI when our window
32721 - Added enum check to InternalBorderStyle setter
32723 - Added drawing of window borders
32724 - Now properly calculates WM decorations offset for toplevel
32725 windows (fixes bug #74763)
32727 - Implemented BorderStyles for windows (we're letting win32 draw
32729 - Fixed the signature for SetWindowLong
32730 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
32731 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
32733 * UpDownBase.cs: Remove drawing of borders, this is handled by
32734 the driver, outside the client area
32735 * ListView.cs: Removed bogus border calculations. The control should
32736 be oblivious to borders, since those are not part of the client
32738 * X11DesktopColors.cs: Commented out (currently) unneeded variables
32739 * ThemeWin32Classic.cs: Removed border calculations from ListView
32742 2005-10-06 Jackson Harper <jackson@ximian.com>
32744 * MdiChildContext.cs: Clear out the old virtual position remove
32745 all the unneeded calls to CreateGraphics.
32747 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32749 * TextControl.cs: Use proper color for highlighted text; fixes #76350
32751 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32754 - Added loading and setting of our new default icon
32755 - Only set icon if window is already created
32757 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32760 - Do not explicitly set the foreground and background colors, to
32761 allow inheriting from parents (fixes #76302)
32762 - Use Control's InternalBorderStyle property to deal with borders
32764 2005-10-06 Jackson Harper <jackson@ximian.com>
32766 * MdiChildContext.cs: Use the new xplatui function to draw a
32769 2005-10-06 Jackson Harper <jackson@ximian.com>
32771 * Form.cs: Add the parent before creating the child context cause
32772 we need the parent when setting up the child.
32774 2005-10-06 Jackson Harper <jackson@ximian.com>
32776 * FolderBrowserDialog.cs: redo the tree population code so a
32777 second thread isn't used. Should be a lot faster and more stable
32780 2005-10-05 Jackson Harper <jackson@ximian.com>
32782 * TreeView.cs: There are no expand/collapse boxes if the node has
32785 2005-10-05 Jackson Harper <jackson@ximian.com>
32787 * X11DesktopColors.cs: Get menu colours for the gtk theme.
32789 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
32791 * FileDialog.cs: Fix InitialDirectory
32793 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
32796 - Fixes changing between styles
32797 - Fixes simple mode
32798 - Fixes last item crashing when navigating with keyboard
32800 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
32802 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
32804 2005-10-05 Jackson Harper <jackson@ximian.com>
32806 * TreeView.cs: If updating the root node do a full refresh.
32807 * TreeNode.cs: The root node should be expanded by default. Also
32808 added a utility prop to tell if we are the root node.
32809 * TreeNodeCollection.cs: Only refresh if the node we are being
32810 added to is expanded. Also added a comment on a potential
32813 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
32815 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
32816 in dispose method. Fixes #76330
32818 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
32820 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
32822 - Implements vertical and horizontal scrolling using XplatUI
32823 - Fixes keyboard navagation
32824 - Fixes EnsureVisible
32826 - Handles and draws focus properly
32829 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
32831 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
32832 Create handle. NET_2_0: Destroy handle when value is null.
32834 2005-10-03 Jackson Harper <jackson@ximian.com>
32836 * ScrollBar.cs: My last scrollbar patch was broken. This is a
32837 revert and a new patch to prevent the thumb from refreshing so
32840 2005-10-02 Jackson Harper <jackson@ximian.com>
32842 * ScrollBar.cs: Don't update position if it hasn't actually
32843 changed. This occurs when you hold down the increment/decrement
32844 buttons and the thumb gets to the max/min.
32846 2005-10-01 Jackson Harper <jackson@ximian.com>
32849 * MdiChildContext.cs:
32850 * MdiClient.cs: Implement ActiveMdiChild in Form.
32852 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
32854 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
32856 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
32858 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
32861 2005-09-30 Jackson Harper <jackson@ximian.com>
32863 * ListBox.cs: Don't do a full refresh unless some data has
32866 2005-09-30 Jackson Harper <jackson@ximian.com>
32868 * TreeView.cs: Make sure that the checkboxes size is factored in
32869 even when not visible.
32871 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
32873 * FileDialog.cs: Fix Jordi's build break
32875 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
32878 - Use standard the Windows colours for the combobox as espected
32879 - Dispose objects that use resouces when no longer need them
32881 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
32883 * X11DesktopColors.cs: Initial incomplete implementation
32884 * XplatUIX11.cs: Added call to initialize X11DesktopColors
32886 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
32889 - Switched Theme color names to match the names defined in
32890 System.Drawing.KnownColors. Life's hard enough, no need to make
32892 - Added setters to all theme color properties so themes can set
32893 their color schemes. The setters also propagate the color changes
32894 to System.Drawing.KnownColors via reflection
32895 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
32896 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
32897 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
32898 use the new, more logical theme color names
32899 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
32901 * ThemeWin32Classic.cs:
32902 - Removed code to set the old classic Windows colors. Instead it
32903 now relies on the colors returned by System.Drawing.KnownColors
32904 which will be either modern static colors (Unix) or colors
32905 read from the user's configuration (Win32)
32906 - Updated to use the new, more logical theme color names
32907 - Switched DataGrid drawing code to use only Theme colors instead of
32908 a mix of System.Drawing.KnownColors and Theme colors
32909 - DrawFrameControl(): Removed code that fills the button area, the
32910 fill would overwrite any previous fill done by a control. This
32912 - Added DrawReversibleRectangle() stub
32913 * ScrollableControl.cs: Set visible state to false when scrollbars
32914 are removed (pdn fix)
32915 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
32916 DrawReversibleRectangle() method to allow drawing primitive
32918 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
32920 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32922 * ImageList.cs: Add(Icon): Create handle.
32924 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
32927 * ThemeWin32Classic.cs:
32928 - Fixes detail mode
32930 - Issues with drawing
32932 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32934 * ImageList.cs: Moved RecreateHandle back to ImageList as event
32935 source has to be the ImageList.
32937 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32939 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
32941 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32943 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
32945 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32947 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
32949 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
32950 * GridItem.cs: Fixed TODOs
32951 * GridItemCollection.cs: Added ICollection interface
32953 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32955 * ImageList.cs: Resize icons when needed.
32957 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
32960 - Fixes GetBounds and returns on screen rects
32962 - Fixes vertical and horzintal scrolling of items
32963 * ThemeWin32Classic.cs:
32966 2005-09-29 Raja R Harinath <harinath@gmail.com>
32968 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
32970 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
32972 * ImageList.cs: Added comments about handle creation. Moved Handle,
32973 HandleCreated and OnRecreateHandle implementations to ImageCollection.
32974 Handle is created in Add methods.
32976 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
32978 * DataGridDrawingLogic.cs:
32979 - Takes rows into account on Colum calculations
32980 - Returns the column when clickig
32982 - Fixes default HitTestInfo values
32983 - Fixes HitTestInfo.ToString
32984 - Fixes ResetBackColor
32986 2005-09-28 Jackson Harper <jackson@ximian.com>
32988 * MdiChildContext.cs: Obey rules for fixed sized windows (no
32989 sizing or cursor changes). Also added some temp code to draw the
32990 titlebars text (Makes dev a little easier).
32992 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
32994 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32996 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
32998 * ListBox.cs: Fixes bug 76253
33000 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
33002 * ImageList.cs: Added comments about the current implementation. Added
33003 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
33004 Format32bppArgb to preserve transparency and can use Graphics.FromImage
33005 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
33006 with Bitmap.LockBits for better performance. Revised the whole file to
33007 match MS.NET behaviour and provide better performance. Non-public
33008 interface members are calling public members even when they throw
33009 NotSupportedException for better maintainability. Moved ColorDepth,
33010 ImageSize, ImageStream and TransparentColor implementations to
33011 ImageCollection for better performance as these properties are not used
33013 * ImageListStreamer.cs: Added a new internal constructor that takes an
33014 ImageList.ImageCollection and serializes Images based on
33015 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
33016 match ImageList property name.
33018 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
33020 * ListBox.cs: Fixes IndexFromPoint for last item
33022 2005-09-27 Jackson Harper <jackson@ximian.com>
33024 * Form.cs: Set the position of new mdi children correctly.
33026 2005-09-27 Jackson Harper <jackson@ximian.com>
33028 * MdiClient.cs: New mdi children need to be added to the back of
33029 the controls collection so the zorder is set correctly. Also add a
33030 count of all the child windows that have been created.
33032 2005-09-27 Jackson Harper <jackson@ximian.com>
33034 * Form.cs (CreateParams): Setup MDI forms correctly.
33036 2005-09-27 Jackson Harper <jackson@ximian.com>
33038 * MdiChildContext.cs:
33039 * MonthCalendar.cs:
33045 * ScrollableControl.cs:
33046 * ComboBox.cs: Add implicit controls using the new implict control
33047 functionality in ControlCollection. Also try to block multiple
33048 control add in a suspend/resume layout to save some cycles.
33050 2005-09-27 Jackson Harper <jackson@ximian.com>
33052 * Control.cs: Add functionality to the controls collection to add
33053 'implicit controls' these are controls that are created by the
33054 containing control but should not be exposed to the user. Such as
33055 scrollbars in the treeview.
33056 * Form.cs: The list var of the ControlsCollection is no longer
33057 available because of the potential of implicit controls getting
33058 ignored by someone accessing the list directly.
33060 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
33062 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
33063 loose it's parent. (Fixed bug introduced in r49103 when we added
33064 setting the child parent to null on Remove)
33066 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
33068 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
33069 * Splitter.cs: Added missing attributes for BorderStyle property.
33070 * TextBoxBase.cs: Marked Calculate* methods internal.
33071 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
33074 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
33076 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
33078 2005-09-25 Jackson Harper <jackson@ximian.com>
33080 * TreeView.cs: Update the node bounds correctly regardless of
33081 whether the node is visible.
33083 2005-09-25 Jackson Harper <jackson@ximian.com>
33085 * ImageList.cs: Don't dispose the image after it is added to the
33086 image list. Only reformat images that need to be resized.
33088 2005-09-25 Jackson Harper <jackson@ximian.com>
33090 * ImageList.cs: Don't set the format when changing the image.
33092 2005-09-25 Jackson Harper <jackson@ximian.com>
33094 * TreeView.cs: We can't just assume the node has a font. Use the
33095 treeviews font if no node font is available.
33097 2005-09-25 Jackson Harper <jackson@ximian.com>
33099 * TreeView.cs: Allow the scrollbars to be reset with negative
33101 - Don't add scrollbars to negative sized windows.
33103 2005-09-23 Jackson Harper <jackson@ximian.com>
33105 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
33106 old Mono.Posix. Also remove some stray code that shouldn't have
33109 2005-09-23 Jackson Harper <jackson@ximian.com>
33111 * TreeView.cs: Attempt at proper sizing of the horizontal
33112 scrollbar. Also don't resize the scrollbars unless they are
33115 2005-09-23 Jackson Harper <jackson@ximian.com>
33117 * TreeView.cs: We don't need to expand the invalid area when the
33118 selection changes, as this is all drawn in the node's bounding
33119 box. The area needs to be expanded (previous typo was contracting
33120 it) when the focus rect moves.
33122 2005-09-23 Jackson Harper <jackson@ximian.com>
33124 * TreeView.cs: Display the selection box under the correct
33125 circumstances. We were rendering white text with no selection box
33128 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
33130 * TextControl.cs(Split): Now updates selection start/end if it points
33131 into a line that's being split. Fixes a FIXME and bug #75258
33133 2005-09-23 Jackson Harper <jackson@ximian.com>
33136 * ListControl.cs: Don't use the path when retrieving binding
33137 managers from the binding context. My bat sense tells me that the
33138 path is only used on insertion.
33140 2005-09-22 Jackson Harper <jackson@ximian.com>
33142 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
33144 2005-09-22 Jackson Harper <jackson@ximian.com>
33146 * Splitter.cs: There are special cursors used for splitting.
33147 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
33149 2005-09-22 Jackson Harper <jackson@ximian.com>
33151 * Splitter.cs: Change the cursor appropriately when the splitter
33152 is moused over, so the user actually knows there is a splitter
33155 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
33157 * Label.cs : Fix ToString method to give same output as MS.NET
33159 2005-09-22 Jackson Harper <jackson@ximian.com>
33161 * TreeView.cs: Create the scrollbars when the handle is created
33162 and add them right away, just make them invisble. Also account for
33163 the window being shrunk vertically to the point that the vert
33164 scrollbar needs to be added.
33165 - Remove some 0.5 adjustments to get around anti aliasing issues.
33167 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
33169 * MainMenu.cs: Fixes default value
33170 * MenuItem.cs: Fixes default value
33172 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
33174 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
33176 2005-09-21 Jackson Harper <jackson@ximian.com>
33178 * Control.cs: Don't try to set the border style on the window if
33179 it hasn't been created. When the window is created the border
33180 style will be used.
33182 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
33184 * Control.cs (Update): Don't call XplatUI if we don't have a
33187 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
33189 * ContainerControl.cs: Instead of throwing an exception, print
33190 a one-time warning about Validate not being implemented
33191 * XplatUIWin32.cs: Removed debug output
33193 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
33195 * Control.cs: Only set XplatUI background if we expect the windowing
33196 system to handle the background. This stops controls that draw their
33197 own background from flickering
33199 * XplatUIX11.cs: Support custom visuals and colormaps for window
33200 creation. This allows, amongst other things, using MWF X11 windows
33203 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
33205 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
33206 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
33207 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
33208 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
33209 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
33210 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
33211 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
33212 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
33213 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
33214 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
33215 GridColumnStylesCollection.cs,
33216 IDataGridColumnStyleEditingNotificationService.cs,
33217 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
33218 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
33219 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
33220 TreeNodeCollection.cs, AmbientProperties.cs,
33221 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33222 DataObject.cs, ErrorProvider.cs, Splitter.cs,
33223 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
33224 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
33225 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
33226 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
33227 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
33228 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
33229 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
33230 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
33231 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
33232 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
33233 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
33234 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
33235 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
33236 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
33237 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
33238 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
33239 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
33240 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
33241 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
33242 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
33243 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
33244 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
33245 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
33246 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
33247 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
33248 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
33249 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
33250 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
33251 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
33252 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
33253 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
33254 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
33255 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
33256 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
33257 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
33259 2005-09-21 Jackson Harper <jackson@ximian.com>
33261 * TreeNode.cs: Call Before/After Expand not Collapse when
33264 2005-09-20 Jackson Harper <jackson@ximian.com>
33266 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
33268 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
33272 - Fixes proper storing of subitems
33273 - Fixes not updated items
33275 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
33277 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
33278 things if our window handle isn't created yet. Also disabled
33279 debug for TextBoxBase
33281 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
33283 * MenuAPI.cs: Remove filtering of events to allow menu usage
33285 2005-09-20 Miguel de Icaza <miguel@novell.com>
33287 * Cursor.cs: Allow null to be passed to Cursor.Current.
33289 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
33291 * ThemeWin32Classic.cs:
33292 - Change some private methods/fields to protected virtual so that
33293 they can be accessed and overriden in derived classes
33294 - First refactoring of some methods. Derived themes now don't
33295 need to duplicate the complete code from ThemeWin32Classic
33297 - Added nice StatusBar
33298 - Derive from ThemeWin32Classic and not Theme
33299 - Removed duplicate ThemeWin32Classic code
33301 2005-09-20 Miguel de Icaza <miguel@novell.com>
33303 * Control.cs (ControlCollection.Add): If the value null is passed
33304 the control is ignored.
33306 Optimize this loop.
33308 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
33310 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
33311 PostQuitMessage state.
33312 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
33314 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
33316 * Application.cs: Our constructor will never get called, move
33317 initialization to fields; fixes bug #75933
33319 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
33322 - Allow files to be selected properly using file name
33324 - Add ability to change diretory (absolute / relative)
33325 using file name combo box.
33327 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
33330 - Fixes Multicolumn listboxes item wrong calculations
33331 - Allows to click when only one item is in the listbox
33332 - Fixes crash when no items using keyboard navigation
33334 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
33336 * ComboBox.cs: Reverted almost everything from the latest patch which
33339 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
33342 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
33344 - When DropDownStyle is Simple, it does not show scrollbar
33345 to the last item of the list.
33346 - When DropDownStyle is Simple, it crashed when the list was
33347 scrolled down with the down cursor key.
33348 - Fixed a bug that when DropDownStyle is DropDownList, the
33349 selected item was not shown.
33350 - The position of the selected item was not preserved when
33351 the next dropdown happened.
33352 * ThemeWin32Classic.cs:
33353 - Items were wrapped at the right end.
33354 * CheckedListBox.cs:
33357 - Items should be fully shown.
33358 - When resizing and vertical scrollbar disappeared, the item
33359 of index 0 should be on the top of the list.
33360 - GetItemRectangle should consider the size of ver. scrollbar
33362 - SizingGrip area should not be allocated when it is not
33364 - Now it reflects MinWidth of the containing panel and
33365 fixed a crash that happens when its width becomes so small.
33367 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
33369 * CheckedListBox.cs: Fixes bug 76028
33370 * ListBox.cs: Fixes bug 76028
33372 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
33374 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
33375 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
33377 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
33379 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
33381 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
33383 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
33385 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
33387 * IRootGridEntry.cs: Added
33388 * PropertyGridCommands.cs: Added
33389 * PropertiesTab.cs: Added missing methods and property
33390 * PropertyGridView.cs: Made class internal
33391 * PropertyGridTextBox.cs: Made class internal
33393 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
33395 * MimeIcon.cs: Try to check some other environment variables
33396 if "DESKTOP_SESSION" returns "default"
33398 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
33400 * ThemeNice.cs: Corrected background colors (e.g. menus)
33401 * ColorDialog.cs: Use correct background colors for controls
33403 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
33405 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
33407 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
33409 * RichTextBox.cs: Added initial implementation
33410 * lang.cs: Removed. Was accidentally checked in long time ago
33411 * TODO: Removed. Contents were obsolete
33413 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
33415 * PropertiesTab.cs : Added
33417 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
33419 * PropertyGrid.cs : Update
33420 * PropertyGridView.cs : Update
33421 * System.Windows.Forms.resx : Added images and strings
33423 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
33425 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
33427 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
33429 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
33430 a busy loop right after the Ungrab the X11 display is otherwise
33433 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
33435 * ThemeWin32Classic.cs: Optimise the use of clipping
33437 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
33439 * DataGrid.cs: fixes recursion bug
33441 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
33444 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
33447 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
33449 * ThemeNice.cs: Draw nice ProgressBars
33451 2005-09-01 Miguel de Icaza <miguel@novell.com>
33453 * VScrollBar.cs: Another buglet found by Aaron's tool.
33455 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
33458 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
33461 - Added nicer menu drawing
33465 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
33467 * CreateParams.cs (ToString): Made output match MS
33468 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
33469 handle is already created (to avoid forcing window creation)
33470 * XplatUIX11.cs: Set window text to caption after creating window,
33471 in case Text was set before window was created
33472 * Form.cs: Use this.Text instead of a static string as caption
33474 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
33476 * NotifyIcon.cs: Don't set the window to visible; this screws
33477 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
33478 OnPaint without a bitmap)
33479 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
33480 happen very often anyway; we could add the check to the WM_PAINT
33481 event generation code
33483 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
33485 * NotifyIcon.cs: Fill the icon area with a background color, to
33486 avoid 'residue' when transparent icons are drawn
33488 - Handle whole_window == client_window when destroying windows
33489 - SystrayAdd(): Set client_window to whole_window value to
33490 get mouse and other events passed to NotifyIcon
33492 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
33494 * Form.cs: Set proper default for Opacity property
33496 - ShowSystray(): Don't bother creating telling the OS
33497 about the systray item if no icon is provided
33498 - Now handles WM_NCPAINT message to deal with whole/client window
33500 - Create window as visible to not get caught by Expose optimization
33501 * Hwnd.cs: Removed debug message
33502 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
33503 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
33504 PaintEventStart/End to use new client argument
33506 - Commented out debug messages
33507 - Switched PaintEventStart/End to use new client argument
33508 * XplatUI.cs: Added client window bool to PaintEventStart()/
33509 PaintEventEnd() calls, to support drawing in non-client areas
33510 * XplatUIDriver.cs:
33511 - Added client window bool to PaintEventStart()/PaintEventEnd()
33512 calls, to support drawing in non-client areas
33513 - Added conditional compile to allow using MWF BeginInvoke
33516 - Added some conditional debug output
33517 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
33518 whole/client window split
33519 - Implemented handling of client argument to PaintEventStart()/End()
33521 - Throw exception if BeginInvoke() is called and the window handle
33522 or one of the window's parent handles is not created
33523 - Added conditional compile to allow using MWF BeginInvoke on
33525 - get_Parent(): Only sets parent if handle is created. This avoids
33526 forcing window handle creation when parent is set.
33527 - Now fires Layout and Parent changed events in proper order
33528 - Switched to use Handle instead of window.Handle for Z-Order setting,
33529 the get_Parent() patch above causes us to possibly get null for 'window'
33530 - Implemented handling of client argument to PaintEventStart()/End()
33531 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
33533 - Now sends a Refresh() to all child windows when Refresh() is called
33535 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
33537 * Form.cs: Added (non-functional) Opacity property
33538 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
33540 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
33541 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
33542 use export MONO_THEME=nice to activate it.
33543 Currently supported controls:
33547 - TabControl (TabAlignment.Top only, other will follow)
33548 * ThemeEngine.cs: Add theme nice
33549 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
33552 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
33554 * Splitter.cs: Resize docked control and its neighbor.
33556 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
33557 -- Making Windows with Menus layout correctly --
33558 * Form.cs : The first leg of the fix
33559 Menu setter - adjust Client Size as needed to make space for the menu
33560 SetClientSizeCore - doesn't call base version to be able to pass the
33561 menu handle to XplatUI.CalculateWindowRect
33562 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
33563 * XplatUIX11.cs: The critical second leg of the fix
33564 GetWindowPos needs to use a recalculated client_rect
33565 so that resizing the window doesn't break layout of child controls.
33566 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
33567 Lots of \t\n killed
33569 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
33571 * Label.cs: Now properly recalculates width and height on Font and Text
33572 changes if AutoSize is set
33574 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
33575 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
33577 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
33579 * ImageList.cs: Makes ToString method compatible with MS
33581 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
33583 * MenuAPI.cs: fixes bug 75716
33585 2005-08-11 Umadevi S <sumadevi@novell.com>
33586 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
33588 2005-08-11 Umadevi S <sumadevi@novell.com>
33589 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
33591 2005-08-10 Umadevi S <sumadevi@novell.com>
33592 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
33594 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
33596 * Menu.cs: fixes bug 75700
33597 * MenuAPI.cs: fixes navigation issues
33599 2005-08-09 Umadevi S <sumadevi@novell.com>
33600 * CheckedListBox.cs - simple fix for GetItemChecked.
33602 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
33604 * ComboBox.cs: Serveral fixes
33605 * ListBox.cs: Serveral fixes
33607 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
33609 * ComboBox.cs: Fixes FindString methods and GetItemHeight
33610 * ListBox.cs: Fixes FindString methods
33612 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
33614 * DataGrid.cs: fixes bugs exposed by new tests
33616 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
33618 * Mime.cs: Compile Mono assembly references only if compiling
33619 with Mono (Allows to build with VS.Net again)
33621 2005-07-28 Marek Safar <marek.safar@seznam.cz>
33623 * Control.cs (PaintControlBackground): Draw background image
33625 (CheckForIllegalCrossThreadCalls): Stubbed.
33627 * Form.cs (OnCreateControl): Center when should be centered.
33629 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
33631 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
33633 * Binding.cs: Binding to properties should be case unsensitive
33635 2005-07-18 vlindos@nucleusys.com
33637 * DataGrid.cs: fixes setmember order
33639 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
33641 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
33642 * FileDialog.cs: FileDialog is now resizable and uses the new
33645 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
33647 * DataGridTextBoxColumn.cs: default value
33648 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
33649 * GridTableStylesCollection.cs: fixes checking MappingName
33650 * DataGridDrawingLogic.cs: fixes drawing logic issues
33651 * DataSourceHelper.cs: rewritten to make compatible with more data sources
33652 * DataGrid.cs: fixes
33654 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
33656 * MimeGenerated.cs: Use case sensitive comparer for
33657 NameValueCollections
33659 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
33661 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
33662 * ThemeWin32Classic.cs: bug fixes, code refactoring
33663 * DataGridDrawingLogic.cs: bug fixes, code refactoring
33664 * DataGrid.cs: bug fixes, code refactoring
33665 * DataGridTextBox.cs: bug fixes, code refactoring
33666 * DataGridColumnStyle.cs: bug fixes, code refactoring
33667 * Theme.cs: bug fixes, code refactoring
33669 2005-07-01 Peter Bartok <pbartok@novell.com>
33671 * TextControl.cs: Quick fix for the reported crash on ColorDialog
33672 and other text box usage
33674 2005-07-01 Jackson Harper <jackson@ximian.com>
33676 * TabControl.cs: Make sure the bottom of the tab covers the pages
33679 2005-06-30 Peter Bartok <pbartok@novell.com>
33681 * Form.cs (ShowDialog): Assign owner of the dialog
33682 * TextBoxBase.cs: Always refresh caret size when deleting, caret
33683 might have been moved to a tag with different height
33685 2005-06-30 Jackson Harper <jackson@ximian.com>
33687 * Form.cs: Don't create an infinite loop when setting focus
33688 * MenuItem.cs: Don't dirty the parents if we don't have any
33690 2005-06-29 Ben Maurer <bmaurer@ximian.com>
33692 * LibSupport.cs: Rename
33694 2005-06-29 Peter Bartok <pbartok@novell.com>
33696 * TextBoxBase.cs: Re-align caret after deleting a character
33698 - DeleteChars(): Ensure that tag covers the provided position
33699 - StreamLine(): Drop reference for dropped tag
33701 2005-06-29 Peter Bartok <pbartok@novell.com>
33704 - Selections now work properly, anchoring at the initial location
33705 and properly extending in either direction (SetSelectionToCaret(),
33706 SetSelectionStart() and SetSelectionEnd())
33707 - No longer redraws the whole control on selection change, now
33708 calculates delta between previous and new selection and only
33709 invalidates/redraws that area
33710 - Fixed FindPos() math off-by-one errors
33711 - Changed DeleteChars() to verify the provided tag covers the
33712 provided position, selections may have a tag that doesn't cover
33713 the position if the selection is at a tag border
33714 - Fixed off-by-one errors in DeleteChars()
33715 - Added missing streamlining check in DeleteChars() to remove
33717 - Implemented Invalidate() method, now properly calculates exposures
33718 between two given lines/positions
33719 - Implemented SetSelection()
33720 - Obsoleted and removed FixupSelection()
33721 - Improved RecalculateDocument() logic, removing code duplication
33723 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33725 * LibSupport.cs: changes to match different input/output arguments.
33727 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33729 * LibSupport.cs: added libsupport.so init routine.
33731 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
33733 * ControlBindingsCollection.cs
33734 - Throws an exception on null datasource when adding
33735 - Checks for duplicated bindings when adding
33737 2005-06-28 Jackson Harper <jackson@ximian.com>
33739 * TreeView.cs (OnKeyDown): Support left and right properly
33740 (navigates as well as expanding and collapsing.
33741 - Add support for Multiply, this expands all the selected nodes
33743 - Fix some tabbing.
33745 2005-06-28 Jackson Harper <jackson@ximian.com>
33747 * TreeView.cs: Implement keyboard navigation, currently supports,
33748 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
33749 support for toggling checkboxes with the space bar.
33751 2005-06-28 Jackson Harper <jackson@ximian.com>
33753 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
33756 2005-06-28 Jackson Harper <jackson@ximian.com>
33758 * TreeView.cs: Add missing event.
33760 2005-06-27 Peter Bartok <pbartok@novell.com>
33763 - Made line ending size configurable (now allows for counting
33764 lineendings as \n or \r\n)
33765 - Added margin to viewport to keep caret visible on right side
33766 - Fixed translation routines for line/pos to documentpos to consider
33767 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
33768 - Fixed some line-endings to be unix style
33769 - Fixed Document.FormatText to perform it's calculations 1-based
33770 - Added descriptions for a few methods that might otherwise get
33772 - Added NOTE section with some basic conventions to remember at
33773 the top of the file
33774 - Major fixup for RichTextBox selection drawing:
33775 * Fixed crashes when multiple tags on a single line were selected
33776 * fixed selection box drawing not overlaying text
33777 * fixed bogus offset calculation for tags not starting at index 1
33778 * Switched behaviour from using multiple Substrings of a
33779 StringBuilder.ToString() to using multiple
33780 StringBuilder.ToString(start, length) statements, hoping this is
33781 faster (kept original version commented out in the code, in case
33782 original version was faster)
33783 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
33785 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
33788 2005-06-27 Jackson Harper <jackson@ximian.com>
33790 * TabControl.cs: Move to the left and right with the arrow
33791 keys. These keys don't cycle beyond first and last like
33792 tab. Refresh all the tabs when scrolling them to the left or
33795 2005-06-27 Jackson Harper <jackson@ximian.com>
33798 - ToString: Added method
33799 - CreateParams: Remove TODO and comment
33800 - OnKeyDown: Cycle through bounds properly.
33801 - SelectedIndex: Scroll to the right or left if we need to
33802 display the newly selected tab.
33804 2005-06-23 Jackson Harper <jackson@ximian.com>
33806 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
33809 2005-06-23 Jackson Harper <jackson@ximian.com>
33811 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
33812 CTRL-SHIFT-TAB, and HOME, END are there any others?
33814 2005-06-23 Jackson Harper <jackson@ximian.com>
33816 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
33818 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
33820 * DataGridTextBoxColumn.cs: fixes and enhancements
33821 * ThemeWin32Classic.cs: fixes and enhancements
33822 * DataGridBoolColumn.cs: fixes and enhancements
33823 * DataGridDrawingLogic.cs: fixes and enhancements
33824 * CurrencyManager.cs: fixes and enhancements
33825 * DataGrid.cs: fixes and enhancements
33826 * DataGridColumnStyle.cs: fixes and enhancements
33828 2005-06-22 Jackson Harper <jackson@ximian.com>
33830 * TabControl.cs: Add some missing methods that just call into the
33831 base. Make the TabPageCollection's IList interface behave in the
33832 same manner as the MS implementation.
33834 2005-06-22 Peter Bartok <pbartok@novell.com>
33836 * TextControl.cs: Added sanity check
33838 - Fixed wrapping behaviour, don't set wrap on single line controls
33839 (this fixes the breakage of colordialog introduced in an earlier
33841 - Added rudimentary support for autoscrolling right-aligned controls
33842 (still needs fixing, also, center alignment scroll is missing)
33844 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
33846 * ScrollBar.cs: Fixes thumbpos on Maximum values
33848 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
33850 * PropertyGridView.cs: Pass context information to UITypeEditors
33852 2005-06-21 Peter Bartok <pbartok@novell.com>
33855 - Now calling PositionCaret with absolute space coordinates
33856 - Enabled vertical scrolling
33857 - Better tracking of scrollbar changes, tied into WidthChange
33859 - Improved cursor tracking
33860 - Removed debug output
33862 - PositionCaret coordinates are now works in absolute space, not
33864 - Improved tracking of document size
33865 - Added events for width and height changes
33867 2005-06-21 Peter Bartok <pbartok@novell.com>
33869 * Form.cs: Set focus to active control when form is activated
33871 - Added word-wrap functionality to RecalculateLine()
33872 - Added some short function descriptions for VS.Net to aid in
33873 writing dependent controls
33874 - Added Caret property, returning the current coords of the caret
33875 - Added ViewPortWidth and ViewPortHeight properties
33876 - Added Wrap property
33877 - Added CaretMoved event
33878 - Removed some old debug code
33879 - Split() can now create soft splits
33880 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
33881 - Added method to format existing text
33882 - Fixed size/alignment calculations to use viewport
33883 - RecalculateDocument now can handle changing line-numbers while
33887 - Added some wrap logic, we don't wrap if alignment is not left
33888 - Added casts for scrollbar var, base class switched types to
33889 also support RichTextBoxA
33890 - Implemented handling of scrollbar visibility flags
33893 - Switched scrollbars type to RichTextBoxScrollBars to support
33895 - Added tracking of canvas width/height
33896 - Switched scrollbars to be not selectable (to keep focus on text)
33897 - Added central CalculateDocument() method to handle all redraw
33899 - Added ReadOnly support
33900 - Added WordWrap support
33901 - Fixed handling of Enter key (we now treat it as a DialogKey)
33902 - Fixed caret positioning when h or v scroll is not zero
33903 - Fixed placing/generation of vertical scrollbar
33904 - Added CalculateScrollBars() method to allow updating scrollbar
33905 limits and visibility
33906 - Fixed handling of horizontal scroll
33907 - Added handling of vertical scroll
33908 - Implemented auto-'jump' when caret moves to close to a left or
33909 right border and there is text to be scrolled into view (currently
33910 there's the potential for a stack overflow, until a bug in
33911 scrollbar is fixed)
33913 2005-06-21 Geoff Norton <gnorton@customerdna.com>
33915 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
33917 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
33921 - return application/x-zerosize for files with size zero
33922 (if no extension pattern matches).
33923 - check matches collection for strings too.
33924 - return only the first mime type if the name value
33925 collection has more than one mime type.
33927 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
33929 * PropertyGrid.cs: Cleaned up some TODOs
33930 * PropertyGridView.cs: Added support for UITypeEditors
33932 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
33934 * DataGrid.cs: clears cached value
33936 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
33938 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
33939 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
33940 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
33941 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
33943 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
33945 * ThemeWin32Classic.cs: fixes colour
33947 2005-06-15 Peter Bartok <pbartok@novell.com>
33949 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
33950 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
33951 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
33952 * Control.cs: Added some MWFCategory and MWFDescription attributes
33953 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
33955 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
33957 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
33960 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
33962 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
33963 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
33964 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
33965 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
33966 * DataGrid.cs: default datagrid settings for Default Styles, fixes
33967 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
33969 2005-06-13 Jackson Harper <jackson@ximian.com>
33971 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
33972 isn't printed when the user enables dropping. (X11 does accept
33975 2005-06-13 Jackson Harper <jackson@ximian.com>
33977 * TreeView.cs: Remove some TODOS.
33979 2005-06-13 Jackson Harper <jackson@ximian.com>
33981 * Form.cs: Hook into the mdi framework.
33982 * MdiClient.cs: Use the base control collections add method so
33983 parents get setup correctly. Set the default back colour and dock
33985 * MdiChildContext.cs: New class, this bad actor handles an
33986 instance of an MDI window. Right now there is only basic
33987 support. You can drag, close, and resize windows. Minimize and
33988 Maximize are partially implemented.
33990 2005-06-13 Jackson Harper <jackson@ximian.com>
33992 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33993 freaky when both vals are negative. NOTE: There are probably other
33994 places in XplatUIX11 that this needs to be done.
33996 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
33998 * DataGrid.cs: implement missing methods, move KeyboardNavigation
33999 * DataGridColumnStyle.cs: fixes signature
34001 2005-06-12 Jackson Harper <jackson@ximian.com>
34003 * XplatUIX11.cs: Use sizing cursors similar to the ones on
34006 2005-06-11 Jackson Harper <jackson@ximian.com>
34008 * StatusBarPanel.cs: Signature cleanups. Implement
34011 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
34013 * DataGridTextBoxColumn.cs: Honors aligment
34014 * GridColumnStylesCollection.cs: Contains is case unsensitive
34015 * GridTableStylesCollection.cs: several fixes
34016 * DataGridTableStyle.cs: default column creation
34017 * DataGridDrawingLogic.cs: fixes
34018 * CurrencyManager.cs: ListName property
34019 * DataGrid.cs: multiple styles support
34020 * DataGridColumnStyle.cs: fixes
34023 2005-06-10 Peter Bartok <pbartok@novell.com>
34025 * Control.cs(Select): Moved SetFocus call to avoid potential
34026 loops if controls change the active control when getting focus
34027 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
34028 the up/down buttons
34030 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
34032 * ImageListConverter.cs: Implemented
34034 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
34036 * MonthCalendar.cs: Wired in NumericUpDown control for year
34038 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
34040 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
34041 DoubleClick events, since they are not meant to be fired.
34043 2005-06-09 Peter Bartok <pbartok@novell.com>
34045 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
34046 Jonathan's standalone controls into MWF, implemented missing
34047 events, attributes and methods; added xxxAccessible classes
34048 * AccessibleObject.cs: Made fields internal so other classes
34049 can change them if needed
34051 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
34053 * UpDownBase.cs: Complete implementation
34054 * NumericUpDown.cs: Complete implementation
34055 * DomainUpDown.cs: Complete implementation
34057 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
34059 * DataGridTextBoxColumn.cs: drawing fixes
34060 * DataGridCell.cs: fixes ToString method to match MSNet
34061 * DataGridTableStyle.cs: fixes
34062 * DataGridBoolColumn.cs: fixes, drawing
34063 * DataGridDrawingLogic.cs: fixes, new methods
34064 * DataGridTextBox.cs: Keyboard and fixes
34066 - Keyboard navigation
34068 - Row selection (single, multiple, deletion, etc)
34071 2005-06-07 Jackson Harper <jackson@ximian.com>
34073 * ThemeWin32Classic.cs: Clear the background area when drawing
34076 2005-06-06 Peter Bartok <pbartok@novell.com>
34078 * ImageListStreamer.cs: Fixed signature for GetData
34079 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
34081 - Added missing ChildAccessibleObject class
34082 - Added missing OnXXXFocus overrides, switched to using those
34083 instead of the event handler
34085 - Added Parent property for ControlAccessibleObject
34088 - Added ResetBindings()
34089 * ListBindingConverter.cs: Implemented some methods
34090 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
34091 * ImageList.cs: Implemented basic handle scheme, removed TODOs
34092 * ContainerControl.cs: Fixed signature, now subscribing to the
34093 ControlRemoved event instead of overriding the handler, LAMESPEC
34094 * CurrencyManager.cs: Added missing attribute
34095 * MonthCalendar.cs: Added missing properties
34097 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
34099 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
34101 2005-06-06 Gaurav Vaish and Ankit Jain
34103 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
34104 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
34106 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
34108 * Control.cs: fixes CreateParams Width / Height.
34110 2005-06-05 Peter Bartok <pbartok@novell.com>
34112 * Win32DnD.cs: Removed compilation warnings
34114 2005-06-05 Peter Bartok <pbartok@novell.com>
34116 * Control.cs (CreateParams): Since we don't know if one of the
34117 properties we use is overridden, lets make sure if we fail accessing
34118 we continue with a backup plan
34120 2005-06-05 Peter Bartok <pbartok@novell.com>
34123 - Removed debug output
34124 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
34126 - Plugged resource leak
34127 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
34130 2005-06-05 Peter Bartok <pbartok@novell.com>
34132 * XplatUIWin32.cs: Removed DnD code
34133 * Win32DnD.cs: Implemented drop source and drop target functionality
34135 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
34137 * UpDownBase.cs: remove duplicate addition of event, enable some code
34138 that was commented out.
34139 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
34140 Validate input when a key is pressed. It works fine now for every
34141 combination of Hexadecimal. Only missing some drawing love when sharing
34142 space with other controls.
34144 2005-06-04 Peter Bartok <pbartok@novell.com>
34147 - We need to pass a window for DragDrop, so enable callback events
34148 - Added DnD callback events when being a DragSource
34149 * XplatUI.cs (StartDrag): Added window handle argument
34150 * XplatUIDriver.cs (StartDrag): Added window handle argument
34151 * QueryContinueDragEventArgs: Made fields internally accessible so
34152 drivers can set them
34153 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
34156 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
34158 * DataGridTextBoxColumn.cs: column text editing
34159 * DataGridTableStyle.cs: Respect columns styles created by the user
34160 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
34161 * DataGridBoolColumn.cs: bool column editing
34162 * DataGrid.cs: fixes to scrolling, properties, etc
34163 * DataGridTextBox.cs: handle keyboard
34164 * DataGridColumnStyle.cs: fixes
34166 2005-06-02 Jackson Harper <jackson@ximian.com>
34168 * ImageListStreamer.cs: Somewhat broken implementation of
34169 GetObjectData. The RLE needs some work to match MS properly.
34171 2005-06-02 Jackson Harper <jackson@ximian.com>
34173 * X11Dnd.cs: Attempting to keep at least one file in MWF
34176 2005-06-02 Peter Bartok <pbartok@novell.com>
34178 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
34181 2005-06-02 Peter Bartok <pbartok@novell.com>
34183 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
34184 * XplatUI.cs: Added DoDragDrop() method
34185 * XplatUIDriver.cs: Added DoDragDrop() method
34187 2005-06-02 Jackson Harper <jackson@ximian.com>
34189 * Splitter.cs: Implement BorderStyle.
34191 2005-06-02 Jackson Harper <jackson@ximian.com>
34193 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
34194 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
34197 2005-06-02 Peter Bartok <pbartok@novell.com>
34200 - Added Data setter
34201 - Fixed broken insertion code for SetData, now also
34202 overwrites any existing entry of the same format name
34203 * Hwnd.cs: Added list of pointers that automatically gets
34204 freed when the window is disposed
34205 * XplatUI.cs: Call driver initialization method when loading
34208 - OnDragLeave takes EventArgs, not DragEventArgs
34209 - Added setting of WS_EX_ACCEPTFILES style when dropping is
34211 - Forces style update when drop state changes
34212 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
34213 not perfect since we cannot (yet) call the IDataObject.GetData()
34214 method, we keep getting 0x80004005 error, dunno why)
34216 2005-06-02 Peter Bartok <pbartok@novell.com>
34218 * DragEventArgs.cs: Make fields internal so we can cache the
34219 object and re-set the fields from XplatUI
34221 2005-06-02 Jackson Harper <jackson@ximian.com>
34223 * Control.cs: Add some internal methods so the DnD subsystem can
34224 raise DnD events. Also call into the driver when AllowDrop is set.
34226 * XplatUIDriver.cs: New method for setting whether or not a window
34227 is allowed to accept drag and drop messages.
34229 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
34231 * ScrollBar.cs: Make sure that values sent in Scroll events
34232 are always between Maximum and Minimum.
34234 2005-06-01 Marek Safar <marek.safar@seznam.cz>
34236 * Menu.cs: Call MenuChanged when menuitem visibility has been
34238 * MenuItem.cs: Rebuild menu when item is (not) visible.
34239 * MainMenu.cs: MainMenu has special MenuChanged.
34240 * Theme.cs: Caption and FrameBorderSize are not fixed.
34241 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
34242 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
34244 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
34245 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
34247 2005-05-30 Jackson Harper <jackson@ximian.com>
34249 * DataFormat.cs: We can't statically initialize this stuff because
34250 it calls into the xplatui and could create a loop. So we lazy init
34253 2005-05-28 Jackson Harper <jackson@ximian.com>
34255 * Control.cs: Proper implementation of Product(Name/Version).
34257 2005-05-27 Jackson Harper <jackson@ximian.com>
34259 * DataObject.cs: Dont crash if no data is found.
34261 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
34262 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
34263 as per status page, guessing it should be set to true
34265 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
34267 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
34268 * DataGridTableStyle.cs: set proper formatting text, def header text
34269 * ThemeWin32Classic.cs: new themable paramaters
34270 * DataGridBoolColumn.cs: paint check box, get data, fixes
34271 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
34272 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
34273 * DataGridColumnStyle.cs: fixes
34274 * Theme.cs: new themable paramaters
34276 2005-05-26 Peter Bartok <pbartok@novell.com>
34278 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
34280 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34281 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
34283 2005-05-24 Peter Bartok <pbartok@novell.com>
34285 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
34286 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
34287 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
34288 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
34289 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
34290 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
34291 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
34292 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
34293 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
34294 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
34295 missing attributes, etc
34296 * DataGridPreferredColumnWidthTypeConverter.cs: Added
34298 2005-05-24 Peter Bartok <pbartok@novell.com>
34300 * Help.cs: Added, implemented trivial functions, throws up MessageBox
34301 when user tries to get help
34302 * DataObject.cs, DataFormats.cs, LinkArea.cs,
34303 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
34304 to suppress warnings
34305 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
34306 avoid unreachable code warning
34308 2005-05-20 Peter Bartok <pbartok@novell.com>
34310 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
34312 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
34314 * DataGridTextBoxColumn.cs: Basic painting methods
34315 * DataGridTableStyle.cs: Set table style in the column
34316 * ThemeWin32Classic.cs: Use Theme for colors
34317 * DataGridDrawingLogic.cs: Implement more drawing
34318 * DataGrid.cs: drawing, theming, enhacements, fixes
34319 * DataGridColumnStyle.cs: fixes, drawing
34320 * Theme.cs: theming for Datagrid
34322 2005-05-20 Peter Bartok <pbartok@novell.com>
34324 * Cursor.cs: Implemented GetObjectData() method
34326 2005-05-20 Peter Bartok <pbartok@novell.com>
34328 * Cursors.cs: Added setting of cursor name
34330 - Implemented constructors
34331 - Implemented Draw and DrawStretched
34332 - Implemented Current property
34333 - Implemented == and != operators
34334 - Implemented Dispose()
34335 - Implemented ToString
34336 - Added missing attributes
34338 - Added missing reset for OverrideCursor when DoEvents is called
34339 - Fixed creation of cursor, logic was wrong
34341 - Added missing reset for OverrideCursor when DoEvents is called
34342 - Fixed creation of cursor, bit arrays were swapped
34343 * Clipboard.cs: Removed obsolete MonoTODO attribute
34345 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
34347 * ComboBox.cs: fixes OnSelectedItemChanged
34348 * ControlBindingsCollection.cs: fixes item range check
34350 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
34353 - Calc preferred height properly
34354 - Implement missing properties
34356 * NumericUpDown.cs: Implement missing events
34358 2005-05-19 Jackson Harper <jackson@ximian.com>
34360 * TabControl.cs: New method that resizes the tab pages before
34361 redrawing them. This as needed as the control is double buffered
34362 and sizing will not be recalculated unless ResizeTabPages is
34364 * TabPage.cs: Set base.Text instead of Text in the constructor so
34365 that UpdateOwner does not get called. Use the new Redraw method of
34366 TabControl instead of Refresh so the sizing is recalculated.
34367 * ThemeWin32Classic.cs: Draw the text for button tabs.
34369 2005-05-19 Jackson Harper <jackson@ximian.com>
34371 * Control.cs: Paint control background images. Fix typo where
34372 PaintControlBackground was not getting called correctly.
34374 2005-05-19 Peter Bartok <pbartok@novell.com>
34376 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
34377 I can investigate, apparently I broke FileDialog
34379 2005-05-19 Marek Safar <marek.safar@seznam.cz>
34381 * AxHost.cs: Some simple properties.
34382 * Control.cs: window must be accessible after ctor.
34383 * Form.cs: Added TransparencyKey property.
34384 * TextBoxBase.cs: Implemented Clear. Text property can be null.
34385 * XplatUIWin32.cs: SetBorderStyle implemented.
34387 2005-05-18 Peter Bartok <pbartok@novell.com>
34389 * DataObject.cs: Entries are not global but particular to the
34390 DataObject, now it behaves that way
34391 * XplatUIWin32.cs: Implemented Clipboard methods
34392 * Clipboard.cs: Implemented
34393 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
34394 * XplatUIOSX.cs: Updated to final clipboard prototypes
34395 * XplatUIX11.cs: Implemented Clipboard methods
34396 * XplatUIDriver.cs: Updated to final clipboard prototypes
34397 * XplatUIStructs.cs:
34398 - Added BITMAPINFOHEADER struct
34399 - Added ClipboardFormats enum
34401 - Added ClipboardStruct
34402 - Added Atom enum items for clipboard types
34403 - Fixed atom types for Selection event structures
34405 - Added internal properties and methods for drivers to enumerate
34407 - Switched initialization method to allow drivers to assign their
34408 own IDs even for the MS predefined clipboard IDs
34409 * XplatUI.cs: Updated to final clipboard interface
34411 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34412 * PropertyGridView.cs: Fixed compiler warnings.
34414 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34415 * PropertyGrid.cs: Added some event calls
34416 * PropertyGridView.cs: Change drawing code to use double buffering
34417 * PropertyGridTextBox.cs: Changed Text property name
34418 * GridItem.cs: Added Bounds property.
34419 * GridEntry.cs: Added Bounds property.
34421 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
34423 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
34424 since GetType() may not return the correct type if the object is
34427 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
34429 * TreeNodeCollection.cs: fixes get/set item ranges
34431 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
34433 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
34435 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
34437 * ComboBox.cs: Fix item range comparation
34438 * ListView.cs: Fix item range comparation
34440 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
34443 - Clear example panel when OnPaint is called
34444 - Better solution for displaying the example panel text
34445 - Select default indexes in the ListBoxes
34447 2005-05-11 Geoff Norton <gnorton@customerdna.com>
34449 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
34451 2005-05-11 Peter Bartok <pbartok@novell.com>
34453 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
34454 * SelectionRangeConverter.cs: Implemented
34455 * PropertyGrid.cs: Fixed attribute value
34457 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
34458 - Added Sebastien Pouliot's CAS Stack Propagation fixes
34459 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
34460 that's common to all drivers. First methods to go there are
34461 Sebastien Pouliot's CAS Stack Propagation helper methods
34462 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
34463 Sebastien Pouliot for CAS Stack Propagation
34465 2005-05-11 Geoff Norton <gnorton@customerdna.com>
34468 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
34470 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
34472 * DataGridTextBoxColumn.cs: fixed some members
34473 * GridColumnStylesCollection.cs: indexed column is case insensitive
34474 * DataGridTableStyle.cs: fixes
34475 * ThemeWin32Classic.cs: add new theme parameter
34476 * Theme.cs: add new theme parameter
34477 * DataGridDrawingLogic.cs: Datagrid's drawing logic
34478 * DataGrid.cs: fixes, new internal properties, etc.
34479 * DataGridColumnStyle.cs: allows to set grid value
34482 2005-05-10 Peter Bartok <pbartok@novell.com>
34484 * AccessibleObject.cs:
34485 - Removed MonoTODO attribute on help, method is correct
34486 - Fixed Bounds property
34487 * AxHost.cs: Moved MonoTODO
34488 * ButtonBase.cs: Now setting AccessibleObject properties
34489 * RadioButton.cs: Setting proper AccessibleObject role
34490 * CheckBox.cs: Setting proper AccessibleObject role
34491 * ControlBindingsCollection.cs: Added properties, methods and attributes
34492 * DataFormats.cs: Fixed awkward internal API, and changed to enable
34493 userdefined DataFormats.Format items as well
34494 * ListControl.cs: Removed data_member from the public eye
34495 * OpenFileDialog.cs:
34496 - Made class sealed
34497 - Added missing attributes
34498 * SaveFileDialog.cs: Added missing attributes
34499 * ImageListStreamer.cs: Fixed code that caused warnings
34500 * LinkLabel.cs: Removed unreachable code
34501 * TreeView.cs: Fixed code that caused warnings
34502 * PropertyGridView.cs: Fixed code that caused warnings
34503 * GridColumnStylesCollection.cs: Added missing attributes
34504 * GridTableStylesCollection: Added missing attribute
34505 * PropertyManager: Added .ctor
34506 * SecurityIDType: Added
34507 * DataObject.cs: Implemented class
34508 * LinkArea.cs: Added missing attribute
34510 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
34512 * RadioButton.cs: call base method to allow to fire OnClick event
34513 * UpDownBase.cs: OnMouseUp call base method
34514 * CheckedListBox.cs: call base method before returning
34515 * TrackBar.cs: call base method before returning
34518 2005-05-10 Peter Bartok <pbartok@novell.com>
34520 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
34523 2005-05-10 Peter Bartok <pbartok@novell.com>
34525 * DataFormats.cs: Implemented
34526 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
34527 XplatUIX11.cs: Added Clipboard APIs
34528 * XplatUIWin32.cs: Implemented Clipboard APIs
34529 * FolderBrowserDialog.cs: Added missing event, attributes
34531 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
34533 * CheckBox.cs: call base method to allow to fire OnClick event
34535 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
34537 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
34539 2005-05-06 Peter Bartok <pbartok@novell.com>
34541 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
34542 * Screen.cs: Implemented
34543 * HelpNavigator.cs: Added
34544 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
34546 * HelpProvider.cs: Implemented all we can do until we have a CHM
34547 help library (which means that "What's This" does work now)
34549 2005-05-06 Jackson Harper <jackson@ximian.com>
34551 * XplatUIX11.cs: Fix waking up the main loop.
34553 2005-05-05 Peter Bartok <pbartok@novell.com>
34555 * XplatUI.cs: Updated revision
34556 * Form.cs: Removed enless loop
34557 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
34558 * Label.cs (OnPaint): Added call to base.OnPaint()
34559 * ToolTip.cs: Made ToolTipWindow reusable for other controls
34560 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
34561 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
34563 * ButtonBase.cs: Moved base.OnPaint() call to end of method
34564 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
34565 to ToolTip.ToolTipWindow for drawing and size methods; this allows
34566 reuse of ToolTipWindow by other controls
34567 * SizeGrip.cs: Moved base.OnPaint() call to end of method
34568 * XplatUIX11.cs: Now clipping drawing area (experimental)
34569 * PictureBox.cs: Moved base.OnPaint() call to end of method
34570 * Theme.cs: Fixed ToolTip abstracts to match new format
34571 * ErrorProvider.cs: Implemented
34573 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
34575 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
34579 - Implements LinkBehavior
34580 - Fixes many issues
34582 2005-05-03 Jackson Harper <jackson@ximian.com>
34584 * ListView.cs: Calculate the scrollbar positioning on resize and
34585 paint, so they get put in the correct place.
34587 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
34589 * ColorDialogs.cs: The small color panels are now handled by
34590 SmallColorControl. This fixes drawing of the focus rectangle
34591 and adds a 3D border.
34593 2005-05-03 Peter Bartok <pbartok@novell.com>
34595 * Control.cs: Modified version of Jonathan Chamber's fix for
34598 2005-05-03 Jackson Harper <jackson@ximian.com>
34600 * ListView.cs: Remove redraw variable. Control now handles whether
34601 or not a redraw needs to be done, and will only raise the paint
34602 event if redrawing is needed.
34604 2005-05-03 Jackson Harper <jackson@ximian.com>
34606 * Splitter.cs: No decorations for the splitter form. Cache the
34609 2005-05-03 Jackson Harper <jackson@ximian.com>
34611 * TreeView.cs: Use dashed lines to connect nodes. Use the
34612 ControlPaint method for drawing the focus rect instead of doing
34615 2005-05-02 Peter Bartok <pbartok@novell.com>
34617 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
34619 2005-04-29 Jackson Harper <jackson@ximian.com>
34621 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
34622 entire image buffer. Just clear the clipping rectangle.
34624 2005-04-29 Jackson Harper <jackson@ximian.com>
34626 * ThemeWin32Classic.cs: Don't draw list view items that are
34627 outside the clipping rectangle.
34629 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
34631 * ListBox.cs: added horizontal item scroll
34633 2005-04-29 Jackson Harper <jackson@ximian.com>
34635 * ThemeWin32Classic.cs: Remove some old debug code that was
34636 causing flicker with the new double buffering code.
34638 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
34640 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
34641 behave like combobox and comboboxlist (still not sure if this is
34644 2005-04-28 Jackson Harper <jackson@ximian.com>
34646 * ThemeWin32Classic.cs: Don't fill the middle of progress
34647 bars. This fills areas outside of the clip bounds that don't need
34650 2005-04-28 Jackson Harper <jackson@ximian.com>
34652 * Control.cs: Don't expose functionality to touch the image buffers.
34654 * ListView.cs: We do not need to (and no longer can) manipulate
34655 the image buffers directly. All of this is handled by Control.
34657 2005-04-28 Peter Bartok <pbartok@novell.com>
34659 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
34660 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
34661 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
34663 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
34666 - Adjust control's height for non-simple comboboxes (bug fix)
34668 * MenuAPI.cs: remove unused var
34669 * ScrollBar.cs: remove unsed var
34671 * ListBox.cs: unselect items when clearing
34673 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
34675 * ListControl.cs: honors OnPositionChanged and default Selected Item
34676 * ListBox.cs: unselect items when clearing
34678 2005-04-27 Jackson Harper <jackson@ximian.com>
34680 * X11Keyboard.cs: Initialize a default keyboard and give a warning
34681 if a "correct" keyboard is not found. This will make us not crash,
34682 but might give some users bad keyboard layouts...seems to be the
34683 same thing rewind does.
34685 2005-04-27 Jackson Harper <jackson@ximian.com>
34687 * BindingManagerBase.cs: Attach the current/position changed
34688 handlers to their respective events.
34690 2005-04-27 Jackson Harper <jackson@ximian.com>
34692 * Control.cs: Make sure that the first WM_PAINT does a full draw,
34694 * ThemeWin32Classic.cs: Don't fill the background for picture
34695 boxes. This could overright user drawing.
34696 * ComboBox.cs: Just fill the clipping rect not the entire client
34697 rect when drawing the background. This prevents pieces of the
34698 image buffer from getting overwritten and is theoretically faster.
34700 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
34702 * ComboBox.cs: Databinding support fixes, fire missing events
34703 * ListControl.cs: implement missing methods and properties, fixes
34704 * ThemeWin32Classic.cs: Databiding support on Drawing
34705 * CheckedListBox.cs: Databinding support fixes, fire missing events
34706 * ListBox.cs: Databinding support fixes, fire missing events
34708 2005-04-25 Peter Bartok <pbartok@novell.com>
34710 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
34712 2005-04-25 Jackson Harper <jackson@ximian.com>
34714 * TreeView.cs: Use the horizontal scrollbars height not width when
34715 determining how much of the client area is available.
34717 2005-04-25 Jackson Harper <jackson@ximian.com>
34719 * Control.cs: Double buffering is handled differently now. As per
34720 the spec, the extra buffer is created in the WM_PAINT message and
34721 passed down to the control's drawing code.
34729 * PropertyGridView.cs:
34741 * DateTimePicker.cs:
34743 * TreeView.cs: Update to new double buffering system.
34744 * MonthCalendar.cs: Uncomment block, as Capture is now
34745 working. Update to new double buffering
34746 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
34747 * PaintEventArgs.cs: New internal method allows us to set the
34748 graphics object. This is used for double buffering.
34749 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
34750 rectangle. The internal paint_area var has been removed from
34751 StatusBar. The clipping rect should be used instead.
34752 * Theme.cs: Give the PictureBox drawing method a clipping rect.
34753 * TabPage.cs: The RefreshTabs method was removed, so just call the
34754 tab controls Refresh method now.
34755 * TabControl.cs: Update to new double buffering. Make sure the
34756 handle is created before sizing the tab pages, otherwise we will
34757 get stuck in a loop.
34759 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
34761 * LinkLabel.cs: Fix typo, bug #74719; patch
34762 from Borja Sanchez Zamorano
34764 2005-04-22 Jackson Harper <jackson@ximian.com>
34766 * TreeNode.cs: Implement Handle stuff.
34767 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
34769 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
34771 * DataGridTextBoxColumn.cs: call base constructors, fixes
34772 * GridColumnStylesCollection.cs: missing events, methods, and functionality
34773 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
34774 * DataGridTableStyle.cs: implements create default column styles
34775 * DataGridBoolColumn.cs: which types can handle
34776 * DataGrid.cs: missing methods, fixes, new functionality
34777 * DataGridColumnStyle.cs: fixes
34779 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
34780 * FolderBrowserDialog.cs:
34781 - Use a thread to fill the TreeView
34782 - Adjusted some sizes
34784 2005-04-19 Peter Bartok <pbartok@novell.com>
34786 * LinkLabel.cs: (Re-)create the pieces when setting the Text
34787 property. Fixes #74360.
34789 2005-04-19 Jackson Harper <jackson@ximian.com>
34791 * XEventQueue.cs: Lock when getting the lockqueue size.
34792 * PictureBox.cs: Call base OnPaint
34794 2005-04-19 Peter Bartok <pbartok@novell.com>
34796 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
34797 messages were no longer being processed (this broke BeginInvoke)
34800 2005-04-18 Jackson Harper <jackson@ximian.com>
34802 * TreeView.cs: buglet that caused node images to get drawn
34803 regardless of whether or not they were in the clipping rectangle.
34805 2005-04-18 Jackson Harper <jackson@ximian.com>
34807 * CurrencyManager.cs: There are four rules for GetItemProperties:
34808 - If the type is an array use the element type of the array
34809 - If the type is a typed list, use the type
34810 - If the list contains an Item property that is not an object, use
34812 - use the first element of the list if there are any elements in
34815 2005-04-17 Jackson Harper <jackson@ximian.oom>
34817 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
34818 click. This handles offsets for scrolling properly and reduces
34819 memory. Also fixed GetNode to not offset now that TopNode works
34821 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
34823 2005-04-17 Jackson Harper <jackson@ximian.com>
34825 * CursorConverter.cs: Initial implementation.
34827 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
34829 * ListControl.cs: work towards complex data binding support on ListControl
34830 * CurrencyManager.cs: work towards complex data binding support on ListControl
34831 * ListBox.cs: work towards complex data binding support on ListControl
34834 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
34836 * GridTableStylesCollection.cs: fixes name and constructor
34837 * DataGridTableStyle.cs: fixes
34838 * DataGridBoolColumn.cs: fixes names and constructors
34839 * DataGrid.cs: define methods and properties. Some init implementations
34840 * DataGridCell.cs: define methods and properties. Some init implementations
34841 * GridTablesFactory.cs: Define methods and properties
34843 2005-04-15 Geoff Norton <gnorton@customerdna.com>
34845 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
34846 graphics port changes. We still want the coordinates in global screen
34849 2005-04-14 Jackson Harper <jackson@ximian.com>
34851 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
34852 check plus minus or checkbox clicks unless those features are enabled.
34854 2005-04-14 Jackson Harper <jackson@ximian.com>
34856 * TreeView.cs: Add methods for setting the top and bottom visible
34857 nodes. TreeNode::EnsureVisible uses these methods.
34858 * TreeNode.cs: Implement EnsureVisible
34860 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
34862 * Form.cs: Pospone menu assignation if the window has not been created yet
34863 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
34866 2005-04-12 Jackson Harper <jackson@ximian.com>
34868 * TreeView.cs: Set the TopNode properly when scrolling
34869 occurs. This has the added benifit of reducing the amount of
34870 walking that needs to be done when drawing. Also removed an old
34872 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
34874 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
34876 * Timer.cs: fixes interval setting when the timer is already enabled
34878 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
34880 * FolderBrowserDialog.cs: First approach
34882 2005-04-09 Peter Bartok <pbartok@novell.com>
34884 * FolderBrowserDialog: Added
34886 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
34888 * LinkLabel.cs: move drawing code into the theme
34889 * ThemeWin32Classic.cs: drawing code and painting background bugfix
34890 * Theme.cs: define DrawLinkLabel method
34892 2005-04-05 Jackson Harper <jackson@ximian.com>
34894 * BindingContext.cs: Use weak references so these bad actors don't
34895 stay alive longer then they need to.
34897 2005-04-05 Jackson Harper <jackson@ximian.com>
34899 * ListControl.cs: Basic implementation of complex databinding.
34901 * ListBox.cs: Add calls to ListControl databinding methods.
34903 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
34906 - Don't change PopupButtonState to Normal when the
34907 PopupButton gets pressed several times.
34908 - Renamed ButtonPanel to PopupButtonPanel
34910 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
34912 * ColorDialog.cs: Use cached objects instead of creating them
34913 * LinkLabel.cs: Use cached objects instead of creating them
34914 * Splitter.cs: Use cached objects instead of creating them
34915 * FontDialog.cs: Use cached objects instead of creating them
34916 * PropertyGridView.cs: Use cached objects instead of creating them
34917 * MessageBox.cs: Use cached objects instead of creating them
34918 * FileDialog.cs: Use cached objects instead of creating them
34919 * ThemeWin32Classic.cs: Use cached objects instead of creating them
34920 * TreeView.cs: Use cached objects instead of creating them
34922 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
34924 * Control.cs: use Equals to compare the font since no == op
34925 * ScrollBar.cs: use Equals to compare the font since no == op
34927 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
34929 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
34931 2005-04-01 Jackson Harper <jackson@ximian.com>
34933 * Binding.cs: Implement IsBinding.
34934 * BindingManagerBase.cs:
34935 * PropertyManager.cs:
34936 * CurrencyManager.cs: Add IsSuspended property.
34938 2005-04-01 Jackson Harper <jackson@ximian.com>
34940 * Binding.cs: Had some IsAssignableFrom calls backwards.
34942 2005-04-01 Jackson Harper <jackson@ximian.com>
34944 * Binding.cs: Handle null data members when pulling data.
34945 * PropertyManager.cs: Handle the data member being a property that
34948 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
34950 * DataGridTextBoxColumn.cs: fixes signature
34951 * DataGrid.cs: calls right constructor
34953 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
34955 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
34956 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
34957 * GridTableStylesCollection.cs: implements GridTableStylesCollection
34958 * DataGridTableStyle.cs: implements DataGridTableStyle
34959 * DataGridBoolColumn.cs: implements DataGridBoolColumn
34960 * DataGridTextBox.cs: implements DataGridTextBox
34961 * DataGridColumnStyle.cs: implements DataGridColumnStyle
34963 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
34965 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
34967 2005-03-29 Peter Bartok <pbartok@novell.com>
34970 - Properly implemented CompanyName property
34971 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
34972 returns a path that includes CompanyName, ProductName and
34973 Version (fixes bug #70330)
34975 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
34977 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
34980 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
34982 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34984 - Added ReadOnly CheckBox
34985 - Further refactoring: moved some code from Open-/SaveFileDialog
34988 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
34990 * OpenFileDialog.cs: Fixed CheckFileExists
34992 Moved FileView and DirComboBox outside FileDialog class.
34993 They can now be used outside FileDialog
34995 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
34997 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34998 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
35000 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
35002 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
35003 - Added missing CreatePrompt property in SaveDialog
35004 - Overall SaveDialog handling should be better now
35005 - Added non standard ShowHiddenFiles property
35006 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
35007 - Added InitialDirectory and RestoreDirectory support
35009 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
35011 * FileDialog.cs: Made dirComboBox usable
35013 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
35015 * FileDialog.cs: Added Filter support (case sensitiv)
35017 2005-03-24 Jackson Harper <jackson@ximian.com>
35019 * TabControl.cs: Need a couple more pixels for the lines.
35021 2005-03-23 Jackson Harper <jackson@ximian.com>
35023 * TabControl.cs: Give the tab page focus when it is selected.
35025 2005-03-23 Jackson Harper <jackson@ximian.com>
35027 * TabControl.cs: Account for the drawing of tabs borders when
35028 invalidating. If the slider was clicked dont do click detection on
35031 2005-03-23 Jackson Harper <jackson@ximian.com>
35033 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
35035 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
35037 * CategoryGridEntry.cs: Added
35038 * GridItem.cs: Added helper properties
35039 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
35040 * GridEntry.cs: Updated code for collection
35041 * PropertyGrid.cs: Cleaned up some formatting
35042 * PropertyGridView.cs: Added drop down functionality for enums.
35043 * GridItemCollection.cs: Added enumerator logic
35044 * PropertyGridEntry.cs: Added
35046 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
35049 - Removed unnecessary commented code
35050 - Fixed handling for entering the filename manually in the combobox
35052 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
35054 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
35056 2005-03-18 Peter Bartok <pbartok@novell.com>
35058 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
35059 them being touching the border
35061 2005-03-18 Peter Bartok <pbartok@novell.com>
35063 * TextControl.cs: Quick hack to center text better
35065 2005-03-18 Peter Bartok <pbartok@novell.com>
35068 - Don't throw NotImplemented exceptions, just print a notice once
35069 instead (requested by Miguel). This makes running existing SWF
35072 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
35073 - Added context menu trigger on right click
35074 * Panel.cs: Trigger invalidate on resize
35076 - Removed old double-buffer drawing
35077 - Added ResizeRedraw style to force proper update of statusbar
35079 - Removed debug output
35080 * ThemeWin32Classic.cs:
35081 - Fixed drawing of status bar, now draws Text property if there
35082 are no defined panels
35084 2005-03-18 Jackson Harper <jackson@ximian.com>
35086 * ImageList.cs: When the image stream is set pull all the images
35088 * ImageListStreamer.cs: Implement reading image list streams.
35090 2005-03-18 Peter Bartok <pbartok@novell.com>
35092 * ThemeWin32Classic.cs (DrawPictureBox):
35093 - Fixed calculations for centered drawing
35094 - Fixed drawing for normal mode, not scaling the image on normal
35096 2005-03-18 Peter Bartok <pbartok@novell.com>
35098 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
35101 - Made Open/Save button the accept button for FileDialog
35102 - Tied the cancel button to the IButtonControl cancel button
35103 - Save/Open now properly builds the pathname
35104 - Now handles user-entered text
35105 - Preventing crash on right-click if no item is selected
35106 - Fixed Text property, now uses contents of textbox
35107 - Fixed SelectedText property, now just returns the text part that
35108 is selected in the text box
35110 2005-03-18 Jackson Harper <jackson@ximian.com>
35112 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
35113 rect, make sure to de-adjust the interior rect after drawing the
35116 2005-03-18 Peter Bartok <pbartok@novell.com>
35118 * MenuAPI.cs: Remove menu *before* executing selected action to
35119 prevent the menu from 'hanging around'
35121 2005-03-17 Geoff Norton <gnorton@customerdna.com>
35123 * XplatUIOSX.cs: Implemented WorkingArea property
35125 2005-03-17 Peter Bartok <pbartok@novell.com>
35127 * XplatUIX11.cs: Fixed menu coord calculations
35128 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
35129 for calculating offsets
35131 2005-03-17 Peter Bartok <pbartok@novell.com>
35133 * Hwnd.cs: Do not consider menu presence for default client
35134 rectangle location/size
35135 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
35136 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
35137 translation functions
35138 * FileDialog.cs: Fixed (what I presume is a) typo
35140 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
35142 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
35143 X access (avoids X-Async errors)
35145 2005-03-16 Jackson Harper <jackson@ximian.com>
35147 * TabControl.cs: Raise the SelectedIndexChanged event.
35149 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
35151 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
35152 - Removed vertical ToolBar and replaced it with a custom panel
35153 (desktop and home button already work)
35154 - Added Help button (some controls get resized or relocated then)
35155 - Draw correct text depending on Open or Save.
35156 - Fixed some typos...
35158 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
35161 - Only change Maximum and Minimum when need it (bug fix)
35163 2005-03-15 Peter Bartok <pbartok@novell.com>
35165 * Form.cs: Use Handle for icon, to trigger creation if
35166 the window does not yet exist
35168 - CanSelect: Slight performance improvement
35169 - Focus(): Preventing possible recursion
35170 - Invalidate(): Removed ControlStyle based clear flag setting
35171 - WM_PAINT: fixed logic for calling OnPaintBackground
35172 - WM_ERASEBKGND: Fixed logic, added call to new driver method
35173 EraseWindowBackground if the control doesn't paint background
35175 - Moved EraseWindowBackground() method to internal methods
35176 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
35177 is sent via SendMessage on BeginPaint call on Win32
35179 - Added EraseWindowBackground() method
35180 - No longer sends WM_ERASEBKGND on .Expose, but on call to
35181 PaintEventStart, which more closely matches Win32 behaviour
35182 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
35183 - Fixed SetFocus() to properly deal with client and whole windows
35184 * Hwnd.cs: Added ErasePending property
35185 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
35186 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
35188 2005-03-12 Geoff Norton <gnorton@customerdna.com>
35191 - Fix hard loop when timers exist.
35192 - Fix bugs with middle and right click for 3 button mice.
35194 2005-03-11 Peter Bartok <pbartok@novell.com>
35197 - get_WorkingArea: Need to call X directly, GetWindowPos only
35198 returns cached data now
35199 - Added sanity check to GetWindowPos hwnd usage
35201 2005-03-11 Jackson Harper <jackson@ximian.com>
35203 * BindingManagerBase.cs: This method isn't used anymore as
35204 PullData now updates the data in the control.
35206 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
35208 * Form.cs: fixes menu drawing on X11
35209 * MenuAPI.cs: fixes menu drawing on X11
35211 2005-03-11 Peter Bartok <pbartok@novell.com>
35213 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
35214 from Jonathan Gilbert; should fix bug #73606
35215 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
35216 in Screen coordinates. Thanks, Jordi.
35217 * Form.cs: Added missing attribute
35219 2005-03-11 Peter Bartok <pbartok@novell.com>
35222 - Rudimentary Mdi support
35223 - Removed outdated FormParent code
35224 - Implemented lots of missing properties and methods, still missing
35225 transparency support
35226 - Added missing attributes
35227 - Implemented support for MaximumBounds
35228 - Added firing of various events
35229 * XplatUI.cs: Added SetIcon() method
35230 * XplatUIDriver.cs: Added SetIcon() abstract
35231 * XplatUIOSX.cs: Stubbed out SetIcon() method
35233 - Implemented SetIcon() support
35234 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
35235 - Switched to unix line endings
35237 - Made POINT internal so for can access it as part of MINMAX
35238 - Implemented SetIcon() support
35239 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
35240 native Mdi support again, might have to go managed)
35241 * Control.cs: Now fires the StyleChanged event
35242 * MdiClient.cs: Added; still mostly empty
35244 2005-03-10 Peter Bartok <pbartok@novell.com>
35246 * SaveFileDialog.cs: Added emtpy file
35248 2005-03-08 Peter Bartok <pbartok@novell.com>
35250 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
35251 in turn triggers OnCreateContro) when creating a handle for the
35253 * TextControl.cs: Fixed endless loop in certain cases when
35254 replacing the current selection
35256 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
35259 - Honors NewValue changes in Scroll events allowing apps to change it
35260 - Adds First and Last Scroll events
35261 - Fixes Thumb events
35263 2005-03-07 Peter Bartok <pbartok@novell.com>
35265 * Hwnd.cs: Added DefaultClientRectangle property
35266 * XplatUI.cs: Now using the X11 driver Where() method, which provides
35267 more detailed debug information
35269 - Fixed size-change feedback loop, where we would pull an old size
35270 off the queue and mistakenly change our window's size to an
35272 - Now compressing ConfigureNotify events, to reduce looping and
35274 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
35277 2005-03-07 Jackson Harper <jackson@ximian.com>
35279 * Binding.cs: Push data pushes from data -> property. Check if the
35280 property is readonly when attempting to set it.
35282 2005-03-07 Jackson Harper <jackson@ximian.com>
35284 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
35285 instead of IsSubclassOf. Pulling data now sets the value on the
35287 * PropertyManager.cs:
35288 * CurrencyManager.cs: Just need to pull data when updating now,
35289 because PullData will set the value on the control.
35291 2005-03-04 Jackson Harper <jackson@ximian.com>
35293 * Binding.cs: Implement data type parsing and converting on pulled
35294 data. TODO: Are there more ways the data can be converted?
35296 2005-03-04 Jackson Harper <jackson@ximian.com>
35298 * Binding.cs: Support <Property>IsNull checks. Also bind to the
35299 controls Validating method so we can repull the data when the
35300 control loses focus.
35302 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
35305 - Fixes null string format
35308 - Adds enum type checks
35309 - Fixes redrawing and recalc need after changing some properties
35310 - Fixes on focus_item set after the event
35311 - Fixes adding columns after the control has been created
35313 * ThemeWin32Classic.cs:
35314 - Fixes CheckBox focus rectangle
35315 - Fixes ColumnHeader drawing
35318 2005-03-03 Jackson Harper <jackson@ximian.com>
35320 * Binding.cs: Bind to <Property>Changed events so we can detect
35321 when properties are changed and update the data.
35323 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
35326 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
35327 - Fixes ImageList constructor with ImageList container
35328 - Fixes image scaling (wrong parameters at DrawImage)
35330 2005-02-02 Jackson Harper <jackson@ximian.com>
35332 * Binding.cs: Make property searches case-insensitive. Eliminate
35333 some duplicated code.
35335 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
35338 - Handle focus event
35339 - Fix scrollbar events
35340 - Discard highlighted item if remove it
35341 - Fixes SelectedItem with strings
35343 2005-03-01 Peter Bartok <pbartok@novell.com>
35346 - Fixed Visible property, now follows (once again) parent chain
35347 to return false if any control in the chain is visible=false
35348 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
35349 - Fixed several places where is_visible instead of Visible was used
35350 - Implemented FIXME related to focus selection when setting focused
35351 control to be invisible
35353 * XplatUIWin32.cs: Now using proper method to find out if window is
35354 visible. Thanks to Jordi for pointing it out
35356 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
35358 * ComboBox.cs: show/hide scrollbar instead of creating it
35360 2005-02-27 Jackson Harper <jackson@ximian.com>
35362 * CurrencyManager.cs: Add PositionChanged stuff.
35364 2005-02-27 Peter Bartok <pbartok@novell.com>
35366 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
35367 * XplatUIOSX.cs: Added GetMenuOrigin() stub
35368 * XplatUIWin32.cs: Implemented GetMenuOrigin()
35370 - Implemented GetMenuDC()
35371 - Implemented GetMenuOrigin()
35372 - Implemented ReleaseMenuDC()
35373 - Implemented generation of WM_NCPAINT message
35374 - Implemented generation and handling of WM_NCCALCSIZE message
35375 * Form.cs: Added debug helper message for Jordi's menu work
35377 - Modified ClientRect property; added setter, fixed getter to handle
35378 setting of ClientRect
35379 - Added MenuOrigin property
35381 2005-02-26 Peter Bartok <pbartok@novell.com>
35384 - Destroys the caret if a window that's being destroyed contains it
35385 - Ignores expose events coming from the X11 queue for windows that
35386 already are destroyed
35387 - Now uses the proper variable for handling DestroyNotify, before we
35388 marked the wrong window as destroyed
35389 - Improved/added some debug output
35391 2005-02-26 Peter Bartok <pbartok@novell.com>
35393 * X11Keyboard.cs: Fixes to work on 64bit systems
35395 2005-02-26 Peter Bartok <pbartok@novell.com>
35398 - Now calling OnHandleDestroyed from DestroyHandle()
35399 instead of Dispose()
35400 - Removed bogus call to controls.Remove() from DestroyHandle()
35402 2005-02-26 Peter Bartok <pbartok@novell.com>
35404 * Control.cs: Properly destroy child windows when our handle is
35407 2005-02-25 Peter Bartok <pbartok@novell.com>
35410 - Added 'DriverDebug' define to allow tracing XplatUI API calls
35411 - Alphabetized Static Methods and Subclasses
35414 - Added XException class to allow custom handling of X11 exceptions
35415 - Created custom X11 error handler, tied into XException class
35416 - Added support for MONO_XEXCEPTIONS env var to allow the user
35417 to either throw an exception on X errors or continue running
35418 after displaying the error
35419 - Added handling of DestroyNotify message
35420 - Added handler for CreateNotify message (still disabled)
35421 - Improved (tried to at least) Where method to provide file and lineno
35423 - Added XErrorHandler delegate
35424 - Added XRequest enumeration (to suppor translation of errors)
35426 2005-02-25 Jackson Harper <jackson@ximian.com>
35428 * PropertyManager.cs: Implement editing features
35429 * CurrencyManager.cs:
35430 * Binding.cs: First attempt at UpdateIsBinding
35431 * BindingManagerBase.cs: Call UpdateIsBinding before
35432 pushing/pulling data.
35434 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
35436 * MenuAPI.cs: Respect disabled items
35437 * ThemeWin32Classic.cs
35438 - Caches ImageAttributes creation for DrawImageDisabled
35439 - Fixes vertical menu line drawing
35440 - Draws disabled arrows in disable menu items
35442 2005-02-24 Peter Bartok <pbartok@novell.com>
35445 - Added UserData property to allow associating arbitrary objects
35447 - Fixed leak; now removing Hwnd references from static windows array
35449 - Fixed Graphics leak in PaintEventEnd
35450 - Removed usage of HandleData, switched over to Hwnd class
35451 * HandleData.cs: Removed, obsoleted by Hwnd.cs
35453 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
35455 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
35456 * ScrollBar.cs: Fixes bug
35457 * TrackBar.cs: removes death code, clipping, mimize refreshes,
35458 keyboard navigation enhancements
35460 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
35462 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
35463 * GroupBox.cs: Add control styles
35464 * Label.cs: Add control styles
35465 * UpDownBase.cs: Add control styles
35466 * ListBox.cs: Add control styles
35467 * XplatUIWin32.cs: Fixes wrong parameter order
35470 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
35472 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
35474 2005-02-23 Jackson Harper <jackson@ximian.com>
35476 * PropertyManager.cs: Implement property binding. This doesn't
35477 seem to work yet though as (I think) there are some bugs in
35478 System.ComponentModel.PropertyDescriptor.
35479 * BindingContext.cs: Use new PropertyManager constructor.
35481 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
35483 * ProgressBar.cs: use clip region in ProgressBar
35484 * ThemeWin32Classic.cs: use clip region in ProgressBar
35486 2004-02-22 Jackson Harper <jackson@ximian.com>
35488 * BindingsCollection.cs: Remove some debug code.
35490 2005-02-22 Jackson Harper <jackson@ximian.com>
35492 * BindingContext.cs:
35493 * ControlBindingsCollection.cs:
35494 * CurrencyManager.cs:
35496 * BindingManagerBase.cs: Initial implementation
35497 * BindingsCollection.cs: Add an internal contains method that the
35498 BindingManagerBase uses to ensure bindings aren't added twice to
35500 * PropertyManager.cs: Stubbed out.
35502 * ContainerControl.cs: Hook up databinding
35504 2005-02-22 Geoff Norton <gnorton@customerdna.com>
35507 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
35508 Fixed Invalidate/Update chain.
35509 Fixed tons of other minor bugs (this is almost a complete rewrite).
35511 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
35513 * ComboBox.cs: do subcontrol creation when the control is created
35515 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
35517 * Label.cs: fixes image drawing (image and imagelist)
35518 * ThemeWin32Classic.cs: cache brushes
35520 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
35522 * Form.cs: Move menu drawing code to Theme class
35523 * ComboBox.cs: Move ComboBox drawing code to Theme class
35524 * MenuItem.cs: Move menu drawing code to Theme class
35525 * MenuAPI.cs: Move menu drawing code to Theme class
35526 * ThemeWin32Classic.cs: New methods
35527 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
35528 * ListBox.cs: Move Listbox drawing code to Theme class
35529 * Theme.cs: New methods
35531 2005-02-20 Peter Bartok <pbartok@novell.com>
35534 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
35535 only process mnemonics on those)
35536 - Fixed event sequence for key handling; first calling
35537 ProcessKeyEventArgs now
35539 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
35540 for processing non-character keys
35541 - Fixed WM_CHAR to generate proper event sequence before processing
35542 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
35545 2005-02-19 Peter Bartok <pbartok@novell.com>
35547 * UserControl.cs: Added TextChanged event; added attributes
35548 * SizeGrip.cs: Implemented resizing and optional display of grip
35549 * Form.cs: Fixed attribute
35550 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35551 Changed meaning of ScrollWindow bool argument; instead of the
35552 clear attribute (which will be true usually anyway), it gives the
35553 option of moving child controls as well.
35555 - Changed to match new ScrollWindow argument
35556 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
35557 now handles the implicit parent window a WM puts around us
35558 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
35560 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
35561 * TreeView.cs: Adjusted to new ScrollWindow arguments
35563 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
35565 * Form.cs: Menu integration with non-client area
35566 * MenuItem.cs: Menu integration with non-client area
35567 * MenuAPI.cs: Menu integration with non-client area
35569 2005-02-18 Peter Bartok <pbartok@novell.com>
35571 * MethodInvoker.cs: Added
35572 * MdiLayout.cs: Added
35573 * SendKeys.cs: Started implementation
35574 * ErrorIconAlignment.cs: Added
35576 2005-02-18 Peter Bartok <pbartok@novell.com>
35578 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
35579 * Form.cs: Added handling for Menu-related Non-client messages
35581 2005-02-17 Peter Bartok <pbartok@novell.com>
35583 * UpDownBase.cs: Fixed typo, compilation errors
35584 * DomainUpDown.cs: Fixed attribute value
35586 2005-02-16 Miguel de Icaza <miguel@novell.com>
35588 * UpDownBase.cs: Attach entry events.
35590 Add ForeColor property, Focused, InterceptArrowKeys (interception
35591 does not work yet).
35593 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
35596 - Redraw non client are on Setmenu
35597 - Calc proper menu starting point
35599 2005-02-17 Peter Bartok <pbartok@novell.com>
35601 * Application.cs: Fixed message_filter check
35603 2005-02-17 Peter Bartok <pbartok@novell.com>
35605 * Application.cs: Now calls registered message filters
35606 * DockStyle.cs: Fixed attribute
35607 * Form.cs: Fixed attribute
35608 * Menu.cs: Fixed attribute
35609 * ToolTip.cs: Fixed attribute
35610 * TreeNode.cs: Added missing attributes and arranged in regions
35611 * PropertyGrid.cs: Fixed signatures
35612 * TreeNodeCollection.cs: Added attributes
35613 * Splitter.cs: Added missing attributes; arranged into regions
35614 * TabPage.cs: Added missing attributes; arranged into regions
35615 * TextBoxBase.cs: Added missing attributes
35616 * TextBox.cs: Added missing attributes
35617 * ArrangeDirection.cs: Added missing attributes
35618 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
35619 * ToolBarButton.cs: Fixed attributes
35620 * AnchorStyles.cs: Fixed attribute
35621 * TrackBar.cs: Fixed attributes
35622 * TabControl.cs: Added missing attributes and arranged into regions
35623 * ToolBar.cs: Fixed attribute
35624 * StatusBar.cs: Fixed signature, organized into regions and added
35626 * StatusBarPanel.cs: Fixed attributes
35627 * ContentsResizedEventArgs.cs: Implemented
35628 * ContentsResizedEventHandler.cs: Implemented
35629 * DateBoldEventArgs.cs: Implemented
35630 * DateBoldEventHandler.cs: Implemented
35631 * UpDownEventArgs.cs: Implemented
35632 * UpDownEventHandler.cs: Implemented
35634 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
35636 * Form.cs: first Menu NC refactoring
35637 * MenuAPI.cs: first Menu NC refactoring
35639 2005-02-16 Peter Bartok <pbartok@novell.com>
35641 * ImeMode.cs: Added missing attributes
35642 * Menu.cs: Fixed attribute
35643 * GroupBox.cs: Fixed attribute
35644 * Label.cs: Fixed attribute
35645 * ColorDialog.cs (RunDialog): Removed TODO attribute
35646 * ComboBox.cs: Fixed attributes
35647 * ListControl.cs: Added missing attributes
35648 * PropertyGrid.cs: Fixed attributes
35649 * Control.cs: Fixed attributes
35650 * ListViewItem.cs: Added TypeConverter attribute
35651 * NotifyIcon.cs: Fixed attributes
35652 * ListView.cs: Fixed attributes
35653 * ButtonBase.cs: Fixed attribute
35654 * ImageList.cs: Added missing attributes
35655 * ContainerControl.cs: Fixed signature
35656 * CheckedListBox.cs: Fixed attribute; added missing attributes
35657 * Panel.cs: Fixed attributes
35658 * PropertyTabChangedEventArgs.cs: Added missing attribute
35659 * PropertyValueChangedEventArgs.cs: Added missing attribute
35660 * Binding.cs: Fixed attribute
35661 * ListViewItemConverter: Implemented ListViewSubItemConverter class
35662 * ListBox.cs: Fixed attribute; added missing attributes;
35663 * ScrollableControl.cs: Added missing attributes
35664 * PictureBox.cs: Added missing attributes; implemented missing property
35665 * DateTimePicker.cs: Added missing attributes
35666 * Theme.cs (ToolWindowCaptionHeight): Fixed type
35667 * MonthCalendar.cs: Fixed attributes
35668 * StatusBarPanel.cs: Added missing attributes
35669 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
35671 2005-02-16 Peter Bartok <pbartok@novell.com>
35673 * TextBoxBase.cs: The previous method to enforce height yet remember
35674 the requested high was less than ideal, this is an attempt to do
35676 * Control.cs: Added comment about possible problem
35677 * Copyright: Updated format
35678 * GridItemType.cs: Fixed swapped values
35680 2005-02-15 Jackson Harper <jackson@ximian.com>
35682 * BaseCollection.cs: Use property so we never access an
35683 uninitialized list. Also initialize the list in the property.
35685 2005-02-15 Peter Bartok <pbartok@novell.com>
35687 * GroupBox.cs (ProcessMnemonic): Implemented
35688 * Label.cs (ProcessMnemonic): Implemented
35689 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
35692 2005-02-15 Peter Bartok <pbartok@novell.com>
35694 * RadioButton.cs (ProcessMnemonic): Implemented
35695 * CheckBox.cs (ProcessMnemonic): Implemented
35697 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
35699 - Added internal method to allow calling ProcessMnemonic from other
35701 * ContainerControl.cs:
35702 - Started support for handling validation chain handling
35703 - Implemented ProcessMnemonic support
35704 - Added Select() call to Active, to make sure the active control
35706 * Form.cs: Setting toplevel flag for Forms (this was lost in the
35707 FormParent rewrite)
35708 * ThemeWin32Classic.cs:
35709 - DrawCheckBox(): Fixed stringformat to show hotkeys
35710 - DrawRadioButton(): Fixed stringformat to show hotkeys
35711 * CommonDialog.cs: Removed WndProc override, not needed
35713 2005-02-14 Peter Bartok <pbartok@novell.com>
35715 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
35716 missed those in the rewrite
35718 2005-02-14 Miguel de Icaza <miguel@novell.com>
35720 * NumericUpDown.cs (Increment, ToString): Add.
35721 (DecimalPlaces): implement.
35725 * UpDownBase.cs: Add the designer attributes.
35727 2005-02-13 Peter Bartok <pbartok@novell.com>
35729 * Panel.cs: Removed border_style, now in Control
35730 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
35731 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
35733 2005-02-13 Peter Bartok <pbartok@novell.com>
35735 * MouseButtons.cs: Added missing attributes
35736 * XplatUIStructs.cs: Added enumeration for title styles
35737 * LeftRightAlignment.cs: Added missing attributes
35738 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
35739 it compatible with Graphics.FromHwnd()
35740 * SelectedGridItemChangedEventArgs.cs: Fixed property type
35741 * Keys.cs: Added missing attributes
35742 * SelectionRange.cs: Added missing attributes
35743 * SelectionRangeConverter.cs: Added
35745 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
35746 ReleaseMenuDC methods
35747 - Renamed ReleaseWindow to UngrabWindow
35748 - Added proper startup notice to allow version identification
35750 - Added missing attributes
35751 - Removed FormParent concept
35752 * Label.cs: Removed border_style field, now in Control
35753 * RadioButton.cs: Now properly selects RadioButton when focus is
35755 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
35757 - Added missing attributes
35758 - Added borderstyle handling
35759 - Removed FormParent concept support
35760 - Fixed calls to XplatUI to match changed APIs
35761 - Fixed bug that would case us to use disposed Graphics objects
35762 - Removed unneeded internal methods
35763 - PerformLayout(): Fixed to handle DockStyle.Fill properly
35764 - SelectNextControl(): Fixed to properly check common parents
35765 * TextBoxBase.cs: Removed border_style field (now in Control)
35767 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
35768 fixed calculations for form size
35769 - Added support for localized strings and icons
35770 - Improved form size calculations, added border
35771 * ListView.cs: Removed border_style field (now in Control)
35772 * X11Structs.cs: Moved several structs from X11 driver here
35773 * X11Keyboard.cs: Changed debug message
35774 * Application.cs: Removed FormParent concept support
35776 - Resetting end_modal flag
35777 - Removed FormParent concept support
35778 * NativeWindow.cs: Removed FormParent concept support
35779 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
35780 Client area and Non-Client whole window to allow support for WM_NC
35782 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
35783 prevent using it until it supports Hwnd as per Geoff Norton's request
35784 * ToolBar.cs: Fixed drawing, was not doing proper drawing
35785 * PictureBox.cs: Removed border_style field, now in Control
35786 * XplatUIWin32.cs: Added new driver methods
35788 2005-02-12 Peter Bartok <pbartok@novell.com>
35790 * OpacityConverter.cs: Implemented
35791 * Hwnd.cs: Internal class to support drivers that need to emulate
35792 client area/non-client area window behaviour
35794 2005-02-11 Peter Bartok <pbartok@novell.com>
35796 * KeysConverter.cs: Implemented
35798 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
35800 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
35801 * LinkLabel: Added missing attributes
35802 * MainMenu.cs: fixes ToString
35803 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
35804 * ListBox.cs: fixes event position
35805 * TrackBar.cs: adds missing attributes and events
35807 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
35809 * MenuItem.cs: Use SystemInformation and bug fixes
35810 * MenuAPI.cs: Use SystemInformation and bug fixes
35812 2005-02-09 Jackson Harper <jackson@ximian.com>
35814 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
35815 their keystate otherwise things like VK_MENU get stuck "on".
35817 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
35819 * ListBox.cs: Fixes AddRange bug
35821 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
35824 - Add missing attributes
35825 - Add missing method
35827 * CheckedListBox.cs: Added missing attributes
35828 - Add missing attributes
35829 - Remove extra method
35831 * ComboBox.cs: Added missing attributes
35832 * VScrollBar.cs: Added missing attributes
35833 * ScrollBar.cs: Added missing attributes
35834 * ListBox.cs: Fixes signature, add missing consts
35835 * LinkArea.cs: Added missing attributes
35838 2005-02-08 Peter Bartok <pbartok@novell.com>
35840 * Menu.cs: Added missing attributes
35841 * MainMenu.cs: Added missing attributes
35842 * GroupBox.cs: Added missing attributes
35843 * Label.cs: Added missing attributes
35844 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
35846 - Added Instance and Options properties
35847 - Added missing attributes
35848 * Cursor.cs: Made Serializable
35849 * NotifyIcon: Added missing attributes
35850 * MenuItem.cs: Added missing attributes
35851 * TextBoxBase.cs: Implemented AppendText() and Select() methods
35852 * Panel.cs: Added Missing attributes
35853 * MonthCalendar.cs: Fixed CreateParams
35855 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
35859 - Fixes issues with links
35860 - Adds the class attributes
35862 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
35865 - Fixes button when no items available in dropdown
35866 - Fixes repainting problems
35867 - Adds the class attributes
35869 2005-02-07 Geoff Norton <gnorton@customerdna.com>
35871 * XplatUIOSX.cs: Detect the menu bar and title bar height from
35872 the current theme. Cache these on startup.
35874 2005-02-07 Jackson Harper <jackson@ximian.com>
35876 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
35877 the scrollbar buttons when they are depressed.
35879 2005-02-07 Geoff Norton <gnorton@customerdna.com>
35881 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
35882 Get the display size from the main displayid. We currently dont
35883 support multiple display configurations.
35885 2005-02-07 Geoff Norton <gnorton@customerdna.com>
35887 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
35889 2005-02-07 Miguel de Icaza <miguel@novell.com>
35891 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
35893 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
35895 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
35897 2005-02-04 Jackson Harper <jackson@ximian.com>
35899 * ThemeWin32Classic.cs: Respect the clipping rect when
35900 drawing. Only fill the intersection of clips and rects so there
35901 isn't a lot of large fills.
35902 * ScrollBar.cs: Pass the correct clipping rect to the theme
35903 engine. Remove some debug code.
35905 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
35907 * DateTimePicker.cs:
35908 - Fixed crash on DateTime.Parse, use Constructor instead
35910 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
35914 - Owner draw support (MeasureItem and DrawItem)
35916 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
35919 - Implements FindMergePosition and MergeMenu functions (very poor documented)
35920 - Fixes MenuItems.Add range
35922 - MergeMenu and Clone and CloneMenu functions
35924 2005-02-03 Jackson Harper <jackson@ximian.com>
35926 * ScrollBar.cs: Make abstract
35927 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
35930 2005-02-03 Jackson Harper <jackson@ximian.com>
35932 * ScrollBar.cs: First part of my scrollbar fixups. This removes
35933 all the unneeded refreshes and uses invalidates with properly
35936 2005-02-03 Peter Bartok <pbartok@novell.com>
35938 * ComponentModel.cs: Added
35939 * IDataGridEditingService.cs: Added
35940 * Timer.cs: Added missing attributes
35941 * ToolTip.cs: Added missing attributes
35943 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
35945 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
35947 2005-02-03 Peter Bartok <pbartok@novell.com>
35949 * ListBox.cs: Added missing attributes
35951 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
35954 - Fixes font height after font change
35955 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
35957 2005-02-02 Peter Bartok <pbartok@novell.com>
35959 * HandleData.cs: Introduced static methods to allow class
35960 to be more self-contained and track it's own HandleData objects
35961 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
35962 HandleData to use new static methods
35964 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
35967 - Fixes default size and PreferredHeight
35969 - ObjectCollection.Insert implementation
35975 - ObjectCollection.Insert implementation
35976 - No selection after clean
35979 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
35981 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
35983 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
35986 - Caches ItemHeight calculation for OwnerDrawVariable
35987 - Handles dropdown properly
35988 - Fixes several minor bugs
35990 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
35993 - Fixes 71946 and 71950
35994 - Fixes changing Multicolumn on the fly
35995 - Fixes keyboard navigation on Multicolumn listboxes
35997 2005-01-31 Geoff Norton <gnorton@customerdna.com>
35999 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
36000 crash reporter log.
36002 2005-01-31 Geoff Norton <gnorton@customerdna.com>
36004 * XplatUIOSX.cs: Allow applications to actually exit.
36006 2005-01-31 Geoff Norton <gnorton@customerdna.com>
36008 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
36009 their parent at creation time rather than lazily later. Fixes a major
36010 regression we were experiencing.
36012 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
36014 * ThemeWin32Classic.cs: more date time picker painting fixes
36015 * DateTimePicker.cs: more monthcalendar drop down fixes
36016 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
36018 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
36021 - When moving the thumb going outside the control should stop the moving
36022 - Adds the firing of missing events
36023 - Fixes no button show if Size is not specified
36024 - End / Home keys for keyboard navigation
36026 2005-01-30 Peter Bartok <pbartok@novell.com>
36028 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
36029 sanity check to prevent theoretical loop
36030 * XplatUIWin32.cs (SetVisible): Removed debug output
36031 * XplatUIX11.cs (SystrayChange): Added sanity check
36032 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
36033 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
36034 behaviour, valid until the X11 client window rewrite is done
36035 * TextBox.cs (ctor): Setting proper default foreground and background
36038 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
36040 * Theme: Added DrawDateTimePicker to interface
36041 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
36042 * DateTimePicker.cs: Created (still needs keys and painting code)
36043 * DateTimePickerFormat.cs: added
36044 * MonthCalendar.cs: fixed CreateParams for popup window mode
36046 2005-01-29 Peter Bartok <pbartok@novell.com>
36048 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
36049 this should also the calculations for ligher/darker
36050 * Theme.cs: Fixed defaults for ScrollBar widths/heights
36052 2005-01-29 Peter Bartok <pbartok@novell.com>
36054 * ArrangeDirection.cs: Added
36055 * ArrangeStartingPositon.cs: Added
36056 * SystemInformation.cs: Implemented
36057 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
36058 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
36059 used by SystemInformation class
36060 * X11Strucs.cs: Added XSizeHints structure
36062 - Fixed CreateParams to make sure the menu window is always visible
36063 - TrackPopupMenu: Added check to make sure we don't draw the
36066 2005-01-29 Peter Bartok <pbartok@novell.com>
36068 * HandleData.cs: Added method for altering invalid area
36069 * TextBoxBase.cs: Implemented TextLength
36071 2005-01-28 Peter Bartok <pbartok@novell.com>
36073 * XplatUIX11.cs: Improvement over last patch, not sending
36074 the WM_PAINT directly anymore, instead we scroll any pending
36075 exposed areas and let the system pick out the WM_PAINT later
36077 2005-01-28 Peter Bartok <pbartok@novell.com>
36079 * SWF.csproj: Deleted, no longer used. Instead,
36080 Managed.Windows.Forms/SWF.csproj should be used
36081 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
36082 directly, to avoid a potential race condition with the next
36085 2005-01-28 Peter Bartok <pbartok@novell.com>
36087 * XplatUI.cs: Made class internal
36089 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
36091 * CheckedListBox.cs:
36094 - Missing methods and events
36096 2005-01-27 Peter Bartok <pbartok@novell.com>
36098 * Application.cs (Run): Don't use form if we don't have one
36100 2005-01-27 Peter Bartok <pbartok@novell.com>
36102 * TextBoxBase.cs (get_Lines): Fixed index off by one error
36104 2005-01-27 Peter Bartok <pbartok@novell.com>
36106 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
36107 * GridItem.cs: Added; Patch by Jonathan S. Chambers
36108 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
36109 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
36110 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
36111 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
36112 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36113 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
36114 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36115 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36116 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36117 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
36119 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
36122 - Draw focus on Simple Combobox
36123 - Fixes drawing issues
36126 2005-01-27 Peter Bartok <pbartok@novell.com>
36129 - Place window in default location, instead of hardcoded 0/0
36130 - Send initial LocationChanged event
36132 - UpdateBounds after creation to find out where the WM placed us
36133 - Make sure that if the ParentForm changes location the Form
36135 * XplatUIX11.cs: XGetGeometry will not return the coords relative
36136 to the root, but to whatever the WM placed around us.
36137 Translate to root coordinates before returning toplevel
36139 * XplatUIWin32.cs: Removed debug output
36140 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
36141 flag to GetWindowPos, to allow translation of coordinates on X11
36143 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
36145 * ListBox.cs: connect LostFocus Event
36147 2005-01-27 Peter Bartok <pbartok@novell.com>
36149 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36150 XplatUIX11.cs: Extended the Systray API
36151 * Form.cs: Removed debug output
36152 * Application.cs: Fixed focus assignment, always need to call
36153 XplatUI.Activate() since Form.Activate() has rules that may
36155 * NotifyIcon.cs: Should be complete now
36156 * ToolTip.cs: Worked around possible timer bug
36158 2005-01-27 Jackson Harper <jackson@ximian.com>
36161 - Only invalidate the effected tabs when the
36162 selected index changes. This reduces drawing and gets rid of some
36164 - Only refresh if the tabs need to be shifted, otherwise only
36165 invalidate the slider button.
36166 - On windows the tabs are not filled to right if the slider is
36169 2005-01-27 Jackson Harper <jackson@ximian.com>
36171 * TabControl.cs: Only refresh on mouseup if we are showing the
36172 slider. Also only invalidate the button whose state has changed.
36174 2005-01-26 Peter Bartok <pbartok@novell.com>
36176 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
36177 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
36178 and SystrayRemove() methods
36179 * XplatUIOSX.cs: Stubbed Systray methods
36181 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
36183 - Fixed broken XChangeProperty calls (marshalling messed up things)
36184 * X11Structs.cs: Added enums and structs required for Size hinting
36185 * NotifyIcon.cs: Added & implemented
36187 2005-01-26 Jackson Harper <jackson@ximian.com>
36189 * TabControl.cs: Space vertically layed out tabs properly.
36191 2005-01-26 Peter Bartok <pbartok@novell.com>
36193 * Form.cs (CreateClientParams): Always set the location to 0,0
36194 since we're a child window.
36196 * Control.cs (SetVisibleCore): Always explicitly setting the location
36197 of a toplevel window, apparently X11 doesn't like to move windows
36198 while they're not mapped.
36200 2005-01-26 Jackson Harper <jackson@ximian.com>
36202 * TabControl.cs: Implement FillToRight size mode with vertically
36205 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
36207 * ControlPaint.cs, ThemeWin32Classic.cs
36208 - Fixes DrawFocusRectangle
36210 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
36213 - MenuBar tracking only starts when item is first clicked
36214 - Fixes menu hidding for multiple subitems
36215 - Unselect item in MenuBar when item Executed
36218 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
36221 - IsInputKey for ListBox
36224 - Shift and Control item selection
36225 - Implement SelectionMode.MultiExtended
36226 - Fixes RightToLeft
36228 - IsInputKey implemented
36229 - Do not generate OnTextChangedEdit on internal txt changes
36231 2005-01-23 Peter Bartok <pbartok@novell.com>
36233 * AccessibleObject.cs: Partially implemented Select()
36234 * MonthCalendar.cs: Added missing attributes and events
36235 * Form.cs: Fixed CreateParams behaviour, now controls derived from
36236 form can properly override CreateParams.
36237 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
36238 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
36239 Control performs Invalidate & Update
36240 * NativeWindow (CreateHandle): Added special handling for Form
36241 and Form.FormParent classes to allow overriding of From.CreateParams
36243 - ControlNativeWindow: Renamed 'control' variable to more intuitive
36245 - ControlNativeWindow: Added Owner property
36246 - Removed usage of Refresh() on property changes, changed into
36247 Invalidate(), we need to wait until the queue is processed for
36248 updates, direct calls might cause problems if not all vars for
36249 Paint are initialized
36250 - Added call to UpdateStyles() when creating the window, to set any
36251 styles that CreateWindow might have ignored.
36252 - Added support for Form CreateParent overrides to UpdateStyles()
36253 * MessageBox.cs: Removed no longer needed FormParent override stuff,
36254 CreateParams are now properly overridable
36255 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
36256 CreateParams are now properly overridable
36258 2005-01-23 Miguel de Icaza <miguel@ximian.com>
36260 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
36263 Capture LostFocus and OnTextBoxChanged. The later introduces a
36264 recursive invocation that I have not figured out yet.
36266 Reset the timer when not using (it was accumulating).
36269 (OnTextBoxChanged): Set UserEdit to true here to track whether the
36270 user has made changes that require validation.
36272 Reset changing to avoid loops.
36274 2005-01-22 Miguel de Icaza <miguel@ximian.com>
36276 * NumericUpDown.cs: Display value at startup.
36278 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
36281 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
36282 filled in. Added some basic parsing of text.
36284 Still missing the OnXXX method overrides, and figuring out the
36285 events that must be emitted.
36287 * UpDownBase.cs: Handle UserEdit on the Text property.
36289 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
36292 - Fixes IntegralHeight
36295 2005-01-21 Jackson Harper <jackson@ximian.com>
36297 * TabControl.cs: Set the SelectedIndex property when SelectedTab
36298 is set so that the page visibility is updated and the tabs are
36301 2005-01-21 Jackson Harper <jackson@ximian.com>
36303 * TabControl.cs: Use cliping rectangle for blitting. Give the
36304 theme the clipping rect so we can do clipping while
36305 drawing. Remove some debug code.
36307 2005-01-21 Jackson Harper <jackson@ximian.com>
36309 * TabPage.cs: Add a new method so tab pages can force the tab
36310 control to recalculate the tab page sizes.
36311 * TabControl.cs: UpdateOwner needs to make the tab control recalc
36314 2005-01-20 Jackson Harper <jackson@ximian.com>
36316 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
36318 2005-01-20 Jackson Harper <jackson@ximian.com>
36320 * TreeView.cs: Set the bounds for nodes properly. They were
36321 getting screwed up when checkboxes were not enabled, but images
36324 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
36327 - Owner draw support
36330 2005-01-20 Jackson Harper <jackson@ximian.com>
36332 * XplatUIStructs.cs: More misc keys
36333 * X11Keyboard.cs: Ignore some control keys.
36335 2005-01-20 Jackson Harper <jackson@ximian.com>
36337 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
36338 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
36340 2005-01-19 Peter Bartok <pbartok@novell.com>
36342 * Control.cs: Un-selecting the control when it is loosing focus
36344 2005-01-19 Jackson Harper <jackson@ximian.com>
36346 * TreeView.cs: Hook up to the text controls leave event so we can
36347 end editing when the users clicks outside the text box.
36349 2005-01-19 Jackson Harper <jackson@ximian.com>
36351 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
36352 get set in the conversion array.
36354 2005-01-19 Peter Bartok <pbartok@novell.com>
36356 * Application.cs (ModalRun): Added a call to CreateControl to ensure
36357 focus is properly set
36359 - Added missing attributes
36360 - removed styles, those are already set in the base class
36362 - Added missing attributes
36363 - Added clip window styles
36364 * CheckBox.cs: Added missing attributes
36366 - FormParentWindow.CreateParams: Added required clip styles
36367 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
36368 also filters modifier keys
36370 - Added assignment of Accept and Cancel button to enable Enter
36371 and Esc keys in MessageBox dialogs
36372 - FormParentWindow.CreateParams: Added required clip styles
36373 * RadioButton.cs: Added missing attributes
36374 * TextControl.cs: No longer draws selection if control does not
36377 - Now draws simple rectangle around test area to make it obvious
36378 there's a control. This is a hack until we properly support borders
36379 - A few simple fixes to support selections better, now erases selected
36380 text when typing, and resets selection when using movement keys
36382 2005-01-19 Miguel de Icaza <miguel@ximian.com>
36384 * UpDownBase.cs: Added some new properties.
36386 * DomainUpDown.cs: Implement a lot to get my test working.
36388 2005-01-19 Geoff Norton <gnorton@customerdna.com>
36390 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
36392 2005-01-19 Geoff Norton <gnorton@customerdna.com>
36394 * OSXStructs (WindowAttributes): Fixed csc complaints
36396 2005-01-19 Geoff Norton <gnorton@customerdna.com>
36399 OSXStructs.cs: Initial refactor to move enums and consts into
36400 OSXStructs and use them in the driver for greater readability.
36402 2005-01-19 Geoff Norton <gnorton@customerdna.com>
36404 * XplatUIOSX.cs: Initial support for Standard Cursors.
36405 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
36407 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
36409 * ComboBox.cs: ability to change style when the ctrl is already
36410 created, missing methods and events, bug fixes, signature fixes
36412 2005-01-19 Peter Bartok <pbartok@novell.com>
36414 * Cursors.cs (ctor): Added ctor to fix signature
36416 2005-01-18 Peter Bartok <pbartok@novell.com>
36418 * Button.cs: Implemented DoubleClick event
36420 - Fixed keyboard handling to behave like MS, where the press of
36421 Spacebar is equivalent to a mousedown, and the key release is
36422 equivalent to mouseup. Now a spacebar push will give the same
36423 visual feedback like a mouse click.
36424 - Added missing attributes
36425 - Added ImeModeChanged event
36426 - Added support for generating DoubleClick event for derived classes
36428 - Implemented DoubleClick event
36429 - Added missing attributes
36430 * CommonDialog.cs: Added missing attribute
36431 * ContextMenu.cs: Added missing attributes
36433 - AutoChecked buttons do not allow to be unselected when clicked
36434 (otherwise we might end up with no selected buttons in a group)
36435 - Added missing attributes
36436 - Implemented DoubleClickEvent
36437 * ThreadExceptionDialog.cs: Enabled TextBox code
36439 2005-01-18 Peter Bartok <pbartok@novell.com>
36441 * Form.cs: Removed debug output
36442 * Button.cs: Added support for DoubleClick method
36444 2005-01-18 Peter Bartok <pbartok@novell.com>
36447 - Added method to parent window that allows triggering size
36448 calculations when a menu is added/removed
36449 - set_Menu: Cleaned up mess from early days of Form and Control,
36450 now properly triggers a recalc when a menu is added/removed
36451 - Added case to select form itself as focused form if no child
36453 - Added PerformLayout call when showing dialog, to ensure properly
36456 - Select(): Made internal so Form can access it
36457 - Focus(): Only call Xplat layer if required (avoids loop), and sets
36459 * Application.cs (Run): Removed hack and calls PerformLayout instead
36460 to trigger calculation when Form becomes visible
36462 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
36464 * ComboBox.cs: fixes for ownerdraw
36466 2005-01-18 Peter Bartok <pbartok@novell.com>
36469 - Sentinel is no longer static, each Document gets it's own, this
36470 avoids locking or alternatively overwrite problems when more
36471 than one text control is used simultaneously.
36472 - Switched to use Hilight and HilightText brushes for text selection
36474 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
36476 2005-01-18 Peter Bartok <pbartok@novell.com>
36479 - Hooked up the following events:
36487 o SystemColorsChanged
36488 o ParentFontChanged
36490 - Removed debug output
36491 - Added a call to the current theme's ResetDefaults when a color change
36493 * Form.cs: Now setting the proper ImeMode
36494 * Theme.cs: Defined a method to force recreation of cached resources
36495 and rereading of system defaults (ResetDefaults())
36496 * ThemeWin32Classic.cs: Added ResetDefaults() stub
36498 2005-01-17 Peter Bartok <pbartok@novell.com>
36500 * Control.cs: Added missing attributes
36502 2005-01-17 Jackson Harper <jackson@ximian.com>
36504 * TreeNode.cs: Implement editing. Add missing properties selected
36506 * TreeView.cs: Implement node editing. Also some fixes to use
36507 Invalidate (invalid area) instead of Refresh when selecting.
36509 2005-01-17 Peter Bartok <pbartok@novell.com>
36512 - Implemented InvokeGotFocus() method
36513 - Implemented InvokeLostFocus() method
36514 - Implemented InvokePaint() method
36515 - Implemented InvokePaintBackground() method
36516 - Implemented InvokeClick() method
36517 - Implemented FindForm() method
36518 - Implemented RectangleToClient() method
36519 - Implemented ClientToRectangle() method
36520 - Implemented ResetBackColor() method
36521 - Implemented ResetCursor() method
36522 - Implemented ResetFont() method
36523 - Implemented ResteForeColor() method
36524 - Implemented ResetImeMode() method
36525 - Implemented ResetLeftToRight() method
36526 - Implemented ResetText() method
36527 - Implemented Scale() methods
36528 - Implemented ScaleCore() method
36529 - Implemented Update() method
36530 - Removed unused variables
36531 - Stubbed AccessibilityNotifyClients and
36532 ControlAccessibleObject.NotifyClients() methods (dunno what to do
36534 - Now setting proper default for RightToLeft property
36535 - Fixed bug in SetClientSizeCore that would cause windows to get
36537 - Now sending Click/DoubleClick events
36538 - Now selecting controls when left mouse button is clicked on
36540 * AccessibleEvents.cs: Added
36541 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
36542 * XplatUIOSX.cs: Stubbed UpdateWindow() method
36543 * XplatUIWin32.cs: Implemented UpdateWindow() method
36544 * XplatUIX11.cs: Implemented UpdateWindow() method
36545 * Form.cs: Removed stray semicolon causing CS0162 warning
36546 * ThemeWin32Classic.cs: Fixed unused variable warnings
36547 * ScrollableControl.cs: Now calls base method for ScaleCore
36548 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
36549 style to avoid interference with internal click handler (which is
36550 different than standard Control click handling)
36552 - Now unchecks all sibling radio buttons when control is
36553 selected (Fixes #68756)
36554 - Removed internal tabstop variable, using the one inherited from
36557 2005-01-17 Jackson Harper <jackson@ximian.com>
36559 * NavigateEventArgs.cs: Fix base type.
36560 * LinkLabel.cs: Sig fix
36562 2005-01-17 Jackson Harper <jackson@ximian.com>
36564 * TreeView.cs: Only invalidate the effected nodes bounds when
36567 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
36569 * XplatUIWin32.cs: fixes Win32 marshaling
36570 * XplatUIX11.cs: fixes method signature
36572 2005-01-17 Peter Bartok <pbartok@novell.com>
36574 * XplatUIX11.cs: Clean up resources when we no longer need them
36576 2005-01-17 Peter Bartok <pbartok@novell.com>
36578 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
36579 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
36580 and DestroyCursor() methods.
36581 * Cursor.cs: Partially implemented, now supports standard cursors;
36582 still contains some debug code
36583 * Cursors.cs: Implemented class
36585 - WndProc(): Added handling of WM_SETCURSOR message, setting the
36587 - Implemented Cursor property
36588 - Replaced break; with return; more straightforwar and possibly
36590 - Now properly setting the result for WM_HELP
36591 * X11Structs.cs: Added CursorFontShape enum
36592 * XplatUIStructs.cs:
36593 - Added StdCursor enum (to support DefineStdCursor() method)
36594 - Added HitTest enum (to support sending WM_SETCURSOR message)
36596 - Now sends the WM_SETCURSOR message
36597 - Implemented new cursor methods
36598 * XplatUIOSX.cs: Stubbed new cursor methods
36600 - Implemented new cursor methods
36601 - Added GetSystemMetrics function and associated enumeration
36603 2005-01-15 Peter Bartok <pbartok@novell.com>
36606 - WndProc(): Now handles EnableNotifyMessage
36607 - SelectNextControl(): Fixed bug where if no child or sibling
36608 controls exist we looped endlessly
36610 2005-01-14 Jackson Harper <jackson@ximian.com>
36612 * TreeView.cs: Recalculate the tab pages when a new one is added
36613 so that the proper bounding rects are created.
36615 2005-01-14 Jackson Harper <jackson@ximian.com>
36617 * TreeView.cs: Draw a gray box instead of a grip in the lower
36618 right hand corner when there are both horizontal and vertical
36621 2005-01-14 Jackson Harper <jackson@ximian.com>
36623 * Control.cs: When erasing backgrounds use FromHwnd instead of
36624 FromHdc when there is a NULL wparam. This occurs on the X driver.
36625 * XplatUIX11.cs: Set the wparam to NULL.
36627 2005-01-13 Jackson Harper <jackson@ximian.com>
36629 * PictureBox.cs: Implement missing methods (except ToString, need
36630 to test that on windows) and events. When visibility is changed we
36631 need to redraw the image because the buffers are killed. When size
36632 is changed refresh if the sizemode needs it.
36634 2005-01-13 Peter Bartok <pbartok@novell.com>
36636 * Control.cs (SelectNextControl): Was using wrong method to select
36639 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
36641 * ComboBox.cs: fixes dropstyle
36643 2005-01-13 Peter Bartok <pbartok@novell.com>
36646 - Implemented Select() override
36647 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
36648 - Now sets keyboard focus on startup
36649 * Control.cs (SelectNextControl): Now properly handles directed=true
36651 - WndProc: Now passes tab key on to base if AcceptTabChar=false
36652 - Added (really bad) focus rectangle (mostly for testing)
36653 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
36654 to enforce redraw on focus changes
36655 * ContainerControl.cs:
36656 - Fixed detection of Shift-Tab key presses
36657 - Fixed traversal with arrow keys
36658 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
36659 gonna keep this or if it's complete yet
36661 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
36663 * ComboBox.cs: missing properties, fixes
36665 2005-01-13 Peter Bartok <pbartok@novell.com>
36667 * Panel.cs (ctor): Setting Selectable window style to off
36668 * Splitter.cs (ctor): Setting Selectable window style to off
36669 * GroupBox.cs (ctor): Setting Selectable window style to off
36670 * Label.cs (ctor): Setting Selectable window style to off
36672 2005-01-12 Miguel de Icaza <miguel@ximian.com>
36674 * UpDownBase.cs (InitTimer): If the timer has been already
36675 created, enable it.
36677 Use a TextBox instead of a Label.
36679 2005-01-12 Jackson Harper <jackson@ximian.com>
36681 * TreeView.cs: Refresh the tree after sorting the nodes. Always
36682 draw the connecting node lines (when ShowLines is true).
36683 * TreeNode.cs: The nodes index can now be updated. This is used
36684 when a node collection is sorted.
36685 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
36686 insert or an existing unsorted node collection can be sorted.
36688 2005-01-12 Peter Bartok <pbartok@novell.com>
36690 * ContainerControl.cs: Implemented ProcessDialogKeys()
36692 2005-01-12 Peter Bartok <pbartok@novell.com>
36695 - Implemented SelectNextControl() method
36696 - Several focus related bug fixes
36697 - Fixed Docking calculations to match MS documentation and
36700 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
36702 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
36705 2005-01-12 Peter Bartok <pbartok@novell.com>
36708 - Fixed broken Contains() method
36709 - Implemented GetNextControl() method. Finally. This is the pre-
36710 requisite for focus handling.
36712 2005-01-12 Peter Bartok <pbartok@novell.com>
36714 * OSXStrucs.cs: Added
36716 2005-01-12 Peter Bartok <pbartok@novell.com>
36719 - Removed PeekMessageFlags
36720 - Implemented SetWindowStyle() method
36721 * XplatUIStructs.cs: Added PeekMessageFlags
36722 * X11Structs: Added missing border_width field to XWindowChanges struct
36724 - PeekMessage: Now throws exception if flags which are not yet
36725 supported are passed
36726 - Implemented SetWindowStyle() method
36727 - Fixed SetZOrder to handle AfterHwnd properly
36728 * XplatUI.cs: Added SetWindowStyle() method
36729 * XplatUIDriver.cs: Added SetWindowStyle() abstract
36731 - Implemented UpdateStyles() method
36732 - Implemented UpdateZOrder() method
36733 * XplatUIOSX.cs: Added SetWindowStyle() stub
36735 2005-01-12 Geoff Norton <gnorton@customerdna.com>
36737 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
36741 2005-01-11 Jackson Harper <jackson@ximian.com>
36743 * TreeView.cs: Still need to draw lines to siblings even if out of
36744 the current node is out of the clip.
36746 2005-01-11 Jackson Harper <jackson@ximian.com>
36748 * TreeView.cs: When setting the hbar/vbar/grip position use
36749 SetBounds so that perform layout is only called once. Also suspend
36750 and resume layout so layout is only done once for all controls.
36751 - Removed some debug fluff
36752 * SizeGrip.cs: Call base implmentation in overriding methods.
36753 - When visibility is changed the drawing buffers are killed so we
36756 2005-01-11 Jackson Harper <jackson@ximian.com>
36758 * TreeView.cs: Calculate the open node count while drawing. This
36759 saves us an entire tree traversal for every paint operation. Use
36760 a member var for the open node count so less vars are passed around.
36762 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
36764 * MonthCalendar.cs:
36765 - fixed selection to use mousemove, not mouse polling on timer
36766 * ThemeWin32Classic.cs
36767 - removed redundant unused variable "no_more_content"
36769 2005-01-11 Peter Bartok <pbartok@novell.com>
36771 * XplatUIX11.cs (DoEvents): Needs to return when no more events
36772 are pending, so it now calls PeekMessage instead of GetMessage;
36773 implemented a incomplete version of PeekMessage
36775 2005-01-11 Peter Bartok <pbartok@novell.com>
36777 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
36779 * TextBoxBase.cs: Added sending of TextChanged event
36781 2005-01-10 Jackson Harper <jackson@ximian.com>
36783 * TreeView.cs: Try not to draw outside the clipping rectangle on
36786 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
36788 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
36790 2005-01-10 Jackson Harper <jackson@ximian.com>
36793 - Implement fast scrolling. Now only the newly
36794 exposed nodes are drawn and the old image is moved using the
36795 XplatUI::ScrollWindow method.
36796 - Factor in height of nodes when calculating whether or not the
36797 node is in the clipping rect.
36799 2005-01-10 Jackson Harper <jackson@ximian.com>
36801 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
36803 2005-01-10 Peter Bartok <pbartok@novell.com>
36805 * Application.cs: Added temporary hack to resolve all our resize
36806 required issues on startup. This will get fixed properly at
36807 some point in the future
36809 2005-01-10 Jackson Harper <jackson@ximian.com>
36811 * SizeGrip.cs: New internal class that is used as a sizing
36812 grip control...hence the name.
36814 2005-01-10 Peter Bartok <pbartok@novell.com>
36816 * Control.cs: Implemented proper TabIndex handling, now assigning
36817 a tabindex when a control is added to a container
36818 * GroupBox.cs (ctor): Now sets the Container style bit, required
36819 for Control.GetNextControl()
36821 2005-01-09 Jackson Harper <jackson@ximian.com>
36823 * TextBoxBase.cs: Clear window when scrolling (fixes build).
36825 2005-01-09 Peter Bartok <pbartok@novell.com>
36827 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36828 XplatUIX11.cs: Added ability to control ScrollWindow expose and
36829 an overload for ScrollWindow to allow only scrolling a rectangle
36831 2005-01-09 Peter Bartok <pbartok@novell.com>
36834 - Implemented SetDesktopBounds method
36835 - Implemented SetDesktopLocation method
36837 2005-01-08 Jackson Harper <jackson@ximian.com>
36839 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
36840 the node count has changed, this removes to VScroll::Refresh calls
36843 2005-01-08 Geoff Norton <gnorton@customerdna.com>
36845 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
36847 2005-01-07 Jackson Harper <jackson@ximian.com>
36849 * TreeNode.cs: Just update the single node when it is
36850 checked. Don't refresh after toggling, the Expand/Collapse already
36852 * TreeView.cs: Respect clipping a little more when drawing. Try
36853 not to redraw things that don't need to be redrawn. Just hide the
36854 scrollbars when they are no longer needed instead of removing
36855 them, so they don't have to be created again and again.
36857 2005-01-07 Geoff Norton <gnorton@customerdna.com>
36859 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
36860 coordinates to window space to place the caret properly, FIXED.
36861 Implement GetWindowState & SetWindowState
36863 2005-01-06 Peter Bartok <pbartok@novell.com>
36866 - Implemented ClientSize property
36867 - Implemented DesktopBounds property
36868 - Implemented DesktopLocation property
36869 - Implemented IsRestrictedWindow property
36870 - Implemented Size property
36871 - Implemented TopLevel property
36872 - Implemented FormWindowState property
36874 - Implemented GetTopLevel() method
36875 - Implemented SetTopLevel() method
36876 * X11Structs.cs (Atom):
36877 - Added AnyPropertyType definition
36878 - Added MapState definiton and updated XWindowAttribute struct
36879 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
36880 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
36881 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
36883 - Implemented GetWindowState() and SetWindowState() methods
36884 - Fixed Win32GetWindowLong return type
36886 - Introduced central function for sending NET_WM messages
36887 - Implemented GetWindowState() and SetWindowState() methods
36888 * TextBoxBase.cs (set_Lines):
36889 - Now uses Foreground color for text added via Text property (Duh!)
36890 - Added code to remember programmatically requested size (fixes
36891 behaviour when Multiline is set after Size)
36892 - Added AutoSize logic
36894 2005-01-06 Jackson Harper <jackson@ximian.com>
36896 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
36898 2005-01-06 Jackson Harper <jackson@ximian.com>
36900 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
36901 set to less then 0.
36903 2005-01-06 Jackson Harper <jackson@ximian.com>
36905 * ScrollableControl.cs: Lazy init the scrollbars.
36907 2005-01-06 Jackson Harper <jackson@ximian.com>
36909 * Theme.cs: Speed up getting pens and solid brushes, by using
36910 their ARGB as a hash instead of tostring and not calling Contains.
36912 2005-01-06 Peter Bartok <pbartok@novell.com>
36915 - Implemented OnActivated and OnDeactivate event trigger
36916 - Implemented Activate() method
36917 - Fixed ShowDialog() to activate the form that was active before
36918 the dialog was shown
36920 - Added global active_window var that tracks the currently active
36922 - Now always grabs Property changes from the root window to always
36923 catch changes on the active window property
36924 - Added code to PropertyNotify handler to send Active/Inactive
36925 messages when state changes. This puts X11 and Win32 en par on
36926 WM_ACTIVATE notifications (except for double notifications when
36927 the user clicks away from our modal window to another one of our
36930 2005-01-05 Jackson Harper <jackson@ximian.com>
36932 * ImageList.cs: Implment ctor
36934 2005-01-05 Geoff Norton <gnorton@customerdna.com>
36936 * XplatUIOSX.cs: Implement Activate/SetTopmost
36938 2005-01-05 Geoff Norton <gnorton@customerdna.com>
36940 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
36942 2005-01-05 Geoff Norton <gnorton@customerdna.com>
36944 * XplatUIOSX.cs: Implement GetActive/SetFocus.
36946 2005-01-05 Peter Bartok <pbartok@novell.com>
36948 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
36949 XplatUIOSX.cs: Added GetActive method to return the currently
36950 active window for the application (or null, if none is active)
36952 - Implemented ActiveForm
36953 - Commented out owner assignment for modal dialogs (causes problems
36954 on Win32, since the owner will be disabled)
36955 - Reworked some Active/Focus handling (still incomplete)
36956 * CommonDialog.cs: Commented out owner assignment for modal dialogs
36957 (causes problems on Win32, since the owner will be disabled)
36958 * IWin32Window: Added ComVisible attribute
36960 2005-01-05 Peter Bartok <pbartok@novell.com>
36962 * ToolTip.cs (WndProc): Enable setting focus now that we have the
36963 required XplatUI functions.
36965 2005-01-05 Peter Bartok <pbartok@novell.com>
36967 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
36968 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
36969 to implement focus and activation handling; still incomplete and
36972 2005-01-04 Peter Bartok <pbartok@novell.com>
36974 * TextBoxBase.cs: Changed access level for Document property to
36975 match switch to internal for TextControl
36977 2005-01-04 Peter Bartok <pbartok@novell.com>
36979 * AccessibleObject: Added ComVisible attribute
36981 2005-01-04 Jackson Harper <jackson@ximian.com>
36983 * X11Keyboard.cs: Remove unneeded var.
36985 2005-01-04 Jackson Harper <jackson@ximian.com>
36987 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36989 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36990 ClientMessage. This makes apps exit cleanly (more often).
36992 2005-01-04 Jackson Harper <jackson@ximian.com>
36994 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36995 handling focus, return correct colors and fonts,
36996 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36997 handle selection, horizontal scrolling, and mouse interaction.
36999 2005-01-04 Peter Bartok <pbartok@novell.com>
37001 * ICommandExecutor.cs: Added
37002 * IDataGridColumnStyleEditingNotificationService.cs: Added
37003 * IFeatureSupport.cs: Added
37004 * IFileReaderService.cs: Added
37005 * IDataObject.cs: Added ComVisible attribute
37006 * AmbientProperties.cs: Added
37007 * BaseCollection.cs: Added missing attributes
37008 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
37009 * BaseCollection.cs: Added missing attributes
37010 * Binding.cs: Added TypeConverter attribute
37011 * BindingContext.cs: Added DefaultEvent attribute
37012 * BindingsCollection.cs: Added DefaultEvent attribute
37013 * Button.cs: Added DefaultValue attribute
37014 * DragEventArgs.cs: Added ComVisible attribute
37015 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
37016 * KeyEventArgs.cs: Added ComVisible attribute
37017 * KeyPressEventArgs.cs: Added ComVisible attribute
37018 * MouseEventArgs.cs: Added ComVisible attribute
37019 * NavigateEventArgs.cs: Added
37020 * NavigateEventHandler.cs: Added
37021 * FeatureSupport.cs: Added
37022 * OSFeature.cs: Added
37023 * Theme.cs: Added abstract Version property to support OSFeature
37024 * ThemeWin32Classic.cs: Added Version property to
37025 support OSFeature.Themes
37026 * ProgressBar.cs: Removed OnPaintBackground override, not required since
37027 the proper styles to avoid background drawing are set, also doesn't
37029 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
37030 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
37031 * ScrollEventArgs.cs: Added ComVisible attribute
37032 * SplitterEventArgs.cs: Added ComVisible attribute
37033 * AccessibleSelection.cs: Added Flags attribute
37034 * Appearance.cs: Added ComVisible attribute
37035 * Border3DSide.cs: Added ComVisible attribute
37036 * Border3DStyle.cs: Added ComVisible attribute
37037 * BorderStyle.cs: Added ComVisible attribute
37038 * DragAction.cs: Added ComVisible attribute
37039 * ErrorBlinkStyle.cs: Added
37040 * ScrollEventType.cs: Added ComVisible attribute
37041 * AnchorStyles.cs: Added Editor attribute
37042 * DockStyle.cs: Added Editor attribute
37043 * HorizontalAlignment.cs: Added ComVisible attribute
37044 * HelpEventArgs.cs: Added ComVisible attribute
37045 * PaintEventArgs.cs: Added IDisposable
37047 2005-01-04 Peter Bartok <pbartok@novell.com>
37049 * TextControl.cs: Switched Line, LineTag and Document classes to
37052 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
37054 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
37055 Simple mode, fixes, IntegralHeight, etc.
37057 2005-01-04 Peter Bartok <pbartok@novell.com>
37059 * TextBoxBase.cs: Using proper font variable now
37061 2005-01-04 Peter Bartok <pbartok@novell.com>
37063 * Form.cs (ShowDialog): Set parent to owner, if provided
37064 * GroupBox.cs: Removed unused vars
37066 - Added GetHashCode() for Document and LineTag classes
37067 - Removed unused variables
37068 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
37069 to allow translation between continuous char position and line/pos
37070 * CheckBox.cs: Removed vars that are provided by base class
37071 * RadioButton.cs: Removed vars that are provided by base class, added
37072 new keyword where required
37073 * LinkLabel.cs: Added new keyword where required
37074 * Control.cs (WndProc): Removed unused variable
37076 - Finished SelectionLength property
37077 - Implemented SelectionStart property
37078 - Implemented Text property
37079 - Removed unused vars
37080 * MessageBox.cs: Added new keyword where required
37081 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
37083 * MenuAPI.cs: Added new keyword where required
37084 * ButtonBase.cs: Removed vars that are provided by base class, added
37085 new keyword where required
37086 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
37087 argument to double, to allow compiling with csc 2.0 (Atsushi ran
37089 * Application.cs (Run): Now triggers the ThreadExit event
37090 * CommonDialog.cs: Added new keyword where required; now properly sets
37091 parent (owner) for dialog
37092 * XplatUIX11.cs: Commented out unused vars
37093 * StatusBar.cs: Fixed signature for Text property
37094 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
37096 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
37098 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
37099 TrackBar.cs, MonthCalendar.cs: remove unused vars
37101 2005-01-03 Jackson Harper <jackson@ximian.com>
37103 * ThemeWin32Classic.cs:
37104 * X11Keyboard.cs: Remove unused vars.
37106 2005-01-03 Peter Bartok <pbartok@novell.com>
37109 - set_Text: Tied into TextControl
37110 - set_TextAlignment: Tied into TextControl
37112 - Added alignment properties and implemented alignment handling
37113 and drawing (still has a bug, not generating proper expose events)
37114 - Added new Line() constructor to allow passing the line alignment
37115 - Fixed selection setting, properly handling end<start now
37116 - Added aligment considerations to RecalculateDocument()
37118 - Now properly enforces control height for single line controls
37119 - Added support for CharacterCasing
37120 - Added IsInputKey override
37121 - Fixed Keys.Enter logic
37122 - Added SetBoundsCore override
37123 - Fixed mouse selection handling
37125 2005-01-03 Jackson Harper <jackson@ximian.com>
37128 - Collapse and uncheck all nodes when CheckBoxes is disabled.
37129 - Checkboxes are always aligned to the bottom of the node,
37130 regardless of item height.
37131 - Use the node bounds to draw the text so we can center it when
37132 the item height is greater then the font height.
37133 - Node::Bounds are only the text part of the node.
37134 * TreeNode.cs: New method to combine collapsing and unchecking all
37137 2005-01-02 Jackson Harper <jackson@ximian.com>
37139 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
37140 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
37141 tree when a check is changed. TODO: Only refresh the checked node.
37143 2004-12-30 Jackson Harper <jackson@ximian.com>
37145 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
37146 * TreeNode.cs: When collapsing make sure to never collapse the
37149 2004-12-29 Jackson Harper <jackson@ximian.com>
37151 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
37153 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
37155 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
37157 2004-12-28 Peter Bartok <pbartok@novell.com>
37159 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
37162 2004-12-28 Peter Bartok <pbartok@novell.com>
37164 * Control.cs (WndProc): Added WM_HELP handler, now generates
37165 HelpRequested event
37166 * Form.cs: Added HelpButton property and required support code
37167 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
37169 2004-12-28 Peter Bartok <pbartok@novell.com>
37172 - Made DialogForm.owner variable internal
37173 - Added check to ensure owner form is set before setting
37174 owner properties in CreateParams
37176 2004-12-28 Geoff Norton <gnorton@customerdna.com>
37178 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
37179 swizzling. Implement ClientToScreen and ScreenToClient. Implement
37180 GetCursorPos. Fix major visibility issues. Rework the windowing
37181 system to support borderless/titleless windows (implements menus).
37182 Fix GetWindowPos. Implement initial background color support for
37185 2004-12-28 Peter Bartok <pbartok@novell.com>
37187 * Form.cs (get_CreateParams): Make sure we have an owner before using
37188 the owner variable. Implement proper default if no owner exists
37190 2004-12-28 Peter Bartok <pbartok@novell.com>
37192 * In preparation for making Managed.Windows.Forms the default build target
37193 for System.Windows.Forms, the following stubbed files were added.
37194 Dialogs are currently being implemented by contributors and are only
37195 short-term place holders.
37196 * ColorDialog.cs: Initial check-in (minmal stub)
37197 * DataGrid.cs: Initial check-in (minimal stub)
37198 * DataGridLineStyle.cs: Initial check-in (minimal stub)
37199 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
37200 * DataGridTableStyle.cs: Initial check-in (minimal stub)
37201 * FontDialog.cs: Initial check-in (minimal stub)
37202 * FileDialog.cs: Initial check-in (minimal stub)
37203 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
37204 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
37205 * OpenFileDialog: Initial check-in (minimal stub)
37206 * IComponentEditorPageSite.cs: Initial check-in
37207 * Splitter.cs: Initial check-in (for Jackson)
37208 * SplitterEventArgs.cs: Initial check-in (for Jackson)
37209 * SplitterEventHandler.cs: Initial check-in (for Jackson)
37210 * TextBox.cs: Initial check-in; still needs some wiring to
37211 TextControl backend
37212 * Form.cs: Implemented ControlBox property
37213 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
37214 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
37215 * TextControl.cs: Added selection functionality; added todo header
37217 - Implemented Lines property
37218 - Implemented TextHeight property
37219 - Implemented SelectedText property
37220 - Implemented SelectionLength property
37221 - Implemented SelectAll method
37222 - Implemented ToString method
37223 - Removed and cleaned up some debug code
37224 - Implemented (still buggy) mouse text selection
37226 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
37228 * ComboBox.cs: Complete DropDownList implementation, fixes.
37230 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
37232 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
37233 * ComboBoxStyle.cs: ComboBoxStyle enum
37234 * ComboBox.cs: Initial work on ComboBox control
37236 2004-12-21 Peter Bartok <pbartok@novell.com>
37238 * Control.cs (ctor, CreateParams): Moved setting of is_visible
37239 forward so that anything that creates a window gets the default,
37240 also no longer uses Visible property in CreateParams to avoid
37241 walking up the parent chain and possibly get the wrong visible
37242 status. Fixed IsVisible to no longer walk up to the parent.
37244 2004-12-21 Peter Bartok <pbartok@novell.com>
37246 * Form.cs (ShowDialog): Unset modality for the proper window
37248 2004-12-20 Peter Bartok <pbartok@novell.com>
37250 * CommonDialog.cs: Initial check-in
37252 2004-12-20 Peter Bartok <pbartok@novell.com>
37254 * Control.cs (Visible): Now uses the parent window instead of the
37255 client area window for the property
37258 - ShowDialog(): Now uses the proper window for modality
37259 - The default visibility state for the form parent is now false. This
37260 will prevent the user from seeing all the changes to the form and
37261 its controls before the application hits Application.Run()
37262 - Removed some stale commented out code
37265 - Added FindWindow() method to have a method to check for existence
37267 - Added ability to override default exception handling (for example
37268 when debugging with VS.Net; to do this the ExternalExceptionHandler
37270 - Removed some useless debug output
37273 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
37274 not working as expected
37275 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
37276 property to allow switching back to the modal window if focus is
37277 given to another one of our windows (Application Modal)
37278 - Now only sets override_redirect if we create a window
37280 - Moved EventMask selection before mapping of newly created window
37281 so we can catch the map event as well
37282 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
37283 - Added various Atom related DllImports
37284 - Implemented Exit() method
37285 - .ctor() : No longer shows window if WS_VISIBLE is not defined
37286 in the CreateParams
37288 * MessageBox.cs: Now properly deals with the FormParent window by
37289 providing an override the FormParent CreateParams property to
37290 set as POPUP instead of OVERLAPPED window.
37292 2004-12-19 Geoff Norton <gnorton@customerdna.com>
37294 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
37295 Minor code cleanup.
37297 2004-12-19 Geoff Norton <gnorton@customerdna.com>
37299 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
37301 2004-12-18 Peter Bartok <pbartok@novell.com>
37303 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
37304 implementing SetModal() method
37306 2004-12-18 Peter Bartok <pbartok@novell.com>
37308 * X11Structs.cs (XGCValues): Fixed type of function element
37309 * XplatUI.cs: Added ScrollWindow() method
37310 * XplatUIDriver.cs: Added ScrollWindow() abstract
37311 * XplatUIWin32.cs: Implemented ScrollWindow() method
37312 * XplatUIX11.cs: Implemented ScrollWindow() method
37313 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
37315 2004-12-17 Geoff Norton <gnorton@customerdna.com>
37317 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
37318 Some more keyboard support (INCOMPLETE)
37320 2004-12-17 Peter Bartok <pbartok@novell.com>
37323 - Added color attribute to line tags.
37324 - Added color argument to all functions dealing with tags
37325 - Added color argument support to various functions
37326 - Fixed miss-calculation of baseline/shift in certain circumstances
37328 * TextBoxBase.cs: Added new color option to test code
37330 2004-12-17 Jackson Harper <jackson@ximian.com>
37333 * MonthCalendar.cs: Signature fixes
37335 2004-12-17 Geoff Norton <gnorton@customerdna.com>
37337 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
37338 keyboard event moved it. Create a new graphics context for each paint resolves this
37340 2004-12-17 Geoff Norton <gnorton@customerdna.com>
37342 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
37343 Make caret exist and go blink blink. Initial keyboard support.
37344 Fix exception handler, Add Invalidate support. Change way RefreshWindow
37347 2004-12-17 Jackson Harper <jackson@ximian.com>
37349 * XplatUIStructs.cs: Updated set of virtual keycodes.
37350 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
37352 2004-12-17 Jackson Harper <jackson@ximian.com>
37354 * XplatUIX11.cs: Prune old keyboard code.
37356 2004-12-17 Jackson Harper <jackson@ximian.com>
37358 * XplatUIX11.cs: When generating mouse wparams get the modifier
37359 keys from the ModifierKeys property.
37361 2004-12-17 Jackson Harper <jackson@ximian.com>
37363 * X11Keyboard.cs: Send up/down input when generating
37364 messages. Remove some unused vars.
37366 2004-12-17 Jackson Harper <jackson@ximian.com>
37369 * TreeView.cs: get rid of warnings.
37371 2004-12-17 Jackson Harper <jackson@ximian.com>
37373 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
37375 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
37377 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
37378 CheckedListBox.cs: Implementation
37380 2004-12-17 Peter Bartok <pbartok@novell.com>
37382 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
37384 2004-12-16 Peter Bartok <pbartok@novell.com>
37387 - InsertCharAtCaret(): Fixed start pos fixup
37388 - CaretLine_get: No longer derives the line from the tag, the tag
37389 could be stale if lines in the document have been added or deleted
37390 - RebalanceAfterDelete(): Fixed bug in balancing code
37391 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
37392 - Line.Streamline(): Now can also elminate leading empty tags
37393 - DumpTree(): Added a few more tests and prevented exception on
37395 - Added Debug section for Combining lines
37396 - Delete(): Now copies all remaining properties of a line
37399 - Left mousebutton now sets the caret (and middle button still acts
37400 as formatting tester, which must go away soon)
37401 - Added Debug section for Deleting/Combining lines
37402 - Fixed calculations for UpdateView after Combining lines
37404 2004-12-16 Peter Bartok <pbartok@novell.com>
37406 * TextControl.cs: Now properly aligns text on a baseline, using the
37407 new XplatUI.GetFontMetrics() method. Simplified several calculations
37408 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
37411 2004-12-16 Peter Bartok <pbartok@novell.com>
37413 * XplatUI.cs: Added GetFontMetrics() method
37414 * XplatUIDriver.cs: Added GetFontMetrics() abstract
37415 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
37416 into libgdiplus, our private GetFontMetrics function
37417 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
37418 * XplatUIWin32.cs: Implemented GetFontMetrics() method
37420 2004-12-16 Jackson Harper <jackson@ximain.com>
37422 * XplatUIStruct.cs: Add enum for dead keys
37423 * X11Keyboard.cs: Map and unmap dead keys.
37425 2004-12-16 Jackson Harper <jackson@ximian.com>
37427 * X11Keyboard.cs: Detect and use the num lock mask.
37429 2004-12-16 Peter Bartok <pbartok@novell.com>
37431 * Control.cs (CreateGraphics): Added check to make sure the
37432 handle of the window exists before calling Graphics.FromHwnd()
37434 2004-12-16 Peter Bartok <pbartok@novell.com>
37436 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
37437 contains a lot of code that's not supposed to be there for the
37438 real thing, but required for developing/testing the textbox
37441 2004-12-16 Peter Bartok <pbartok@novell.com>
37444 - Fixed Streamline method
37445 - Added FindTag method to Line
37446 - Added DumpTree method for debugging
37447 - Added DecrementLines() method for deleting lines
37448 - Fixed UpdateView to update the cursor to end-of-line on single-line
37450 - Added PositionCaret() method
37451 - Fixed MoveCaret(LineDown) to move into the last line, too
37452 - Added InsertChar overload
37453 - Fixed InsertChar tag offset calculations
37454 - Added DeleteChar() method
37455 - Added Combine() method for folding lines
37456 - Fixed Delete() method, no longer allocates wasted Line object and
37457 now copies all properties when swapping nodes
37458 - Delete() method now updates document line counter
37460 2004-12-15 Jackson Harper <jackson@ximian.com>
37462 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
37463 * X11Keyboard.cs: Expose the currently selected modifier keys
37464 through a property.
37466 2004-12-15 Peter Bartok <pbartok@novell.com>
37468 * TextControl.cs: Initial check-in. Still incomplete
37470 2004-12-15 Jackson Harper <jackson@ximian.com>
37473 * TreeView.cs: Fix build on csc (second time today ;-))
37475 2004-12-15 Jackson Harper <jackson@ximian.com>
37477 * TreeView.cs: Store the treenodes plus/minus box bounds when it
37478 is calculated and use this for click testing.
37479 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
37481 2004-12-15 Jackson Harper <jackson@ximian.com>
37483 * TreeView.cs: Pass the nodes image index to the image list when
37484 drawing that image.
37486 2004-12-15 Jackson Harper <jackson@ximian.com>
37488 * X11Keyboard.cs: Set messages hwnd.
37489 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
37490 post_message calls.
37492 2004-12-15 Jackson Harper <jackson@ximian.com>
37494 * X11Keyboard.cs: Fix to compile with csc.
37496 2004-12-15 Jackson Harper <jackson@ximian.com>
37498 * X11Structs.cs: Add key mask values
37499 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
37500 * X11Keyboard.cs: New file - Extrapolates and interpolates key
37501 down/up foo into WM_CHAR foo
37502 * KeyboardLayouts.cs: Common keyboard layouts
37503 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
37504 post messages into the main queue.
37506 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
37508 * Button.cs: implement ProcessMnemonic
37509 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
37511 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
37512 * ButtonBase.cs: Show HotkeyPrefix (not the &)
37514 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
37516 * MonthCalendar.cs: Implemented click-hold for next/previous month
37519 2004-12-11 Peter Bartok <pbartok@novell.com>
37522 - Added XKeyboardState (moved from XplatUIX11.cs)
37523 - Added XCreateGC related enums and structures
37524 - Added GXFunction for XSetFunction
37526 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
37528 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
37529 CaretVisible() calls
37531 * ToolTip.cs: Added code to prevent stealing focus from app windows
37533 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
37534 DestroyCaret, SetCaretPos and CaretVisible)
37537 - Added implementation for caret functions
37538 - Moved hover variables into a struct, to make it a bit easier
37539 on the eyes and to debug
37540 - Removed XKeyboardState (moved to XplatUIX11.cs)
37541 - Moved Keyboard properties into the properties region
37543 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
37544 call to get a graphics context for our control
37546 * XplatUIOSX.cs: Added empty overrides for the new caret functions
37548 * TreeView.cs: Fixed bug. No matter what color was set it would always
37549 return SystemColors.Window
37551 * XplatUIWin32.cs: Implemented caret overrides
37553 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
37555 * ListBox.cs: fire events, implement missing methods and properties,
37558 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
37560 * MonthCalendar.cs: invalidation bug fixing
37561 * ThemeWin32Classic.cs: paint fixing
37563 2004-12-09 Geoff Norton <gnorton@customerdna.com>
37565 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
37566 prepare the CGContextRef there now.
37568 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
37570 * MonthCalendar.cs:
37571 - optimisationL only invalidate areas that have changed
37572 * ThemeWin32Classic.cs:
37573 - only paint parts that intersect with clip_area
37575 2004-12-09 Peter Bartok <pbartok@novell.com>
37577 * Application.cs: Undid changes from r37004 which cause problems
37580 2004-12-09 Ravindra <rkumar@novell.com>
37582 * ToolBar.cs: Added support for displaying ContextMenu
37583 attached to a button on ToolBar.
37584 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
37587 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
37589 * Label.cs: autosize works in text change and removes unnecessary
37592 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
37594 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
37597 2004-12-08 Geoff Norton <gnorton@customerdna.com>
37599 * XplatUIOSX.cs: Added mouse move/click/grab support
37600 Remove some debugging WriteLines not needed anymore.
37601 Add window resizing/positioning.
37602 Fix visibility on reparenting.
37604 2004-12-08 Peter Bartok <pbartok@novell.com>
37606 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
37608 2004-12-07 Geoff Norton <gnorton@customerdna.com>
37610 * XplatUIOSX.cs: Initial checkin
37611 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
37613 2004-12-03 Ravindra <rkumar@novell.com>
37615 * ListView.cs: Added some keybindings and fixed scrolling.
37616 ScrollBars listen to ValueChanged event instead of Scroll
37617 Event. This would let us take care of all changes being
37618 done in the scrollbars' values programmatically or manually.
37619 * ListView.cs (CanMultiselect): Added a check for shift key.
37620 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
37621 * ListViewItem.cs (Clone): Fixed. We need to make a copy
37622 of ListViewSubItemCollection as well.
37624 2004-12-06 Peter Bartok <pbartok@novell.com>
37626 * Control.cs (Parent): Added check and exception to prevent
37629 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
37631 * ListBox.cs: implemented clipping, selection single and multiple,
37634 2004-12-03 Ravindra <rkumar@novell.com>
37636 * ListView.cs (ListView_KeyDown):
37637 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
37638 when CTRL key is pressed.
37639 * ListViewItem.cs (Selected): Fixed setting the property.
37641 2004-12-03 Marek Safar <marek.safar@seznam.cz>
37643 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
37645 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
37646 MinimizeBox, ShowInTaskbar, TopMost properties.
37648 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
37649 will be implemented).
37651 2004-12-03 Marek Safar <marek.safar@seznam.cz>
37653 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
37655 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
37658 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
37660 * TreeView.cs: BackColor is Colors.Window.
37662 2004-12-01 Jackson Harper <jackson@ximian.com>
37664 * TreeView.cs: When resizing the tree if the user is making it
37665 smaller we don't get expose events, so we need to handle adding
37666 the horizontal scrollbar in the size changed handler as well as
37667 the expose handler.
37669 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
37671 * DrawItemState.cs: fixes wrong enum values
37673 2004-12-01 Jackson Harper <jackson@ximian.com>
37675 * TreeView.cs: Resize the hbar as well as the vbar on resize.
37677 2004-12-01 Jackson Harper <jackson@ximian.com>
37679 * NodeLabelEditEventArgs.cs:
37680 * NodeLabelEditEventHandler.cs:
37681 * OpenTreeNodeEnumerator.cs:
37683 * TreeNodeCollection.cs:
37685 * TreeViewAction.cs:
37686 * TreeViewCancelEventArgs.cs:
37687 * TreeViewCancelEventHandler.cs:
37688 * TreeViewEventArgs.cs:
37689 * TreeViewEventHandler.cs: Initial implementation.
37691 2004-12-01 Ravindra <rkumar@novell.com>
37693 * ListView.cs (CalculateListView): Fixed scrolling related
37694 calculations. Also, removed some debug statements from other
37696 * ListViewItem.cs: Changed access to 'selected' instance variable
37697 from private to internal.
37698 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
37700 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
37702 * ThemeWin32Classic.cs: remove cache of brush and pens for
37703 specific controls and use the global system, fixes scrollbutton
37704 bugs (for small sizes, disabled, etc)
37706 * ScrollBar.cs: does not show the thumb for very small controls
37707 (as MS) and allow smaller buttons that the regular size
37709 2004-12-01 Miguel de Icaza <miguel@ximian.com>
37711 * UpDownBase.cs: Add abstract methods for the interface.
37712 Add new virtual methods (need to be hooked up to TextEntry when it
37714 Add override methods for most features.
37715 Computes the size, forces the height of the text entry.
37717 * NumericUpDown.cs: Put here the current testing code.
37719 * Set eol-style property on all files that do not have mixed line
37720 endings, to minimize the future problems. There are still a few
37721 files with mixed endings, and someone should choose whether they
37722 want to move it or not.
37724 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
37726 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
37729 2004-11-30 Ravindra <rkumar@novell.com>
37731 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
37732 drawing and replaced use of SystemColors by theme colors.
37733 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
37734 * ListView.cs (ListViewItemCollection.Add): Throw exception when
37735 same ListViewItem is being added more than once.
37737 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
37739 * MonthCalendar.cs:
37740 - ControlStyles love to make the control not flicker
37742 2004-11-30 Peter Bartok <pbartok@novell.com>
37744 * CharacterCasing.cs: Added
37746 2004-11-29 Peter Bartok <pbartok@novell.com>
37748 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37749 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
37750 I am removing these files as they conflict with already completed
37751 work. While it is fantastic to get contributions to MWF, I
37752 respectfully ask that everyone please coordinate their contributions
37753 through mono-winforms-list or #mono-winforms at this time. We're
37754 explicitly avoiding stubbing and don't want controls that don't have
37755 their basic functionality implemented in svn. Please also see
37756 http://www.mono-project.com/contributing/winforms.html
37759 2004-11-29 Marek Safar <marek.safar@seznam.cz>
37761 * Application.cs (ModalRun): Don't hang after exit.
37763 * Theme.cs: New TreeViewDefaultSize property.
37765 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
37766 with less hardcoded SystemColors constant.
37767 Implemented TreeViewDefaultSize.
37769 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37770 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
37773 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
37775 * MonthCalendar.cs:
37776 - Fix NextMonthDate and PrevMonthDate click moving calendar
37778 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
37780 * MonthCalendar.cs:
37781 - Fix usage of ScrollChange Property when scrolling months
37783 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
37785 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
37786 - Fixes menu destroying
37787 - Support adding and removing items on already created menus
37789 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
37791 * MonthCalendar.cs:
37792 - Re-worked all bolded dates handling to match win32
37793 * ThemeWin32Classic.cs:
37794 - Fixed rendering with bolded dates
37796 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
37798 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
37799 - Horizontal scroolbar
37804 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
37806 * MonthCalendar.cs:
37807 - Fix Usage of MaxSelectionCount from SelectionRange
37808 - Fixed Shift + Cursor Selection
37809 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
37810 - Fixed normal cursor selection to be compat with win32
37811 - Fixed Shift + Mouse Click selection
37813 2004-11-24 Peter Bartok <pbartok@novell.com>
37815 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
37816 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
37818 - CreatedKeyBoardMsg now updates keystate with Alt key
37819 - Added workaround for timer crash to CheckTimers, Jackson will
37820 develop a proper fix and check in later
37821 - Implemented DispatchMessage
37822 - Removed calling the native window proc from GetMessage (call
37823 now moved to DispatchMessage)
37825 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
37826 the keydata (Fixes bug #69831)
37829 - (DispatchMessage): Switched to return IntPtr
37830 - Added DllImport for SetFocus
37832 2004-11-24 Ravindra <rkumar@novell.com>
37834 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
37835 background drawing.
37836 * ListViewItem.cs: Fixed various properties, calculations
37837 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
37838 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
37839 and some internal properties. Fixed MouseDown handler and Paint
37842 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
37844 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
37846 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
37848 * ContainerControl.cs: correct accidental check in of local changes
37850 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
37852 * ThemeWin32Classic.cs:
37853 - Fixed Drawing Last month in grid (sometimes not showing)
37854 * MonthCalendar.cs:
37855 - Fixed title width calculation bug (makeing title small)
37857 2004-11-23 Peter Bartok <pbartok@novell.com>
37860 - Added generation of WM_MOUSEHOVER event
37861 - Added missing assignment of async_method atom
37862 - Fixed WM_ERASEBKGND; now only redraws the exposed area
37864 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
37866 * ThemeWin32Classic.cs:
37867 - Fixed Drawing of today circle when showtodaycircle not set
37868 - fixed drawing of first and last month in the grid (gay dates)
37869 * MonthCalendar.cs:
37870 - Fixed Drawing of today circle
37871 - Fixed drawing of grady dates
37872 - Fixed HitTest for today link when ShowToday set to false
37873 - Fixed DefaultSize to obey ShowToday
37875 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
37877 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
37878 * System.Windows.Forms/Theme.cs
37879 * MonthCalendar.cs: added for MonthCalendar
37880 * SelectionRange.cs: added for MonthCalendar
37881 * Day.cs: added for MonthCalendar: added for MonthCalendar
37882 * DateRangeEventArgs.cs: added for MonthCalendar
37883 * DateRangeEventHandler.cs: added for MonthCalendar
37885 2004-11-22 Ravindra <rkumar@novell.com>
37887 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
37890 2004-11-22 Miguel de Icaza <miguel@ximian.com>
37892 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
37895 * NumericUpDown.cs: Added new implementation.
37896 * UpDownBase.cs: Added new implementation.
37898 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
37901 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
37904 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
37907 2004-11-21 Miguel de Icaza <miguel@ximian.com>
37909 * Timer.cs (Dispose): Should call the base dispose when
37912 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
37914 * ScrollBar.cs: updates thumb position when max, min or increment
37917 2004-11-21 Ravindra <rkumar@novell.com>
37919 * ListView.cs: Implemented item selection, activation and
37920 column header style. Fixed properties to do a redraw, if
37921 required. Added support for MouseHover, DoubleClick, KeyDown
37922 and KeyUp event handling and some minor fixes.
37923 * ListViewItem.cs: Fixed constructor.
37924 * ThemeWin32Classic.cs: Improved drawing for ListView.
37926 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
37928 * ThemeWin32Classic.cs: initial listbox drawing code
37929 * DrawMode.cs: new enumerator
37930 * ListControl.cs: stubbed class
37931 * ListBox.cs: initial implementation
37932 * Theme.cs: new methods definitions
37933 * SelectionMode.cs: new enumerator
37935 2004-11-17 Peter Bartok <pbartok@novell.com>
37937 * XplatUIWin32.cs: Added double-click events to the class style
37938 * Control.cs (WndProc):
37939 - Added handling of click-count to MouseDown/ MouseUp events.
37940 - Added handling of middle and right mouse buttons
37941 - Removed old debug code
37943 2004-11-17 Jackson Harper <jackson@ximian.com>
37945 * XplatUIX11.cs: Use the new Mono.Unix namespace.
37947 2004-11-17 Ravindra <rkumar@novell.com>
37949 * ListView.cs: Added event handling for MouseMove/Up/Down.
37950 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
37951 * ThemeWin32Classic.cs: We need to clear the graphics context and
37952 draw column header in a proper state.
37955 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
37957 * Menu.cs: fixes signature
37959 2004-11-16 Peter Bartok <pbartok@novell.com>
37961 * XplatUIX11.cs (GetMessage): Implemented generation of
37962 double click mouse messages
37964 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
37966 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
37969 2004-11-11 Peter Bartok <pbartok@novell.com>
37971 * HandleData.cs: Added Visible property
37972 * XplatUIX11.cs (IsVisible): Now uses Visible property from
37974 * XplatUIX11.cs: Removed old debug leftovers
37975 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
37976 * Control.cs (WndProc): Removed old debug leftovers,
37977 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
37978 needed WM_SIZE handling
37980 2004-11-11 Jackson Harper <jackson@ximian.com>
37982 * OwnerDrawPropertyBag.cs:
37983 * TreeViewImageIndexConverter.cs: Initial implementation
37985 2004-11-10 Jackson Harper <jackson@ximian.com>
37987 * ThemeWin32Classic.cs:
37988 * TabControl.cs: instead of moving tabs by the slider pos just
37989 start drawing at the tab that is offset by the slider. This way
37990 scrolling always moves by exactly one tab.
37992 2004-11-10 Jackson Harper <jackson@ximian.com>
37994 * TabControl.cs: You can only scroll left when the slider has
37995 already ben moved right.
37997 2004-11-10 Jackson Harper <jackson@ximian.com>
37999 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
38002 2004-11-10 Jackson Harper <jackson@ximian.com>
38004 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
38007 2004-11-09 Jackson Harper <jackson@ximian.com>
38009 * TabControl.cs (CalcXPos): New helper method so we can determine
38010 the proper place to start drawing vertical tabs.
38011 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
38013 2004-11-09 Jackson Harper <jackson@ximian.com>
38015 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
38016 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
38017 and Bottom, left and right are illegal values for this and
38018 multiline is enabled when the alignment is set to left or right.
38019 (DrawTab): Each alignment block should draw the text itself now
38020 because Left requires special love. Also add rendering for Left
38023 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
38025 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
38026 does not destroy the windows, removes debugging messages
38028 2004-11-09 jba <jba-mono@optusnet.com.au>
38030 * ThemeWin32Classic.cs
38031 (DrawButtonBase): Fix verticle text rect clipping in windows
38032 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
38033 rendering and incorrect text rect clipping
38034 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
38035 rendering and incorrect text rect clipping
38037 2004-11-08 Jackson Harper <jackson@ximian.com>
38039 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
38040 bottom when they are bottom aligned so the bottoms of the tabs get
38042 * TabControl.cs (DropRow): Move rows up instead of down when the
38043 tab control is bottom aligned.
38045 2004-11-08 13:59 pbartok
38048 - Added handling for various window styles
38049 - Added handling for popup windows
38050 - Added SetTopmost handling
38052 2004-11-08 13:55 pbartok
38055 - Added argument to SetTopmost method
38056 - Fixed broken ClientToScreen function
38058 2004-11-08 13:53 pbartok
38060 * XplatUIStructs.cs:
38061 - Added missing WS_EX styles
38063 2004-11-08 13:53 pbartok
38065 * XplatUI.cs, XplatUIDriver.cs:
38066 - Added argument to SetTopmost
38068 2004-11-08 13:52 pbartok
38071 - Added XSetWindowAttributes structure
38072 - Improved XWindowAttributes structure
38073 - Added SetWindowValuemask enum
38074 - Added window creation arguments enum
38075 - Added gravity enum
38076 - Added Motif hints structure
38077 - Added various Motif flags and enums
38078 - Added PropertyMode enum for property functions
38080 2004-11-08 13:50 pbartok
38083 - Fixed arguments for updated SetTopmost method
38085 2004-11-08 13:49 pbartok
38088 - Fixed arguments for updated SetTopmost function
38089 - Fixed usage of PointToClient
38091 2004-11-08 13:44 pbartok
38094 - Added Clipping of children and siblings
38096 2004-11-08 13:41 pbartok
38099 - Removed SetMenuBarWindow call. We do this in Form.cs
38101 2004-11-08 13:40 jackson
38103 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
38104 scrolling jimmi in the correct location with bottom aligned tabs
38106 2004-11-08 13:36 pbartok
38108 * ContainerControl.cs:
38109 - Implemented BindingContext
38110 - Implemented ParentForm
38112 2004-11-08 12:46 jackson
38114 * TabControl.cs: Put bottom rendered tabs in the right location
38116 2004-11-08 07:15 jordi
38118 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
38121 2004-11-05 17:30 jackson
38123 * TabControl.cs: When selected tabs are expanded make sure they
38124 don't go beyond the edges of the tab control
38126 2004-11-05 14:57 jackson
38128 * TabControl.cs: Reset show_slider so if the control is resized to
38129 a size where it is no longer needed it's not displayed anymore
38131 2004-11-05 13:16 jackson
38133 * TabControl.cs: Make tab pages non visible when added to the
38136 2004-11-05 12:42 jackson
38138 * TabControl.cs: Implement SizeMode.FillToRight
38140 2004-11-05 12:16 jackson
38142 * Control.cs: Do not call CreateHandle if the handle is already
38145 2004-11-05 11:46 jackson
38147 * TabControl.cs: Remove superflous call to CalcTabRows
38149 2004-11-05 09:07 jackson
38151 * XplatUIX11.cs: Update for Mono.Posix changes
38153 2004-11-05 07:00 ravindra
38155 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
38158 2004-11-04 22:47 jba
38160 * ThemeWin32Classic.cs:
38161 - Fix Button rendering for FlatStyle = Flat or Popup
38162 - Fix RadioButton and CheckBox rendering when Appearance = Button
38163 (normal and flatstyle).
38164 - Correct outer rectangle color when drawing focus rectangle
38165 - Adjust button bounds to be 1 px smaller when focused
38166 - Make button not draw sunken 3d border when pushed (windows compat)
38167 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
38168 - Offset the text in RadioButton and Checkbox when being rendered as
38170 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
38172 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
38173 - Fixed disabled text rendering for normally rendered radiobuttons
38175 2004-11-04 10:26 jackson
38177 * TabControl.cs: Recalculate tab rows when resizing
38179 2004-11-04 07:47 jordi
38181 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
38182 collection completion, drawing issues, missing features
38184 2004-11-04 05:03 ravindra
38187 - We need to recalculate the Thumb area when
38188 LargeChange/maximum/minimum values are changed.
38189 - We set the 'pos' in UpdatePos() method to minimum, if it's less
38190 than minimum. This is required to handle the case if large_change is
38191 more than max, and use LargeChange property instead of large_change
38193 - We return max+1 when large_change is more than max, like MS does.
38195 2004-11-04 04:29 ravindra
38197 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
38198 - Changed default value signatures (prefixed all with ListView).
38199 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
38201 - Fixed calculations for ListViewItem and implemented Clone()
38204 2004-11-04 04:26 ravindra
38206 * Theme.cs, ThemeWin32Classic.cs:
38207 - Changed default ListView values signatures (prefixed all with
38209 - Fixed default size values for VScrollBar and HScrollBar.
38210 - Fixed DrawListViewItem method.
38212 2004-11-04 04:05 ravindra
38214 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
38216 2004-11-04 04:04 ravindra
38218 * ImageList.cs: Implemented the missing overload for Draw method.
38220 2004-11-03 19:29 jackson
38222 * TabControl.cs: Handle dropping rows on selection properly
38224 2004-11-03 11:59 jackson
38226 * TabControl.cs: remove debug code
38228 2004-11-03 11:52 jackson
38230 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
38231 the scrolly widgerywoo
38233 2004-11-02 13:52 jackson
38235 * TabControl.cs: Resize the tab pages and tabs when the tab control
38238 2004-11-02 13:40 jackson
38240 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
38241 selected tab to the bottom
38243 2004-11-02 13:39 jackson
38245 * TabPage.cs: Store the tab pages row
38247 2004-11-02 12:33 jordi
38249 * MenuItem.cs: fixes handle creation
38251 2004-11-02 11:42 jackson
38253 * TabControl.cs: signature fix
38255 2004-11-02 08:56 jackson
38257 * TabControl.cs: Calculate whether the tab is on an edge properly.
38258 Remove top secret debugging code
38260 2004-11-01 19:57 jackson
38262 * TabControl.cs: Add click handling, and proper sizing
38264 2004-11-01 19:47 jackson
38266 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
38269 2004-11-01 19:39 jackson
38271 * TabPage.cs: add internal property to store the bounds of a tab
38274 2004-10-30 04:23 ravindra
38276 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
38279 2004-10-30 04:21 ravindra
38281 * ListView.cs, ListViewItem.cs: Added support for scrolling and
38282 fixed calculations.
38284 2004-10-30 03:06 pbartok
38287 - Removed extension of DllImported libs
38289 2004-10-29 09:55 jordi
38291 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
38292 navigation, itemcollection completion, menu fixes
38294 2004-10-27 22:58 pbartok
38297 - Now throws a nice error message when no X display could be opened
38299 2004-10-26 13:51 jordi
38301 * ListView.cs: removes warning
38303 2004-10-26 03:55 ravindra
38305 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
38306 ThemeWin32Classic.cs: Some formatting for my last checkins.
38308 2004-10-26 03:36 ravindra
38310 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
38311 control and default values.
38313 2004-10-26 03:35 ravindra
38315 * Theme.cs: Added some default values for ListView control.
38317 2004-10-26 03:33 ravindra
38319 * ToolBar.cs: ToolBar should use the user specified button size, if
38320 there is any. Added a size_specified flag for the same.
38322 2004-10-26 03:33 ravindra
38324 * ColumnHeader.cs: Added some internal members and calculations for
38327 2004-10-26 03:32 ravindra
38329 * ListViewItem.cs: Calculations for ListViewItem.
38331 2004-10-26 03:31 ravindra
38333 * ListView.cs: Added some internal members and calculations for
38336 2004-10-22 13:31 jordi
38338 * MenuAPI.cs: speedup menus drawing
38340 2004-10-22 13:16 jackson
38342 * XplatUIX11.cs: Make sure to update exposed regions when adding an
38345 2004-10-22 11:49 jackson
38349 2004-10-22 11:41 jackson
38351 * Control.cs: Check to see if the window should have its background
38352 repainted by X when drawing.
38354 2004-10-22 11:31 jackson
38356 * XplatUIX11.cs: When invalidating areas only use XClearArea if
38357 clear is true, this way we do not get flicker from X repainting the
38360 2004-10-22 11:28 jackson
38362 * XEventQueue.cs: Queue properly
38364 2004-10-21 09:38 jackson
38366 * XEventQueue.cs: Fix access modifier
38368 2004-10-21 09:36 jackson
38370 * XEventQueue.cs: Don't loose messages
38372 2004-10-21 09:22 jackson
38374 * XEventQueue.cs: Don't loose messages
38376 2004-10-20 04:15 jordi
38378 * BootMode.cs: enum need it by SystemInfo
38380 2004-10-19 21:58 pbartok
38383 - Small sanity check
38385 2004-10-19 21:56 pbartok
38388 - Added private FormParentWindow class which acts as the container
38389 for our form and as the non-client area where menus are drawn
38390 - Added/Moved required tie-ins to Jordi's menus
38391 - Fixed/Implemented the FormStartPosition functionality
38393 2004-10-19 21:52 pbartok
38396 - Removed unneeded locals
38397 - Added code to all size and location properties to understand and
38398 deal with the parent container of Form
38400 2004-10-19 21:33 pbartok
38403 - Fixed to deal with new Form subclasses for menus
38405 2004-10-19 17:48 jackson
38407 * XEventQueue.cs: commit correct version of file
38409 2004-10-19 16:50 jackson
38411 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
38413 2004-10-19 16:15 jordi
38415 * MenuAPI.cs: MenuBarCalcSize returns the height
38417 2004-10-19 08:31 pbartok
38420 - Added missing call to PreProcessMessage before calling OnXXXKey
38423 2004-10-19 00:04 ravindra
38425 * ToolTip.cs: Fixed constructor.
38427 2004-10-18 09:31 jordi
38429 * MenuAPI.cs: menuitems in menubars do not have shortcuts
38431 2004-10-18 09:26 jordi
38433 * MenuItem.cs: fixes MenuItem class signature
38435 2004-10-18 08:56 jordi
38437 * MenuAPI.cs: prevents windows from showing in the taskbar
38439 2004-10-18 00:28 ravindra
38441 * ToolTip.cs: Suppressed a warning message.
38443 2004-10-18 00:27 ravindra
38445 * Control.cs: Default value of visible property must be true.
38447 2004-10-17 23:19 pbartok
38450 - Complete implementation
38452 2004-10-17 23:19 pbartok
38455 - Added EnableWindow method
38456 - Added SetModal stub
38457 - Added generation of WM_ACTIVATE message (still needs testing)
38458 - Added SetTopMost stub
38459 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
38461 2004-10-17 23:17 pbartok
38464 - Removed VirtualKeys to XplatUIStructs
38465 - Implemented SetTopMost method
38466 - Implemented EnableWindow method
38467 - Bugfix in ScreenToClient()
38468 - Bugfixes in ClientToScreen()
38470 2004-10-17 22:51 pbartok
38472 * XplatUIStructs.cs:
38473 - Added WS_EX styles to WindowStyles enumeration
38475 2004-10-17 22:50 pbartok
38477 * XplatUI.cs, XplatUIDriver.cs:
38478 - Added method for enabling/disabling windows
38479 - Added method for setting window modality
38480 - Added method for setting topmost window
38482 2004-10-17 22:49 pbartok
38484 * ThemeWin32Classic.cs:
38485 - Added ToolTip drawing code
38487 2004-10-17 22:49 pbartok
38490 - Added ToolTip abstracts
38492 2004-10-17 22:47 pbartok
38495 - Fixed Form.ControlCollection to handle owner relations
38496 - Added Owner/OwnedForms handling
38497 - Implemented Z-Ordering for owned forms
38498 - Removed unneeded private overload of ShowDialog
38499 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
38501 - Fixed Close(), had wrong default
38502 - Added firing of OnLoad event
38503 - Added some commented out debug code for Ownership handling
38505 2004-10-17 22:16 pbartok
38508 - Fixed/implemented flat list of controls
38510 2004-10-17 22:14 pbartok
38513 - Added code to simulate modal dialogs on Win32
38515 2004-10-17 16:11 jordi
38517 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
38520 2004-10-17 13:39 jordi
38522 * MenuAPI.cs: menu drawing fixes
38524 2004-10-15 09:10 ravindra
38526 * StructFormat.cs: General Enum.
38528 2004-10-15 09:09 ravindra
38530 * SizeGripStyle.cs: Enum for Form.
38532 2004-10-15 09:08 ravindra
38534 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
38535 in Theme for ListView.
38537 2004-10-15 09:06 ravindra
38539 * ColumnHeader.cs: Flushing some formatting changes.
38541 2004-10-15 09:05 ravindra
38543 * ListViewItem.cs: Implemented GetBounds method and fixed coding
38546 2004-10-15 09:03 ravindra
38548 * ListView.cs: Implemented Paint method and fixed coding style.
38550 2004-10-15 07:34 jordi
38552 * MenuAPI.cs: fix for X11
38554 2004-10-15 07:32 ravindra
38556 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
38557 - Renamed Paint() method to Draw() for clarity. Also, moved
38558 DrawImage() to OnPaint().
38560 2004-10-15 07:25 ravindra
38562 * CheckBox.cs, RadioButton.cs:
38563 - Removed Redraw (), we get it from ButtonBase.
38564 - Implemented Paint (), to do class specific painting.
38566 2004-10-15 07:16 ravindra
38569 - Redraw () is not virtual now.
38570 - Added an internal virtual method Paint (), so that
38571 derived classes can do their painting on their own.
38572 - Modified OnPaint () to call Paint ().
38574 2004-10-15 06:43 jordi
38576 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
38577 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
38579 2004-10-15 00:30 ravindra
38582 - MessageBox on windows does not have min/max buttons.
38583 This change in CreateParams fixes this on Windows. We
38584 still need to implement this windowstyle behavior in
38587 2004-10-14 05:14 ravindra
38590 - Changed Redraw () to do a Refresh () always.
38591 - Fixed the MouseMove event handling when mouse is pressed,
38592 ie drag event handling.
38593 - Replaced the usage of ToolBarButton.Pressed property to
38594 ToolBarButton.pressed internal variable.
38596 2004-10-14 05:10 ravindra
38598 * ToolBarButton.cs:
38599 - Added an internal member 'inside' to handle mouse move
38600 with mouse pressed ie mouse drag event.
38601 - Changed 'Pressed' property to return true only when
38602 'inside' and 'pressed' are both true.
38603 - Some coding style love.
38605 2004-10-14 00:17 ravindra
38607 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
38610 2004-10-14 00:15 ravindra
38612 * ButtonBase.cs: Redraw () related improvements.
38614 2004-10-14 00:14 ravindra
38616 * MessageBox.cs: Moved InitFormSize () out of Paint method and
38617 removed unnecessary calls to Button.Show () method.
38619 2004-10-13 17:50 pbartok
38623 - Removed destroying of window until we solve the problem of X
38624 destroying the window before us on shutdown
38626 2004-10-13 16:32 pbartok
38629 - Now Redraws on MouseUp for FlatStyle Flat and Popup
38631 2004-10-13 14:18 pbartok
38634 - Added code to destroy the X window
38636 2004-10-13 14:18 pbartok
38639 - Added code to destroy a window
38641 2004-10-13 14:12 pbartok
38644 - Added the Redraw on Resize that got dropped in the last rev
38646 2004-10-13 09:06 pbartok
38648 * ThemeWin32Classic.cs:
38649 - Path from John BouAntoun:
38650 * Fix check rendering (centre correctly for normal style, offset
38651 correctly for FlatStyle).
38652 * Fix border color usage (use backcolor) for FlatStyle.Popup
38653 * Use checkbox.Capture instead of checkbox.is_pressed when
38654 rendering flatstyle states.
38656 2004-10-12 21:48 pbartok
38658 * ThemeWin32Classic.cs:
38659 - Removed all occurences of SystemColors and replaced them with the
38660 matching theme color
38662 2004-10-12 21:41 pbartok
38664 * ThemeWin32Classic.cs:
38665 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
38666 him using the function for flatstyle drawing
38667 - Changed functions to use the new version of CPDrawBorder3D
38669 2004-10-12 21:15 pbartok
38672 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
38673 match MS documentation. They need to return defined colors if the
38674 passed color matches the configured control color. Thanks to John
38675 BouAntoun for pointing this out.
38677 2004-10-12 20:57 pbartok
38680 - Fix from John BouAntoun: Raise ForeColorChanged event when text
38683 2004-10-12 20:46 pbartok
38686 - Fix from John BouAntoun: Now properly sets the Appearance property
38688 2004-10-12 20:45 pbartok
38690 * ThemeWin32Classic.cs:
38691 - Fixes from John BouAntoun: now handles forecolors and backcolors
38692 for flatstyle rendered controls much better; It also fixes normal
38693 checkbox rendering when pushed or disabled.
38695 2004-10-08 02:50 jordi
38697 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
38700 2004-10-07 08:56 jordi
38702 * ThemeWin32Classic.cs: Removes deletion of cached brushes
38704 2004-10-06 03:59 jordi
38706 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
38707 XplatUIWin32.cs: removes warnings from compilation
38709 2004-10-05 12:23 jackson
38711 * RadioButton.cs: Fix ctor
38713 2004-10-05 11:10 pbartok
38716 - Partial implementation by Benjamin Dasnois
38718 2004-10-05 10:15 jackson
38720 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
38723 2004-10-05 03:07 ravindra
38726 - Removed a private method, Draw ().
38727 - Fixed the ButtonDropDown event handling.
38728 - Fixed MouseMove event handling.
38730 2004-10-05 03:04 ravindra
38732 * ThemeWin32Classic.cs:
38733 - Added DrawListView method and ListViewDefaultSize property.
38734 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
38735 - Changed DOS style CRLF to Unix format (dos2unix).
38737 2004-10-05 03:03 ravindra
38740 - Added DrawListView method and ListViewDefaultSize property.
38742 2004-10-05 02:42 ravindra
38744 * ToolBarButton.cs: Added an internal member dd_pressed to handle
38745 clicks on DropDown arrow.
38747 2004-10-04 22:56 jackson
38749 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
38750 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
38751 Control handle the buffers, derived classes should not have to
38752 CreateBuffers themselves.
38754 2004-10-04 21:20 jackson
38756 * StatusBar.cs: The control handles resizing the buffers now.
38758 2004-10-04 21:18 jackson
38760 * Control.cs: When resizing the buffers should be invalidated. This
38761 should be handled in Control not in derived classes.
38763 2004-10-04 14:45 jackson
38767 2004-10-04 02:14 pbartok
38769 * LeftRightAlignment.cs:
38772 2004-10-04 01:09 jordi
38774 * ThemeWin32Classic.cs: fixes right button position causing right
38775 button not showing on horizontal scrollbars
38777 2004-10-02 13:12 pbartok
38780 - Simplified the Invalidate method by using an X call instead of
38781 generating the expose ourselves
38782 - Added an expose when the window background is changed
38783 - Implemented ClientToScreen method
38785 2004-10-02 13:08 pbartok
38788 - Added Win32EnableWindow method (test for implementing modal
38790 - Added ClientToScreen method and imports
38792 2004-10-02 13:07 pbartok
38794 * XplatUI.cs, XplatUIDriver.cs:
38795 - Added ClientToScreen coordinate translation method
38797 2004-10-02 13:06 pbartok
38799 * KeyPressEventArgs.cs:
38800 - Fixed access level for constructor
38802 2004-10-02 13:06 pbartok
38805 - Changed access level for the window_collection hash table
38807 2004-10-02 13:05 pbartok
38810 - Added KeyPreview property
38811 - Added Menu property (still incomplete, pending Jordi's menu work)
38812 - Implemented ProcessCmdKey
38813 - Implemented ProcessDialogKey
38814 - Implemented ProcessKeyPreview
38816 2004-10-02 13:02 pbartok
38819 - Added private method to get the Control object from the window
38821 - Implemented ContextMenu property
38822 - Implemented PointToScreen
38823 - Implemented PreProcessMessage
38824 - Implemented IsInputChar
38825 - Implemented IsInputKey
38826 - Implemented ProcessCmdKey
38827 - Completed ProcessKeyEventArgs
38828 - Fixed message loop to call the proper chain of functions on key
38830 - Implemented ProcessDialogChar
38831 - Implemented ProcessDialogKey
38832 - Implemented ProcessKeyMessage
38833 - Implemented ProcessKeyPreview
38834 - Added RaiseDragEvent stub (MS internal method)
38835 - Added RaiseKeyEvent stub (MS internal method)
38836 - Added RaiseMouseEvent stub (MS Internal method)
38837 - Added RaisePaintEvent stub (MS Internal method)
38838 - Added ResetMouseEventArgs stub (MS Internal method)
38839 - Implemented RtlTranslateAlignment
38840 - Implemented RtlTranslateContent
38841 - Implemented RtlTranslateHorizontal
38842 - Implemented RtlTranslateLeftRight
38843 - Added generation of KeyPress event
38845 2004-10-02 05:57 ravindra
38847 * ListViewItem.cs: Added attributes.
38849 2004-10-02 05:32 ravindra
38851 * ListView.cs: Added attributes.
38853 2004-10-01 11:53 jackson
38855 * Form.cs: Implement the Close method so work on MessageBox can
38858 2004-09-30 14:06 pbartok
38863 2004-09-30 11:34 jackson
38865 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
38867 2004-09-30 07:26 ravindra
38869 * ListViewItemConverter.cs: Converter for ListViewItem.
38871 2004-09-30 07:26 ravindra
38873 * SortOrder.cs: Enum for ListView control.
38875 2004-09-30 07:25 ravindra
38877 * ColumnHeader.cs: Supporting class for ListView control.
38879 2004-09-30 07:24 ravindra
38881 * ListView.cs, ListViewItem.cs: Initial implementation.
38883 2004-09-30 07:20 ravindra
38885 * ItemActivation.cs: Enum for ListView Control.
38887 2004-09-29 20:29 pbartok
38890 - Added lookup of pixel value for background color; tries to get a
38891 color 'close' to the requested color, it avoids having to create a
38892 colormap. Depending on the display this could mean the used color
38893 is slightly off the desired color. Might have to change it to a more
38894 resource intensive colormap approach, but it will work as a
38895 workaround to avoid red screens.
38897 2004-09-29 14:27 jackson
38899 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
38901 2004-09-28 12:44 pbartok
38903 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
38904 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
38905 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
38906 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
38907 TrackBar.cs, VScrollBar.cs:
38908 - Streamlined Theme interfaces:
38909 * Each DrawXXX method for a control now is passed the object for
38910 the control to be drawn in order to allow accessing any state the
38911 theme might require
38913 * ControlPaint methods for the theme now have a CP prefix to avoid
38914 name clashes with the Draw methods for controls
38916 * Every control now retrieves it's DefaultSize from the current
38919 2004-09-28 12:17 jackson
38921 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
38924 2004-09-24 14:57 jackson
38926 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
38927 Gives us a nice little performance boost.
38929 2004-09-24 12:02 jackson
38931 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
38932 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
38933 Control and supporting classes. Initial checkin
38935 2004-09-23 13:08 jackson
38937 * Form.cs: Temp build fixage
38939 2004-09-23 01:39 ravindra
38941 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
38942 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
38943 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
38944 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
38945 EventHandlers needed by ListView Control.
38947 2004-09-22 14:12 pbartok
38949 * ScrollableControl.cs:
38950 - Implemented DockPadding property
38951 - Implemented AutoScroll property
38952 - Implemented AutoScrollMargin property
38953 - Implemented AutoScrollMinSize property
38954 - Implemented AutoScrollPosition property
38955 - Implemented DisplayRectangle property (still incomplete)
38956 - Implemented CreateParams property
38957 - Implemented HScroll property
38958 - Implemented VScroll property
38959 - Implemented OnVisibleChanged property
38961 2004-09-22 14:09 pbartok
38964 - Added Form.ControllCollection class
38965 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
38966 RemoveOwnedForm (still incomplete, missing on-top and common
38967 minimize/maximize behaviour)
38968 - Added StartPosition property (still incomplete, does not use when
38970 - Added ShowDialog() methods (still incomplete, missing forcing the
38973 2004-09-22 14:05 pbartok
38976 - Added message loop for modal dialogs
38978 2004-09-22 14:02 pbartok
38981 - Fixed wrong types for events
38983 2004-09-22 14:00 pbartok
38985 * Shortcut.cs, FormWindowState.cs:
38986 - Fixed wrong values
38988 2004-09-22 12:01 jackson
38990 * Control.cs: Text is never null
38992 2004-09-20 22:14 pbartok
38995 - Fixed accessibility level for Idle handler
38997 2004-09-20 18:54 jackson
38999 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39000 XplatUIX11.cs: New message loop that uses poll so we don't get a
39003 2004-09-17 10:43 pbartok
39006 - Fixed behaviour of arrow buttons. Now properly behaves like
39007 Buttons (and like Microsoft's scrollbar arrow buttons)
39009 2004-09-17 10:14 pbartok
39012 - Added missing release of keyboard/mouse capture
39014 2004-09-17 06:18 jordi
39016 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
39017 Theme.cs: Very early menu support
39019 2004-09-16 17:45 pbartok
39022 - Fixed sending a window to the front
39023 - Added overload for SetWindowPos to avoid casting
39025 2004-09-16 17:44 pbartok
39028 - Added SendToBack and BringToFront methods
39030 2004-09-16 07:00 ravindra
39032 * Copyright: Added Novell URL.
39034 2004-09-16 07:00 ravindra
39036 * ToolBar.cs: Invalidate should be done before redrawing.
39038 2004-09-15 21:19 ravindra
39040 * ColumnHeaderStyle.cs: Enum for ListView Control.
39042 2004-09-15 21:18 ravindra
39044 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
39047 2004-09-13 18:26 jackson
39049 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
39052 2004-09-13 18:13 jackson
39054 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
39055 a second thread and post messages into the main threads message
39056 queue. This makes timing much more consistent. Both win2K and XP
39057 have a minimum timer value of 15 milliseconds, so we now do this
39060 2004-09-13 15:18 pbartok
39062 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39064 - Added Z-Ordering methods
39066 2004-09-13 10:56 pbartok
39069 - Fixed #region names
39070 - Moved properties and methods into their proper #regions
39072 2004-09-13 10:51 pbartok
39075 - Added Accept and CancelButton properties
39076 - Added ProcessDialogKey() method
39078 2004-09-13 08:18 pbartok
39080 * IWindowTarget.cs:
39083 2004-09-10 21:50 pbartok
39086 - Added DoDragDrop() [incomplete]
39087 - Properly implemented 'Visible' handling
39088 - Added SetVisibleCore()
39089 - Implemented FindChildAtPoint()
39090 - Implemented GetContainerControl()
39091 - Implemented Hide()
39093 2004-09-10 19:28 pbartok
39096 - Moved methods into their appropriate #regions
39097 - Reordered methods within regions alphabetically
39099 2004-09-10 18:57 pbartok
39101 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39102 - Added method to retrieve text from window
39104 2004-09-10 18:56 pbartok
39107 - Moved some internal functions into the internal region
39108 - Implemented FontHeight
39109 - Implemented RenderRightToLeft
39110 - Implemented ResizeRedraw
39111 - Implemented ShowFocusCues
39112 - Implemented ShowKeyboardCues
39113 - Implemented FromChildHandle
39114 - Implemented FromHandle
39115 - Implemented IsMnemonic
39116 - Implemented ReflectMessage
39117 - All public and protected Static Methods are now complete
39119 2004-09-10 16:54 pbartok
39122 - Implemented remaining missing public instance properties
39123 - Alphabetized some out of order properties
39125 2004-09-10 05:51 ravindra
39127 * PictureBox.cs: Added a check for null image.
39129 2004-09-10 00:59 jordi
39131 * GroupBox.cs: remove cvs tag
39133 2004-09-09 05:25 ravindra
39135 * ToolBar.cs: Make redraw accessible from ToolBarButton.
39137 2004-09-09 05:23 ravindra
39139 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
39142 2004-09-09 02:28 pbartok
39144 * ThemeWin32Classic.cs:
39145 - Improve disabled string look
39147 2004-09-09 01:15 jordi
39149 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
39152 2004-09-08 23:56 ravindra
39154 * ItemBoundsPortion.cs: It's enum, not a class!
39156 2004-09-08 23:47 ravindra
39158 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
39161 2004-09-08 21:13 ravindra
39163 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
39166 2004-09-08 21:03 ravindra
39168 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
39171 2004-09-08 21:01 ravindra
39173 * ScrollableControl.cs: Removed unreachable code.
39175 2004-09-08 06:45 jordi
39177 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
39179 2004-09-08 01:00 jackson
39181 * XplatUIX11.cs: Only run the timers when updating the message
39182 queue. This effectively gives X messages a higher priority then
39183 timer messages. Timers still need love though
39185 2004-09-07 14:01 jackson
39187 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
39188 this for us and the handle is no longer valid.
39190 2004-09-07 13:59 jackson
39192 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
39193 loop that manages to not crash. TODO: Add poll and cleanup timers
39195 2004-09-07 11:12 jordi
39197 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
39199 2004-09-07 03:40 jordi
39201 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
39202 fixes, methods, multiple links
39204 2004-09-06 06:55 jordi
39206 * Control.cs: Caches ClientRectangle rectangle value
39208 2004-09-05 02:03 jordi
39210 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
39213 2004-09-04 11:10 jordi
39215 * Label.cs: Refresh when font changed
39217 2004-09-02 16:24 pbartok
39220 - Added sanity check to creation of double buffer bitmap
39222 2004-09-02 16:24 pbartok
39225 - Fixed selection of text color
39226 - Fixed handling of resize event; now properly recreates double
39228 - Added missing assignment of TextAlignment
39229 - Added proper default for TextAlignment
39231 2004-09-02 14:26 pbartok
39234 - Added missing RadioButton.RadioButtonAccessibleObject class
39236 2004-09-02 14:26 pbartok
39239 - Added missing Control.ControlAccessibleObject class
39240 - Started to implement Select()ion mechanisms, still very incomplete
39242 2004-09-02 14:25 pbartok
39244 * AccessibleObject.cs:
39245 - Added missing methods
39247 2004-09-02 14:23 pbartok
39249 * AccessibleNavigation.cs, AccessibleSelection.cs:
39252 2004-09-02 10:32 jordi
39254 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
39255 pool for pens, brushes, and hatchbruses
39257 2004-09-01 15:30 jackson
39259 * StatusBar.cs: Fix typo
39261 2004-09-01 14:44 pbartok
39266 2004-09-01 14:39 pbartok
39268 * Button.cs, RadioButton.cs:
39269 - Functional initial check-in
39271 2004-09-01 14:01 pbartok
39274 - Added missing default
39275 - Added missing region mark
39277 2004-09-01 09:10 jordi
39279 * Label.cs: fixes method signatures, new methods, events, fixes
39282 2004-09-01 07:19 jordi
39284 * Control.cs: Init string variables with an empty object
39286 2004-09-01 04:20 jordi
39288 * Control.cs: fires OnFontChanged event
39290 2004-08-31 20:07 pbartok
39293 - Enabled display of strings
39295 2004-08-31 20:05 pbartok
39298 - Added (partial) implementation of DialogResult; rest needs to be
39299 implemented when the modal loop code is done
39301 2004-08-31 19:55 pbartok
39304 - Fixed to match the removal of the needs_redraw concept
39306 2004-08-31 19:55 pbartok
39309 - Removed the rather odd split between 'needs redraw' and redrawing
39310 - Now handles the events that require regeneration (ambient
39311 properties and size)
39313 2004-08-31 19:41 pbartok
39316 - Added firing of BackColorChanged event
39317 - Added TopLevelControl property
39318 - Fixed handling of WM_ERASEBKGRND message
39320 2004-08-31 12:49 pbartok
39326 2004-08-31 12:48 pbartok
39329 - Finished (famous last words)
39331 2004-08-31 04:35 jordi
39333 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
39334 scrolling bugs, adds new methods
39336 2004-08-30 14:42 pbartok
39339 - Implemented CheckBox drawing code
39341 2004-08-30 14:42 pbartok
39344 - Made Redraw() and CheckRedraw() virtual
39345 - Improved mouse up/down/move logic to properly track buttons
39347 2004-08-30 09:44 pbartok
39350 - Updated to fix broken build. Not complete yet.
39352 2004-08-30 09:28 pbartok
39357 2004-08-30 09:17 pbartok
39362 2004-08-27 16:12 ravindra
39364 * ToolBarButton.cs: Added TypeConverter attribute.
39366 2004-08-27 16:07 ravindra
39368 * ImageIndexConverter.cs: Implemented.
39370 2004-08-27 14:17 pbartok
39373 - Removed unneeded stack vars
39374 - First attempt to fix sizing issues when layout is suspended
39376 2004-08-25 15:35 jordi
39378 * ScrollBar.cs: more fixes to scrollbar
39380 2004-08-25 14:04 ravindra
39382 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
39383 Added the missing divider code and grip for ToolBar Control.
39385 2004-08-25 13:20 pbartok
39388 - Control now properly passes the ambient background color to child
39391 2004-08-25 13:20 jordi
39393 * ScrollBar.cs: small bug fix regarding bar position
39395 2004-08-25 12:33 pbartok
39398 - Now only calls SetTimer or KillTimer if the enabled state has
39401 2004-08-25 12:33 pbartok
39404 - Fixed timer handling, now seems to work
39405 - Improved error message for window creation
39407 2004-08-25 12:32 pbartok
39410 - Fixed generation of MouseUp message
39412 2004-08-25 12:29 jordi
39414 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
39415 and fixes for progressbar
39417 2004-08-24 18:43 ravindra
39419 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
39420 in ToolBar control.
39422 2004-08-24 17:15 pbartok
39426 - Added missing events
39429 2004-08-24 17:14 pbartok
39431 * StatusBar.cs, PictureBox.cs:
39432 - Now uses Control's CreateParams
39434 2004-08-24 16:36 pbartok
39437 - Fixed background color handling
39438 - Fixed sending of enter/leave events on a grab
39440 2004-08-24 16:35 pbartok
39443 - Refined definitions for CrossingEvent
39445 2004-08-24 12:37 jordi
39447 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
39448 formmating, methods signature, and adds missing events
39450 2004-08-24 12:24 jordi
39452 * Control.cs: fire OnEnabledChanged event
39454 2004-08-24 11:17 pbartok
39457 - Implemented SetTimer() and KillTimer()
39459 2004-08-24 11:16 pbartok
39462 - Now uses Remove instead of Add to kill the timer
39464 2004-08-24 10:16 jackson
39466 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
39467 picture boxes in the theme now. Draw picture box borders and obey
39470 2004-08-24 05:49 jackson
39472 * Timer.cs: Remove top secret debugging code
39474 2004-08-24 05:34 jackson
39476 * PictureBox.cs: Temp hack to make picture boxes draw their full
39479 2004-08-24 05:29 jackson
39481 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39482 XplatUIX11.cs: Move timers to the driver level. On X they are
39483 queued by the driver and checked on idle.
39485 2004-08-24 01:07 jackson
39487 * XplatUIX11.cs: Use a queue for async messages instead of passing
39488 them as ClientMessages since that was totally broken. Also simply
39489 check for events and return an idle message if none are found. This
39490 gives us an idle handler, and prevents deadlocking when no messages
39493 2004-08-23 18:19 ravindra
39495 * XplatUIWin32.cs: Removed the unwanted destructor.
39497 2004-08-23 17:27 pbartok
39500 - Finishing touches. Works now, just needs some optimizations.
39502 2004-08-23 16:53 jordi
39504 * ScrollBar.cs: small fix
39506 2004-08-23 16:45 pbartok
39509 - Removed debug output
39512 2004-08-23 16:43 jordi
39514 * ScrollBar.cs: [no log message]
39516 2004-08-23 16:10 pbartok
39519 - Fixed handling of WM_CLOSE message
39520 - Removed debug output
39522 2004-08-23 16:09 pbartok
39525 - Added handling of Idle event
39526 - Added handling of form closing
39527 - Fixed reporting of MessageLoop property
39528 - Removed some unneeded code, should provide a bit of a speedup
39530 2004-08-23 15:22 pbartok
39533 - Added InitLayout() method
39534 - Added code to properly perform layout when Anchor or Dock property
39536 - Changed 'interpretation' of ResumeLayout. MS seems to have a
39537 LAMESPEC, tried to do it in a way that makes sense
39539 2004-08-23 14:10 jordi
39541 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
39542 properties and methods
39544 2004-08-23 13:55 pbartok
39547 - Properly fixed Jordi's last fix
39548 - Now uses Cursor's Position property instead of calling XplatUI
39551 2004-08-23 13:44 jordi
39553 * PaintEventHandler.cs: Adding missing attribute
39555 2004-08-23 13:39 pbartok
39558 - Implemented Position property
39560 2004-08-23 13:39 pbartok
39562 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39563 - Added method to move mouse cursor
39565 2004-08-23 13:39 pbartok
39568 - Fixed setting of background color
39569 - Added method to move mouse cursor
39571 2004-08-23 13:16 jordi
39573 * Control.cs: avoids null exception
39575 2004-08-22 17:46 jackson
39577 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
39580 2004-08-22 17:40 jackson
39582 * XplatUIX11.cs: Add some missing locks
39584 2004-08-22 15:10 pbartok
39586 * Control.cs, Form.cs:
39587 - Removed OverlappedWindow style from Control, instead it's default
39589 - Made form windows OverlappedWindow by default
39591 2004-08-22 13:34 jackson
39593 * ScrollBar.cs: Update the position through the Value property so
39594 the OnValueChanged event is raised.
39596 2004-08-22 12:04 pbartok
39599 - Added Cursor.cs and UserControl.cs
39601 2004-08-22 12:03 pbartok
39604 - Started implementation, not usable yet
39606 2004-08-22 12:00 pbartok
39609 - Implemented UserControl (complete)
39611 2004-08-21 19:20 ravindra
39613 * ToolBar.cs: Correcting the formatting mess of VS.NET.
39615 2004-08-21 18:49 ravindra
39617 * ToolBar.cs: Probably this completes the missing attributes in
39620 2004-08-21 18:03 ravindra
39622 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
39623 Fixed toolbar control signatures.
39625 2004-08-21 16:32 pbartok
39630 2004-08-21 16:30 pbartok
39635 2004-08-21 16:19 pbartok
39637 * Control.cs, Label.cs:
39640 2004-08-21 15:57 pbartok
39643 - Added loads of debug output for development
39644 - Fixed typo in method name
39646 2004-08-21 15:52 pbartok
39648 * ToolBarButtonClickEventArgs.cs:
39649 - Added missing base class
39651 2004-08-21 14:53 pbartok
39654 - Updated to match new GrabWindow signature
39656 2004-08-21 14:51 pbartok
39658 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39659 - Added method to get default display size
39661 2004-08-21 14:23 pbartok
39663 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39664 - Added method to query current grab state
39665 - Added argument to allow confining a grab to a window
39667 2004-08-21 14:22 pbartok
39670 - Added [Flags] attribute so that modifiers can be used in bitwise
39673 2004-08-21 14:21 pbartok
39675 * TrackBar.cs, ScrollBar.cs:
39676 - Replaced direct XplatUI calls with their Control counterpart
39678 2004-08-21 13:32 pbartok
39681 - Implemented Created property
39683 2004-08-21 13:28 pbartok
39686 - Implemented ContainsFocus
39688 2004-08-21 13:26 pbartok
39691 - Implemented CausesValidation
39693 2004-08-21 13:21 pbartok
39696 - Implemented CanFocus
39697 - Implemented CanSelect
39698 - Implemented Capture
39700 2004-08-21 12:35 pbartok
39703 - Fixed bug with Async message handling
39704 - Implemented getting the ModifierKeys
39706 2004-08-21 12:32 jackson
39708 * AsyncMethodResult.cs: Make sure we have the mutex before we
39709 release it. Fixes BeginInvoke on windows
39711 2004-08-21 11:31 pbartok
39713 * XplatUIWin32.cs, XplatUIX11.cs:
39714 - Drivers now return proper mouse state
39716 2004-08-21 10:54 jackson
39718 * Control.cs: Implement EndInvoke
39720 2004-08-21 10:48 jackson
39722 * Timer.cs: Remove unneeded finalizer
39724 2004-08-20 19:52 ravindra
39726 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
39727 in mouse event handling in the ToolBar control.
39729 2004-08-20 19:50 ravindra
39731 * ImageList.cs: Changed draw method to use the arguments passed in
39734 2004-08-20 18:58 pbartok
39736 * XplatUIStructs.cs:
39737 - Added private message for async communication
39739 2004-08-20 17:38 ravindra
39741 * Control.cs: Made RightToLeft property virtual and removed a
39744 2004-08-20 14:39 jordi
39746 * ThemeGtk.cs: use style_attach
39748 2004-08-20 14:39 pbartok
39751 - Added jackson's Async code from X11 to Win32
39753 2004-08-20 14:09 pbartok
39756 - Added all new files
39758 2004-08-20 14:09 pbartok
39761 - Added call to set window background color
39763 2004-08-20 14:03 pbartok
39765 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39766 - Added method for setting the window background
39768 2004-08-20 14:02 pbartok
39771 - Added method for setting the background color
39772 - Added handling for erasing the window background
39774 2004-08-20 13:45 jordi
39776 * TrackBar.cs: fixes timer, new properties and methods
39778 2004-08-20 13:34 jackson
39780 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
39783 2004-08-20 13:22 jackson
39785 * Timer.cs: Timer Tick events are now handed through Controls Async
39786 mechanism so the callbacks are executed in the same thread as X
39788 2004-08-20 13:19 jackson
39790 * XplatUIDriver.cs: Expose functionality to send async messages
39793 2004-08-20 13:18 jackson
39795 * Control.cs: Implement Begininvoke
39797 2004-08-20 13:14 jackson
39799 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
39800 messages through the driver
39802 2004-08-20 13:12 jackson
39804 * XplatUIX11.cs: Lock before all X operations. Also added Async
39805 method functionality through XSendEvent
39807 2004-08-20 13:11 jackson
39809 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
39810 This will screw up on 64 bit systems)
39812 2004-08-20 13:10 jackson
39814 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
39815 Async messages through X/Win32
39817 2004-08-19 19:39 pbartok
39820 - Updated code to match new HandleData.DeviceContext type
39822 2004-08-19 19:38 pbartok
39825 - Made DeviceContext a generic object to allow usage from various
39827 - Added support for queueing Windows messages
39829 2004-08-19 19:37 pbartok
39832 - Added generation of MouseEnter, MouseLeave and MouseHover events
39833 - Added cleanup on EndPaint
39835 2004-08-19 19:17 pbartok
39838 - Added handling of WM_MOUSEHOVER
39839 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
39842 2004-08-19 18:55 jordi
39844 * ThemeGtk.cs: fixes button order
39846 2004-08-19 18:12 jordi
39848 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
39850 2004-08-19 17:09 pbartok
39853 - Added Right property
39854 - Added RightToLeft property
39856 2004-08-19 16:27 jordi
39858 * ThemeGtk.cs: experimental GTK theme support
39860 2004-08-19 16:26 jordi
39862 * ITheme.cs, Theme.cs: move themes from an interface to a class
39864 2004-08-19 16:25 jordi
39866 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
39869 2004-08-19 16:04 pbartok
39872 - Added colormap basics
39873 - Added a way to re-initialize with a different display handle
39874 - Fixed setting of the window background color
39875 - Added various X11 imports related to colors and colormaps
39877 2004-08-19 15:51 pbartok
39880 - Removed packing hints (Paolo suggested this a while back)
39881 - fixed colormap type
39882 - Added default Atom types
39883 - Added Screen and color structs and enums
39885 2004-08-19 15:39 pbartok
39888 - Added missing Draw() method
39889 - Added missing RecreateHandle event
39891 2004-08-19 15:30 pbartok
39894 - Added handling of WM_CLOSE
39896 2004-08-18 13:16 jordi
39898 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
39901 2004-08-18 09:56 jordi
39903 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
39905 2004-08-17 15:31 ravindra
39907 * SWF.csproj: Updated project.
39909 2004-08-17 15:25 pbartok
39912 - Drawing improvement; don't call UpdateBounds if we are not visible
39913 (or have been minimized)
39915 2004-08-17 15:24 pbartok
39918 - Finished IsVisible
39919 - Added Win32GetWindowPlacement
39921 2004-08-17 15:08 jackson
39923 * Panel.cs: Initial checkin of the Panel
39925 2004-08-17 14:25 pbartok
39928 - Fixed broken handling of default window sizes
39930 2004-08-17 13:29 jackson
39932 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
39933 has a large startup time.
39935 2004-08-17 10:25 jackson
39937 * HandleData.cs: union areas properly
39939 2004-08-17 10:12 jackson
39941 * HandleData.cs: union areas properly
39943 2004-08-16 20:00 ravindra
39945 * ToolBar.cs, ToolBarButton.cs: Added attributes.
39947 2004-08-16 18:48 ravindra
39949 * ToolBar.cs: Added attributes.
39951 2004-08-16 17:17 ravindra
39953 * SWF.csproj: Updated project.
39955 2004-08-16 17:16 jackson
39957 * XplatUIX11.cs: Check for more expose events before sending a
39958 WM_PAINT so they can all be grouped together. This makes dragging a
39959 window across another window redraw in a sane way.
39961 2004-08-16 15:47 pbartok
39964 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
39965 support OnMouseEnter/Leave()
39966 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
39969 2004-08-16 15:46 pbartok
39971 * XplatUIStructs.cs, XplatUIX11.cs:
39972 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
39973 OnMouseEnter/Leave()
39975 2004-08-16 15:34 jackson
39977 * XplatUIX11.cs: Group multiple expose events in HandleData, make
39978 sure messages get the message field set to WM_NULL if they are not
39981 2004-08-16 15:24 jackson
39983 * HandleData.cs: HandleData is used for storing message information
39986 2004-08-15 17:23 ravindra
39988 * ColorDepth.cs: Added attribute.
39990 2004-08-15 17:23 ravindra
39992 * SWF.csproj: Updated project for ToolBar Control.
39994 2004-08-15 17:20 ravindra
39996 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39997 control and also dos2unix format.
39999 2004-08-15 17:13 ravindra
40001 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
40002 ToolBarButtonClickEventArgs.cs,
40003 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
40004 ToolBarTextAlign.cs: First Implementation of ToolBar control.
40006 2004-08-15 15:31 pbartok
40009 - First (mostly) working version
40011 2004-08-13 16:15 pbartok
40014 - Fixed Anchor default
40016 2004-08-13 15:43 pbartok
40019 - Changed GetCursorPos signature
40021 2004-08-13 15:42 pbartok
40023 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
40024 - Changed signature for GetCursorPos
40026 2004-08-13 15:25 pbartok
40030 - Fixed resizing/exposure handling
40032 2004-08-13 15:22 jordi
40034 * ThemeWin32Classic.cs: removes redundant code and fixes issues
40037 2004-08-13 14:55 jordi
40039 * TrackBar.cs: change from wndproc to events
40041 2004-08-13 13:00 jordi
40043 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
40044 XplatUIX11.cs: implements PointToClient (ScreenToClient)
40046 2004-08-13 12:53 pbartok
40049 - Changed GetWindowPos to also provide client area size
40050 - Fixed broken prototypes for several win32 functions
40052 2004-08-13 12:53 pbartok
40054 * XplatUI.cs, XplatUIDriver.cs:
40055 - Changed GetWindowPos to also provide client area size
40057 2004-08-13 12:52 pbartok
40060 - Added generation of WM_POSCHANGED
40061 - Changed GetWindowPos to also provide client area size
40063 2004-08-13 12:52 pbartok
40066 - Added Dispose() and destructor
40067 - Fixed resizing and bounds calculation
40069 - Added memory savings for invisible windows
40071 2004-08-13 12:46 jordi
40073 * TrackBar.cs: adds timer and grap window
40075 2004-08-13 10:25 jackson
40077 * Timer.cs: SWF Timer
40079 2004-08-12 16:59 pbartok
40081 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40082 - Implemented method to get current mouse position
40084 2004-08-12 14:29 jordi
40086 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
40087 enhancement, fix mouse problems, highli thumb, etc
40089 2004-08-12 13:31 pbartok
40092 - Fixed Anchoring bugs
40094 2004-08-12 13:01 jackson
40096 * StatusBar.cs: Don't forget things
40098 2004-08-12 12:54 jackson
40100 * ThemeWin32Classic.cs: Handle owner draw status bars
40102 2004-08-12 12:54 jackson
40104 * StatusBar.cs: Implement missing properties, events, and methods.
40105 Handle mouse clicking
40107 2004-08-12 10:19 jackson
40109 * StatusBarPanelClickEventArgs.cs,
40110 StatusBarPanelClickEventHandler.cs: Classes for handling status
40111 bar panel click events
40113 2004-08-12 10:10 jackson
40115 * Control.cs: Add missing properties
40117 2004-08-12 09:46 pbartok
40119 * BindingsManagerBase.cs:
40120 - Name changed to BindingManagerBase.cs
40122 2004-08-12 09:25 jordi
40124 * ScrollableControl.cs: calls ctrlbase instead of exeception
40126 2004-08-11 16:28 pbartok
40128 * InputLanguageChangingEventArgs.cs:
40129 - Never check in before compiling. Fixes the last check-in
40131 2004-08-11 16:26 pbartok
40133 * InputLanguageChangingEventArgs.cs:
40134 - More signature fixes
40136 2004-08-11 16:20 pbartok
40138 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
40139 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
40140 ImageListStreamer.cs, InputLanguage.cs,
40141 InputLanguageChangedEventArgs.cs,
40142 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
40143 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
40144 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
40145 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40148 2004-08-11 16:16 pbartok
40152 - Added .Net 1.1 method
40154 2004-08-11 15:25 pbartok
40157 - Fixed BindingManagerBase.cs filename
40159 2004-08-11 15:22 pbartok
40161 * BindingManagerBase.cs:
40162 - Was checked in with wrong filename
40164 2004-08-11 14:50 pbartok
40169 2004-08-11 13:41 jordi
40171 * XplatUIWin32.cs: Fixes ClientRect
40173 2004-08-11 13:19 pbartok
40175 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
40177 - We had SetWindowPos and MoveWindow to set window positions and
40178 size, removed MoveWindow. We have GetWindowPos, so it made sense to
40179 keep SetWindowPos as matching counterpart
40180 - Added some X11 sanity checking
40182 2004-08-11 12:59 pbartok
40185 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
40186 (It seems that SetBounds is just a front for SetBoundsCore and
40187 SetBoundsCore updates the underlying window system and
40188 UpdateBounds is responsible for updating the variables associated
40189 with the Control and sending the events)
40190 - Major cleanup of Size handling; we now have two sizes, client_size
40191 and bounds. Bounds defines the window with decorations, client_size
40194 2004-08-11 12:55 pbartok
40196 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40197 - Added method to calculate difference between decorated window and
40200 2004-08-11 12:54 pbartok
40203 - Forcing redraw on resize
40205 2004-08-11 11:43 pbartok
40208 - Removed disposing of the actual images when the list is disposed
40210 2004-08-11 09:13 pbartok
40213 - Now properly reparents windows
40215 2004-08-11 08:37 pbartok
40220 2004-08-11 07:47 pbartok
40223 - Rewrote the collection stuff. Might not be as fast now, not
40224 keeping the number of children around and accessible directly, but
40225 it's more straightforward
40227 2004-08-11 07:44 pbartok
40229 * AccessibleObject.cs:
40230 - Fixed to match ControlCollection rewrite
40232 2004-08-11 07:43 pbartok
40235 - Added missing creation of the collection list
40237 2004-08-10 20:08 jackson
40239 * StatusBar.cs: Get the paint message from WndProc
40241 2004-08-10 19:31 jackson
40243 * ThemeWin32Classic.cs: Create Brushes as little as possible
40245 2004-08-10 19:20 jackson
40247 * UICues.cs: Add Flags attribute
40249 2004-08-10 19:19 jackson
40251 * StatusBarPanel.cs: Signature cleanup
40253 2004-08-10 19:10 jackson
40255 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
40256 Initial implementation of status bar item drawing
40258 2004-08-10 17:27 jordi
40260 * TrackBar.cs: add missing methods, properties, and restructure to
40263 2004-08-10 16:24 jackson
40265 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
40266 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
40269 2004-08-10 13:21 jordi
40271 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
40272 enhancements and standarize on win colors defaults
40274 2004-08-10 12:52 jackson
40276 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
40277 ThemeWin32Classic.cs: Implement DrawItem functionality
40279 2004-08-10 12:47 jordi
40281 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
40283 2004-08-10 12:32 jordi
40285 * Control.cs: throw ontextchange event
40287 2004-08-10 11:43 pbartok
40290 - Added more to the still unfinished Dock/Anchor layout code
40292 2004-08-10 11:39 pbartok
40294 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
40295 - Added GetWindowPos method
40297 2004-08-10 11:36 pbartok
40300 - Implemented several methods
40302 2004-08-10 09:47 jackson
40304 * TrackBar.cs: Allow control to handle buffering
40306 2004-08-10 09:41 jackson
40308 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
40310 2004-08-10 09:24 jackson
40312 * Label.cs, LinkLabel.cs: Let Control handle buffering.
40314 2004-08-10 09:09 jackson
40316 * StatusBar.cs: Let Control handle all the buffering.
40318 2004-08-10 09:08 jackson
40320 * Control.cs: Control will now handle the buffering code, so each
40321 control does not have to implement this.
40323 2004-08-10 08:34 jackson
40325 * XplatUIDriver.cs: Use default colors from the theme
40327 2004-08-09 17:12 pbartok
40330 - Fixed several bugs Ravindra pointed out
40332 2004-08-09 16:11 pbartok
40335 - Added incomplete dock layout code
40336 - Added support for mouse wheel
40338 2004-08-09 16:09 pbartok
40341 - Added handling for middle and right mousebutton
40342 - Added handling for mouse wheel
40343 - Added handling for key state and mouse state and position
40344 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
40347 2004-08-09 15:40 jackson
40349 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
40350 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
40353 2004-08-09 15:37 jackson
40355 * StatusBar.cs: Initial implementation of StatusBar
40357 2004-08-09 15:36 jackson
40359 * ITheme.cs: Add support for drawing status bar and getting status
40362 2004-08-09 15:35 pbartok
40367 2004-08-09 15:34 jackson
40369 * ThemeWin32Classic.cs: Add support for drawing status bar and get
40370 status bar item sizes
40372 2004-08-09 15:21 jackson
40374 * ThemeWin32Classic.cs: Use known colors for default control
40377 2004-08-09 15:12 jackson
40379 * ThemeWin32Classic.cs: Make the default font static, it is static
40380 in control so this doesn't change functionality and creating fonts
40383 2004-08-09 14:56 pbartok
40386 - Added GrabMode enum
40388 2004-08-09 14:55 pbartok
40390 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40391 - Removed Run method, was only required for initial development
40393 2004-08-09 14:51 pbartok
40395 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40396 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
40399 2004-08-09 13:48 pbartok
40402 - Fixed default sizing for child windows
40404 2004-08-09 12:56 pbartok
40407 - Added generation of WM_DESTROY message
40408 - Added handling of window manager induced shutdown
40410 2004-08-09 11:31 jackson
40412 * ThemeWin32Classic.cs: New names for control properties
40414 2004-08-09 11:25 jackson
40416 * Control.cs: Use new color names
40418 2004-08-09 11:02 jackson
40420 * XplatUI.cs: Get default window properties from the theme
40422 2004-08-09 11:01 jackson
40424 * ITheme.cs: The theme engine now controls default window
40427 2004-08-09 11:00 jackson
40429 * ThemeWin32Classic.cs: Add default window color properties
40431 2004-08-09 10:17 jackson
40433 * ThemeWin32Classic.cs: Use correct default back color
40435 2004-08-09 10:05 jackson
40437 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
40440 2004-08-09 09:56 jackson
40442 * XplatUI.cs: Remove defaults, these are handled by the theme now.
40444 2004-08-09 09:54 jackson
40446 * Control.cs: Get default properties from the theme.
40448 2004-08-09 09:53 jackson
40450 * ITheme.cs: Themes now handle default control properties
40452 2004-08-09 09:53 jackson
40454 * ThemeWin32Classic.cs: Themes now handle default control
40455 properties so coloring will be consistent
40457 2004-08-08 16:54 jordi
40459 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
40461 2004-08-08 15:08 jordi
40463 * XplatUIX11.cs: fixes keyboard crash
40465 2004-08-08 13:47 jordi
40467 * Label.cs: add cvs header info
40469 2004-08-08 12:09 jackson
40471 * ThemeWin32Classic.cs: Add pen_buttonface
40473 2004-08-08 11:52 jordi
40475 * Label.cs, LinkLabel.cs: [no log message]
40477 2004-08-08 11:34 jordi
40479 * ThemeWin32Classic.cs: Use Windows Standard Colours
40481 2004-08-07 17:32 jordi
40483 * TrackBar.cs: throw exceptions of invalid enums values
40485 2004-08-07 17:31 jordi
40487 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
40490 2004-08-07 16:56 jackson
40492 * HorizontalAlignment.cs: Initial checkin
40494 2004-08-07 13:16 jordi
40496 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
40499 2004-08-07 13:05 jordi
40501 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
40502 GetSysColor defines
40504 2004-08-06 18:01 pbartok
40506 * ThemeWin32Classic.cs:
40507 - Fixed some rounding issues with float/int
40509 2004-08-06 18:00 jackson
40511 * DockStyle.cs, AnchorStyles.cs:
40513 Add flags and serializable attributes.
40515 2004-08-06 17:46 pbartok
40518 - Implemented GetParent
40520 2004-08-06 17:18 pbartok
40523 - Fixed some rounding issues with float/int
40525 2004-08-06 17:17 pbartok
40527 * X11Structs.cs, XplatUIX11.cs:
40528 - Fixed Refresh and Invalidate
40530 2004-08-06 15:30 pbartok
40532 * Control.cs, X11Structs.cs, XplatUIX11.cs:
40533 - Fixed recursive loop when resizing
40534 - Improved/fixed redrawing on expose messages
40536 2004-08-06 09:53 jordi
40538 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
40539 keyboard navigation
40541 2004-08-06 08:02 pbartok
40543 * X11Structs.cs, XplatUIX11.cs:
40544 - Fixed reparenting
40545 - Fixed window border creation
40547 2004-08-05 15:38 pbartok
40550 - Attempted fix for reparenting problems
40552 2004-08-04 15:14 pbartok
40555 - Fixed Invalidation bug (calculated wrong client area)
40556 - Added ClientSize setter
40558 2004-08-04 15:13 pbartok
40561 - Added AutoScale properties
40563 2004-08-04 15:13 pbartok
40566 - Added latest files
40568 2004-08-04 14:11 pbartok
40570 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
40572 - Added Invalidate handling
40574 2004-08-03 17:09 jordi
40576 * XplatUIDriver.cs: fixes spelling mistake
40578 2004-07-27 09:53 jordi
40580 * TrackBar.cs: fixes trackbar events, def classname, methods
40583 2004-07-27 09:29 jordi
40585 * ScrollBar.cs: fixes scrollbar events
40587 2004-07-27 04:38 jordi
40589 * Control.cs: changes to be able to run winforms samples
40591 2004-07-26 11:42 jordi
40593 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
40594 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
40596 2004-07-26 05:41 jordi
40598 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
40599 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
40602 2004-07-22 09:22 jordi
40604 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
40605 check link overlapping, implement events, and fixes
40607 2004-07-21 10:28 jordi
40609 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
40611 2004-07-21 10:19 jordi
40613 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
40614 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
40615 LinkLabelLinkClickedEventArgs.cs,
40616 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
40617 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
40620 2004-07-19 13:09 jordi
40622 * Control.cs, Label.cs: label control re-written: added missing
40623 functionlity, events, and properties
40625 2004-07-19 10:49 jordi
40627 * Control.cs: fixes SetBounds logic
40629 2004-07-19 01:29 jordi
40631 * Control.cs: Call RefreshWindow only if the window has created
40633 2004-07-15 14:05 pbartok
40635 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
40636 - Implemented ImageList and ImageList.ImageCollection classes
40637 - Added ColorDepth enumeration
40638 - Updated SWF VS.Net project
40640 2004-07-15 11:06 jordi
40642 * XplatUIStructs.cs: added MsgButons enum
40644 2004-07-15 11:03 jordi
40646 * Control.cs: added basic mouse handeling events
40648 2004-07-15 03:38 jordi
40650 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
40651 Vertical TrackBar control implementation
40653 2004-07-13 09:33 jordi
40655 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
40657 2004-07-13 09:31 jordi
40659 * Control.cs, Form.cs: commit: new properties and fixes form size
40662 2004-07-09 14:13 miguel
40664 * ProgressBar.cs: Spelling
40666 2004-07-09 11:25 pbartok
40669 - Removed usage of Rectangle for drawing. Miguel pointed out it's
40672 2004-07-09 11:17 miguel
40674 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
40676 * ProgressBar.cs: Fixed spelling for `block'
40678 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
40681 Avoid using the += on rect.X, that exposed a bug in the compiler.
40683 2004-07-08 23:21 pbartok
40685 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
40686 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
40687 BaseCollection.cs, Binding.cs, BindingContext.cs,
40688 BindingMemberInfo.cs, BindingsCollection.cs,
40689 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
40690 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
40691 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
40692 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
40693 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
40694 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
40695 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
40696 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
40697 FrameStyle.cs, GiveFeedbackEventArgs.cs,
40698 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
40699 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
40700 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
40701 InputLanguageChangedEventArgs.cs,
40702 InputLanguageChangedEventHandler.cs,
40703 InputLanguageChangingEventArgs.cs,
40704 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
40705 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
40706 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
40707 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
40708 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
40709 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
40710 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
40711 QueryAccessibilityHelpEventArgs.cs,
40712 QueryAccessibilityHelpEventHandler.cs,
40713 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
40714 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
40715 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
40716 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
40717 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
40718 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
40719 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
40720 XplatUIX11.cs, lang.cs: