1 2009-01-03 Ivan N. Zlatev <contact@i-nz.net>
3 * DataGridViewCell.cs: We should return a value even if we are not bound
6 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
8 * CurrencyManager.cs, DataGrid.cs:
9 - Rename CanAddRows to AllowNew. The CurrencyManager has no
11 - Add two more internal properties AllowRemove and AllowEdit.
12 * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows,
13 AllowUserToDeleteRows and cell ReadOnly state to be also checked against the
14 CurrencyManager data source.
16 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
18 * DataGridView.cs: Fix crashes caused by assigning negative values to
19 ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than
20 the column/row heights/widths.
23 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
25 * DataGridView.cs: Non-autogenerated columns that have a data property
26 set that exists in the current datasource should be set to be data-bound.
28 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
30 * DataGridView.cs: Fix column sorting for columns containing null
31 values. A "null" value is not always "null" (e.g could be String.Empty)
32 and thus parsing numeric types throwed an exception for "null" values.
34 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
36 * DataGridView.cs: Detach the editing control when the edit is
39 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
41 * DataGridView.cs: Multiple fixes to handle last column/row removal
42 and cell movement after that instead of throwing exceptions.
44 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
46 * DataGridViewCellCollection.cs: When cells are removed the column
47 indices become invalid if the cell is not the last one and have to
50 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
52 * DataGridView.cs: Return false in CommitEdit if there was an error.
54 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
56 * DataGridView.cs: Remove a leftover Console.WriteLine.
58 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
60 * DataGridViewRow.cs: Access the indexer of the data manager directly
61 instead of the internal list.
63 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
65 * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs:
66 Rewrite the value getting, setting, parsing, formatting logic:
67 - If data-bound value get/set should actually get and set from the
69 - Make proper usage of TypeConverters for value parsing/formatting.
70 - Raise DataError if setting the new value fails.
71 - Get rid off the internal valueType field and get/set the ValueType
75 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
77 * DataGridView.cs: Rewrite the DataBinding layer:
78 - Get rid off all BindingSource/IBindingList/DataSet/DataTable
80 - Get rid off the per DataSource type column autogeneration code.
81 - Use the CurrencyManager for everything that is DataBinding related.
83 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
85 * CurrencyManager.cs: Do not fire duplicate ListChanged events.
87 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
89 * DataGridView.cs, DataGridViewRow.cs: Add a new internal property
90 DataManager to fetch the CurrencyManager for the DataGridView and to
91 spare this logic for the other components to follow.
93 2008-12-31 Mario Carrion <mcarrion@novell.com>
95 * MessageBox.cs: UIA support: new properties: UIAMessage,
96 UIAMessageRectangle and UIAIconRectangle.
98 2008-12-31 Sandy Armstrong <sanfordarmstrong@gmail.com>
100 * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
101 and DirComboBox.DirComboBoxItem.ToString override for UIA support.
103 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
105 * DataGridView.cs: Do not autogenerate duplicate column for a
106 data member that has already problematically been assigned one.
109 2008-12-30 Jonathan Pobst <monkey@jpobst.com>
111 * ProfessionalColorTable.cs: Better detection of user's theme.
114 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
116 * DataGridView.cs: In the case where there are no autogenerated
117 columns and the user adds columns problematically we must generate
118 the rows after the very first column is added.
120 2008-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
122 * DateTimePicker.cs: When increasing/decreasing the value of month
123 with ShowUpDown set to true, moving from december to january, and
124 moving from january to december should adjust the year to the next and
125 the previous year, respectively.
126 Fixes the remaining bits of #459674.
128 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
130 * DataGridView.cs: If a new cell is selected edit mode should be
131 immediately enabled only if EditOnEnter is set. Whether the mouse
132 or not was used to select the cell is irrelevant.
134 2008-12-29 Ivan N. Zlatev <contact@i-nz.net>
136 * DataGridView.cs: Remove a bogus ReBind call, which was causing
139 2008-12-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
141 * DateTimePicker.cs: Handle the "MMMM" month format.
144 2008-12-23 Ivan N. Zlatev <contact@i-nz.net>
147 - Make ReBind private and refactor various calls to call ReBind
148 instead of ClearBinding/DoBinding
149 - Rebind when the column collection changes
150 * DataGridViewColumnCollection.cs:
151 - Leave the rebinding on change to be handled by the DataGridView.
153 2008-12-23 Jonathan Pobst <monkey@jpobst.com>
155 * DataGridView.cs: Add a ReBind convenience method.
156 * DataGridViewColumnCollection.cs: Rebind when a column is added.
159 2008-12-23 Neville Gao <nevillegao@gmail.com>
161 * StatusBar.cs: Modified argument variable.
162 * SplitContainer.cs: Control enabled to support accessibility.
165 2008-12-22 Jonathan Pobst <monkey@jpobst.com>
167 * ToolStripMenuItem.cs: Guard against an NRE.
170 2008-12-22 Mario Carrion <mcarrion@novell.com>
172 * Control.cs: AccessibleXXXX properties don't return
173 AccessibleObject.XXXX, instead a local referece is returned.
175 2008-12-22 Neville Gao <nevillegao@gmail.com>
177 * PrintPreviewControl.cs: Added internal properties to support
181 2008-12-19 Mario Carrion <mcarrion@novell.com>
183 * Control.cs: Reverted r121561.
185 2008-12-19 Andrés G. Aragoneses <aaragoneses@novell.com>
187 * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
188 it has been moved to the bridge.
190 2008-12-18 Brad Taylor <brad@getcoded.net>
192 * DateTimePicker.cs: Add a few UIA specific events, and a couple
193 internal methods useful for UIA.
195 2008-12-18 Mario Carrion <mcarrion@novell.com>
197 * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
200 2008-12-17 Mike Gorse <mgorse@novell.com>
202 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
203 item's Focused property is set.
205 2008-12-17 Sandy Armstrong <sanfordarmstrong@gmail.com>
209 * TreeNodeCollection.cs: Add events for UIA support:
210 UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
211 UIACollectionChanged.
213 2008-12-17 Bill Holmes <billholmes54@gmail.com>
215 * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
216 SubItemStyle member field.
218 Contributed under MIT/X11 license.
220 2008-12-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
222 * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
223 y coord, since it's useless in this case, and we need to rely only on
224 the number of rows and ItemHeight to compute this value.
225 Fixes part of #257471.
227 2008-12-15 Mike Gorse <mgorse@novell.com>
229 * StatusBar.cs: Send OnUIACollectionChanged in Remove().
231 2008-12-15 Mario Carrion <mcarrion@novell.com>
233 * Control.cs: Accessibility properties instantiate AccessibilityObject when
237 2008-12-15 Brad Taylor <brad@getcoded.net>
239 * ToolStripItem.cs: Add a UIA specific event for listening for when a
240 ToolStripItem becomes selected or deselected.
242 2008-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
244 * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
245 .net does. Use the date in the point of the mouse move coords as the
246 new range as well, if the left button of the mouse is being pressed.
249 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
251 * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
252 MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
253 effectively repaint the control.
254 Fixes the remaining bits of #417961.
256 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
258 * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
259 range to contain only dates within the new possible range.
260 Fixes part of #417961.
262 2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
264 * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
265 length of the text, but the end position, so we need to substract 1 to
266 have a valid value. Also, in the same InputText method, don't use
267 SelectionLength as the length of the text, since the selected text
268 could actually be empty, but we need to set the value anyway.
271 2008-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
273 * TextBox.cs: Don't do any auto complete task if the custom source is
274 null or empty. Also avoid duplication of code.
277 2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
279 * DataGridView.cs: Refresh column sizes when new rows are added.
282 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
283 * RichTextBox.cs: When parsing the contents of a rtf file, don't call
284 Split to create a line - we are already doing this, by _adding_ a new
285 one when rtf_cursor_x is 0 (this field gets this value just after we
286 receive the newline param as true). This avoids having a proportional number
287 of empty lines in the end of the rich text box.
290 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
292 * RichTextBox.cs: When saving the contents as a plain text, don't add
293 a new line for every Line structure, since the data in Document
294 already contains the new line characters. This avoids duplicated new
295 lines using the Save methods.
298 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
300 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
301 framework. Fixes bug #457678.
303 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
305 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
306 where datasource is null.
307 [Fixes exception reported in bug 441240]
309 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
311 * DataGridView.cs: EndEdit validation fixes.
313 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
315 * DataGridView.cs: This is the cool patch that adds support for
316 actually updating the data in the databinding backend after editing.
317 With bonus firing and handling the DataError event.
319 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
321 * Line.cs: When calculating the text tags's Shift value, store it as
322 pixels instead of points. This way we can actually handle different
323 fonts in the same RichTextBox, as well as the right size of the caret.
324 Fixes part of #351938.
326 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
328 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
329 casted to CheckState causing InvalidCastExceptions.
331 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
333 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
334 to not depend on the item being clicked.
336 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
338 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
339 longer throws a NotImplementedException.
341 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
343 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
344 IDataGridViewEditingControl for editing.
346 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
348 * DataGridViewComboBoxCell.cs: Implement data binding support.
350 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
352 * DataGridView.cs: Use the CurrencyManager to update the data source
353 binding position instead of casting the data sourcde to BindingSource.
354 This enables position updating for other type of data sources.
356 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
358 * ComboBox.cs: Update the SelectedIndex before updating the Text
359 in OnDisplayMemberChanged.
361 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
363 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
366 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
368 * DataGridView.cs: Sorting fixes:
369 - Be strict when sorting is enabled.
370 - If there is a data source delegate the sorting request.
372 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
374 * Binding.cs: When converting the data also try with the destination
375 type typeconverter. This indirectly adds support for Nullable types
376 in our databinding layer.
378 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
380 * DataGridView.cs: When cell editing is finished focus back the
381 DataGridView. Fixes keyboard navigation post-editing.
383 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
385 * DataGridView.cs: Fix the cell editing by delaying the currentCell
386 setting to after EndEdit is called for the old cell.
388 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
390 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
392 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
394 * XplatUIX11.cs: Send WM_HELP only to the focused window.
396 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
398 * CurrencyManager.cs: Fix exceptions when resetting the data source
399 for the same time (e.g. in ComboBox):
400 - Do not set the list position if we are still transferring data
401 - When resetting the list firstly push the data then update the
403 * Binding.cs: Check BindingManager.Position == -1 instead of
404 BindingManager.Current == null in order to avoid unexpected
407 2008-12-05 Brad Taylor <brad@getcoded.net>
409 * MonthCalendar.cs: Add UIA specific events so that we can know when
410 the selection changes, and when MaxSelectedCount changes.
412 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
414 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
417 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
419 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
420 to the control being drawn for the first time by:
421 - Implement DisplayedRowsCount to not rely on the control being
422 already painted. Also added support for the partial row flag.
423 - Fix scrolling to take into account partial rows and scroll to
427 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
429 * DataGridView.cs: Do not reset the CurrentCell when the handle is
430 created if the user has already set it.
432 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
434 * DataGridView.cs: Fix CurrentCell to actually select the cell.
436 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
438 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
439 text and then let the underneath users of IDataObject interpret and
443 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
445 * DataGridView.cs: Fix my previous commit to actually update what it
448 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
450 * DataGridView.cs: Ensure that when a row is removed the all the
451 current row/column/cell get updated. Fixes multiple exceptions.
453 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
455 * DataGridView.cs: Fix scrolling to the current cell when key navigation
459 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
461 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
462 * DataGridViewCell.cs: Set the cell as selected prior to setting the
464 [Fixes issue 1 in bug #443560]
466 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
468 * DataGridView.cs: Invalidate after the current row/column seletion
472 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
474 * DataGridView.cs: Refresh the data if the data list is reset, etc.
476 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
478 * DataGridView.cs: Handle datasource state changes:
479 - IBindingList - list changes
480 - BindingSource - list changed and datasource changes
482 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
484 * DataGridView.cs: Select the first cell when databound.
485 Visually select when CurrentCell is set.
487 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
489 * DataGridView.cs: Set the current cell before raising CellClick.
491 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
493 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
494 CellLeave events as this is already done in SetCurrentCellAddressCore.
496 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
498 * DataGridView.cs: Set the minimum size for the columns to be the
499 width of their header, so that the columns don't get squashed
502 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
504 * DataGridView.cs: After the data is bound PerformLayout, so that
505 the columns get autosized.
507 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
509 * DataGridView.cs: Move all currentCell setting code into
510 one central place - SetCurrentCellAddressCore. That way the
511 current cell is properly updated when programatically set.
512 Fire RowEnter/Leave events.
514 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
516 * DataGridView.cs: Update the CurrencyManager.Position, so that
517 when a BindingSource is used BindingSource.Current will be correct.
519 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
521 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
522 - No caption text is drawn because Color.Empty is used.
523 - Fix top and height off by 1.
525 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
527 * DataGridViewRow.cs: Implement DataBoundItem.
529 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
531 * BindingSource.cs: Return null for Current if there is no data present.
533 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
535 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
536 menus using the arrow keys. Also when handling the left arrow key, don't
537 assign the current menu to the parent one, if the parent is null.
540 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
542 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
545 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
548 * ScrollableControl.cs: Simplify the code to manually set the size of
549 the thum area, avoiding duplication of code, and also preserving the
550 right value for different code paths - this can happen when size
551 changes are made to the scrollbar after setting LargeChange, Maximum
552 or related properties for the ScrollBar.
554 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
556 * ScrollableControl.cs: When scrolling, don't invalidate the entire
557 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
558 what .Net does: copy the visible area, and only invalidate the part of
559 the area that wasn't visible before scrolling.
562 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
564 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
565 can clear ourselves when it is raised, we don't have a newrowindex
566 if we don't have any columns.
567 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
568 re-index after each delete so the NewRow will have the correct index.
571 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
573 * Form.cs: Don't change min/max size if it is empty.
576 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
579 * ScrollableControl.cs: When the manual thumb size is used, the
580 maximum allowed value should depend on that thumb size, instead of
581 LargeChange (using the maximum - LargeChange + 1 value). But
582 LargeChange should be used normally when incrementing/decrementing.
583 Fixes the remaining part of #441546.
585 2008-11-23 Andreia Gaita <avidigal@novell.com>
587 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
588 until an about:blank has been loaded (according to spec). Fix
589 ScrollbarsEnabled to set when a document is loaded (since we use js
590 for it). Fix url so it reflects the current loading document and not
591 the previous one. Send StatusChanged events.
593 2008-11-23 Andreia Gaita <avidigal@novell.com>
595 * Application.cs: If a message comes in for an embedded control
596 (like webbrowser) when we're capturing the keyboard, release the
597 capture and continue.
600 2008-11-22 Andreia Gaita <avidigal@novell.com>
602 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
604 2008-11-21 Andreia Gaita <avidigal@novell.com>
606 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
608 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
611 * ScrollableControl.cs: Set manually the thumb size for the
612 ScrollableControl scrollbars, so any further changes to the underneath
613 scrollbars respect the original size.
614 Fixes part of #441546.
616 2008-11-21 Geoff Norton <gnorton@novell.com>
618 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
619 PlatformID.MacOSX now exists.
621 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
623 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
624 Having something internal abstract isn't very nice for people who want
625 to inherit from this class.
627 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
629 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
630 invalid value. Just return null for the Image, and use the ImageList's
631 ImageSize for calculations.
633 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
635 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
636 through DroppedDown so the proper events get called and state gets reset.
639 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
641 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
642 the collection is modified.
644 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
646 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
647 aren't always correct, and fixing them for every case is not worth the
648 negligible benefit they provide.
651 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
653 * DataGridView.cs: We should never add actual cells to the RowTemplate.
654 Internally, use RowTemplateFull to give us a new row with cells.
655 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
656 * DataGridViewRowCollection.cs: Use RowTemplateFull.
658 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
660 * XplatUIX11.cs: Forms without borders should be able to change its
661 size - specially they should be able to be maximized, adding the
662 respective MotifFunctions.Resize bit when setting window properties as
663 well as *not* marking the Hwnd as size fixed.
666 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
668 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
672 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
674 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
675 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
676 AutoSizeColumnModeChanged.
679 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
681 * DataGridViewRowCollection.cs: Guard against the user deleting the
682 NewRow. Add an internal delete so we can still delete it.
683 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
686 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
688 * TextControl.cs: Add some order of operation to our math so
689 we don't end up with a negative height for our invalidate rect.
692 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
694 * Control.cs: When our enabled changes, notify our implicit children
695 controls as well as our regular controls.
698 2008-11-08 Andreia Gaita <shana@jitted.com>
700 * HtmlElement.cs: Small code cleanup
702 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
704 * BindingNavigator.cs: MoveFirstItem should be enabled only if
705 position is larger than 0, not only different than 0. Also Position
706 and Count items should be enabled if the BindingSource is non null and
710 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
712 * TabControl.cs: Don't raise SelectedIndexChanged until we have
713 actually modified the tab collection, so TabCount will be correct.
716 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
718 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
719 NonSerialized to fix serialization of ListViewItem.
721 2008-11-04 Mike Gorse <mgorse@novell.com>
723 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
724 focus change, and always call in SetFocusedItem.
725 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
727 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
729 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
730 mode. Based on a patch by John Mortlock.
733 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
735 * ListView.cs: Use the UsingGroups property where needed, instead of
736 duplicating the check in other places.
738 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
740 * ListView.cs: When calculating layout, refresh the count of items
741 belonging to the default item, insteas of doing it only one time. This
742 was already working fine for icon views, not not for details.
745 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
749 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
750 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
754 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
756 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
758 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
760 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
761 #441280, patch by Mike Gorse <mgorse@novell.com>.
763 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
765 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
766 if there is no scrollbar.
769 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
771 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
772 patch from Andy Hume that fixes many issues with ProgressBar.
775 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
777 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
780 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
784 * NumericUpDown.cs: Internal events added to UpDownBase:
785 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
788 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
790 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
792 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
795 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
796 Application.EnableVisualStyles hasn't been called.
797 Fixes part of #437933.
799 2008-10-31 Andreia Gaita <shana@jitted.com>
801 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
802 if the container is not focused already, we need to specifically set
803 focus to the first available control, or to the form itself if there
806 2008-10-31 Andreia Gaita <shana@jitted.com>
808 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
809 WM_ACTIVATE have been processed before returning, so it is guaranteed that
810 once it returns and the form is visible, it is actually on the screen on X11
812 * ContainerControl.cs: Only send focus to the control if the top container
813 is already focused. This is so that, when a form is first shown, all
814 the enter/leave events are done first before any focus stuff comes in.
815 If a control has no top container, there's an extra check on Control.Focus
816 to make sure it gets focused in this particular case.
818 * Control.cs: Force focus if the control is active but did not receive
819 focus after being set as active.
821 * MdiClient.cs: Dispose the form when closing
823 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
824 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
825 if the window is a top Form.
826 Reset all hwnd properties when the window has been destroyed so that
827 we don't land in any codepaths that might try to do something with it.
828 Added a bunch of debugging messages. If TRACE is defined, all X calls
829 are logged through DebugHelper. Set a few missing EntryPoint attributes.
831 2008-10-29 Mario Carrion <mcarrion@novell.com>
833 * ListViewItem.cs: Control enabled to support Accessibility:
834 - Internal events: UIATextChanged, UIASubItemTextChanged.
835 - Internal event UIATextChanged in ListViewSubItem that triggers
836 UIASubItemTextChanged.
837 * ListView.cs: Control enabled to support Accessibility:
838 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
839 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
840 - Internal event UIACollectionChanged in ColumnHeaderCollection.
841 - Internal event UIACollectionChanged in ListViewItemCollection.
842 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
843 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
844 - Internal methods: UIAGetHeaderBounds.
846 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
848 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
849 the event from the respective scrollbars.
852 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
854 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
855 textbox to know whether any navigation key will be handled or not. If
856 not, don't pass the message to the textbox, and use it here instead.
857 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
858 is more precise- than the previous AutoCompleteMatches one.
859 This should the keyboard navigation in ComboBox when using auto
862 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
864 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
867 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
869 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
870 overridden methods will get called.
871 * ToolStripItem.cs: Raise Click before MouseUp.
872 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
873 the item's location into account.
876 2008-10-24 Neville Gao <nevillegao@gmail.com>
878 * NumericUpDown.cs: Control enabled to support accessibility.
881 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
883 * TextBox.cs: Check that we actually have items no navigate, select
884 text when pressing enter, as well as handle direction keys only if
885 mode is different to Suggest or the suggest listbox is visible.
887 2008-10-23 Andreia Gaita <shana@jitted.com>
889 * WebBrowser.cs: Use the new ContentStream property to retrieve
890 a stream encoded from the document content
892 2008-10-23 Andreia Gaita <shana@jitted.com>
896 HtmlWindow.cs: Fix GetHashcode for null objects
898 2008-10-22 Andreia Gaita <shana@jitted.com>
902 HtmlWindow.cs: Fix equality operators (fixes #428173)
904 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
906 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
907 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
910 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
912 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
913 same item with the mouse as was already selected.
916 2008-10-21 Brad Taylor <brad@getcoded.net>
918 * TextControl.cs: Break out code to get the visible range into
919 GetVisibleLineIndexes to be used in UIA code.
923 * TextBoxBase.cs: Add comments indicating that the method or property
924 is used via reflection from UIA code.
926 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
928 * ListViewItem.cs: Match .net serialization.
929 Fixes remaining part of #417520.
931 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
933 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
935 2008-10-20 Mario Carrion <mcarrion@novell.com>
937 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
938 added: UIAToolTipRectangle.
940 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
942 * ListViewItem.cs: When deserializing enumerate over the data, instead
943 of accessing the data directly. This way we handle much better the
944 cases were we lack information.
947 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
949 * ListView.cs: When removing an item from a main ListView.Items
950 collection (and not a ListViewGroupCollection.Items one), remove it
951 also from the group, as .net does. Patch by Mario Carrion (mario at
955 2008-10-19 Andreia Gaita <avidigal@novell.com>
957 * Form.cs: Forms that get closed without a handle being created are
958 disposed in 2.0. Fixes failing FormTest.FormClose and
959 FormTest.FormClose2 on windows.
961 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
963 * ListView.cs: If both scrollbars are visible, the vertical one
964 shouldn't extend too far down.
967 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
969 * DataGridView.cs: Add the ability to resize columns and rows with
970 the mouse. Also support double-clicking to autoresize.
971 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
972 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
973 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
974 isn't shown on autoresize.
977 2008-10-17 Mario Carrion <mcarrion@novell.com>
979 * ComboBox.cs: Remove UIAListbox.
981 2008-10-17 Mario Carrion <mcarrion@novell.com>
983 * ComboBox.cs, ListBox.cs: Using added/removed item in
984 OnUIACollectionChangedEvent instead of index.
986 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
988 * ComboBox.cs: When we are sorting the items, if the item's type
989 doesn't support IComparer, use a default one that compares based
990 off the item's visible text.
993 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
995 * ColumnHeader.cs: Invalidate ListView.header_control when setting
997 * ThemeWin32Classic.cs: When drawing the column header, draw a image
998 for the column if available, and make the required adjustments to the
1002 2008-10-17 Neville Gao <nevillegao@gmail.com>
1004 * StatusBarPanel.cs: Control enabled to support accessibility.
1007 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1009 * DataGridView.cs: When a user begins an edit in the 'new row',
1010 make that a real row, and add a new 'new row'. If the user
1011 cancels the edit, remove the new 'new row' and reset everything.
1012 Also, ensure UserAddedRow and UserRemovedRow events are raised.
1015 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
1017 * TableLayoutSettings.cs: Fix NREs when deserializing and
1018 panel is not yet set.
1021 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1023 * DataGridView.cs: Invalidate after deleting a row.
1025 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1027 * DataGridView.cs: Handle Enter and Escape keys.
1028 - Move call to EndEdit to MoveCurrentCell.
1029 - Remove call to EndEdit from navigation key routines.
1030 - Fire CellLeave and CellEnter.
1032 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1034 * DataGridViewCell.cs: Some fixes to the new cell border
1037 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1039 * ThemeEngine.cs: Enable visualstyles rendering by default
1040 (on platforms that support it).
1042 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
1044 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
1045 MainForm.OnLoad has completed unless DoEvents is forced.
1048 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
1050 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
1052 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
1054 * Control.cs: Make our implementation of DrawToBitmap better
1055 match WmPaint. [Fixes bug #435579]
1057 2008-10-14 Andreia Gaita <avidigal@novell.com>
1059 * WebBrowser.cs: Use DocumentElement as the document's root for the
1060 whole content. Should fix DocumentText and DocumentStream problems.
1062 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
1064 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
1065 these will get called in DGV.OnCollectionChanged. Make sure
1066 OnCollectionChanged always gets called.
1067 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
1068 from every row. Call this in OnCollectionChanged.
1071 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1073 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
1074 textbox if auto complete is used, since we need to navigate over it.
1075 And in this case don't pass this messages to the base impl. Also hide
1076 the auto complete list box when displaying the drop down listbox.
1077 * TextBox.cs: new internal members to expose some of the auto complete
1078 functionality to combobox.
1080 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
1082 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
1083 MainForm.OnLoad has completed.
1086 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1088 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
1089 Append support to this controls. We need it to apply new patches.
1091 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1093 * Control.cs: When updating z order in child controls, send to back
1094 the implicit controls. Also, do it explicitly, instead of making
1095 GetAllControls return the implicit controls in a specific order, and
1096 thus avoid depending on that, which could change in the future.
1099 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1101 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
1102 call to StartDrag, since we must fire DragDrop/DragLeave *before*
1103 that, as .net does - instead of firing DragDrop/DragLeave *after* the
1104 call to Control.DoDragDrop has completed. This is needed since at the
1105 point of returning, we have sent related dnd ClientMessages, but we
1106 need to wait for them to fire the wmf respective ones.
1109 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
1111 * LinkLabel.cs: Recreate link pieces when change Padding.
1113 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
1115 * LinkLabel.cs: Take Padding into account when recreate link pieces.
1118 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
1120 * Control.cs: Implement internal property PaddingClientRectangle, it will be
1121 useful for drawing controls that must take care about Padding property.
1123 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
1125 * BindingSource.cs: Make item_type internal so we can access it in DGV.
1126 * DataGridView.cs: Add support for autogenerating columns from a
1129 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1131 * DataGridView.cs: Comment out an exception that is getting thrown
1132 too often currently.
1134 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1136 * DataGridView.cs: Always rebind to the datasource, as things may
1137 have changed in it that we aren't capturing yet.
1139 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1141 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
1142 drawing mode. If we are top aligned, give ourselves some top padding.
1144 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1146 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
1147 events on the control under the mouse pointer, instead of firing them
1148 on the window generating the dnd operation. To achieve this re-use the
1149 code used to get the window under the pointer when getting MouseMove
1153 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1155 * X11Dnd.cs: Don't check that that the window sending the dnd events
1156 is the owner of the selection. Although Gtk+ sets it that way, it's
1157 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
1158 So, just as Gtk+ does, we set our window sending the dnd events as the
1159 owner of the selection, but don't check it when receiving them. This
1160 should fix interoperability with Qt/Kde.
1163 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1165 * DataGridView.cs: Make sure we take the vertical scrollbar into
1166 account when autosizing columns.
1168 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1170 * DataGridView.cs: Handle sorting datetimes.
1172 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
1174 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
1175 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
1176 compilation warnings.
1178 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1180 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
1181 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
1182 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
1183 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
1184 compilation warnings.
1186 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1188 * DataGridView.cs, DataGridViewCell.cs,
1189 DataGridViewCellValidatingEventArgs.cs,
1190 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
1191 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
1192 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1194 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1196 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
1197 Cleanup compilation warnings.
1199 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1201 * XplatUIWin32.cs: Cleanup compilation warnings.
1203 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1205 * PropertyGrid.cs: Cleanup compilation warnings.
1207 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1209 * DataGridViewRow.cs: Only clear the row background if we
1210 are going to paint a new background.
1212 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1214 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
1215 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
1216 use PaintBorder instead.
1218 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1220 * DataGridView.cs: When CellBorderStyle is set, update the
1221 AdvancedCellBorderStyle to match.
1223 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1225 * DataGridViewCell.cs: Add helper methods to convert Alignment
1226 to TextFormatFlags and align rectangles.
1227 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
1228 * DataGridViewImageCell.cs: Use Alignment when painting the image.
1230 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
1232 * ToolTip.cs: Display tooltips only for controls on the active form.
1235 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1237 * DataGridView.cs: Make OnCellValueNeeded internal.
1238 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
1239 user can supply their own value if they choose.
1241 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1243 * DataGridViewColumnHeaderCell.cs: Create a new style object
1244 so the DefaultCellStyle doesn't get changed.
1246 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1248 * ToolStripItem.cs: Check to make sure the owner is actually
1249 changing in InternalOwner before doing any work. Fixes some
1252 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1254 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
1255 * DataGridView.cs: Use a column header's inherited style instead
1256 of just using the default.
1258 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1260 * SplitContainer.cs: Raise SplitterMoved when the splitter is
1263 2008-10-01 Mario Carrion <mcarrion@novell.com>
1265 * ScrollBar.cs: Internal property added: UIAThumbPosition.
1267 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1269 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
1271 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1273 * ToolStripItem.cs: When the user sets Owner, we need to remove
1274 it from its previous owner and then add it to the new owner's
1275 item collection. Also, create InternalOwner, so we can set the owner
1276 that doesn't do this new stuff.
1277 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
1279 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1281 * ToolStripItem.cs: When our parent changes, recalculate our text
1282 size, since we may be getting our Font from our parent. When our
1283 owner's Font changes, recalculate ourselves as we may be using
1286 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
1288 * MenuAPI.cs: Select the first option of a popup when opening the popup via
1289 return key. [Fixes bug #413792].
1291 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1293 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
1294 ambient properties. (Get their value from their parents if
1295 values haven't been set.)
1297 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1299 * ToolStripSystemRenderer.cs: Call overridden methods' bases
1300 after our logic, so users can do painting by handling the events.
1301 Currently, we draw over any user painting.
1303 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1305 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
1306 after our logic, so users can do painting by handling the events.
1307 Currently, we draw over any user painting.
1309 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
1311 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
1313 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1315 * TreeNode.cs, TreeView.cs: Move logic that determines the node
1316 image to draw to TreeNode. Give Index/Keys put on the node
1317 precedence over the global one for the TreeView.
1319 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1321 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
1323 2008-09-29 Mario Carrion <mcarrion@novell.com>
1325 * ListBox.cs: Index fixed.
1327 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1329 * TabControl.cs: When expanding the tab -because it's selected now-,
1330 using Right alignment, instead of adding some selected delta value to
1331 the X origin, substract it, so it gets a location adjacent to the panel,
1332 instead of be more separated.
1335 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
1337 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
1340 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1342 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
1343 as well as the other static fields, to avoid using their previous
1344 values my mistake when handling the dnd events. This should avoid
1345 handling any status event after the drop has been finalized/cancelled.
1347 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1349 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
1350 operation, instead of waiting until we get any movement - this will
1351 help us to have the data available in case no movement was detected
1352 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
1353 Finally add a windows.forms-only fallback to fire the mentioned events
1354 if no movement at all was detected, just like .net does.
1357 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
1359 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
1360 return early if the text is empty because the icon doesn't get
1361 drawn then. [Fixes bug #428113]
1363 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1365 * FileDialog.cs: Implement basic support for sorting by columns in
1366 Details view. Patch by Eric Petit.
1369 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1371 * ThemeWin32Classis.cs: When drawing gridlines take into account the
1372 case where ListView.ItemSize hasn't been computed, and provide a
1373 fallback as well. This prevents a division by 0.
1375 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1377 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
1378 correctly draw tooltip backgrounds.
1380 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1382 * ImageList.cs: Change CopyTo implementation to ensure clones are
1383 created of our images.
1386 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1388 * Control.cs: When setting fonts, we need to ensure we change our
1389 reference to the new font object, even if it represents the same
1390 font as before. If we don't, the original font can get disposed
1391 and we will still try to use it.
1394 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1396 * FileDialog.cs: Take into account Tile view when selecting the view
1399 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1401 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
1402 the item bounds, since we can't iterate over them in virtual mode.
1403 Also fix wrong calculation of the gridlines when using scrolling.
1406 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1408 * XplatUIX11.cs: When handling EnterNotify events, take into account
1409 both the public and implicit controls when trying to detect the
1410 grab/ungrab process. This should fix ListView selection in Details
1413 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1415 * TreeView.cs: Redraw the whole node area when the selected node changes.
1416 Things like state images were not getting redrawn because the invalid
1417 rectangle was too small.
1420 2008-09-23 Mario Carrion <mcarrion@novell.com>
1422 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
1425 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1427 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
1430 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1432 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
1435 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1437 * StatusBar.cs: Add tooltip support.
1440 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1442 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
1443 alignments of sub items in Details view. Patch by John Mortlock (johnm at
1444 hlaustralia.com.au).
1447 2008-09-23 Neville Gao <nevillegao@gmail.com>
1449 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
1452 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
1454 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
1457 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1459 * ListView.cs: Don't do anything when EnsureVisible is called inside a
1460 BeginUpdate/EndUpdate block.
1463 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1465 * ListViewItem.cs: The semantics for the public .ctor of
1466 ListViewSubItemCollection need us to already have a Text value for the
1467 item, which in our implementation have as available *after* adding the
1468 first sub item. So create an internal .ctor that satisfies our needs
1469 and let the public .ctor have the same semantics as .net.
1472 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1474 * ListControl.cs: Changes in Formatting related values should call
1475 RefreshItems, as .net does.
1477 * ListBox.cs: In the respective overrides of RefreshItems calculate
1478 layout as well as refreshing - again, this is what .net does.
1481 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1483 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
1484 since we are already doing that when we change the value of the
1485 scrollbar or force the call to ScrollWindow in the same method. This
1486 way we don't cause a Invalidate call for all the listbox bounds for
1487 methods calling UpdateTopItem with an already updated top item. This
1488 was happening specially calling EnsureVisible with already visible
1491 2008-09-18 Mike Gorse <mgorse@novell.com>
1493 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
1494 XplatUIStructs.cs: Added KeyFilter
1497 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1499 * RelatedPropertyManager.cs: The properties returned by
1500 GetItemProperties should be that ones of the *actual* object returned
1501 by the property, not the property type - this is very special when the
1502 property exposes a type, but the returned object actually is a child
1503 class and implements more functionality and properties.
1505 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1507 * Binding.cs: Don't look for the property in the data source if the
1508 passed string is empty.
1510 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1512 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
1513 fix unused variable warnings.
1515 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1517 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
1520 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1523 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
1524 leads to the window manager overriding our border style and zorder.
1525 - Allow the activation of non-modal forms, which are children of a
1529 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1531 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
1532 ask the window manager to do the work instead of changing the property
1536 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1538 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
1539 AddNew to fix some navigation for empty datasets. [Fixes #323053]
1541 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1543 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
1544 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
1545 border and fixes some drawing issues when resize form.
1547 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1549 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
1551 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
1554 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1556 * TextBoxBase.cs: For standard textbox the scrollbars are always
1557 visible if Multiline is true.
1560 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1562 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
1565 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1567 [Fixes most od DBNull and HeadersVisible problems]
1570 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
1571 returns the value that we need.
1572 - Fixed FromPixelToColumn method that return zero for first column and for
1573 row header cell, now it returns -1 for row header cell.
1574 - Fixed HitTest to check row header cell in column header area, it now
1575 returns HitTestType.None. [Fixes #322864]
1576 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
1577 checks for RowHeadersVisible and other things.
1578 - If an exception occurs when setting CurrentCell and user type 'yes' in
1579 message dialog, invalidade current and new cell and set setting_current_cell
1580 to false to prevent future errors. [Partially fixes #323050]
1582 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
1583 value (SetColumnValueAtRow), it must be done by grid to properly show
1584 messages. [Fixes #323050]
1586 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
1587 better draw column and row header. Also dont draw anything when column
1588 headers is not visible.
1590 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1592 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
1595 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1597 * TreeView.cs: Don't start editing a node on right click, only
1600 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1602 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
1603 disabled over a year ago.
1604 * Form.cs: Wrap calling Load in a try/catch because it can happen
1605 before the catch-all one in NativeWindow.
1608 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1610 * ToolStripDropDownMenu.cs: Calculate the connected area better
1611 to take into account when the drop down is not directly under the
1613 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
1615 2008-09-16 Mario Carrion <mcarrion@novell.com>
1617 * ScrollBar.cs: New event added: UIAValueChanged, generated when
1618 LargeChange, SmallChange, Maximum or Minimum values are changed.
1621 2008-09-16 Mario Carrion <mcarrion@novell.com>
1623 * ErrorProvider.cs: Component enabled to support accessibility.
1624 * Application.cs: Updated to Initialize UIA in ErrorProvider.
1627 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1629 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
1630 so we don't highlight on first focus.
1633 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1635 * TextControl.cs: Correctly calculate the height of the area we
1636 need to invalidate when we have started scrolling and viewport_y
1637 is used. [Fixes bug #387608]
1639 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1641 * TextControl.cs: When getting the SelectedText, don't add in
1642 NewLine characters, as they are already contained in the lines.
1645 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1647 * TextBoxBase.cs: Replace the buggy Lines setter with one that
1648 simply concats the lines and send it to the Text setter.
1649 [Fixes issue #2 and #3 of 388115]
1651 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1653 * Binding.cs: The default value of DataSourceNullValue should be
1654 Convert.DBNull actually. Also, the NullValue should only be used *if*
1655 itself is not null, and use the null/Convert.DBNull value instead.
1657 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1659 * TextControl.cs: Add a method to convert a string newline to the
1661 * TextBoxBase.cs: When the user hits enter, insert a native newline.
1662 [Fixes part 1 of bug #388115]
1664 2008-09-15 Mario Carrion <mcarrion@novell.com>
1666 * ToolTip.cs: UnPopup event set to internal to match public API.
1668 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1670 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
1671 have to remove the Ctrl in order for the focus moving code to kick in.
1674 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1676 * CheckedListBox.cs: Return the real item index from Add. It may not be
1677 the last item if the list is sorted. The user can change the NewValue in
1678 the ItemCheck event, we need to use that value if so.
1679 * ListBox.cs: Return the real item index from a sorted Add.
1682 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
1684 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
1685 happen that the icons from the theme is missing or the particular size
1689 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1691 * Binding.cs: When assigning null or DBNull depending on value/ref type,
1692 use IsValueType instead to get the precise desired value.
1695 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1697 * TreeNodeCollection.cs: When adding a new node to an opened node,
1698 we have to invalidate everything below the parent node because
1699 every node scoots down and we have to repaint them.
1702 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1704 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
1705 property into account when drawing.
1708 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1710 * ListBox.cs: When calling Items.Clear(), call
1711 SelectedIndexCollection.ClearCore instead of normal Clear method, to
1712 not fire any Selected*Changed event - this is done to match .net and
1713 don't have invalid values when changing the DataSourceProperty.
1716 2008-09-12 Mario Carrion <mcarrion@novell.com>
1718 * HelpProvider.cs: Control enabled to support accessibility.
1719 * Application.cs: Updated to Initialize UIA in HelpProvider.
1722 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1724 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
1725 make the dialog TopMost as well.
1728 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1730 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
1731 clipboard data better.
1734 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1736 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
1737 TextChanged and SelectionChanged events fire in the same order as .Net.
1740 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1742 * DataGridView.cs: When sorting a column, if it only contains numbers,
1743 do a numeric sort instead of a string sort.
1746 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1748 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
1749 against NRE's when the settings have a null panel.
1750 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
1754 2008-09-11 Mario Carrion <mcarrion@novell.com>
1756 * ToolTip.cs: Control enabled to support accessibility.
1757 * Application.cs: Updated to Initialize UIA in ToolTip.
1760 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1762 * Control.cs: Make the custom Enumerator internal to fix build.
1764 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1766 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
1767 already in edit mode, begin edit mode. Generally edit mode isn't
1768 started until the second click, but CheckBoxes are special.
1770 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1772 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
1773 since that can be set to anything. Always add them to the Control's
1774 parent. [Fixes bug #416058]
1776 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1778 * ListView.cs: Use a custom enumerator for ListViewItemCollection
1779 so items can be deleted in a foreach.
1782 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1784 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
1785 Store the user set explicit height so that the row can be AutoSized
1786 and then when AutoSize is turned off, it can get its original size back.
1787 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
1788 duplicating the logic. When setting AutoSizeRowsMode to None, reset
1789 rows' heights back to their explicit values.
1792 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1794 * DateTimePicker.cs: When getting focus, select the checkbox if we are
1795 already showing it. Also, don't change its value when pressing space
1796 if the checkbox is not visible (ShowCheckBox as false). Finally, the
1797 checkbox should remain selected as long as Checked is false, and the
1798 other parts are disabled.
1801 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1803 * MessageBox.cs: Handle shortcut keys to dialog buttons.
1806 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1808 * Binding.cs: When the value retrieved from the control property is
1809 null, don't return Convert.DBNull for Nullable instances, since they
1810 can *actually* get a null value.
1813 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1815 * Control.cs: Add an internal field to force doublebuffering regardless
1816 of what the public mechanisms are set to. This is because MS's native
1817 controls are doublebuffered even though their .Net bits are set to false.
1818 * ProgressBar.cs: Set force_double_buffer to true.
1821 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1823 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
1825 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
1826 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
1827 without EditingControls, paint background selection for types without
1828 EditingControls, reset the EditingCellValueChanged flag when the
1829 cell's value is committed.
1830 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
1831 have EditingControls, remove a double call to a cell's OnContentClickInternal,
1832 don't do cell changing logic in OnMouseDown if the cell didn't change.
1835 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1837 * DateTimePicker.cs: Fix the edition of am/pm specifier.
1839 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
1841 * TextControl.cs: Add "&" to the list of valid characters in a URL.
1843 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1845 * DateTimePicker.cs: Before incrementing or decrementing any part in
1846 the textbox, end any current edit. Also when ending the current edit
1847 use the editing_part_index field instead of the current selected
1848 value, since they can be out of synch, and we really need to work on
1849 the *real* current edit part. Finally when PartData.Selected changes,
1850 always try to end any ongoing edit.
1851 This should fix some small errors handling mouse navigation and
1852 increase/decrease operations.
1854 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1856 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
1857 respectively) should handled different, since the 12 hours format
1858 needs the value typed by the user to be adjusted depending on the
1859 a.m/p.m value, so it is preserved, and only changed when the value
1860 reaches the 12 value (when it changes from a.m to p.m).
1861 Fixes part of #416555.
1863 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1865 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
1866 * ToolStripDropDownItem.cs: Don't fire events and such again if
1867 ShowDropDown is called on an already dropped down item.
1868 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
1869 subitems, the user may add some in the DropDownOpening event.
1872 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1874 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
1877 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1879 * MdiClient.cs: When looking for menustrips on a child form to merge,
1880 look inside ToolStripContainers.
1883 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1885 * ErrorProvider.cs: Unbreak my previous commit.
1887 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1889 * ErrorProvider.cs: Icon should always be 16x16.
1892 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1894 * GridEntry.cs: Invalidate the child items cache when the property
1897 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1899 * GridEntry.cs, PropertyGridView.cs:
1900 - Update the ReadOnly detection and rendering to finally hopefully
1901 match the one of MSFT.
1902 - Niceify and move the debug CWLS.
1905 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1907 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
1908 since we are already calling Invalidate for the entire control when
1909 needed - and call Redraw() when size changes, since we need to paint
1910 there by ourselved and not anymore from the mentioned method.
1911 This should improve the layout process. Also clean some not needed calls
1914 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1916 * MenuAPI.cs: Add a null check to the Alt-F4 code.
1919 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1921 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
1924 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
1926 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
1927 PropertyGridView.sc: Implement lazy/delayed propertygrid population
1928 on item expansion. Improves performance and fixes bug #417955.
1931 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
1933 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
1936 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1938 * TextControl.cs: Add "_" to the list of valid characters in a URL.
1941 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1943 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
1947 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1949 * FontDialog.cs: When storing our font size from the starting font,
1950 use SizeInPoints instead of Size in case Size is a different unit
1954 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1956 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
1957 don't use it for anything else, check if a directory is highlighted.
1958 If it is, navigate into it.
1961 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1963 * Binding.cs: When acquiring a BindingManagerBase for the first time,
1964 check that the specified property actually exists in the data source,
1965 and throw an ArgumentException if that's not the case - this is only
1966 done for this scenario, since for later cases (such Position changes)
1967 we throw different exceptions (match .Net).
1969 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
1971 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
1972 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
1973 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
1974 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
1975 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
1976 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
1980 2008-09-03 Neville Gao <nevillegao@gmail.com>
1982 * StatusBar.cs: Control enabled to support accessibility.
1985 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1987 * Binding.cs: When connecting the event handler for the "Changed"
1988 event for the property, only do it for PropertyManager, and not for
1989 CurrencyManager - this is exactly what does .Net, totally ignoring any
1990 change in the property of the elements of a list.
1993 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
1995 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
1996 to Windows when creating a window, as we fake MDI stuffs.
1999 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
2001 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
2002 change takes effect.
2004 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
2006 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
2009 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
2011 * DataGridView.cs: Raise CellContentClick event.
2012 [Fixes part of bug #420351]
2014 2008-08-27 Mario Carrion <mcarrion@novell.com>
2016 * ScrollBar.cs: Control enabled to support accessibility.
2019 2008-08-27 Mario Carrion <mcarrion@novell.com>
2021 * ComboBox.cs: Control enabled to support accessibility.
2024 2008-08-27 Mario Carrion <mcarrion@novell.com>
2026 * ListBox.cs: Control enabled to support accessibility.
2029 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
2031 * ComboBox.cs: Don't suppress the TextChanged event when changing
2033 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
2037 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
2039 * ErrorProvider.cs: Fix a regression NRE when setting properties
2040 for a control before it has a parent.
2043 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2045 * Binding.cs: Use the BindingManagerBase.Current value to obtain
2046 connect the property "Changed" event, instead of using the data
2047 sources - this is useful when the property specifies actually a
2048 multiple objects path.
2049 Fixes part of #417973.
2051 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2053 * RelatedPropertyManager.cs: PropertyManager instances associated to a
2054 nested properties should return not the properties of the data source
2055 itself, but the properties of the type of a specific property in the
2056 data source - match .net.
2058 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
2060 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
2061 AddRange overloads into AddItems method, and added missing NULL check.
2062 Added extra argument check to RemoveAt for compatibility with MS.
2063 Modified IList implementation of Add, Contains, IndexOf and Remove to
2064 throw an ArgumentException if item is not an int. Modified IList.Insert
2065 to throw a NotSupportException instead of an Exception. Implemented
2067 (ObjectCollection): To avoid duplication, use AddItems method from
2068 AddRange overloads. On 1.0 profile, first perform NULL check on items
2071 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
2073 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
2076 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
2078 * X11Keyboard.cs : comment out some Console.WriteLine().
2080 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
2082 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
2083 even if premises are not filled. Also XLookupString() was not
2084 receiving correct input, which blocked precise input handling
2087 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2089 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
2090 type of delegate, instead of EventHandler - this was causing a type
2091 cast exception in all apps handling this event.
2094 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
2096 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
2097 ShowDropDown to give the user a chance to dynamically add
2098 drop down items. [Step 1 of fixing bug #417877]
2100 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2102 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
2103 had any mouse motion since the call to StartDrag, to match the dnd
2105 Fixes part of #381876.
2107 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2109 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
2110 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
2111 Also, if we are actually moving into a different window after
2112 grabbing, generate a LeaveNotify event for the previous window, since
2113 we need to fire the leave events until the grab ends, not when
2114 actually moving outside of the control.
2116 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2118 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
2119 events only for client windows was wrong - we need to compare the
2120 client window against the window receiving the EnterNotify event, not
2121 against zero (since client window is never Zero, btw).
2122 This prevents having unnecessary handling of EnterNotify events for
2123 non-client windows when a gran begins.
2125 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2127 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
2128 MouseMove/MotionNotify events at all (which should only happen after
2129 MouseUp/ButtonRelease, as .Net does).
2130 This avoids firing an extra and unnecessary MouseMove event just after
2131 every MouseDown event.
2133 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2135 * LinkLabel.cs: Always clear any previous links when LinkArea
2136 is set. [Fixes bug #410709]
2138 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2140 * ToolStripProfessionalRenderer.cs: Revert last change.
2141 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
2142 for ToolStripDropDownBackground.
2144 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2146 * ToolStripProfessionalRenderer.cs: Use Window color for the
2147 background of dropdowns to match .Net when the user is not
2148 using the default white. [Fixes bug #418108]
2150 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
2152 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
2153 it caused timer registration twice. Fixed bug #418107.
2155 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2157 [Correction: This is the actual change to X11Dnd issue, not the
2158 previous one, which was actually a different issue.]
2160 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
2161 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2162 when the pointer is actually in motion, but only when the pointer
2163 seems to stop (as .net does).
2164 Fixes part of #381876.
2167 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2169 * ListBox.cs: Fix CopyTo implementation.
2172 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2174 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2175 drawing a ComboBox's background. Fixes bad disabled rendering when
2176 the control is not at 0,0.
2179 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
2181 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
2182 ComponentModel layer, which will properly prioritize the attributes.
2183 Avoids wrong prioritization of duplicate attributes when retrieving
2184 the converter and editor.
2187 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2189 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2190 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2191 when the pointer is actually in motion, but only when the pointer
2192 seems to stop (as .net does).
2193 Fixes part of #381876.
2195 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
2197 * GridEntry.cs: Perform stricter check for the ParentEntry's
2198 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
2202 2008-08-14 Geoff Norton <gnorton@novell.com>
2204 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
2205 Fixes #396983. Properly fix ActiveWindow trackin and do not
2206 prematurely show POPUP windows.
2208 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2210 * XplatUIX11.cs: Handle the obscured regions while scrolling using
2211 GraphicsExpose event, processing it just after we copy the scrolled
2212 area. This ensures that the next calls to ScrollWindow will copy
2213 regions already updated, and the scrolling will be smooth. Also remove
2214 the code that was trying to detect the obscured regions, since we are
2215 not using it anymore (too slow).
2217 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2219 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
2220 MultiExtended mode, by separating some logic between the ctrl/shift
2221 handling. Also ignore any MouseMove events generated together with
2222 MouseDown events - we are only interested in the real motion event.
2223 Fixes part of #414963.
2225 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
2227 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
2228 is selected. [Fixes bug #414143]
2230 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2232 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
2233 and not the parent one (the propertyowner). Fixes the behavior of
2234 GetConverter/GetEditor.
2237 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2239 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
2240 [Fixes part of bug #415452]
2242 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
2244 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
2245 GridEntry, not the current.
2248 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
2250 * TextBoxBase.cs: De-internalize max_length field.
2251 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
2252 share the same logic.
2255 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2257 * ListBox.cs: Selection changes made in the MouseDown handler should
2258 use the *Core versions of selection in SelectedIndices collection,
2259 since the SelectedIndexChanged/SelectedValueChanged events are fired
2260 until we get a MouseUp event, and thus we need to separate the logic
2261 from the events, as done in the keyboard navigation. Also, fire those
2262 selection events from keyboard navigation in SelectionMode.None, even
2263 if we don't have a selection, as .Net does.
2265 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
2267 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
2268 last change introduced when an item is clicked but isn't on a toolstrip.
2270 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2272 * ListBindingHelper.cs: When looking for an object's properties, check
2273 if it implements ICustomTypeDescriptor, in which case we should
2274 resolve the propertu based on its GetProperties method, not in its
2275 actual properties. This is what .Net seems to do.
2276 Fixes a UsingWebBrowser problem during initialization.
2278 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2280 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
2281 sitting on a MenuStrip.
2283 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2285 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
2286 no children with the keyboard, we need to release the keyboard capture.
2289 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2291 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
2292 no children with the keyboard, we need to release the keyboard capture.
2295 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2297 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
2298 the GTK+-based implementation of VisualStyles.
2299 * ThemeWin32Classic.cs: Exposed various layout values for use in the
2300 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
2301 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
2302 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
2303 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
2304 TrackBarHorizontalTrackHeight.
2306 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2308 * TabControl.cs: Added hot style handling for the scroll buttons.
2309 right_slider_state, left_slider_state are now of type PushButtonState to
2310 allow for a hot state. Added tracking of the mouse button being held down
2311 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
2312 LeftScrollButtonArea.
2313 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
2314 TabControlGetRightScrollRect.
2316 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2318 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
2321 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2323 * Form.cs: Ensure that we reset the shown_raised flag after
2324 the form is closed, so that we raise the show events the next
2325 time the form is shown.
2328 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2330 * Form.cs: Ensure closing events are raised only once.
2333 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2335 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
2336 so that we can successfully generate the LParam in-place instead of
2337 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
2338 navigation for menus.
2340 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2342 * MenuAPI.cs: When montion don't set the keyboard navigation state to
2343 'navigating'. Fixes bug #411356.
2345 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2347 [Fixed remaining issues of #406773 (#1)]
2348 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
2350 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
2351 MainMenu (already done) and ContextMenu creation.
2353 * ContextMenu.cs: Create tracker on construction.
2355 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2357 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
2358 possible to instantiate MenuTracker without GrabControl.
2360 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2362 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
2364 * MainMenu.cs: Set GrabControl on SetForm using current form.
2366 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2368 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2370 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2372 * MenuAPI.cs: Check if menu is activated before deactivate it in
2375 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2377 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
2379 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
2380 - One style instance can only participate in a single style collection.
2381 - Styles can request their owner to layout whenever their properties
2383 [Fixes bugs #412583 and #412582]
2385 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
2387 * X11Keyboard.cs: Implement the generation of the LParam for
2388 all keyboard messages.
2391 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
2393 * ListBox.cs: Don't let the user set TopIndex so high that it
2394 scrolls up far enough to show empty items.
2397 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2399 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
2400 (I'm an idiot and forgot to commit the actual changes, as well as
2401 specify the right file, which is this one, not ListView.cs).
2403 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2405 * ListView.cs: Don't draw ListViewSubItem instances from
2406 DrawListViewItem - we need to reuse the main item's drawing for the
2407 first sub item in case owner draw is true, but wants the system to
2408 do the default draw for the first sub item, without incurring in a
2412 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
2414 * ToolStripButton.cs: Update Checked for CheckOnClick before
2415 raising the Click event. [Fixes bug #412505]
2417 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
2419 * Form.cs: Remove some seems leftover code for non-TopLevel's
2420 CreateParams, which is breaking ClientSize sizing, because it
2421 removes the border window styles.
2423 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
2425 * PropertyGrid.cs: Invalidate the View when the PropertyTab
2428 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
2430 * WebBrowser.cs: Removed debug output.
2432 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
2434 * FileDialog.cs: Apply patch from Ernesto to clean up some
2437 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2439 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
2440 that the change has an immediate effect.
2442 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2444 * ScrollableControl.cs: Update PerformLayout calls to include
2445 provide the name of the property that changed.
2447 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2449 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
2450 location. Fixes drawing of border and cell borders if scrollable.
2452 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2454 * ScrollableControl.cs: Perform layouting after the AutoScroll
2455 properties have changed, so that the changes have immediate
2459 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2461 * XplatUIX11.cs: Non Client area is actually Client such in the
2462 case of NotifyIcon, so double check WholeWindow == ClientWindow
2463 when adding an expose.
2464 [Fixes bugs #324237 and #357022]
2466 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2468 * TableLayoutPanel.cs: Invalidate after layouting, so that we
2469 repaint the cell borders.
2471 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2473 * PropertyGridTextBox.cs: Stop filtering messages prior to our
2474 disposal to avoid unexpected ObjectDisposedExceptions.
2476 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
2478 * TableLayoutPanel.cs: Layout on Row/Column count change.
2480 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
2482 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
2484 * PictureBox.cs: When ImageLocation is set to null or an empty string,
2485 only set image to null if it was previously initialized from an url
2486 (or using ImageLocation). In ImageLocation, load specified image
2487 asynchronously if WaitOnLoad is false. Added support for local file
2488 paths to LoadAsync, and added missing argument check.
2490 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2492 * DateTimePicker.cs:
2493 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
2494 order to set the value as required (which means: when selection
2495 changes for a part being edited, and not before that if not needed).
2496 Also use an enum to describe which part are we using, and use the
2497 selection as a property in PartData, in order to notify the
2498 DateTimePicker owner that we need to end the current edit.
2501 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
2503 * PropertyGridTextBox.cs: Validation should be performed only if we
2504 are focused. We can lose focus for example if the Return key is used
2505 to set the entry and there is an error. When the message box is
2506 displayed we would have validate on click in the message box.
2508 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
2510 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
2511 in order to determine that we are expandable is wrong. There was a bug,
2512 now fixed, in TypeDescriptor that was causing the wrong converter to be
2513 returned which caused GetPropertiesSupported == false in most cases.
2516 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
2518 * ImageList.cs: Fix ICollection.CopyTo implementation for
2519 ImageListCollection. [Fixes bug #409169]
2521 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2523 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
2524 WorkingArea so that menus can appear on the second monitor
2525 when one has dual monitors.
2527 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2529 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
2532 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2534 * TextBox.cs: Implement navigation support for auto complete in
2535 TextBox, as well as refactor the code to show the auto complete window
2536 when receiving a WM_CHAR message, instead of TextChanged, since
2537 autocomplete itself should be able to set the Text a lot of times and
2538 finally only typing should show it, not changes from code.
2540 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2542 * TabControl.cs: When expanding the selected tab, don't adjust the
2543 width if alignment is Right, since it has a different offset than 0,
2544 as opposed to the other alignments.
2545 Fixes the selected tab not being painted at all with alignment = Right
2546 and using FillToRight size mode.
2548 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2550 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
2552 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2554 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
2555 values from the textbox to the boundary values. [Fixes bug #409026]
2557 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2559 * TreeNodeCollection.cs: We were copying one too many elements when
2560 doing our array copy. Fixes a crash when RemoveAt is called.
2563 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2565 * TabControl.cs: When doing the layout and need to call FillRow -using
2566 FillToRight size mode-, use the overload receiving a bool param
2567 indicating whether we need to do a vertical or horizontal calculation.
2568 Fixes part of #399583.
2570 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2572 * TextBox.cs: When painting, use the value returned by
2573 GetLastVisibleItem instead of using the cached last_item field, since
2574 there could be a desynchronization between the layout and the
2575 painting. Fixes a AOOR exception in auto complete mode.
2577 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
2579 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
2580 NonClientAreaEnabled until our VisualStyles is modified to allow it.
2582 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
2584 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
2586 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2588 * TextBox.cs: When focus is lost, if the auto complete listbox is
2591 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2593 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
2594 tracking size for tool windows.
2595 * Theme.cs, ThemeWin32Classic.cs : Extracted
2596 ManagedWindowSpacingAfterLastTitleButton.
2598 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2600 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
2601 They are bit-rotted and have always been listed as "unsupported".
2603 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2605 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2607 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2609 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2611 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2613 * ListBox.cs: Make sure last_item_visible gets reset before we try
2614 to do a layout due to scrollbars appearing or disappearing.
2617 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2619 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
2620 for different window themes. [Fixes bug #339140]
2622 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2624 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
2625 in ManagedWindowBorderWidth.
2627 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2629 * InternalWindowManager.cs: Change MouseMove to take a point, so
2630 we can use the same point later on.
2631 * MdiWindowManager.cs: Store point sent to MouseMove so we can
2632 later reset to it. On Windows, the Cursor.Position had already
2633 changed by the time we were resetting to it.
2636 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2638 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
2640 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
2644 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2646 * MdiWindowManager.cs: Double-clicking on the title bar should not
2647 maximize a MDI form if MaximizeBox = false.
2649 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2651 * ThemeVisualStyles.cs: Fixed a warning.
2653 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2655 * ThemeVisualStyles.cs: Fixed warnings and formatted.
2657 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2659 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
2660 implementation produces a better result.
2662 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2664 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
2667 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2669 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
2670 cannot be used from the ThemeEngine constructor.
2671 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
2672 Application.VisualStylesEnabled because it does not work on X11.
2674 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
2676 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
2677 that we did not always check for, as well as fixes to the IList
2678 implementations. [Fixes bug #402703]
2680 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2682 * IDeviceContext.cs: Added Dispose.
2684 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2686 * Control.cs: Added OnSizeInitializedOrChanged.
2687 * Form.cs: OnLoadInternal: Added a call to
2688 Control.OnSizeInitializedOrChanged.
2689 * InternalWindowManager.cs:
2690 * HandleTitleBarMouseMove: No longer invalidates the parent window.
2691 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
2692 * TitleButton: Added Entered.
2693 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
2694 * MdiWindowManager.cs:
2695 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
2696 move over the maximized title buttons causes a change.
2697 * IsActive: Can now be called before the window is added to a MDI parent.
2698 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
2699 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2700 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
2701 * ThemeWin32Classic.cs:
2702 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
2703 * DrawTitleButton takes a new form parameter.
2704 * Added ManagedWindowTitleButtonHasHotElementStyle,
2705 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2707 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2709 * ThemeEngine.cs: ThemeVisualStyles is now selected if
2710 Application.EnableVisualStyles has been called, even if the current system
2711 configuration does not support rendering with Visual Styles.
2712 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
2713 Styles should not be used.
2715 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
2717 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
2718 ComboBox in FormsTest.
2720 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
2722 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
2723 for fixed toolwindows.
2725 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
2727 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
2729 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2731 * Control.cs: CreateControl just returns if the Control is diposed
2732 and doesn't throw ObjectDisposedException.
2735 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2737 * Control.cs: Do not create the control if the parent isn't created
2738 yet, e.g in the case of a parented form on which .Show is called.
2739 It will be created when the parent is made visible/created.
2742 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2744 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
2745 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
2748 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2750 * Form.cs: When disposed set owner to null. Improves #402446.
2752 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2754 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
2755 use children's PreferredSize if in AutoSize mode and ExplicitBounds
2757 * Form.cs: Take the Padding into account for the PreferredSize.
2760 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2762 * TabControl.cs: Since we don't support more than one direction in
2763 TabControl rows alignment (this is, the row becomes the
2764 bottom row when selected), make Direction return always 1. This way
2765 the layout doesn't get confused about a bad calculation.
2768 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2770 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
2771 so that the wparam is properly set.
2772 Fixes form moving in the test case in bug 402446.
2774 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
2776 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
2777 the full tree instead of nothing. [Improves bug #406584]
2779 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2781 * ThemeWin32Classic.cs: Adjusted minimized window painting.
2783 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2785 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
2788 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
2790 * TreeView.cs: Add a null check when using CollapseAll on an
2791 empty tree. [Fixes bug #406449]
2793 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2795 * Form.cs: Make OnMenuComplete internal so we can call it.
2796 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
2799 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2801 * TabControl.cs: Handle Up and Down keys when TabControl is in
2805 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2807 * TabControl.cs: Invalidate when we remove a tab. Guard against
2808 an AOORE when trying to remove a tabpage that is not owned by the
2812 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2814 * ScrollBar.cs: Change the LargeChange calculation to be correct.
2815 Ensure we are using LargeChange instead of large_change so we our
2816 calculations are correct.
2819 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2821 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
2822 we need to ensure the ColumnCount/RowCount gets set.
2825 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2827 * ListBox.cs: When handling item navigation, if selection mode is
2828 None, call EnsureVisible, since scrolling is normally handled by
2829 selection, that we are not calling in this case.
2832 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2834 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
2835 a null check to our focus walking code. [Fixes bug #394332]
2837 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
2839 * ComboBox.cs: Case missed in bug 379596 "Support item
2840 navigation by entering text": On _close_ drop-down select
2841 the first item matching the text in the textbox. [Fixes bug #397265]
2843 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2845 * DataGridView.cs: Fix a crash when sorting by column headers,
2846 mentioned in bug #404841. Remove some dead switch cases.
2848 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2851 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
2852 uses the AutoComplete support in the internal TextBox. Also TextBox
2853 can store a reference to ComboBox, in case AutoCompleteSource is set
2854 to ListItems (this is, ComboBox's items, and we don't want to pass an
2855 additional collection).
2857 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2859 * ListViewItem.cs: Restore the initial value of bounds rect to
2860 Rectangle.Empty, and is this value for Layout detection in virtual
2861 mode. Fixes the tests.
2863 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
2865 * XPlatUI.cs: Remove references to "new" X11 backend.
2867 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2869 * Control.cs: Add an internal virtual OnDragDropEnd method
2870 to allow controls such as ListBox, which depend on a sequence
2871 of MouseDown+Move+End events, to handle the lack of a MouseUp
2872 when a DnD operation is started in MouseDown.
2873 * ListBox.cs: If a DnD operation is started in MouseDown we won't
2874 get a MouseUp, so reset our state whenever a DnD operation ends.
2876 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2878 * PropertyGrid.cs: Clear the root griditem first thing when
2879 new object/s is/are selected. Fixes some rare cases where
2880 the View will get a paint request and won't know that the
2881 grid is in the process of repopulating.
2883 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2885 * XplatUIX11.cs, InternalWindowManager.cs:
2886 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
2887 doesn't automagically update the FormBorderStyle, so we must
2888 double check the CreateParams explicitly to determine if the
2889 window is a toolwindow.
2890 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
2891 instead of doing custom checks.
2893 Fixes toolwindows for the test case in bug #402446
2895 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2897 * Control.cs: Visibility of the control should be false
2898 when the handle is destroyed in WmDestroy and not immediately
2899 in Dispose(). This is effectively where the disposing process
2900 ends even though the control is marked as Disposed immediately
2901 after calling Dispose().
2904 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2906 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
2907 when the textbox gets focus.
2910 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2912 * PropertyGridTextBox.cs, PropertyGridView.cs:
2913 - Alt + Down should show the drop down editor.
2914 - Focus the editor when showing it
2917 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
2919 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
2920 that are not the first panel.
2921 * StatusBar.cs: Ensure that the X coordinate of panels is always
2922 stored. Fix IList implementation of StatusBarPanelCollection to
2923 call the regular methods.
2924 [Fixes bug #403599, #402165]
2926 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
2928 * ThemeWin32Classic.cs: Fix position calculation for centered
2929 text on status bar panels. [Fixes bug #402165]
2931 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2933 * Splitter.cs: Fix Splitter to:
2934 - Work for arbitrary splitter size
2935 - Handle MinSize and MinExtra properly
2936 - Get rid of absolute positioning during drag and use relative
2937 - Multiple other fixes
2940 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2942 * Cursor.cs: Show shouldn't hide the cursor.
2944 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2946 * ListViewItem.cs: When invalidating, add some extra space to bounds,
2947 since focus rectangle and selection can add some space and need to
2948 take into account those small offsets - specially in Details view.
2949 * ListView.cs: Instead of invalidate using item Bounds directly, call
2950 item.Invalidate, to have the code centralized.
2951 Fixes focused/selection garbage when selecting and deselecting items
2954 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2956 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
2957 mode we can check whether we have to force a Layout or not, and can
2958 cache based on this, instead of avoiding caching all the the time. Do
2959 this check in GetBounds and TextBounds.
2960 Fixes selection in Details view.
2962 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2964 * ListView.cs: Make HeaderControl internal, thus the theme engine can
2965 get its *real* height instead of trying to infere it.
2966 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
2967 get the position of them, since it's in general a bad idea in general,
2968 and because we can't do that in virtual mode. Instead get the first
2969 visible item as well as item height, and draw them.
2972 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
2974 * ToolStripSplitButton.cs: We can't add in extra width if
2975 the button is not AutoSize. [Fixes bug #401279]
2977 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
2979 * PaddingConverter.cs:
2980 - Implement conversion to InstanceDescriptor
2981 - Handle "All" in CreateInstance by using the supplied
2982 ITypeDescriptorContext.
2983 [Fixes bugs #396076 and #396078]
2985 Patch by Andy Hume <andyhume32@yahoo.co.uk>
2986 Code contributed under MIT/X11 license.
2988 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
2990 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
2992 Add Category attributes.
2993 Code is contributed under the MIT/X11 license.
2995 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
2998 - Fix a NRE when unparenting a form.
2999 - Do not recreate or destroy a parented form when
3002 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3004 * TextBox.cs: Implement basic support for AutComplete with custom
3007 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
3009 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
3010 DropDownButtonBounds should be from the origin of the button, not the
3011 ToolStrip. [Fixes bug #401279]
3013 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
3015 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
3016 running gtk_init_check. This prevents GAIL from loading
3017 unnecessarily, which was breaking UIA support. Initial fix for bug
3019 * Application.cs: Add UIA support to Winforms. New static constructor
3020 uses reflection to initialize UIAutomationWinforms assembly. Added
3021 PreRun event so UIA can initialize before the mainloop starts, and
3022 FormAdded event so UIA can provide a11y support for new Forms in an
3025 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
3027 * DataGridView.cs: When binding to a dataset, subscribe to table
3028 and column change events. Unsubscribe to these when we clear bindings.
3031 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
3033 [DataGrid drawing refactory]
3035 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
3037 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
3038 must be handle by Theme, now it call DataGridPaintColumnHeader.
3040 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
3041 test cases must be also fixed because it checks for wrong size.
3043 * ThemeWin32Classic.cs:
3044 - Draw the bottom line of grid caption.
3045 - Prevent to draw caption text when it is empty.
3046 - Use CPDrawBorder3D for 3D efects to simplify code.
3047 - Uses 3D (when not flat) to paint corner shared between row and column
3049 - Fix header drawing issues on win32, now borders are drawing.
3050 - Fix column header paint issues to mimic win32.
3051 - Adjust header drawing for last column, like first one it must be draw
3053 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
3055 - DataGridPaintColumnHeader created to draw column headers, it also
3056 paint stuff right on Win32.
3057 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
3061 - DataGridPaintRowHeaderStar method added.
3062 - DataGridPaintColumnHeader method added.
3064 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
3066 * Control.cs: Don't reset to Dock style layout if DockStyle is
3067 set to none. [Fixes bug #399316]
3069 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
3071 * Win32DnD.cs: Fix the check for control not equal null.
3072 Fixes bug #341420 and #381886.
3074 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
3076 * DataGridViewRowCollection.cs: Update the indexes of rows after
3077 one has been removed.
3078 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
3079 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
3080 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
3081 rows for the Rows collection, or deleting rows from the bound DataSet.
3083 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
3085 * DataGridView.cs: Listen to a DataSet's changed event even
3086 when autogeneratecolumns is false. Refactor the changed event's
3087 add row code to use the same as the existing add row code.
3090 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3092 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
3093 much any time the caret moves and there is text, not just when
3094 the selection changes as one would think.
3095 * RichTextBox.cs: Override RaiseSelectionChanged and fire
3099 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3101 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
3102 instead of trying to duplicate the code.
3103 * ListBox.cs: Make method internal so we can send keyboard events.
3106 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3108 * TextBoxBase.cs: When pasting and checking the max length,
3109 subtract the selected text length (the text we will be replacing) from
3110 the document length.
3111 * TextControl.cs: Ensure every character insertion is reflected in
3112 charcount, so max length will work properly.
3115 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3117 * ListBox.cs: Ensure scrollbars are updated when a single
3118 column listbox with an already set top-index is created.
3121 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3123 * FontDialog.cs: Typing in the font/style textboxes should search
3124 the list boxes case-insensitively. [Fixes bug #398343]
3126 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
3128 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
3129 widths of icon and buttons instead of hard coded values.
3131 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3133 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
3134 as well as generating a SelectedIndexChanged event, just like .Net does
3138 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3140 * ListBox.cs: When navigating items visually, use FocusedItem as the
3141 reference point instead of SelectedIndex, since even in
3142 SelectionMode.None we need to support navigation, and in that case we
3143 just can't use SelectedIndex.
3144 Fixes part of #398345.
3146 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
3148 * Control.cs: Make a SetBoundsInternal that avoids the new
3150 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
3151 SetBoundsInternal instead of SetBoundsCoreInternal.
3153 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
3155 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
3156 SetBounds for the scrollbars.
3158 2008-06-10 Andreia Gaita <avidigal@novell.com>
3160 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
3161 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
3162 OnMouseMove, OnMouseOver, OnMouseUp
3163 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3164 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3165 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3166 to the WebControl object to pass to new collection objects
3167 * HtmlHistory.cs: Implement support for individual window histories.
3168 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3169 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3170 GotFocus, LostFocus, OnLoad, OnUnload
3171 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3173 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3174 security level changes and context menu event support.
3176 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3178 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3179 as happens with Esc, patch my Andy Hume.
3182 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3184 * MdiWindowManager.cs: DrawMaximizedButtons now uses
3185 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3186 * Theme.cs: Made MenuButtonSize platform dependent. Added
3187 ManagedWindowButtonSize.
3188 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3189 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3191 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3193 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3194 Added support for rendering with VisualStyles.
3196 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3198 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3199 support for rendering the border with VisualStyles.
3201 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3203 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
3204 the icon is not shown.
3205 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
3208 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3210 * InternalWindowManager.cs: Draw minimized windows even if they don't have
3213 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3215 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
3217 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3219 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
3222 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3224 * ComboBox.cs: When snaping height -because of IntegralHeight set to
3225 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
3226 if the requested height leaves the listbox area with *less* than the
3227 required are to see one item. We were setting it to PreferredHeight
3228 even for values matching the height for a single item.
3231 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3233 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
3235 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3237 * DataGridViewCell.cs: Use property instead of field.
3239 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3241 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
3244 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3246 * Theme.cs: Added #region around the managed window code. Made the managed
3247 window methods abstract.
3248 * ThemeWin32Classic.cs: Added #region around the managed window code.
3250 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3252 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
3254 * ThemeWin32Classic.cs: Removed HasBorders checks in
3255 DrawManagedWindowDecorations.
3257 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3259 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3260 Extracted ManagedWindowGetTitleBarIconArea.
3262 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3264 * DataGridViewCellStyle.cs: Don't clone the font.
3266 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3268 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
3270 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3272 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
3273 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
3276 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3278 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
3279 Use Format/FormatProvider before trying converters.
3280 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
3281 are 'set'. Change constructor to not use ApplyStyle since it wants
3282 everything applied. Clone the Font.
3283 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
3284 ApplyStyle the rest.
3286 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3288 * ListView.cs: We need to calculate the scrollbars even if the handle
3289 hasn't been created - this is needed when methods using scrollbars
3290 info, such EnsureVisible, are called before control has been created.
3293 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
3295 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
3296 only if the elements are defined.
3298 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3300 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
3301 section. Also, when setting bounds, snap height as well as save the
3302 requested height if Dock has any value affecting the height: Left,
3303 Right and Bottom - important if using IntegralHeight as true.
3305 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3307 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
3308 passed to SetBounds to reflect the new adjusted height (Integral-wise),
3309 instead of doing that only in our SetBoundsCore override, since the
3310 bounds cached can be the same as saved one and we could not get the
3314 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3316 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
3317 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
3318 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
3319 ToolWindowCaptionButtonSize.
3320 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
3322 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3324 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
3326 * Theme.cs: Made DoubleClickTime plaform dependent.
3328 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3330 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
3331 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3332 ToolWindowCaptionHeight.
3334 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3336 * InternalWindowManager.cs: The adjustment to ensure positive client area
3337 sizes is now platform dependent (disabled on Windows).
3338 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3339 RequiresPositiveClientAreaSize.
3341 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3343 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
3345 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3347 * InternalWindowManager.cs: Changed IconicSize to use
3348 SystemInformation.MinimizedWindowSize.
3349 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
3350 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
3352 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3354 * ComboBox.cs: If the combobox is anchored both on top and bottom,
3355 adjust height if IntegralHeight is true when calling SetBoundsCore (as
3356 likely the height was modified even if Height wasn't specified in
3357 BoundsSpecified parameter).
3358 Fixes part of #396297.
3360 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3362 * InternalWindowsManager.cs: Changed minimum window size while resizing to
3363 SystemInformation.MinWindowTrackSize.
3364 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
3365 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
3367 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3369 * MenuItem.cs: Fixed Dispose.
3371 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3373 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
3374 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
3375 EnteredHeaderCell, PressedHeaderCell: Added.
3376 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
3377 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
3378 theme a chance to override default painting.
3379 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
3380 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
3381 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
3382 ListView and DataGridView header rendering.
3384 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3386 * RichTextBox.cs: GetPositionFromCharIndex should return the
3387 visual position of the character relative to the viewport.
3388 [Fixes part of bug #396664]
3390 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3392 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
3393 and not just for the existance of an UITypeEditor. In some cases
3394 there is an editor associated just to do PaintValue, but which
3395 doesn't actually support editing.
3398 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3400 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
3401 if needed, instead of 0 - this should help us in the corner case where
3402 we have more than one item but we are only partially showing 1 item.
3403 Fixes part of #374713.
3405 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3407 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
3408 control, return immediately if the any parent control's handle hasn't
3409 been created or isn't visible, as well as avoiding creating the parent
3410 Form if the handle hasn't been previously created.
3413 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3415 * TableLayoutPanel.cs: Use border sizes when calculating the
3416 panel's preferred size. [Fixes part of bug #396433]
3418 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3420 * SplitContainer.cs:
3421 - Fix SplitterDistance to update only if needed.
3422 - Make it force min and max validation.
3423 - Handle properly mouse moves outside the resizeable area.
3426 2008-06-02 Andreia Gaita <avidigal@novell.com>
3428 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
3429 (which also suppresses all popup dialogs). Throw NotSupported
3430 exceptions for activex getters/setters.
3431 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
3432 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
3433 StatusText, Version, GoSearch
3434 * HtmlDocument.cs: Add DocType support
3436 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
3438 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
3441 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3443 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
3445 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3447 * TableLayoutPanel.cs: When calculating preferred size, use the
3448 actual number of columns and rows, not what the user set them to.
3451 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
3453 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
3456 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3458 * XplatUIX11.cs: When detecting areas obscured in a control by other
3459 toplevel windows while scrolling, return if the control hasn't a
3463 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3465 * XplatUIX11.cs: Properly detect the visible area of a control being
3466 scrolled (obscured by other winforms controls and any X toplevel
3467 windows), to mark as invalid the requested area to be scrolled that
3468 isn't visible and thus can't be copied.
3471 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3473 * ListBox.cs: Compute the precise amount to vertically scroll when
3474 using DrawMode.OwnerDrawVariable.
3475 Patch by jkeymer (j.keymer@gmx.net).
3477 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3479 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
3480 to avoid setting an invalid value for the verticall scrollbar
3481 when navigating items. And, duh, also remove my silly debug messages
3482 from previous commits.
3485 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3487 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
3488 make it MS compatible.
3490 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3492 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
3493 - Allow the editing of entries even if their parent is read-only.
3494 - Do not render expandable properties read-only.
3495 - Refactor expansion checks form PropertyGrid into PropertyGrid.
3497 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
3499 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3500 support for the hover style.
3502 2008-05-29 Andreia Gaita <avidigal@novell.com>
3504 * ContainerControl.cs: Check for null dead-end when traversing the tree
3507 [Fixes #394332, patch by Ernesto Carrea]
3509 2008-05-29 Geoff Norton <gnorton@novell.com>
3511 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
3512 constant that it is. Fixes #393981
3514 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3516 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
3517 that the user probably doesn't want to set this.
3519 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3521 * ThemeWin32Classic.cs: Don't let the text size be bigger than
3522 the control size for CheckBox/RadioBox.
3523 [Fixes part of bug #394645]
3525 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3527 * PropertyGrid.cs: Update the state of the sorting buttons in
3528 the toolbar if PropertySort is set programatically.
3530 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3532 * GridItemCollection.cs: Add multiple items with conflicting names
3533 support and also preserve name ordering.
3536 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3538 * GridItemCollection.cs: Revert my multiple items with same
3541 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3543 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
3545 Fixes part of #393908.
3547 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
3549 * ToolStripDrowDown.cs: When using the Show () methods that have a
3550 Control parameter, set the menu owner to that Control.
3553 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
3555 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
3558 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3560 * GridItemCollection.cs: Refactor to support multiple items with the
3564 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
3566 * Control.cs: The 2.0 check for illegal cross thread calls in
3567 Control.Handle were throwing an exception when we were getting
3568 the Handle in order to invoke correctly. Created a private
3569 version that does not contain this check.
3572 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3574 * PropertyGrid.cs: Respect DefaultTabType.
3576 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3578 * ListView.cs: SPACE selects an item.
3581 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3583 * ListView.cs: Reset the search string whenever the items are
3587 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3589 * ListControl.cs: For the first added item PositionChanged is fired
3590 _before_ ItemChanged, which leave us in a temporary invalid state - so
3591 we need to set the selected index from ItemChanged handler *if* we
3592 know that the first item has just been added *and* the items have been
3593 actually added to the ListControl.
3596 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3598 * TabControl.cs: Only clicks with the left button should be
3602 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3606 * TextBox.cs: Expose an internal method in TextBox to restore the
3607 original context menu, and call it from ComboBox to re-use it in the
3608 combobox containing the file name in FileDialog.cs.
3609 Fixes part of #393775.
3611 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3613 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
3616 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3618 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
3621 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3623 * ComboBox.cs: Minor correction to previous patch: PageDown should
3624 also *try* to move by one item if the computed offset is negative,
3625 just like the PageUp case.
3627 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3629 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
3630 should be done for at least 1 item, and not stay at the same item.
3631 Fixes part of #374713.
3633 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
3635 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
3636 directories. [Fixes bug #393931]
3638 2008-05-22 Andreia Gaita <avidigal@novell.com>
3640 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
3641 Don't fire events until the initial about:blank page has finished
3642 loading. Clean up events.
3644 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3646 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
3647 FocusIn() too. This should fix the issue on switching
3650 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3652 * X11Keyboard.cs : set XIM font size to somewhat reasonable
3653 number (ideally the input textbox size, but that could be
3656 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
3658 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
3659 the ToolStripItem's TextChanged. [Fixes bug #393597]
3661 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3663 * TabControl.cs: When invalidating in SelectedIndex and we need to
3664 inflate to take into account the border of the tabs, make sure that
3665 the invalidated rect doesn't overflow the control bounds, since that
3666 would avoid updating at all.
3668 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3670 * TabControl.cs: Don't substract scroller width from the row width,
3671 since we need to take into account the total width of the control when
3672 calculating the position of the tabs. This avoids showing scroller
3673 when it is actually not needed.
3674 Fixes part of #322325.
3676 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3678 * ThemeVisualStyles.cs: Added support for TextBoxBase.
3680 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3682 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3683 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
3685 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3687 * DataGridView.cs: Only paint the top left header cell if there
3690 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3692 * DataGridView.cs: When binding to a BindingSource, get the underlying
3693 list to bind to. [Fixes bug #345483]
3695 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3697 * DataGridView.cs: Do not bind to collection properties.
3700 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3702 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
3704 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3706 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
3709 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3711 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
3713 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3715 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
3718 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3720 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
3722 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3724 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
3727 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3729 * TabControl.cs: Extended to handle the hot style.
3731 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3733 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
3734 Extended UpDownBase code to handle hot and disabled styles.
3736 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3738 * DataGridView.cs: Handle databinding to generic list type things.
3741 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3743 * DataGridViewCellCollection.cs: Add a method to find the cell
3744 with the given DataPropertyName.
3745 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
3746 * DataGridViewColumnCollection.cs: Add a method to clear all
3747 autogenerated columns.
3748 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
3752 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3754 * DataGridView.cs: Don't try to update the RowTemplate with
3755 a null CellTemplate.
3757 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3759 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
3760 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
3761 * DataGridView.cs: Lots of fixes/enhancements to databinding to
3764 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3766 * Control.cs: Remove invalidating implicit child controls when
3767 control is invalidated. It was causing too many redraws on
3768 controls with implicit scrollbars.
3769 * ListView.cs: Listen to the Invalidated event and invalidate
3772 2008-05-20 Andreia Gaita <avidigal@novell.com>
3774 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
3775 * HtmlDocument.cs: Check for nulls
3777 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3779 * Control.cs: In ControlCollection.RemoveInternal, remove the
3780 internal control before calling PerformLayout and OnControlRemoved,
3781 which was leaving us in an invalid state and causing a X error (bad
3782 match). Observe that Remove () call has the same order.
3783 Fixes an X error changing ComboBoxStyle.DropDownStyle.
3785 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3787 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
3788 being fired if ControlStyles.UserPaint style is activated.
3791 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3793 * GridEntry.cs: Don't be so strict when setting the value -
3794 do not check if what we set is what we get.
3797 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3799 * XplatUIX11.cs: If there are no timers timeout should be 0
3802 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3804 * Control.cs: As a followup to invalidating implicit children when
3805 a control is invalidated, only invalidate them if they are in the
3808 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3810 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
3812 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3814 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
3816 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3818 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
3819 * XplatUIWin32.cs: Made Win32DeleteObject public.
3821 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3823 * GridEntry.cs: Determine HasDefaultValue more strictly by using
3824 PropertyDescriptor.ShouldSerializeValue.
3827 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3829 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
3830 in the classic theme.
3832 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3834 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
3836 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
3837 ScrollBarHasPressedThumbStyle.
3839 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3841 * TextRenderer.cs: Included some methods in the 1.1 profile.
3843 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3845 * Control.cs: When we make a control visible, it may have been
3846 previously visible and while it wasn't visible, the z-order of
3847 things may have been shuffled, so the control needs to have its
3848 z-order updated just in case. [Fixes bug #391518]
3850 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3852 * ThemeVisualStyles.cs: Added support for GroupBox.
3854 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3856 * GroupBoxRenderer.cs: Included in the 1.1 profile.
3858 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
3860 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
3861 bug #389996; XSelectInput() behaved as mouse handler robber,
3862 so remove extra call to it.
3864 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3866 * Control.cs: Simplify ControlCollection.Contains method.
3868 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3870 * DataGridViewRow.cs: Implement GetPreferredSize.
3872 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3874 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
3876 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3878 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
3879 painting and edit control fixes.
3881 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3883 * DataGridView.cs, DataGridViewCell.cs: Work around some external
3884 checks to make sure we are in an actual row/col for top left header cell.
3885 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
3887 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3889 * Control.cs: Use long instead of int when handling WParam from
3890 mousewheel scrolling. Int was overflowing on Win64.
3892 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3894 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
3895 flow panel without scrolling first, and then calculate the
3896 scrolling based on the new layout. [Fixes bug #390149]
3898 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3900 * ListBox.cs: Invalidate after scrolling up when selected index
3901 changes. [Fixes bug #390151]
3903 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3905 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
3906 set, default height to 150. I tried first with DefaultSize, but this
3907 is not generating a SetBoundsCore call before handle creation time, so
3908 we can take it into account. This is just what .net does.
3910 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3912 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
3913 as it broke some stuff. Calberto is filing a bug for eno to
3916 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3918 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
3919 to 0 is the current value is -1, and if style is not Simple, just
3920 return, like .net does.
3921 Fixes part of #374713.
3923 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3925 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
3926 progress bar stuffs, use doubles instead of ints to prevent
3927 overflow. [Fixes bug #389798]
3929 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3931 * XplatUIX11.cs, X11Keyboard.cs :
3932 Significant refactoring on XIM support. Now IM engine UI
3933 should show up, at mostly-correct preedit position.
3934 - Eliminated use of FocusWindow, as it is never mapped
3935 and hence blocks correct preedit position. XIC is now
3936 created per window, and it must be destroyed too when
3937 the window is destroyed.
3938 - WM_QUIT messages should not be filtered even when hwnd
3939 is zombie. Filtering it could cause endless loop.
3940 - Preedit position must move only when the window is alive.
3941 - Make it IDisposable and make sure to release XIM/XICs.
3943 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3945 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
3946 XplatUIX11.cs, XplatUIWin32.cs :
3947 fix for bug #325033 and #387693;
3948 - WM_QUIT should not be sent when no running application
3950 - SetTimer/KillTimer (especially on win32) should be
3951 invoked for the window that the timer is/will_be attached.
3952 - There could be unattached timers to a window when it's
3953 started. For those timers, hold pending timers and when
3954 a window is mapped, attach them to it.
3955 - WaitForHwndMessage() could run into loop when
3956 WM_SHOWWINDOW is handled before this method is called.
3957 So, strictly check wm_showwindow state.
3958 - Tick handler should not be invoked while one Tick handler
3959 call is still running (introduced Busy state).
3961 2008-05-13 Andreia Gaita <avidigal@novell.com>
3963 * WebBrowserBase.cs: Override Internal alternative methods for
3964 SetBoundsCore and OnResize instead of the protected ones.
3965 * Control.cs: Move SetBoundsCore and OnResize implementations to
3966 SetBoundsCoreInternal and OnResizeInternal, so they can be
3967 overriden internally (WebBrowserBase needs to catch them but can't
3968 override the protected methods without api compat problems)
3970 2008-05-13 Andreia Gaita <avidigal@novell.com>
3972 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
3974 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3977 * ListView.cs: Remove debug messages.
3979 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3981 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
3982 area is empty. Also calculate scrollbars in Simple mode based in area
3983 height and total number of items, not in MaxDropDownItems.
3984 Fixes part of #371991.
3986 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3988 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
3990 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3992 * BindingSource.cs: GetListSortDescription is not public.
3994 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3996 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
3998 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4000 * HtmlElement.cs: Fix parameter names to match MS.
4001 * HtmlWindowCollection.cs: Should not be sealed.
4003 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4005 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
4006 button, because the thumb button will not get drawn if the scrollbar
4007 is disabled. [Fixes bug #389262]
4009 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4011 * ListBox.cs: Handle End key for multi-column listboxen.
4014 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4016 * ListBox.cs: Fix algorithm to determine which column our item is in.
4019 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4021 * ListBox.cs: Invalidate when the listbox is resized.
4024 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4026 * ListBox.cs: There is always at least one row in the ListBox (if
4027 we are doing these calculations.) [Fixes bug #389253]
4029 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4031 * ListBox.cs: There is always at least one column in the ListBox.
4034 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4036 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
4037 ensure in Simple mode that the height is exactly the requested one.
4038 Also add the ComboBoxListControl to the controls collection in Simple
4039 mode even if handle hasn't been created.
4040 Fixes part of #371991.
4042 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4044 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
4045 our ComboBox owner instead of giving it back to the previous control (
4046 as done in other controls). Also remove the empty override of Select
4047 method, since we want to be selected *and* give focus to our owner.
4048 This should let the user do keys-navigation in Simple mode.
4050 2008-05-10 Geoff Norton <gnorton@novell.com>
4052 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
4053 problems with rapid scrolling of treeviews. Fixes #381084
4055 2008-05-10 Geoff Norton <gnorton@novell.com>
4057 * XplatUICarbon.cs: Deactivate the active window before
4058 activating the desired window. Completes fixing #386504
4060 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4062 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
4063 SmallChange to the item size width plus the padding, to match .net.
4065 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4067 * FileDialog.cs: Apply the custom filter typed by the user in the file
4068 name combobox as much as possible while navigating in the file dialog.
4071 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4073 * Binding.cs: Actually use NullValue if the retrieved value of
4074 data source is null or DBNull. Makes a test pass.
4076 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
4078 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
4079 * MimeIcon.cs: Provide a way to get icons from resources.
4081 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4083 * Binding.cs: When the value retrieved from the control to be assigned
4084 to the data source is null, actually use the 2.0 DataSourceNullValue
4085 value. Make pass a data binding test.
4087 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4089 * Control.cs: We need to invalidate implicit children even when
4090 invalidate is called with invalidatechildren = false. (Implicit
4091 children are really part of the parent.)
4092 * ListView.cs: Double-buffer internal child controls for less
4094 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
4095 owner ListView subitems for greatly increased performance.
4098 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
4100 * FileDialog.cs: When the user types a wildcard character in the
4101 filename combobox, update the contents of the folder using the text as
4103 Fixes part of #385261.
4105 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4107 * ListBox.cs: Various fixes for MultiColumn listboxen.
4110 2008-05-08 Andreia Gaita <avidigal@novell.com>
4112 * HtmlElement.cs: Implement Style property
4114 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4116 * ListBox.cs: Respect checkboxes when measuring item size.
4117 * ThemeWin32Classis.cs: When drawing list items, don't draw
4118 text outside of the item's bounds to prevent overlapping.
4119 (.Net actually overlaps, but that's just silly.)
4122 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
4124 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
4125 Gert Driesen. Fixes bug #324830.
4127 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
4129 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
4132 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4134 * BindingSource.cs: When calling IsSynchronized, return the value of
4135 the related IList list.
4137 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4139 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
4142 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4144 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
4145 navigation to scroll the grid if the current cell is not visible.
4147 2008-05-07 Andreia Gaita <avidigal@novell.com>
4149 * HtmlElement.cs: Implement TabIndex
4151 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4153 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
4154 properties, even when there are no items.
4157 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
4159 * NativeWindow.cs: Add support for multiple handles per window.
4160 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
4161 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
4162 directly - use FromHandle instead.
4165 2008-05-07 Andreia Gaita <avidigal@novell.com>
4167 * HtmlElement.cs: Implement InnerHTML setter
4169 2008-05-07 Andreia Gaita <avidigal@novell.com>
4171 * HtmlDocument.cs: Implement Focused
4173 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4175 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4176 methods, as well as add messages to the exceptions.
4178 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4180 * BindingSource.cs: Setting DataSource should only reset DataMember if
4181 the previous value was null (make pass a not working test).
4183 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4185 * BindingSource.cs: When EndInit call is postponed and is called until
4186 DataSource.EndInit is called, remove the handler for data source.
4188 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4190 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4192 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4194 * ToolStripManager.cs: Store references to toolstrips as
4195 weak references so they do not prevent forms from getting collected.
4198 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4200 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
4201 on .Net. So do the same thing in WndProc.
4203 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4205 * TrackBar.cs: Commit patch from Andy Hume that corrects
4206 the clickable areas to better match .Net.
4209 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4211 * TrackBar.cs: Commit patch from Andy Hume that adds the
4212 ResizeRedraw control flag so the track bar repaints itself
4213 when it is resized. [Fixes bug #387072]
4215 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4217 * TrackBar.cs: Commit patch from Andy Hume that adds better
4218 support for keyboard navigation when the TrackBar is vertical.
4221 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4223 * BindingSource.cs: Implement ISupportInitializeNotification support.
4225 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4227 * ThemeVisualStyles.cs: Added support for ToolBar.
4229 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4231 * ToolBar.cs: Made the Vertical property internal.
4233 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4235 * ThemeVisualStyles.cs: Added support for TrackBar.
4237 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4239 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
4240 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
4241 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
4242 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
4243 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
4244 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
4246 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4248 * ThemeVisualStyles.cs: Added support for UpDownBase.
4250 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4252 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
4253 Extracted Theme.UpDownBaseDrawButton.
4255 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4257 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
4258 removed from the static toolstrips collection in ToolStripManager
4259 when they are disposed. Provides a workaround for bug #386483.
4261 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
4263 * GridEntry.cs: Read-only properties with Editor with
4264 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
4267 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4269 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
4270 the menu key and there are no items on the menu.
4273 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
4275 * Control.cs: Avoid calling ToString on a string.
4276 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
4277 * GroupBox.cs: In FlatStyle property throw, not just create, the
4278 exception. Avoid calling ToString on a string.
4279 * ProgressBar.cs: Avoid calling ToString on a string.
4280 * ScrollBar.cs: Avoid calling ToString on a string.
4281 [All issues were found using Gendarme]
4283 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
4285 * NotifyIcon.cs: Prevent click events to be trigger after double click
4286 events. Fixes remaining issues of bug #324832.
4288 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
4290 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
4291 to mimic win32 behavior. Partially fixes bug #324832.
4293 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4295 * BindingSource.cs: Implement Find methods.
4297 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4299 * BindingSource.cs: Implement Sort, ApplySort overloads, and
4302 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4304 * ListBindingHelper.cs: When calling GetListItemProperties and the
4305 passed object is ITypedList, return the result of
4306 ITypedList.GetItemProperties instead.
4308 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4310 * LinkLabel.cs: Set default value of name on constructor of Link class
4311 only for 2.0 profile.
4313 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4315 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
4316 Fixes remaining issues of bug #346154.
4318 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4320 * LinkLabel.cs: Set a default value for name on internal contructor of
4321 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
4323 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4325 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
4326 and refer all instances to owner.links. Partially fixes #346154.
4328 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4330 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
4331 length equal zero. Also called CreateLinkPieces in constructor. It fixes
4332 the LinkLabel test 'TestLinkArea'.
4334 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4336 * Form.cs: Remove menu before close form to prevent form to be not gaced.
4339 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4341 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
4344 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4346 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
4349 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4351 * MenuAPI.cs: Remove unused ProcessCmdKey method.
4353 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4355 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
4358 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4360 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
4363 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4365 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
4366 sometimes we open a conext menu on mouse down of some controls and the mouse
4367 up is dispatched to menu and dont need to. It fix remaining issues of
4368 #363711 and other problems related to menu mouse click events.
4370 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4372 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
4373 some var names to better fit changes, now we have month_menu and today_menu
4374 vars. Fixes bug #363711.
4376 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4378 * MonthCalendar.cs: Handle every right mouse click to open context menu,
4379 right now the default month menu but it will be change to have "Go to today"
4382 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4384 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
4386 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4388 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
4390 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4392 * ThemeVisualStyles.cs: Added support for TreeView.
4394 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4396 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
4397 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
4399 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4401 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
4403 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4405 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
4406 Implement 2.0 SP1 stuffs.
4408 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4410 * FileDialog.cs: Implement 2.0 SP1 stuffs.
4412 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4414 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
4415 Implement CanEnableIme property. (2.0 SP1)
4417 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4419 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
4422 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4424 * Control.cs: Provide an internal way for a control to override
4425 the setting of Height.
4426 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
4427 set height using new method.
4429 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4431 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
4433 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4435 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4436 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
4438 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4440 * ThemeVisualStyles.cs: Added support for StatusBar.
4442 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4444 * DataObject.cs: Add the other IDataObject interface.
4446 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4448 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
4449 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
4451 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4453 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
4454 * ListView.cs: Hide non-public API.
4455 * MaskedTextBox.cs: Remove extra attribute.
4457 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4459 * DataGridViewImageCell.cs: Use formatted value instead of value
4460 to calculate preferred size.
4462 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4464 * ListBox.cs: Move some initialization around so that selected_indices
4465 is not accessed before it is created.
4467 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4469 * InputLanguageCollection.cs: Implement the collection better.
4472 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4474 * ToolStripDropDownItem.cs: Get the correct event object for
4475 DropDownItemClicked.
4476 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
4479 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4481 * DataGridViewRowCollection.cs: We don't currently support shared
4482 rows. Should fix test failures caused by previous commit.
4484 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4486 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
4487 datagridview gets set. Only paint cells in visible columns.
4488 * DataGridViewCell.cs: Draw border after cell content.
4489 * DataGridView.cs: Invalidate after setting some properties. Only
4490 use visible columns. Fit hit test bug with areas in the col/row header
4491 area but not in a row or col. Implement UpdateCell/Row methods.
4493 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4495 * DataGridViewElement.cs: Don't throw NIEX.
4496 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
4497 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
4498 * DataGridViewCheckBoxColumn.cs: Implement ToString.
4499 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
4500 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
4501 if the user filled in the formatting Value, use it.
4503 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4505 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
4508 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4510 * BindingSource.cs: Some corrections to Filter property, as well as
4511 setting it for our list when resetting it.
4513 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
4515 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
4516 than the maximum. Fixes reopened bug #384182.
4518 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4520 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
4521 Fixes remaining issues of #367490.
4523 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4525 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
4526 SystemInformation.WorkingArea to get max_screen value.
4528 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4530 * BindingSource.cs: Implement Filter and RemoveFilter.
4532 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4534 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
4536 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4538 * X11Dnd.cs: When trying to convert data and we know we started the
4539 dnd loop, don't try to use the cached data if the loop is not running,
4540 which means that the data has been resetted.
4543 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4545 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
4548 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4550 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
4551 it to drawn off screen edge. Fixes bug #367490.
4553 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4555 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
4556 menu position to have only one assignment of Location var.
4558 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4560 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
4561 for this patch. Fixes bug #384115.
4563 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4565 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
4566 the same. If LargeChange is zero, set a minimum size for the scroll
4567 thumb grip. [Fixes bug #384182]
4569 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4571 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
4574 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4576 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
4578 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4580 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
4581 patch from Ernesto).
4583 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4585 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
4587 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4589 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
4591 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4593 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
4595 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4597 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
4599 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
4601 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
4603 2008-04-27 Andreia Gaita <avidigal@novell.com>
4605 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
4606 supposed to return a reference to an mshtml interface, which we
4608 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
4609 reference to an mshtml interface, which we don't support). Code
4611 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
4612 DomDocument getter (it's supposed to return a reference to an
4613 mshtml interface, which we don't support). Code formatting cleanup.
4615 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4617 * ListView.cs: Ouch, forgot to commit.
4619 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4622 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
4624 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4626 * ListView.cs: When calculating box selection for virtual mode, don't
4627 look for intersection with item's text, but item bounds, since that
4628 would mean read ListViewItem's text for _every_ item, and that's
4629 something we just can't do in virtual mode (items are only requested
4632 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
4634 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
4635 partial support for managed windows (based on the patch from Ernesto).
4637 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4639 * ListView.cs: When doing a key search use FindItemWithText method
4640 instead of doing the search by ourselves, this way we avoid
4641 duplicating the code and also we handle the special case for virtual
4642 mode. To achieve that make our private overload of FindItemWithText
4643 internal and also have a 'roundtrip' parameter.
4645 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4647 * ListView.cs: When doing the layout don't request the
4648 ListViewItem instance if we are in virtual mode (since we can't request it
4649 until the item is actully drawn).
4651 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4653 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
4656 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4658 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
4659 the patch from Ernesto).
4661 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4663 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
4664 * ThemeVisualStyles.cs: Added.
4666 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4668 * IDeviceContext.cs: Added a missing using.
4670 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4672 * ButtonBase.cs: Made IsDefault protected internal.
4673 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
4675 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4677 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
4678 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
4679 RadioButtonRenderer.cs: Included in the 1.1 profile.
4680 * IDeviceContext.cs: Added.
4681 * TextRenderer.cs: Included a member in the 1.1 profile.
4683 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4685 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
4687 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4689 * ErrorProvider.cs: Make the error icons come after the control
4690 they refer to. It isn't the way the MS does it, but its better
4691 than what we were doing. See bug #368587.
4693 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4695 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
4696 from Eric Albright that lazy loads the input language as ensures
4697 everything gets properly initialized. Fixes bug #373871.
4699 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4701 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
4702 implicit mnemonics. [Fixes bug #383000]
4704 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4706 * X11Dnd.cs: When canceling the operation, automatically restore the
4707 default cursor - normally the default cursor is restored when the
4708 mouse buttons are released, but we should be able to restore it even
4709 if the buttons are still pressed (for example, when pressing ESC to
4713 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4715 * X11Dnd.cs: When starting a new drad and drop operation, set control
4716 field to null, just as the other fields, to avoid calling any
4717 operation on a previous control. Also, when calling DndLeave on a
4718 control, set it to null, thus we don't fire that event multiple times
4722 2008-04-23 Geoff Norton <gnorton@novell.com>
4724 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
4725 the whole_window object. Fixes #377084.
4727 2008-04-23 Andreia Gaita <avidigal@novell.com>
4729 * HtmlElement.cs: Implement RaiseEvent (event injection into the
4732 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
4734 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
4736 2008-04-23 Andreia Gaita <avidigal@novell.com>
4738 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
4741 2008-04-23 Andreia Gaita <avidigal@novell.com>
4743 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
4746 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4748 * X11Dnd.cs: When the drop was cancelled, or could just not be
4749 performed, return DragDropEffect.None always (match .net).
4751 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4753 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
4755 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4757 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
4759 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4761 * DataGridView.cs: Add support for error icon tool tips.
4762 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
4763 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
4765 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
4767 * X11Structs.cs: Add mouse button masks enum.
4768 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
4769 WM_EXITSIZEMOVE only once at the beginning and at the end of the
4770 form resize/move operation instead of for each step of it.
4771 [Fixes bug #346529 for the x11 backend]
4773 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4775 * DataGridView*: Implement support for drawing error icons.
4777 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4779 * TreeView.cs: Make vbar and hbar internal.
4780 * TreeNode.cs: If collapsing the node removes one of the TreeView's
4781 scrollbars, invalidate the whole thing.
4784 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4786 * TreeView.cs: Calling Sort() sets Sorted = true.
4787 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
4788 if the nodes need to be sorted.
4791 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
4793 * Form.cs: Fire SizeChanged for both when the form is minimized and
4795 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
4796 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
4798 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4800 * ComboBox.cs: If the combobox is disabled, draw a disabled
4801 background before painting anything else.
4804 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4806 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
4807 forget to send a Leave event to the target window - just as .net does
4808 when cancelling dnd operations.
4810 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4812 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
4813 soon as possible - this happens when we send the drop message to the
4814 target window. This way we avoid firing any DragOver _after_ drop finished.
4817 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4819 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
4820 * Form.cs: Handle form minimization as a special state, where size doesn't
4821 change, but we have to fire SizeChanged.
4822 [Fixes bug #325122 for the win32 and x11 backends]
4824 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4826 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
4827 if the handle is disabled.
4830 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4832 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
4833 for forms with FormBorderStyle.None.
4836 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4838 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
4840 [Fixes bug #346529 for the X11 backend]
4842 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4845 - Send a mouse Enter message after say dragging the mouse with a
4846 button down and then release it in another client.
4847 - Reset the cursor to prevent X11 from remembering it and setting it
4848 before the control gets WM_SETCURSOR.
4849 - Qeueue a mouse move after a mouse enter like win32.
4852 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4854 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
4855 It's sent when the form gets moved, resized, closed.
4856 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
4857 [Fixes bug #359193 for X11]
4859 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4861 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
4864 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4866 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
4867 group. Fixes the 1.1 build.
4869 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4871 * ListView.cs: Use display indexes for selection in Details view, as
4872 well as do the proper layout based on display indexes for that view
4875 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4877 * ListView.cs: Focused item information is now stored as a display
4878 index, and display indexes are used all over the place for selection,
4879 instead of ListViewItem.Index values, which doesn't give us enough
4880 information to modify the selection in groups mode, and was broken.
4882 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
4884 * Control.cs: Do not fire MouseDown if validation of the control has
4886 * Form.cs: Validate the form before closing.
4887 [Fixes bugs #330501 and #353310]
4889 2008-04-18 Andreia Gaita <avidigal@novell.com>
4891 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
4892 CreateWebBrowserSiteBase implementations
4893 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
4894 Style and TabIndex setters
4896 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4898 * ListViewGroup.cs: When returning the actual item count, return the
4899 proper count for default group.
4902 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4905 * ListViewGroup.cs: When calculating groups layout, get the actual
4906 number of items per group, since groups added to the group BUT not
4907 added to the ListView are just ignored, and can cause some nasty
4908 exceptions because of the lack of synchronization. Also for
4909 ListViewGroup don't use lazy initialization for items, since we
4910 the common scenario is to use it always - and it helps us to refactor
4911 and clean the .ctor overloads.
4913 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4915 * ListView.cs: When adding an item to a ListViewItemCollection
4916 belonging to a group (ListViewGroup.Items), don't generate a redraw if
4917 the added item hasn't beeen previously added to the ListView instance
4918 refered by the group, since it will be ignored. This should avoid some
4919 really nasty flickering.
4921 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4923 * ListView.cs: When accessing an item in a specific display
4924 position, use the helper method GetItemAtDisplayIndex, instead of
4925 direct access to the reordered_items_indices array. When doing layout
4926 for groups set the correct Items index for the display position (since
4927 in groups mode items don't have the same position as in Items
4929 * ListViewGroup.cs: Add a field to store the starting item number,
4930 which is later used when calculating the layout.
4934 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
4936 * Application.cs: Fixed ProductVersion to fallback to the assembly
4937 version. Fixes regression for bug #325413.
4939 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4941 * ListView.cs: New helper method to retrieve an item in a _specific
4942 display_ position (the items can be displayed in a different order
4943 than one of Items collection).
4944 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
4945 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
4946 specific display position (again remember that items can be sorted
4947 different than Items).
4949 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4951 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
4952 list and update it when the collection changes. We were recreating
4953 this several times per row paint and for every pixel the mouse moved
4955 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
4958 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4960 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
4961 list to use generics.
4962 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
4963 and remove unneccessay casts.
4965 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4967 * DataGridViewBand.cs: Add internal way to set displayed variable.
4968 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
4969 * DataGridView.cs: Make sure we always keep track of Displayed
4970 rows and columns, and only draw things that are displayed.
4972 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
4974 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
4975 whether the key events are filtered or not. Introduced
4976 PreFilter() process for this purpose. This fixes atokx3/iiimx
4979 2008-04-16 Andreia Gaita <avidigal@novell.com>
4981 * HtmlHistory.cs: Implement Length property
4983 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
4985 * DataGridView.cs: Call EndEdit when a sort is performed so we take
4986 away the edit textbox. Refactor to reuse column sort code.
4988 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
4990 * MenuAPI.cs: Remove the code that save and restore capture status of
4991 grab_control, this fixes some Menu and Context menu bugs but maybe it can
4992 cause some others, I cant figure the possible problems of this patch but
4993 right now remove the code looks to be better than keep it. This patch fixes
4994 bugs #357638, #378721 and #379570.
4996 2008-04-12 Andreia Gaita <avidigal@novell.com>
4998 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
4999 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
5000 add missing properties and event handlers.
5002 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
5004 * ListBox.cs: Make sure the LargeChange we are setting is at least
5005 zero, to prevent an IOORE. [Fixes bug #379531]
5007 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
5009 * ComboBox.cs: Support item navigation by entering text. Firstly,
5010 in DropDownList mode, for each key-press select the next item
5011 starting with that letter.
5012 For other modes, when no item selected, on arrow-up/-down and open
5013 drop-down select the first item matching the text in the textbox.
5015 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
5017 * X11Keyboard.cs : Control.FromHandle() could return null
5018 in MoveCurrentCaretPos().
5020 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5022 * ListView.cs: When changing the size in VirtualMode, also Reset the
5024 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
5025 changing selection info for VirtualMode.
5028 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5030 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
5031 view, don't use LineLimit for the first item - use NoWrap *always*
5032 instead, since ListView.LabelWrap is not used for this view.
5035 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5037 * Binding.cs: Call UpdateIsBinding when setting control - probably
5038 Binding is already usable and we don't need to wait to check the
5039 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
5040 Created, just like 2.0 does.
5041 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
5043 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5045 * Binding.cs: Just realized we don't need to have a handler for
5046 BindingContextChanged, since this info should be now consumed directly
5047 in the BindingManagerBase. And also, the manager.IsBindingSuspended
5048 state info is checked directly, instead of caching it.
5050 * CurrencyManager.cs: IsSuspended should return always false if Count
5053 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5055 * Binding.cs: When calling PushData, return if manager.Count == 0,
5056 since we just don't have data to be read. Also, when setting the
5057 Control for binding, hook up some events to refresh the IsBinding
5058 state when BindingContext change or control gets created; use
5059 Control.IsHandleCreated instead of Control.Created check to set
5060 IsBinding state - we *actually* need to modify IsBinding when control
5061 is created, but we don't have any Created event, only HandleCreated.
5062 Fixes part of #349364.
5064 2008-04-11 Geoff Norton <gnorton@novell.com>
5066 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
5067 warping a null Caret.
5069 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5071 * DataGridView.cs: Implement row/column autosizing methods. Implement
5073 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
5074 * DataGridViewRowCollection.cs: Add an internal sorting method.
5076 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5078 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
5079 value in ListView drawing code.
5081 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5083 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
5084 is clicked. Respect the user setting Cancel in FileOk.
5086 2008-04-11 Geoff Norton <gnorton@novell.com>
5088 * ListView.cs: Avoid setting and resetting control Width/Heights and
5089 calculate the final value and set it once. Prevents a feedback loop
5092 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5094 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
5097 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
5099 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
5100 Add some on-the-spot code, but it seems we don't need it.
5102 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5104 * Form.cs: Add method for DataGridView to trigger focus cues
5105 even when it handles the tab keypress.
5107 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5109 * DataGridView.cs: More keyboard handling, tab, esc.
5110 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
5111 when at the beginning or end of the text in the text box.
5113 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5115 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
5117 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5119 * DataGridView.cs: Some fixups for showing and adding the edit control.
5120 * DataGridViewButtonColumn.cs: Implement ToString.
5121 * DataGridViewCell.cs: Size and position the control simultaneously.
5122 * DataGridViewTextBoxCell.cs: Use base to position control.
5124 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5126 * DataGridViewCell.cs: Fix up some formatting and painting code.
5127 * DataGridViewImageCell.cs: Implement some NIEX methods.
5129 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5131 * ToolStripItemCollection.cs: What moving an item from one owner
5132 to another, remove from source owner before adding to destination.
5135 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5137 * PictureBox.cs: Call Load when ImageLocation is set.
5140 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
5142 * X11Keyboard.cs, XplatUIX11.cs :
5143 Implement over-the-spot mode (with some odd offsets).
5144 - set preedit position when caret is set.
5145 - Wrap XMoveResizeWindow() to move preedit position.
5147 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5149 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
5152 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5154 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
5155 and ScanTableIndex public, it fix compilations errors when compiling
5156 WinForms to generate keyboard layout resources.
5158 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5160 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
5161 different element count than scan table. It prevents some errors in non
5164 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5166 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5168 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5170 * DataGridView.cs: Call OnContentClick.
5171 * DataGridViewCell.cs: Do a null check on ValueType instead
5173 * DataGridViewCheckBoxCell.cs: Implement.
5175 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5177 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5179 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5181 * X11Keyboard.cs : Check XGetIMValues() return value in
5182 case it does not return input styles in some environment.
5184 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5186 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5188 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5190 * BindingContext.cs: Stub UpdateBinding method.
5192 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
5194 * X11Structs.cs : added couple of structs for XIM support.
5196 Release XIM in case it failed to create XIC.
5197 Use consts for XNblah string.
5198 Add support for IM style customization and XIC creation
5199 for preedit-position and preedit-callback.
5200 Right now use MONO_WINFORMS_XIM_STYLE environment variable
5201 (list of: over-the-spot | on-the-spot | root). Only root
5204 (redoing r99172 with fix.)
5206 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5208 * TreeView.cs: Center the checkbox a little better.
5210 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5212 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
5213 Apply very nice patch from Ernesto Carrea that simplifies our
5214 scrollbar drawing. [From bug #376146]
5216 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5218 * TreeView.cs: Correct the location of the root node checkbox when
5219 ShowRootLines = false. Don't draw the root lines for the root node
5220 when ShowRootLines = false. [Fixes bug #377535]
5222 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5224 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
5226 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
5228 * MaskedTextBox.cs: Added missing attribute. Code formatting.
5229 * PageSetupDialog.cs: Added missing attribute. Code formatting.
5230 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
5231 * ImeMode.cs: Added missing field.
5232 * HtmlWindow.cs: Code formatting. Fixed line endings.
5233 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
5235 * HtmlHistory.cs: Code formatting. Fixed line endings.
5236 * HtmlDocument.cs: Code formatting. Fixed line endings.
5237 * ToolStripPanel.cs: Added missing IList implementation.
5238 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
5240 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5242 * BindingContext.cs: Changed argument names to fix corcompare errors.
5243 * DataGridView.cs: Removed extra explicit interface implementation
5244 of IDropTarget. Code formatting.
5245 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
5246 * ComboBox.cs: Changed argument names to fix corcompare errors.
5247 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
5249 * GridColumnStylesCollection.cs: Changed argument names to fix
5250 corcompare errors. Removed extra tabs.
5251 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
5253 * Control.cs: Changed argument names to fix corcompare errors. Code
5254 formatting. Removed extra explicit IList implementation.
5255 * TextBox.cs: Changed argument names to fix corcompare errors. Code
5256 formatting. Use string.Empty instead of "".
5257 * GridItemCollection.cs: Changed argument names to fix corcompare
5258 errors. Code formatting.
5259 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
5260 corcompare errors. Code formatting.
5261 * ImageList.cs: Changed argument names to fix corcompare errors.
5262 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
5263 * DataGridViewRowCollection.cs: Changed argument names to fix
5264 corcompare errors. Code formatting.
5265 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
5266 * DataGridViewSelectedCellCollection.cs: Changed argument names to
5267 fix corcompare errors. Code formatting.
5268 * DataGridViewComboBoxCell.cs: Changed argument names to fix
5269 corcompare errors. Code formatting.
5270 * LinkLabel.cs: Changed argument names to fix corcompare errors.
5271 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
5273 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
5275 * BindingSource.cs: Changed argument names to fix corcompare errors.
5276 Removed extra explicit interface implementations.
5277 * DataGridViewSelectedRowCollection.cs: Changed argument names to
5278 fix corcompare errors. Code formatting.
5279 * ToolStripItemCollection.cs: Removed extra explicit interface
5280 implementation of IList.ReadOnly.
5281 * DataGridViewColumnCollection.cs: Changed argument names to fix
5282 corcompare errors. Code formatting.
5283 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
5284 * ListView.cs: Changed argument names to fix corcompare errors.
5285 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
5287 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
5289 * ListBindingHelper.cs: Changed argument names to fix corcompare
5291 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
5292 fix corcompare errors. Code formatting.
5293 * ToolStripPanel.cs: Removed extra explicit implementation of
5294 IDropTarget interface.
5295 * ListBox.cs: Changed argument names to fix corcompare errors. Code
5296 formatting. Removed extra tabs and spaces.
5297 * DataGridViewCellCollection.cs: Changed argument names to fix
5299 * Help.cs: Changed argument names to fix corcompare errors. Code
5301 * TabControl.cs: Changed argument names to fix corcompare errors.
5302 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
5304 * TableLayoutSettings.cs: Changed argument names to fix corcompare
5307 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5309 * ListBindingHelper.cs: When returning properties, only return those
5310 that are browsable. Also, don't do a linear search of the properties,
5311 but use the indexer of the PropertyDescriptorCollection class.
5313 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5315 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
5316 Dictionary containing the related (child) currency managers. Also,
5317 when setting DataSource, add datasource to our List if it is not a list.
5319 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5321 * PropertyGridTextBox.cs: Fix background color of the buttons.
5322 * PropertyGridView.cs: Make the entry less jumpy.
5324 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5326 * PropertyGrid.cs: Fix unused variable warnings.
5328 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5330 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
5331 double-click. It expanded it once in the mouse down and then
5332 again in the double-click handler.
5334 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5336 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
5337 TypeConverter and UITypeEditors.
5339 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5341 * Control.cs: Visibility should be set synchronously,
5342 so we must also redraw once it is and not rely on layouting or
5343 other code to repaint.
5346 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
5348 * DataGridViewCell.cs: Respect DataGridView.GridColor.
5350 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5352 * Control.cs: Invalidate when the alpha channel is less than 255,
5353 not only when control is transparent.
5355 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5357 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
5358 Implement some painting convenience methods that threw NIEX.
5360 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5362 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
5363 * DataGridViewLinkCell.cs: Implement.
5365 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5367 * GridEntry.cs: Report the conversion exception error description.
5370 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5372 * PropertyGridView.cs: Do not scroll to item on resize.
5375 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5377 * BindingContext.cs: When retrieving a BindingManagerBase, if the
5378 dataSource parameter is ICurrencyManagerProvider, then return
5379 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
5380 instead of creating a new one.
5382 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5384 * BindingSource.cs: Implement support for Type instances as
5387 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5389 * DataGridView.cs: Minor cleanups and call CellMouseUp.
5390 * DataGridViewCell.cs: Make some painting routines internally virtual.
5391 * DataGridViewButtonCell.cs: Implement.
5393 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5395 * Control.cs: We always need to invalidate our children with
5396 transparent backgrounds when we are invalidated.
5399 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5401 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
5402 and CancelCurrentEdit on CurrencyManager respectively. Implement
5403 support for ICancelAddNew too.
5405 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5407 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
5408 call EndNew/CancelNew if list is ICancelAddNew.
5410 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5412 * DataGridView.cs: Guard against an exception while painting
5413 if there are no rows.
5415 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5417 * DataGridView.cs: Implement a bunch of keyboard commands.
5419 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
5421 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
5422 isn't set, don't call OnPaint. [Fixes bug #375300]
5424 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5426 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
5427 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
5428 hookup the remaining events related to CurrencyManager, and fire
5429 OnListChanged also for the Clear () method.
5431 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5433 * BindingSource.cs: Use Current and Position implementations in
5434 CurrencyManager instead of using our own routines, since we need
5435 to be in synch with it. Count should NEVER return a -1 value, and
5436 also report ListChanged events for both simple IList data
5437 sources (manually) as well for IBindingList ones (by hooking up an
5438 event handler for it).
5440 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5442 * BindingSource.cs: Make one .ctor call the another, to avoid
5443 duplicate code. Add the CurrencyManager property, and also for AddNew
5444 throw the proper exceptions and show better error messages.
5446 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5448 * ComboBox.cs: Only adjust selectedindex if Handle has been
5449 created. Fixes failing test.
5451 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5453 * ComboBox.cs: Adjust selectedindex if we insert a new item
5454 above the current selectedindex in a sorted ComboBox.
5457 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5459 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
5462 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5464 * DataGridViewTextBoxCell.cs: Implement stuffs.
5466 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5468 * TreeView.cs: Create the scrollbars even earlier to be
5469 double dog certain they are created before they are accessed.
5471 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5473 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
5475 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5477 * ScrollBar.cs: Create an internal safe Value setter so we
5478 won't crash if we try to set a value outside the min and max.
5479 * TextBoxBase.cs: Use safe value setter to guard against a
5480 potential NRE that is being reported by Reflector.
5482 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5484 * TreeView.cs: Create the scrollbars earlier in the constructor
5485 to attempt to guard against an NRE in SetTop in Reflector.
5487 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5489 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
5490 DataGridViewRowCollection.cs: Do not scroll column and row headers,
5491 show messagebox on data format error, use column display index
5492 correctly, make sure HitTest supports new layout stuff,
5493 make sure scrollbars support new layout stuff.
5495 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5497 * XplatUIX11.cs : Patch by Doug Rintoul.
5498 For some IM engines, keypress events need to delay call
5499 to XPending() and XNextEvent() in the loop so that it
5500 does not mess the orders in XIM commit callback.
5501 Some KeyRelease events such as shift keys need to be
5502 processed both in the IM engine and winforms driver
5503 itself since winforms holds its own state check.
5505 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
5507 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5509 * X11Keyboard.cs, XplatUIX11.cs :
5510 add primitive support for XIM input support (preedit-
5511 nothing and status-nothing). It requires precise event
5512 capturing (XSelectInput/"filterEvents") and different
5513 call to XFilterEvent against root window.
5514 Get composed string and send dummy WM_IME_COMPOSITION.
5515 Free XIM and XIC instances in finalizer.
5517 (This first patch does not include suggested changes
5518 by Doug Rintoul. It will follow.)
5520 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5522 * DataGridView.cs: When binding to a property, if the property
5523 doesn't have a setter, set the column to readonly.
5526 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5528 * ComboBox.cs: Guard against NRE if an arrow key is hit while
5529 we aren't dropped down. Support Home/End in DropDownList mode.
5532 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5534 * TreeNodeCollection.cs: Don't increment count until we've
5535 saved our index to return.
5538 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5540 * Label.cs: Add padding to the label's AutoSize calculation.
5543 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5545 * ListBindingHelper.cs: Actually implement GetListName method.
5547 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5549 * BindingSource.cs: Throw the propert expceptions for some methods, as
5550 well as detect the list item type for Add method if DataSource is null.
5552 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5554 * DataGridViewCell.cs: I don't know why I commented this out,
5555 putting it back for now.
5557 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5559 * DataGridViewCell.cs: Remove storage for owning column, just
5561 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
5562 * DataGridViewColumnHeaderCell.cs: If the header text has been
5563 explicitly set, return it.
5566 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5568 * DataGridViewRowCollection.cs: Disable row sharing when
5569 using data binding. Its a great feature, but lets work on
5570 getting DGV usable first before we worry about optimizations.
5572 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5574 * BindingSource.cs: When resetting our internal list, compute list
5575 item type information to be used for indirect list access. Also
5576 implement/tune some properties and methods related to the list access
5578 * ListBindingHelper.cs: Add a stub for GetListName method, used from
5581 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5583 * DataGridView.cs: If RowCount is increased while ColumnCount
5584 is zero, add a column. [Fixes bug #331649]
5586 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5588 * DataGridViewRowCollection.cs: When adding new rows for
5589 databinding, make sure they are place before the add row.
5592 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5594 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
5595 instead of Index order.
5597 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5599 * DataGridView.cs: If columns are added by increasing ColumnCount,
5600 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
5603 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5605 * DataGridView.cs: Turn off and on the "new row" when
5606 AllowUserToAddRows is toggled. When the handle is created,
5607 set current cell and selected cell/row/col.
5609 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5611 * ComboBox.cs: When navigating the drop down by keyboard, we
5612 need to scroll the list box if our selection moves out of the
5613 currently shown items. [Fixes bug #371990]
5615 2008-03-24 Luke Page <luke.a.page@gmail.com>
5617 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
5618 on the control. Also now handles unicode compatibility characters and
5619 stores the unicode compatibility length on the stack. Fixes Bugs
5620 #355198 and #366436.
5622 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5624 * BindingSource..cs: Take into account DataMember when re-creating the
5625 List property, and also create a specific kind of list as needed.
5627 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5629 * ListBindingHelper.cs: Add a new case for GetList () method - when we
5630 get an empty IEnumerable, try to detect whether the datamember is
5631 valid or not for that type, if true, return null, and throw exception
5634 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
5636 * ComboBox.cs: Alt-Down should drop down the list, Esc should
5637 retract it. [Fixes bug #371989]
5639 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5641 * PropertyGrid.cs: Initialize the sorting button as pushed.
5643 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5646 - Visually select the PropertyTab.
5647 - Filter Properties by Attributes properly.
5649 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5651 * MenuItem.cs: Remove menu item from parent when disposed.
5654 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5656 * ToolBar.cs: Don't reset layout_type if Dock = None.
5658 2008-03-21 Andreia Gaita <avidigal@novell.com>
5660 * UserControl.cs: Select the first available control when we get focus.
5663 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5665 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
5666 the content if we are in edit mode. [Fixes bug #343964]
5668 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5670 * DataGridViewCell.cs: Fix border painting for column headers.
5672 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5674 * BindingSource.cs: When setting or resetting data source,
5675 use ListBindingHelper.GetList () method, since it will get the list in
5676 case datasource is IListSource.
5678 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5680 * DataGridViewCell.cs: Implement lots more stuffs.
5682 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5684 * PropertyGridView.cs, GridEntry.cs: Implement support for
5685 UITypeEditor.IsDropDownResizable.
5687 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5689 * DataGridViewCell.cs: Remove unused variables, improve how
5690 several of the property getters work.
5691 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
5692 get its size from the parent row/col.
5694 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5696 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
5697 user alters manually the PropertyTabs collection via the
5698 PropertyTabs property.
5700 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5702 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
5703 new tests for them to be sure to be compatible with .net.
5705 2008-03-20 Andreia Gaita <avidigal@novell.com>
5707 * WebBrowserBase.cs: Fix attributes, add events
5708 * WebBrowser.cs: Fix Padding signature
5710 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5712 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
5714 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
5716 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
5717 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
5718 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
5719 passes the new suite of tests for it.
5721 2008-03-18 Andreia Gaita <avidigal@novell.com>
5723 * WebBrowser.cs: Add missing attributes, missing Padding and
5724 DefaultSize properties, remove extraneous getters
5726 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5728 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
5731 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5733 * ComboBox.cs: Move resetting the selected index to keypress
5734 instead of textchanged. Changing the text programmatically
5735 should not trigger resetting the selected index. Fixes test.
5737 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5739 * ComboBox.cs: When the user types into the textbox, reset
5740 the selected index to -1. [Fixes bug #371672]
5742 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5744 * FileDialog.cs: Support Control-A for selecting everything
5745 in an OpenFileDialog. [Fixes bug #371564]
5747 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
5749 * DataGridView.cs: When row/column visible/height properties
5750 change, invalidate. Take the NIEX out of InvalidateRow/Column
5751 etc. We don't support them yet, but we can just invalidate
5752 everything until we do support them. (Added MonoTODO). Set
5753 proper control styles.
5754 * DataGridViewRow.cs: Don't call PaintHeader if row headers
5757 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5759 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
5761 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5763 * DataGridViewRow.cs: Only paint the white background in
5764 cell bounds, the row bounds extends past the cells if the
5765 grid width isn't as wide as the DGV.
5767 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5769 * DataGridView*: Completely revamp the drawing to match the
5770 public API. Our grids now look better, and call all the
5771 appropriate methods and event to allow users to override
5772 the painting and do their own.
5774 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5776 * ListBindingHelper.cs: Implement 2.0 GetList methods.
5778 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5780 * DataGridView.cs: Implement BorderStyle.
5782 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5784 * FileDialog.cs: Apply patch from Andy Hume: Any time we
5785 are comparing attributes, make sure we only look at the
5786 one we are interested. These calls were failing if there
5787 were more than one attribute.
5790 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5792 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
5794 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5796 * PageSetupDialog.cs: Stub EnableMetric.
5797 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
5798 * PrintPreviewDialog.cs: Add ProcessDialogKey,
5801 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5803 * MonthCalendar.cs: Remove unused variable.
5805 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5807 * DataGridView*.cs: corcompare stuffs.
5809 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5811 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
5812 The savings aren't worth the extra code to fix the optimization.
5815 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5817 * ToolBar.cs: Always call base.Dock in the Dock override so that
5818 Control's layout_type gets reset correctly.
5821 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
5823 * X11Dnd.cs: End DnD operation also for the middle mouse button.
5825 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5827 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
5828 at the same time we do explicit ones, because we have to give all
5829 other controls on the container a chance to handle explicit ones
5830 first. If no one has an explicit mnemonic, then we can let the
5831 MenuStrip have a shot at implicit mnemonics.
5832 * MenuStrip.cs: Create an implicit mnemonic function.
5833 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
5834 mnemonics for MenuStrips.
5837 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5839 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
5840 DataGridColumnStyle.cs: corcompare stuffs.
5842 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5844 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
5845 Details - This is needed after we added the bits to use any available
5846 column also for List and SmallIcon view.
5848 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5850 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
5851 at the proper place, not only when changing SelectedIndex and changing
5852 the selection using keys/mouse, as .net does.
5854 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5856 * ControlBindingsCollection.cs: Implement last 2.0
5857 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
5858 in the new 2.0 Add methods.
5860 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5862 * ListBox.cs: When calling SelectedIndexCollection.Clear,
5863 return if no items are previously selected - this is done to avoid
5864 firing OnSelectedIndexChanged without need to do so. Also,
5865 when creating handle ensure that the focused item is visible (as
5868 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5870 * ListBox.cs: Rewrote/refactored most of selection code. We require
5871 the following things in selection: a) keep selection sorted (both
5872 indices and items), b) SelectedIndices automatically detect the
5873 selection mode, c) SelectedIndex should be the first selected item
5874 index, d) Need to Focus/adjust scroll bar when selecting a new item,
5875 not only for SelectedIndex, which is specially important in Multi*
5876 selection modes. To achieve this we are moving the selection core to
5877 SelectedIndexCollection and make depend all selection modifications on
5881 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5883 * ToolStrip.cs: Enable implicit mnemonics for drop down
5884 menu strips. [Fixes part of bug #367692]
5886 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5888 corcompare - fix parameter names [stragglers].
5889 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
5890 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
5893 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5895 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
5896 was a mnemonic pressed as well as Alt. Also, if nothing handles a
5897 mnemonic, let the ToolStripManager have it even if it doesn't
5898 have a matching mnemonic.
5901 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5903 corcompare - fix warning about implicit implementation
5904 * ToolStrip.cs: Add IToolStripData interface.
5905 * IToolStripData.cs: Add.
5907 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5909 corcompare - fix warning about implicit implementation
5910 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
5913 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5915 corcompare - fix parameter names [N-Z].
5916 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
5917 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
5918 PropertyManager.cs, RichTextBox.cs,
5919 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
5920 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
5921 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
5922 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
5923 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
5924 ToolStripContentPanel.cs, ToolStripDropDown.cs,
5925 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
5926 ToolStripPanel.cs, ToolStripSeparator.cs,
5927 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
5928 UICuesEventHandler.cs, UpDownBase.cs.
5930 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5932 corcompare - fix parameter names [G-M].
5933 GridColumnStylesCollection.cs, GridItemCollection.cs,
5934 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
5935 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
5936 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
5937 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
5938 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
5940 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5942 corcompare - fix parameter names [A-F].
5943 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
5944 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
5945 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
5946 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
5947 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
5948 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
5949 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
5951 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5953 * GridEntry.cs: Do not convert not only if the types match,
5954 but also if the property type is assigneable from the value's
5958 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5960 * PropertyGridView.cs:
5961 - Subscribe to the listbox only once and not everytime.
5962 - Update the textbox even if SetValue fails.
5963 - Close the listbox before calling TrySetValue just in case.
5966 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
5968 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
5970 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5972 * ListView.cs: Implement support for custom column width based on
5973 Columns collection (we were previously using this collection only
5977 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5979 * ListViewItem.cs: For Tile view, always set bounds for the first
5980 subitem (which is the main one), and also don't let Width be larger
5981 than ListView.TileSize.Width. Improve code readibility also.
5982 * ThemeWin32Classic.cs: When painting the ListViewItem instances
5983 in Tile view, _always_ use the NoWrap flag.
5986 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
5988 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
5990 * GridEntry.cs: For MS compitability make all child properties
5991 readonly if the parent is readonly. Ugh.
5992 [Fixes bug #365945 and #365944]
5994 2008-02-29 Andreia Gaita <avidigal@novell.com>
5996 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
5997 relative to the history
5999 2008-02-29 Andreia Gaita <avidigal@novell.com>
6001 * HtmlElement.cs: More handlers for mouse and key events
6003 2008-02-28 Andreia Gaita <avidigal@novell.com>
6005 * WebBrowserBase.cs: MouseClick sig changed.
6006 * HtmlHistory.cs: Implement history navigation
6007 * HtmlElement.cs: Add event handlers, and connect them.
6009 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
6012 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
6013 so that DisplayNameAttribute doesn't get ignored.
6014 - Check for ParenthesizeNameAttribute and parenthesize the Label.
6015 - Add support for PasswordPropertyTextAttribute
6016 * PropertyGridView.cs: Check if an entry is a password.
6017 [Fixes bugs #365589, #365586, #365588]
6019 2008-02-28 Andreia Gaita <avidigal@novell.com>
6021 * PropertyGridView.cs: Revert the message filtering change, as we
6022 need it to block after all. Remove block parameter, unnecessary.
6024 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
6026 * UserControl.cs: Better implementation of GetPreferredSize.
6027 First step to fixing bug #361441.
6029 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6031 * Binding.cs: Actually implement data binding support for
6032 classes implementing IBindableComponent.
6033 * ControlBindingsCollection.cs: Likewise.
6035 2008-02-26 Andreia Gaita <avidigal@novell.com>
6037 * PropertyGridView.cs: Use a message filter to check when to
6040 2008-02-26 Andreia Gaita <avidigal@novell.com>
6042 * Application.cs: Change the message_filters loop so a filter
6043 can be removed while looping.
6045 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
6047 * GridEntry.cs: Optimization in ToggleValue so that it caches
6049 * PropertyGridView.cs: An optimization so that the property isn't
6050 re-read twice for each StandardValue added to the drop-down menu.
6051 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
6055 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
6057 * Application.cs: Apply patch from Justin Cherniak to match
6058 MS better for ProductName, ProductVersion, and CompanyName.
6061 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6063 * Binding.cs: Actually implement 2.0 NullValue property. Also
6064 when changing the formatting related properties, only update the state
6065 if formatting_enabled is true (we don't mind otherwise).
6067 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
6069 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
6072 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
6074 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
6075 of GetType on the current value as it uses reflection to
6076 determine the type. This fixes the case where the new value is
6079 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
6081 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
6084 2008-02-24 Luke Page <luke.a.page@gmail.com>
6086 * Line.cs, TextControl.cs: Implement offset x and y so that a
6087 document doesn't have to begin at (0,0) on the viewpoint.
6088 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
6089 bars and switches the text alignment (and therefore is now
6090 implemented for textbox). Fixes #321383.
6092 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6094 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
6095 properties. Also when changing FormattingEnabled update the control
6096 property -as .Net does-.
6098 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
6100 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
6101 * Binding.cs: Add stubs for the overloads of the Add method in
6104 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6106 * Binding.cs: PullData () returns a false value if we got an exception.
6107 Also when validating the control and we get an error, instead of
6108 setting the value of the previous one, cancel the event (tested in 1.1
6111 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
6113 * TreeView.cs: Make selected_node and highlighted_node internal.
6114 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
6115 to null when Nodes.Clear is called.
6118 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6120 * FontDialog.cs: Ensure that when the Font is set in code,
6121 all the gui pieces are updated accordingly.
6124 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6126 * TextRenderer.cs: Respect proposed size for MeasureString.
6127 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
6128 autosize, use a proposed width to force wrapping for long text.
6131 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6133 * TreeView.cs: Factor in checkboxes = false and state images in
6134 to HitTest. [Fixes bug #363360]
6136 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6138 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
6139 when drawing the selected range.
6142 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6144 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
6145 ResizeRedraw control styles.
6148 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6150 * TreeView.cs: StateImages are basically custom checkboxes, so
6151 factor their size the same as real checkboxes when determining
6155 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6157 * MessageBox.cs: Make the message box wider if the form caption
6158 is longer than the text in the form.
6161 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6163 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6165 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6167 * TreeNode.cs: Guard against an NRE when the parent's
6168 StateImageList hasn't been set.
6171 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6173 * SplitContainer.cs: Add SupportsTransparentBackColor and
6174 OptimizedDoubleBuffering control styles.
6177 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6179 * Application.cs: For the app data paths and the registry key paths,
6180 ensure they are created before returning them to the user.
6183 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6185 * Application.cs: Guard against an NRE in CompanyName and
6188 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6190 * Application.cs: For CompanyName, ProductName, and ProductVersion,
6191 make sure we handle all three cases correctly: attribute is present,
6192 attribute is present but is an empty string, and attribute is not
6195 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6197 * PropertyGridView.cs:
6198 - Fix a NRE that caused a test failure
6199 - Another performance improvement - cache the standard values
6202 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6204 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
6207 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
6209 * PropertyGridView.cs: Fix a big performance bug.
6211 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6213 * SelectionRange.cs: Apply patch from Andy Hume to make
6214 constructor behavior more accurate. [Fixes bug #362117]
6216 2008-02-19 Andreia Gaita <avidigal@novell.com>
6218 * Control.cs: Added a new flag is_disposing to track if the
6219 window is currently in the process of being disposed of.
6220 This is used so that, when firing visibility changes triggered
6221 by unparenting controls during Dispose, the control doesn't
6224 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6226 * ComboBox.cs: Set height to preferred height when the handle
6227 is created. [Fixes bug #360862]
6229 2008-02-18 Andreia Gaita <avidigal@novell.com>
6231 * XplatUIX11.cs: Create FosterParent with border width at 0.
6232 With the previous value of 4, everytime a control got reparented
6233 from parent = null, it's location would be shifted right and
6234 down by 4, since these coordinates would be offset by the
6235 FosterParent's border width.
6237 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
6239 * Control.cs: During diposing firstly remove ourselfes from
6240 the parent and *then* destroy our handle, because removing
6241 ourselfes from the parent controls collection causes
6242 VisibilityChange, etc events, which require a handle and end
6243 up recreating the control.
6245 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
6247 * GridEntry.cs: Set expanded state before notifying that the
6248 expansion has taken place.
6249 * PropertyGridView.cs:
6250 - Set the propertygridtextbox text to the selected
6251 StandardValue before proceeding to setting it.
6252 - Scrolling bugfixes.
6254 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6257 - Fix ValueText to not return null.
6258 - Fix conversion error reporting to actually happen.
6259 * PropertyGridView.cs: Set entry only if the text has changed.
6262 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6265 - Fix handling of a null current value.
6266 - Swallow editor exceptions.
6269 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6271 * PropertyGrid.cs: Clear current items first thing before
6272 repopulating subitems.
6274 - Handle null StandardValuesCollection.
6275 - Mark as not editable if there is no PropertyDescriptor and
6276 if the Converter cannot convert from string.
6277 [Part of fix for bugs #360666 and #358332]
6279 2008-02-15 Luke Page <luke.a.page@gmail.com>
6280 * MaskedTextBox.cs: Now skips non editable characters after a
6281 character has been entered and we are progressing to the next
6282 position in the MaskedTextBox.
6284 2008-02-15 Luke Page <luke.a.page@gmail.com>
6285 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
6286 that it changes the selection rather than just repositioning the
6287 cursor. Fixes Bug #360873.
6289 2008-02-15 Luke Page <luke.a.page@gmail.com>
6290 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
6291 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
6292 correctly. See #359330
6294 2008-02-15 Andreia Gaita <avidigal@novell.com>
6296 * XplatUIX11.cs: If the handle is null when posting a message, use the
6297 current thread queue to post instead. Fixes #332409
6299 * SendKeys.cs: Slight optimization
6301 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
6303 * PropertyGrid.cs, PropertyGridView.cs:
6304 Fix multiple scrolling and sizing issues.
6307 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6309 * PropertyGridView.cs: Ensure that drop down editors are shown
6310 in the WorkingArea of the screen.
6313 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6315 * GridEntry.cs: Fail silently when UITypeEditor is missing.
6318 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6320 * Binding.cs: Implement 2.0 DataSourceNullValue property.
6322 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6324 * PropertyGridView.cs:
6325 - Clear the controls in the drop down form after it is hidden.
6326 - Fix Width sizing of the dropdown editors to match MSFT.
6328 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6330 * PropertyGridView.cs:
6331 - Fix height for drawing the grid entry
6332 text value, so that it clips multiline text properly.
6333 - Fix unfocusing to match MSFT.
6335 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6337 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
6338 Fixes a bug where on repopulation after value changed items become
6341 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6343 * Binding.cs: For the 2.0 profile, look for a
6344 'PropertyChanged' event in the target control, and add checks for
6345 DataSourceUpdateMode property to change -or not- the data source
6346 from validation/control property change.
6348 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
6350 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
6351 not compare struct with null in 2.0).
6353 2008-02-10 Luke Page <luke.a.page@gmail.com>
6355 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
6356 updates the provider and if not using a provider, uses the internal document
6357 class implementation of password char. Also when showing text, uses display string
6358 from the provider, instead of the actual text.
6360 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6362 * Binding.cs: Ooooops, forgot to take into account the data_source
6363 and binding_member_info null case (it was breaking the Binding tests).
6365 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6367 * Binding.cs: Implement support for data source changes exposed by
6368 'PropertyNameChanged' events, and update the control property as
6371 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6373 * Binding.cs: Implement 2.0 WriteValue method.
6375 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6377 Commit patch from James Purcell for better AutoScale implementation:
6379 * ScaleControl should call GetScaledBounds with the control's total size rather
6380 than client size. GetScaledBounds should handle ignoring the borders in its
6381 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
6382 (for the most part they just call the base code now since that is fixed).
6383 * Added ScaleChildrenInternal to allow controls to disable scaling of children
6384 without having to override ScaleChildren (since none of .NET's controls do).
6385 This is required for most controls in Mono that have scrollbars to prevent the
6386 scrollbars from being moved/resized.
6387 * Nested ContainerControls can have a different scale mode than their parent.
6388 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
6389 designer produce different results both of which look incorrect).
6390 * Default AutoScaleMode for ContainerControl should be Inherit.
6391 * Simplified workaround for ComboBox scaling issue.
6392 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
6393 1.0 style auto scaling should scale the whole control's size instead of
6394 ignoring the borders (except for Form) and the rounding is done differently to
6395 preserve control alignment.
6396 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
6398 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
6399 * CurrentAutoScaleDimensions should round the estimated character width instead
6401 * ListBox's GetScaledBounds should always use the height it was set to instead
6402 of the height that was passed in. This prevents rounding errors from
6403 accumulating quickly with IntegralHeight.
6406 2008-02-08 Andreia Gaita <avidigal@novell.com>
6408 * Form.cs: Add a null check (darn it).
6410 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6412 * MdiClient.cs: Make sure the requesting form actually owns the
6413 control menu items before removing them. Also, use
6414 Suspend/ResumeLayout when adding or removing items so we only
6418 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6420 * Control.cs: Guard against an NRE in ShowFocusCues.
6423 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6425 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
6426 property, as well as stubbing DataSourceUpdateMode.
6428 2008-02-08 Andreia Gaita <avidigal@novell.com>
6430 * Form.cs: When closing forms, get focus back to the active control of the
6431 active form. [Fixes #341314, corner case]
6433 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6435 * MdiClient.cs: After we move the scrollbars, invalidate the NC
6436 area, so any old scrollbar artifacts are cleaned up.
6439 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6441 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
6442 for our menus, display that control box menu instead of the 1.1
6445 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6447 * MdiControlStrip.cs: Add property to access the mdi form tied to
6449 * MdiClient.cs: Be smarter about removing and adding toolstripitems
6450 to the implicitly merged menu. Every time we clicked the form, items
6451 were getting removed and the re-added, causing the form to jump around
6452 as the menu resized.
6454 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6456 * MdiClient.cs: Make sure the NormalBounds always gets set. It
6457 was being reset by the implicit menu merge for menustrips.
6460 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6462 * Form.cs: Don't do the previous change when WindowState = Normal,
6463 or it messes up where the window is placed. Fixes test failure.
6465 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6467 * Form.cs: When becoming visible, if we are an MDI child, call
6468 SetWindowState with a dummy old_state so that changes will actually
6470 [Fixes the 2nd part of bug #325473]
6472 2008-02-07 Andreia Gaita <avidigal@novell.com>
6474 * Control.cs: Reset properties to their pre parent-change values in case
6475 the new parent == null (in which case we're basically removing the control,
6476 and don't want any events fired due to fake property changes)
6479 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
6481 * PropertyGridView.cs:
6482 - Refactor SetValue to allow setting the value
6483 when a custom editor is used, but the entry is not editable.
6484 - Remove the custom editor control on CloseDropDown.
6487 2008-02-06 Andreia Gaita <avidigal@novell.com>
6489 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
6490 reflection only on 1.1, this property is public on system.drawing on 2.0.
6493 2008-02-06 Andreia Gaita <avidigal@novell.com>
6495 * WebBrowser.cs: Do a normal page refresh by default.
6497 2008-02-05 Andreia Gaita <avidigal@novell.com>
6499 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
6500 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
6501 platforms. Fixes #359036
6503 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
6504 platform-specific flags.
6506 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6508 * Binding.cs: Add 2.0 BindableComponent property - just return control
6511 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
6513 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
6514 Jonathan for this patch. Fixes #358442.
6516 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
6518 * Form.cs: If we change the active MDI child form, let the others
6519 know they need to repaint their title bar so it will appear inactive.
6520 [Fixes part 1 of bug #325473]
6522 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
6524 * PropertyGridView.cs: Do not trucate custom editors' width
6525 and align them to the left.
6526 [Fixes #358353 and #358349]
6528 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6530 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
6531 Also fix the arguments passed to CollectionChangeEventArgs in the
6534 2008-02-04 Geoff Norton <gnorton@novell.com>
6536 * Hwnd.cs: The conversion to Quartz coordinates happens in
6537 System.Drawing. Removing this translation from here.
6539 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6541 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
6542 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
6543 GridItemCollection.cs:
6544 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
6546 2008-02-04 Geoff Norton <gnorton@novell.com>
6548 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
6549 SYSKEYUP if any other key has been pressed in the mean time.
6552 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6554 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
6555 when the item in current position is different than 0. Also, save the
6556 item index in the beginning of the operation, instead of getting the
6557 index of the item when the event is actually performed. Lastly clean
6558 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
6562 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6564 * Form.cs: Alt-Minus for MDI children system menu should work
6565 with both the minus keys on the keyboard.
6568 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6570 * Control.cs: Don't invalidate on region change. The WM should
6571 take care of this automagically. Keeps us out of an infinite
6572 paint loop if someone changes the Region in the OnPaint.
6575 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6577 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
6579 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6581 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
6582 down the MonthCalendar only on F4, not Alt+F4.
6583 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
6586 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6588 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
6589 if its part of a DateTimePicker, else, use the back color.
6592 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6594 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
6597 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6599 * CurrencyManager.cs: When we get a ListChanged event from our source,
6600 always fire our own ListChanged event, as .Net does.
6602 2008-02-03 Luke Page <luke.a.page@gmail.com>
6604 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
6607 2008-02-03 Luke Page <luke.a.page@gmail.com>
6609 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
6610 property. Removed if for richtext property that was always true.
6611 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
6613 2008-02-03 Luke Page <luke.a.page@gmail.com>
6615 * TextBoxBase.cs - commited patch from James Purcell that
6616 correctly sets the FixedHeight control style when the MultiLine
6617 property is changed on a TextBox control. Fixes bug 358229.
6619 2008-02-02 Luke Page <luke.a.page@gmail.com>
6621 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
6622 Fixes bug 351938 - caret is positioned correctly when drawn
6623 and when calculating textual position of caret, no longer
6624 has a NRE in certain situations.
6626 2008-02-01 Geoff Norton <gnorton@novell.com>
6628 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
6629 get that region removed from the paint event.
6630 * XplatUICarbon.cs: Remove the window mapping after disposing of
6631 window. Prevents a crash with handle reuse. Optimize exposes
6632 only onto visible windows (rare; but possible).
6634 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6636 * UpDownBase.cs: Make sure the internal textbox calls the base's
6637 OnMouseDown and OnMouseUp so the textbox will function correctly.
6638 There were notes saying it doesn't chain up, but its an internal
6639 class, so our implementation may differ.
6642 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6644 * ListBox.cs: Fix a logic error and don't process MouseDown
6645 for mouse buttons other than Left.
6647 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6649 * Control.cs: Remove HeightInternal.
6650 * ListBox.cs: Commit patch from James Purcell that correctly
6651 calculates heights for ListBoxen.
6654 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6656 * Label.cs: Apply patch from James Purcell that corrects the
6657 signature of the AutoSize property.
6660 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6662 * ListBox.cs: Don't throw [Mouse]Click events for buttons
6663 other than the left mouse button.
6665 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
6667 * Control.cs: Remove my awesome optimization as it caused some
6668 regressions with control ordering. :(
6671 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
6673 * PropertyGridView.cs: Fix a NRE on double click when there is no
6676 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6678 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
6680 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
6682 * ListBox.cs: Call MouseClick and MouseDoubleClick.
6685 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6687 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
6688 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
6689 instead of Hwnd.bmp_g.
6691 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6693 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
6694 Use the Hwnd one instead.
6696 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6698 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
6700 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6702 * Form.cs: corcompare for RestoreBounds.
6704 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6706 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
6708 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6710 * Form.cs: Handle Alt-Minus for MDI children forms.
6711 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
6712 Add mnemonics to the control menu.
6715 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6717 * Binding.cs: Initial implementation bits of FormattingEnabled
6718 property and BindingComplete event (2.0).
6719 * BindingCompleteEventArgs.cs: Internal methods for setting error text
6722 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6724 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
6725 table.Location. [Fixes bug #354672]
6727 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6729 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
6730 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
6732 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6734 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
6735 of doing all the re-bound work, just invalidate and call SetControlText
6736 to set the updated text of selected item to our textbox.
6739 2008-01-28 Andreia Gaita <avidigal@novell.com>
6741 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
6742 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
6743 missing properties and methods. Add Load, Unload, Error, GotFocus,
6744 LostFocus, Resize, Scroll events (only load and unload are connected)
6746 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
6748 * AccessibleObject.cs: Modified argument names to match MS.
6749 * Button.cs: Modified argument names to match MS.
6750 * BindingContext.cs: Modified argument names to match MS.
6751 * BindingMemberInfo.cs: Modified argument names to match MS.
6752 * ButtonBase.cs: Modified argument names to match MS.
6753 * ComboBox.cs: Modified argument names to match MS.
6754 * Control.cs: Modified argument names to match MS.
6755 * CheckedListBox.cs: Modified argument names to match MS.
6756 * CommonDialog.cs: Modified argument names to match MS.
6757 * DataGrid.cs: Modified argument names to match MS.
6758 * CursorConverter.cs: Modified argument names to match MS.
6759 * ControlPaint.cs: Modified argument names to match MS.
6760 * CheckBox.cs: Modified argument names to match MS.
6761 * ControlBindingsCollection.cs: Modified argument names to match MS.
6762 * BindingSource.cs: Modified argument names to match MS.
6763 * DataFormats.cs: Modified argument names to match MS.
6764 * ContainerControl.cs: Modified argument names to match MS.
6765 * CurrencyManager.cs: Modified argument names to match MS.
6766 * Application.cs: Modified argument names to match MS.
6767 * ContextMenuStrip.cs: Modified argument names to match MS.
6768 * ContextMenu.cs: Modified argument names to match MS.
6769 * BindingManagerBase.cs: Modified argument names to match MS.
6770 * WindowsFormsSection.cs: Fixed line ending.
6772 2008-01-27 Andreia Gaita <avidigal@novell.com>
6774 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
6775 detecting that the dropdown toolwindow is hidden. EndLoop outside the
6778 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
6780 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
6781 MS. Code formatting.
6783 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6785 * Binding.cs: Don't avoid the Format event if the control
6786 property type is object. Also, if the value retrieved by
6787 the data source is null _and_ the control proeprty type
6788 is object, return Convert.DBNull (match .Net).
6789 Fixes part of #324286.
6791 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6793 * ListControl.cs: Since we are getting two BinginContextChanged events
6794 for the same binding context instance (when the control is added to
6795 form, and when the form is actually shown), take it into account only the
6796 first time for a given binding context instance.
6797 Fixes part of #324286.
6799 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6801 * PropertryGridView.cs: Ops.
6803 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6805 * PropertyGridView.cs: Close dropdown form if the owner form is
6809 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
6811 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
6812 RootGridEntry.cs, CategoryGridEntry.cs:
6813 PropertyGrid rewrite.
6814 - Rewrite all of the control logic in PropertyGrid.
6815 - Rewrite all of the ComponentModel logic in GridEntry.
6816 - Rewrite all UI work in PropertyGridView.
6817 - Many bugfixes, etc.
6819 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
6821 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
6822 when all contained controls are autosize or dock-fill. Also take into
6823 account when the total percentage of column/row sizes is not 100%.
6826 2008-01-24 Andreia Gaita <avidigal@novell.com>
6829 - Save a reference to the IDocument in the instance and
6830 use that one instead of going to WebHost.Document; the document that the
6831 WebHost returns might not be the right one (in case of frames).
6832 - Use the hashcode returned from the IDocument interface.
6833 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
6834 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
6835 LinkColor, Url, VisitedColor, Window
6838 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
6839 set_Attribute, NextSibling, Parent, TagName, AppendChild,
6840 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
6841 SetAttribute, Equals, equality operators.
6842 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
6843 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
6845 * HtmlElementCollection.cs: Change implementation to use a generic
6846 collection. Implemented Enumerator and CopyTo
6848 * HtmlHistory.cs: Add constructor, no implementation yet.
6850 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
6851 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
6852 Equals, equality operators.
6854 * HtmlWindowCollection.cs: Implemented.
6856 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
6857 has been deprecated).
6859 * WebBrowserBase.cs: Use Completed event to track document loading
6860 (Navigated has been deprecated)
6862 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
6864 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
6865 level MenuItems do not respect tabs.
6868 2008-01-23 Geoff Norton <gnorton@novell.com>
6870 * XplatUICarbon.cs: Ensure that windows are created in their initial
6871 FormWindowState. Finished fixing Fullscreen windows on Carbon
6873 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6875 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
6876 be used as grab_control. Also save status of capture before show ContextMenu
6877 and restore it after close.
6879 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6881 * Control.cs: Internal FindRootParent method added to return high control
6884 2008-01-23 Geoff Norton <gnorton@novell.com>
6886 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
6887 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
6888 it work again. Handle HITTEST events.
6890 2008-01-23 Geoff Norton <gnorton@novell.com>
6892 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
6893 a crash in certain cases. Support for fullscreen windows in certain cases.
6895 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
6897 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
6900 2008-01-23 Geoff Norton <gnorton@novell.com>
6902 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
6904 2008-01-23 Geoff Norton <gnorton@novell.com>
6906 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
6908 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6910 * SplitContainer.cs: Remove unused declarations.
6911 * Binding.cs: Remove unused declarations.
6913 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6915 * Form.cs: Remove unused declaration of 'active' in Activate method.
6916 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
6917 prevent compilation warnings.
6918 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
6919 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
6920 * Bindings.cs: Remove unused formatting_enabled declaration.
6921 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6923 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6925 * PropertyGridView.cs: Remove usused 'ex' declaration.
6926 * DataGridView.cs: Remove unused declarations.
6928 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6930 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
6932 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
6933 to Control class, it makes possible to grab menu to controls that can't
6934 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
6935 WmMouseMove removed since it was used only to track menu events.
6938 - Moved all active_tracker stuff from Form.
6939 - ProcessActiveTracker added to prevent code duplicity, now mouse events
6940 can call this method instead of reimplement all necessary code handle for
6942 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
6946 - Remove special handle to ToolStripOverflow, now we can grab menu to
6947 controls that can't reach Form using parent tree.
6948 - Change type of grab_control from Form to Control.
6950 2008-01-22 Geoff Norton <gnorton@novell.com>
6952 * TextBoxBase.cs: Split up the sizing of controls and placing of
6953 controls. Fixes a bug where scrollbars in Reflector could be sized
6954 wrong and have non-working thumbers.
6956 2008-01-23 Geoff Norton <gnorton@novell.com>
6958 * XplatUI.cs: Refactor environment variables to default support to the
6959 Carbon driver on the Mac.
6961 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6963 * Label.cs: Uses new LabelPainter for drawing operations.
6964 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
6965 * Theme.cs: DrawLabel and LabelDefaultSize removed.
6967 2008-01-22 Geoff Norton <gnorton@novell.com>
6969 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
6971 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6973 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
6974 through the normal flat button code and don't draw the checkbox glyph.
6975 * Theme.cs: Button->ButtonBase signature change.
6978 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6980 * LinkLabel.cs: Uses new class LinkLabelPainter.
6982 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6984 * MessageBox.cs: Adjust right border space, we don't need to add
6985 "space_border*2" two times.
6987 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6989 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
6990 becomes a wrapper around Padding.
6991 [Fixes a part of bug #354676]
6993 2008-01-22 Geoff Norton <gnorton@novell.com>
6995 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
6996 acquired. Also ensure the buffer is large enough to grab the header
6997 we need on linux boxes.
6999 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
7001 * Control.cs: Implement a custom enumerator so people can delete
7002 from the Controls collection while in a foreach.
7005 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7007 * PropertyGridView.cs: Fix focusing behavior:
7008 - Tab should focus the grid text box.
7009 - Clicking on the labels shouldn't focus the grid text box.
7011 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7013 * PropertyGridView.cs: IsValueTypeGridItem should return true
7016 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7018 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
7019 - Renamed GridEntry.SelectedObjects to TargetObjects to better
7020 reflect the property name role.
7021 - PropertyGrid.GetTarget is not required as the target is known
7023 - Setting values will handle value types as a special case now and
7024 populate them up in the chain.
7027 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
7029 * Hwnd.cs: Create a public property for the Graphics we keep around.
7031 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
7033 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
7034 when the current object selection changes.
7035 Fixes failing test SelectedObject_Null2.B5.
7037 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
7039 * PropertyGrid.cs: Process Browsable properties with
7040 DesignerSerializationVisibilityAttribute.Content as being expandable.
7041 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
7042 will not be expandable. We should be nested components-friendly now.
7044 2008-01-21 Andreia Gaita <avidigal@novell.com>
7046 * WebBrowserBase.cs: Check if control was loaded properly,
7047 don't bind if it wasn't.
7049 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
7050 GetElementFromPoint, equality operators, OpenNew, Write.
7051 Remove extra set_Body
7053 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
7055 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
7056 that makes our AutoScale* stuff more tolerant to different orders
7057 of being set. [Fixes bug #354669]
7059 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
7061 * PropertyGridView.cs, PropertyGridTextBox.cs:
7062 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
7063 [Fixes #339005 and #348209]
7065 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
7067 * PropertyGridView.cs: Hide the grid text box before adjusting it
7068 for the newly selected GridItem.
7071 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
7073 * Form.cs: Give MDI children the opportunity to cancel the parent form
7074 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
7075 properly for both the parent and child.
7076 * Application.cs: Signature of internal method changed, pass the previous
7080 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
7082 * PropertyGridView.cs: Set the property value only if it has changed.
7085 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
7087 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
7088 If the mouse hasn't actually moved, ignore these messages so the currently
7089 highlighted menuitem isn't reset to the one under the mouse.
7092 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
7094 * PropertyGridView.cs: When the property changes Invalidate the GridItem
7095 in order for the properties with UITypeEditor.GetPaintValueSupported == true
7096 to reflect the change visually.
7099 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
7101 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
7102 to 2.0 button drawing.
7103 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
7104 the button text is tall enough for one line. LineLimit says it will
7105 always draw at least one line, but it is a lie.
7108 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
7110 * XplatUIStructs.cs, X11Keyboard.cs :
7111 added some more VK_* keys to be handled.
7113 2008-01-16 Andreia Gaita <avidigal@novell.com>
7115 * Control.cs: Check if there is a container before setting or getting
7116 the validation flag.
7118 2008-01-16 Andreia Gaita <avidigal@novell.com>
7120 * ContainerControl.cs: Add flag to track if a control cancels validation,
7121 so we don't fire click events.
7124 - (HandleClick) Check if validation was cancelled before firing the click
7125 events (doubleclicks are fired, but not clicks)
7126 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
7127 ContainerControl.set_ActiveControl, but in the case of non-selectable
7128 controls, like a Label, activecontrol is not set.
7130 * ButtonBase.cs: Only fire clicks if validation passes.
7134 2008-01-16 Geoff Norton <gnorton@novell.com>
7136 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
7139 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
7141 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
7142 SelectedPath, just display the default dialog instead of crashing.
7145 2008-01-16 Geoff Norton <gnorton@novell.com>
7147 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
7148 AddExpose instead of trusting apples compositing manager which doesn't
7149 work for our use case. Remove some dead code causing warnings and
7150 redecorate some other code to prevent warnings.
7152 2008-01-16 Geoff Norton <gnorton@novell.com>
7154 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
7155 carbon signals us to redraw. Fixes another portion of the flickering bug
7157 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7159 * Form.cs: Prevent the MdiParent property to be set when value is the same
7160 as value already set. Fixes bug #328019.
7162 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7164 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
7165 it prevents NRE when closing mdi child windows. Fixes bug #325211.
7167 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7169 * InternalWindowManager.cs: Invalidade close button after mouse up when
7170 mdi form is prevented to close.
7172 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7174 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7175 thanks to Andy Hume. Fixes bug #325433.
7177 2008-01-16 Andreia Gaita <avidigal@novell.com>
7179 * LinkLabel.cs: Reset focused_index when resellecting the control.
7182 2008-01-15 Geoff Norton <gnorton@novell.com>
7184 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
7187 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7189 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7192 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7194 * ContainerControl.cs: Setting AutoScaleMode to anything should set
7195 Form.AutoScale to false.
7196 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7197 AutoScaleBaseSize should be changed on Font change unless it has been
7201 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7203 * MenuAPI.cs: On instance of MenuTracker check if source control is
7204 ToolStripOverflow and use properly method to find form.
7207 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7209 [Fixes bug #323241 Transparent toolbar support]
7211 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
7214 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
7215 defined in control style to mimic win32 behavior.
7217 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
7218 it will be transparent.
7220 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7222 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
7223 CreateParams for ToolBar controls.
7225 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7227 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
7228 FixedToolWindow, SizeableToolWindow, or None for border styles have
7229 different minimum sizes than regular forms. Implemented to fix
7230 regression in PDN with toolbox being too wide.
7232 2008-01-14 Andreia Gaita <avidigal@novell.com>
7234 * HtmlElementCollection.cs: Implemented
7236 * HtmlElement.cs: Implemented:
7244 * HtmlDocument.cs: Implemented GetElementsByTagName.
7246 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7248 * Screen.cs: Stub BitsPerPixel to always return 32.
7250 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7252 * Form.cs: Implement RestoreBounds.
7254 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7256 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
7257 Sebastien and his fabulous magical problem-finding machine:
7258 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
7259 respect the value set.
7261 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7263 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
7264 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
7266 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7268 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
7269 messages (to match .Net), we need to remove the capture ourselves.
7271 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
7273 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
7274 will process the message and close our window.
7277 2008-01-10 Geoff Norton <gnorton@novell.com>
7279 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
7280 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
7283 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7285 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
7288 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7290 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
7291 Linux doesn't care, having a minimum matches MS and keeps the window
7292 from becoming too small to use window decorations.
7295 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7297 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
7298 ShowFocusCues. Make focus rectangles fit the text instead of the whole
7299 control. [Fixes bug #325419]
7301 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7303 * ComboBox.cs: Guard against an NRE if the user open a new form from a
7304 SelectedIndexChanged event. This closes the combobox dropdown, and we
7305 were trying to dispose it. [Fixes bug #352830]
7307 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7309 * Control.cs, Form.cs: Implement the necessary semantics for
7310 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
7311 to determine if a focus rectangle should be drawn.
7312 * PropertyGrid.cs: Fix property visibility to match override.
7313 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
7315 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7317 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
7320 2008-01-09 Geoff Norton <gnorton@novell.com>
7322 * XplatUICarbon.cs: Scroll windows in the correct direction.
7324 2008-01-09 Geoff Norton <gnorton@novell.com>
7326 * XplatUICarbon.cs: Track all created utility windows so we can hide them
7327 when the app is deactivated or spaces is enabled.
7329 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7331 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
7332 extra separation pixel for the label rect origin if SmallImageList is
7333 null, and thus we don't need that separation between icon and label
7335 Patch by Ernesto Carrea.
7338 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
7340 * StatusStrip.cs: Invalidate after completing a layout. The base
7341 OnLayout does this, but we don't call the base.
7342 * ToolStripItem.cs: Revert the previous change to invalidate after
7344 [Fixes bug #351341 better.]
7346 2008-01-07 Geoff Norton <gnorton@novell.com>
7348 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
7349 not a notification to exit the application. Listen for WM_QUIT
7352 2008-01-07 Andreia Gaita <avidigal@novell.com>
7354 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
7356 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
7358 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
7359 so it can repaint at the correct location.
7362 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7364 * ListControl.cs: SelectedValue should return a null value if
7365 SelectedIndex is -1. Also, when setting it, it should throw an
7366 ArgumentNullException if the value is null, as well as taking
7367 into account the String.Empty value, instead of ignoring it (we have
7368 tests for that now).
7369 Fixes part of #324286.
7371 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
7373 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
7374 SelectionStart is updated after pressing enter. Fixes bug #351918.
7376 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7378 * TextControl.cs: Revert a piece r92316 that prevented the fix
7379 from working when there were multiple tags in the text box.
7382 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7384 * TextControl.cs: Apply patch from Luke Page that prevents an
7385 NRE when determining the beginning of a paragraph.
7388 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7390 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
7391 caret gets moved with clicking away from a selected block of
7392 text. Fixes bug #351885.
7394 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7396 * TextControl.cs: Apply patch from Luke Page that takes line
7397 alignment into account for mouse selection, so that center and
7398 right aligned text can be selected.
7401 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7403 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
7404 issues after loading an RTF file by using the correct line feeds.
7407 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7409 * TextControl.cs: When deleting multiple line selections, we need
7410 to invalidate every line beginning at the first line of the selection.
7411 Patch from Luke Page fixes bug #351791.
7413 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7415 * ListControl.cs: When getting a CurrencyManager.PositionChanged
7416 event, don't set SelectedIndex if the number of items is 1. This is
7417 because, for the first item, PositionChanged is fired _before_
7418 ItemChanged (the place where we actually populate the items), and
7419 leave us in a temporary invalid state (since items collection is
7423 2008-01-04 Geoff Norton <gnorton@novell.com>
7425 * XplatUICarbon.cs: Create native toolwindows instead of
7426 the managed drawing ones.
7428 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7430 * LineTag.cs: If the line doesn't have any characters, return
7431 0 for GetCharIndex. Fixes an AOORE exception after certain
7432 caret movements. Fixes bug #351683. Patch by Luke Page.
7434 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7436 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
7437 is hit when there is selected text, only the selected text gets
7438 deleted, not the character in front of the selection as well.
7441 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7443 * ComboBox.cs: When the values are displayed, calculate the
7444 ComboListBox scrollbar's LargeChange based on the visible area's
7445 height and the actuall ItemHeight, instead of calculating it
7446 based on MaxDropItems value, since it's not used by our _current_
7450 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7452 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7453 Patch from Luke Page that fixes issues with font colors and styles
7454 not showing up in a readonly RichTextBox. Fixes bug #324354.
7456 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7458 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
7459 from Luke Page. This one fixes bug #349926.
7461 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7463 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
7464 an item in the IBindingList source changes with
7465 ListChangedType.ItemAdded. Ignore for now firing the event for other
7466 changes, since we want to have tests for those cases as well.
7468 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7470 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
7473 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7475 * TextBoxTextRenderer.cs: Implement a cache for measuring each
7476 character. This is effective because the typical usage of a
7477 TextBox is with a limited amount of fonts and characters, and
7478 the current implementation of TextBox measures everything one
7479 character at a time. Another second or two speedup for bug #347238.
7481 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7483 * Control.cs: Rewrite the Font getter to only query the parent's
7484 Font property once instead of twice. Since this operation is
7485 recursive, the queries were growing exponentially as the control
7486 tree got deeper. Another second or two speedup for bug #347238.
7488 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7490 * Control.cs: Avoid setting a parent (and more importantly, updating
7491 the zorder of all its children) if the parent is already correct in
7492 WmShowWindow. Decreases the startup time of the test case on bug
7493 #347238 from 35 seconds to 11 seconds.
7495 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7497 * X11Dnd.cs: When the dnd operation has started and we are
7498 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
7499 This is done to match .Net, which doesn't send those messages after
7500 dnd operation was completed/cancelled.
7503 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7505 * ToolStrip.cs: Previous change should be != null, not == null.
7508 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7510 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
7511 user may have moved the mouse off the current item during the event.
7513 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7515 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
7516 calling GetItemAt for every MouseMove event by also taking into
7517 account whether any mouse button is pressed (probably dragging);
7518 if so, we can call GetItemAt, and if not, try to not call it
7519 (GetItemAt can be quite expensive when used with a large number of items).
7521 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7523 * ListView.cs: Implement -finally- support for dnd, by calling
7524 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
7526 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
7527 simple calculation of distances for all the items in the owner
7530 2007-12-21 Geoff Norton <gnorton@novell.com>
7532 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
7533 for windows that are originally created as invisible. Fixes missing
7534 main window in paint-mono.
7536 2007-12-21 Geoff Norton <gnorton@novell.com>
7538 * XplatUICarbon.cs: Register our D&D handler. Register our custom
7539 subclass handler for com.novell.mwfview subclassing HIView. Implement
7540 Pasteboard and Dnd methods.
7542 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7544 * ListBox.cs: When we got focus, give focus to first item if there
7545 wasn't any pervious focused item. Also update navigation to depend on
7546 SelectedIndex rather than FocusedItem, just as .Net does.
7549 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7551 * ListBox.cs: Both FindString and FindStringExact methods must do an
7552 case insensitive search, should allow the last valid index to be
7553 passed in the overload taking an initial index, and should also
7554 continue searching from the top back to the specified index when it
7557 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7559 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
7560 redraw issue, and allows RichTextBox to draw colored text even while
7561 disabled or readonly.
7563 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7565 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
7566 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
7567 and doesn't grey text in a disabled RichTextBox.
7569 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7571 * RichTextBox.cs: Apply patch from Luke Page that adds better support
7572 for many RTF commands: quad alignment, separate formatting for blocks
7573 inside groups, and ParDef support. Makes the test case from bug #324589
7576 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7578 * LineTag.cs: Fix an error in the new Draw method that caused
7579 a crash when rendering the document on bug #324589.
7581 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7583 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
7584 TextControl.cs: Apply patch from Luke Page that adds support
7585 for URL links in RichTextBox.
7586 [Fixes enhancement #342516]
7588 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
7590 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
7591 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
7593 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7595 * ListBox.cs: When a key gets pressed, try to find a string
7596 if the key is a character or a digit.
7599 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7601 * TableLayoutPanel.cs: Remove some unused variables.
7603 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7605 * DateTimePicker.cs: Commit patch from Luke Page that ensures
7606 we don't end up at an invalid date when we click the up/down
7607 spinner to change the month or year. Fixes bug #348682.
7609 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7611 * Application.cs: Calling Exit in 2.0 should chain to the
7612 Exit (CancelEventArgs) version so it can be cancelled.
7613 * Form.cs: Create a flag to allow raising the Closing
7614 events to be skipped. We raise them once in Application.Exit
7615 and don't want to raise them again when the Form is actually
7616 closed. [Fixes bug #349073]
7618 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
7620 * ToolStripDropDown.cs: Guard against an NRE when there
7621 hasn't been a mainform set in the application context.
7624 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7626 * ListBox.cs: When SetBoundsCore gets called, besides
7627 calling UpdateScrollBars, update the value of
7628 last_visible_index, since we could need to show more items
7629 than before, and we need to let the paint routines know that.
7632 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7634 * ListView.cs: Add DesignerSerializationVisibility attribute to
7635 InsertionMark property.
7636 * ListViewItem.cs: Add same attribute to Position property.
7638 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7640 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
7643 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
7645 * ThemeWin32Classic.cs: Don't draw the background on a
7646 flat button if there is a background image.
7649 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7651 * ListBox.cs: If we remove the item currently selected,
7652 remove it not only from SelectedItems, but also
7653 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
7654 the items count decreased and focused_item has bigger value than that.
7656 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7658 * Control.cs: Perform our layout after we resize ourselves
7659 if we had to adjust our AutoSize. Missed commit for bug
7662 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7664 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
7665 we can provide an implementation of AutoSize.
7668 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7670 * ListBox.cs: Add the internal overload Sort (bool paint),
7671 to indicate whether we actually need a paint or we will
7672 call Refresh ourselves. This way we don't request a paint
7673 _before_ having an updated and valid layout.
7676 2007-12-12 Andreia Gaita <avidigal@novell.com>
7678 * XPlatUIX11.cs: Send paint messages when updating a systray icon
7679 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
7680 properly invalidated.
7683 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7685 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
7686 don't simply assign it to our internal group field, but instead
7687 use our Group property, which should do all the neccessary work
7688 required to support groups. Fixes an issue reported to me (mail) by a
7689 guy using this new feature.
7691 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
7693 * Control.cs: Use Scale instead of ScaleControl to ensure the
7694 whole hierarchy gets scaled.
7697 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7699 * DateTimePicker.cs: Don't set the internal MonthCalendar's
7700 Parent property. Doing this causes the control to be hosted by
7701 the Form instead of being a popup window.
7704 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7706 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
7707 at an index higher than Count, just use Add instead of Insert.
7710 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7712 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
7713 DrawPictureBox, this is handled by Control.PaintBackground.
7716 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
7718 * MenuAPI.cs: When process menu keys return true by default only if menu is
7719 active. Fixes bug #342892.
7721 2007-12-09 Andreia Gaita <avidigal@novell.com>
7723 * Control.cs: check if windows are actually mapped before
7724 trying to zorder. Fixes #342509, #346955
7726 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7729 * ListViewInsertionMark.cs:
7730 * ThemeWin32Classic.cs: Implement the drawing side of the
7731 new 2.0 ListView.InsertionMark property.
7733 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
7735 * CurrencyManager.cs: Silence some debug spew.
7737 2007-12-07 Geoff Norton <gnorton@novell.com>
7739 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
7740 masks for our children as well as siblings to avoid having to query
7741 Quartz for this information.
7742 * XplatUICarbon.cs: Implement a delegate based system to pass
7743 information to System.Drawing. Implement Async methods. Remove
7744 the hack for the resize thumb and imlpement a transparent Grow Box.
7745 Rework the messaging system to proplery create window's and messages,
7748 2007-12-06 Andreia Gaita <avidigal@novell.com>
7750 * X11Keyboard.cs: Use Xutf8LookupString to support international
7751 characters under alternate codepages. Patch from #340878
7753 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7755 * ListView.cs: When doing layout computations, set position in the
7756 ListView instances (we cache the position just as .Net does).
7757 * ListViewItem.cs: New internal setter method for Position. Also set
7758 position field as also available in 1.1, since we are going to use it
7759 now in the common case.
7761 2007-12-06 Andreia Gaita <avidigal@novell.com>
7763 * Control.cs: When removing controls, get the actual container
7764 to notify about active control changes. Fixes 341314.
7766 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7768 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
7770 2007-12-05 Andreia Gaita <avidigal@novell.com>
7772 * Control.cs: When updating the zorder, ignore windows that are not
7773 mapped. Fixes #342509
7775 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7777 * ListViewItem.cs: Actually implement serialization on this class.
7779 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
7781 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
7782 LinkCollection. Spaces to tabs, and removed extra tabs.
7784 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7786 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
7787 tests to fail (hopefully).
7789 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7791 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
7792 the image margin so custom renderers can correctly place it.
7794 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7796 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
7797 so custom renderers can correctly place it.
7799 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7801 * Application.cs: Let WM_CHAR messages flow through to controls
7802 hosted in Strips. [Fixes bug #343972]
7804 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7806 * ToolStripManager.cs: Guard against an NRE I ran into.
7808 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7810 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
7811 a Link is manually added to the Links collection, we need to set
7812 its owner, so it can invalidate properly.
7815 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7817 * ListView.cs: When changing ListViewItem.Position (which calls
7818 ListView.ChangeItemLocation), invalidate not only the area
7819 corresponding to the main item, but also to the area occupied
7820 by the items being moved.
7822 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7824 * ListView.cs: When changing the position of a given item,
7825 don't use item bounds, but item areas (which includes the item spacing
7826 between them). Also, use first/last position if the requested
7827 position is outside bounds (as .Net does). Invalidate the previous and
7828 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
7829 in a specific position, instead of directly accessing Items collection
7830 (this is done to get the right item - remember an Item can have a
7831 different position in the grid than in the Items collection).
7833 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7835 * MessageBox.cs: Calculate text area instead of just top left, this rect
7836 area will be used in DrawString. Fixes bug #343364.
7838 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7840 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
7841 screen width. Partially fixes bug #343364.
7843 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7845 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
7846 code inside recalculate, it makes code more simple.
7848 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
7850 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
7851 between update or add icon. Fixes bug #324344.
7853 2007-11-21 Andreia Gaita <avidigal@novell.com>
7855 * XPlatUIX11.cs: Do not treat tool windows as if they have no
7856 window manager, since that stretches the drawing area to include
7857 the window decorations, and they get hidden. Reverts r84444 and fixes
7858 #335849 and #342790 (mdi and pdn3 regression)
7860 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7862 * ListView.cs: When setting focused item, try to give focus to the
7863 previous one _only_ if the previous one remains valid.
7866 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
7868 * Application.cs: Revert r89650, as it broke a common case to fix
7869 an obscure case. Fixes bug #342606.
7871 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7873 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
7875 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7877 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
7878 alignment. [Fixes #324228]
7880 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7882 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
7885 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
7887 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
7888 it prevent problems when empty captions. [Fixes #342141]
7890 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7892 * Label.cs: Use Size instead of None. Fixes bug #342077.
7894 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7896 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
7898 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7900 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
7901 but there isn't a MdiContainer.
7904 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7906 * TextControl.cs: Don't recalculate document if the recalc_start and
7907 recalc_end hasn't changed.
7910 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
7912 * DataGridViewTextBoxCell.cs: Removed CWL.
7914 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7916 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
7918 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7920 * TextControl.cs: Missed some code for bug 341534 to trigger a
7921 recalculation when the font changes.
7923 2007-11-16 Andreia Gaita <avidigal@novell.com>
7925 * Control.cs: When updating the zorder, check if the child to update is
7926 the same control that is set to always be on top (i.e., scrollbars), and
7927 just put it on top directly. Fixes BadMatch error on pdn3
7929 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7931 * ListView.cs: Throw the needed exceptions for FindNearestItem.
7933 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7935 * Control.cs: Don't perform a new layout when a label changes its text,
7936 cause label handles its own autosizing.
7939 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7941 * ListView.cs: Implement 2.0 FindNearestItem methods.
7943 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7945 * ToolStripPanel.cs: Make Join at least add the control to the panel,
7946 even if the rest of what Join does isn't supported. Add some more
7947 support for vertical toolbars.
7948 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
7949 [Fixes the application breaking parts of bug #341998]
7951 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7953 * ToolStripItem.cs: When determining if we have a check/image margin,
7954 we need to look at ShowCheckMargin as well as ShowImageMargin.
7956 2007-11-15 Geoff Norton <gnorton@novell.com>
7958 * XplatUIOSX.cs: Rename to...
7959 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
7960 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
7962 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7964 * KeysConverter.cs: The default values should be an array of Keys, not
7965 strings. Also, the array has more values for 2.0.
7968 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7970 * Application.cs: Change ExecutablePath to use
7971 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
7974 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7976 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
7977 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
7978 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
7979 be ignored. Create a new GetLineEnding that can specify which types of
7980 line endings to look for. On Insert, only create new lines for \n and \r\n.
7983 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7985 * TextBoxBase.cs: As we loop through each line changing the font, tell
7986 the document that the line needs to be recalculated. Fixes bug #341534.
7988 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
7989 [Another round of refactoring]
7990 * Line.cs: Add DeleteCharacters.
7991 * LineTag.cs: Add Delete.
7992 * TextBoxBase.cs: Update to use new methods.
7993 * TextControl.cs: Refactor the Delete* methods.
7995 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
7997 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
7998 the patch. [Fixes #324856]
8000 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8003 * ListViewItem.cs: Add an initial implementation of
8004 2.0 ListViewItem.Position getter.
8006 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8008 * ListView.cs: Add a reordered_items_indices array, to allow us
8009 to have a different sorting than that of Items (the sorting in Items
8010 could not match the actual sorting in screen). This is needed to
8011 implement a pair of 2.0 features.
8012 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
8013 actual position in the ListView grid, since it could have a position
8014 different than its Index (position in ListViewItemCollection).
8016 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
8018 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
8019 not draw partial lines.
8020 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
8021 LineLimit flag from the base is preserved.
8022 Fixes the windows part of bug #338965.
8024 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
8026 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
8027 so that it can be canceled in KeyPress.
8030 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8032 * ListView.cs: In ItemControl, reset mouse-handling related
8033 fields even if we dont' have items (we still should reset them when
8034 we had items but then called Items.Clear). Partially based in a patch
8038 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
8040 * Application.cs: In ProductVersion first try AssemblyFileVersion
8041 before falling back to assembly version. Fixes bug #339787.
8043 2007-11-08 Andreia Gaita <avidigal@novell.com>
8045 * HtmlElement.cs: Implement InnerText setter.
8046 * WebBrowserBase.cs: Implement Navigated event support.
8047 Add flag to track when the browser "document" is ready to be retrieved.
8048 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
8049 Make sure browser document is ready before retrieving it.
8050 Clean up cached objects (document) when moving to a new page through
8051 any of the navigation methods.
8052 Use the new Mono.WebBrowser.INavigation interface to control navigation.
8053 Implement OnNavigated event.
8055 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
8057 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
8058 DrawLinkLabel, this is handled by OnPaintBackground.
8059 Fixes bug #339565, part II.
8061 2007-11-07 Andreia Gaita <avidigal@novell.com>
8063 * Control.cs: Revert r88915. Selecting text on a textbox depends on
8064 getting a Select call on click, so this call needs to be here for now.
8067 2007-11-07 Geoff Norton <gnorton@novell.com>
8069 * OSXStructs.cs: Add the kEventClassApplication constants.
8070 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
8071 application is deactivated otherwise Menu overlays linger on top of
8072 other application windows.
8074 2007-11-07 Geoff Norton <gnorton@novell.com>
8076 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
8077 dont support cursors yet anyways. This allows Reflector to run.
8079 2007-11-07 Geoff Norton <gnorton@novell.com>
8081 * XplatUIOSX.cs: Implement DragSize.
8083 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8085 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
8086 ItemControl, request the focus, as .Net does. This is needed after
8087 Control does not request focus anymore when it receives a
8090 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
8092 * Label.cs: Make DrawImage internal so it can be called from Theme code.
8093 Remove the DrawImage call from OnPaint.
8094 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
8095 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
8096 but before we draw the text for DrawLabel and DrawLinkLabel.
8099 2007-11-05 Andreia Gaita <avidigal@novell.com>
8101 * Control.cs: Remove select call on click. Fixes #325809
8103 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8105 * ListViewItem.cs: Add 2.0 Position property getter.
8107 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8109 * ListView.cs: Add 2.0 BackgroundImageTiled property.
8110 Also, to make it work properly, change item's BackColor and
8111 BackgroundImageLayout as needed.
8112 * ThemeWin32Classic.cs: Don't fill any background rectangle
8113 in ListView.ItemControl when drawing items; just let the Control
8114 base implementation fill it.
8116 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8118 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
8119 as well as adding a custom 'dummy' Converter, as .net does.
8121 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8123 * PropertyGridView.cs: When clicking drop-down button,
8124 select an index in the listbox only if our standard values collection
8125 has one or more items.
8127 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8129 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
8132 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8134 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
8135 the value is not changed. This ensure a pushed button remains in that
8136 state when clicked again. When switching the value of PropertySort
8137 between Categorized and CategorizedAlphabetical, do not update the
8138 grid items and do not fire a PropertyChangedEvent. When clicking the
8139 sorting buttons, do not modify the PropertySort value when switching
8140 between Categorized and CategorizedAlphabetical but only update the
8143 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8145 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
8147 * PropertyGrid.cs: Also put Categorized button in pushed state when
8148 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
8149 for help description label.
8151 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8153 * ListView.cs: When calculating the biggest item for a given column,
8154 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
8157 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
8159 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
8160 value for PropertySort on 1.0 profile. PropertySortChanged event
8161 should only be fired on 2.0 profile. Fixed NullReferenceException
8162 in UpdateSortLayout when PropertyGrid contains no items.
8164 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
8166 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8169 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8171 * ListViewItem.cs: Implement 2.0 IndentCount property.
8173 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8175 * X11Dnd.cs: When sending status in a dnd operation, compare current
8176 effect with the 'allowed' field instead of 'drag_data.Allowed', since
8177 the later is only created when a Winforms application is both the
8178 source and the target, but not when we are the target only.
8179 Fixes part of #324251.
8181 2007-11-01 Geoff Norton <gnorton@novell.com>
8183 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8185 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
8186 children out of the drawing view on mac.
8187 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
8188 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8190 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8192 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8193 on the non-hosted-control part of it shouldn't do anything.
8194 Fixes part of bug #327498.
8196 2007-11-01 Andreia Gaita <avidigal@novell.com>
8198 * WebBrowserBase.cs: revert previous change, resize can be called anytime
8200 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8202 * Application.cs: When a toolstrip has the keyboard input loop, let messages
8203 it does not use flow through to controls that are hosted in menus.
8204 Same with mouse clicks.
8205 * Form.cs: Don't close all menus on click if the click is on a
8206 control hosted in a menu.
8207 Fixes part of bug #327498, and part of bug #325969.
8209 2007-10-31 Andreia Gaita <avidigal@novell.com>
8211 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
8213 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
8215 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
8216 Addresses an issue raised in bug #336218.
8218 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
8220 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
8221 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
8223 2007-10-30 Andreia Gaita <avidigal@novell.com>
8225 * ContainerControl.cs: Check if the active control is a
8226 child of a removed control and update active_control accordingly.
8229 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8231 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
8232 or the MaxDate. Fixed bug #337693.
8234 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8236 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
8237 after calling SetWindowLong for a form, to force an immediate NC refresh.
8238 Fixes first part of bug #325150.
8240 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8242 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
8243 simple. Fixes the last part of bug #322668.
8245 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8247 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
8248 needs to be TopMost as well, or else the MessageBox is under the form.
8249 Patch by George fixes bug #325300.
8251 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8253 * X11Dnd.cs: When starting a new drag operation, reset the static
8254 'dropped' field to false (previously the implementation didn't reset
8255 it and got confused after the first drag).
8258 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8260 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
8261 items instead of re-creating them all. For this purpose we now cache
8262 both CategoryGridEntry items and the GridEntries for the main object's
8264 * GridItem.cs: Make SetParent method abstract.
8265 * GridEntry.cs: Override the SetParent method (already there, but now
8269 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8271 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
8272 depending on its depth (as .Net does). Update the needed values in
8273 MouseDown handler. Also draw the plus/minus rect after the label,
8274 so we don't draw on top of it.
8276 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
8278 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
8279 processed by forms or controls when menu is active. [Fixes #333548]
8281 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8283 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
8284 parent doesn't have focus. This was causing ToolStripTextBoxes to take
8285 focus on mouse over.
8287 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8289 * TextControl.cs: Code cleaning, simplifying.
8291 2007-10-24 Geoff Norton <gnorton@novell.com>
8293 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
8294 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
8296 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8298 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
8299 the cap is maxvalue, not actually 0. [Fixes bug #336218]
8301 2007-10-24 Andreia Gaita <avidigal@novell.com>
8303 * SendKeys.cs: apply jpobst's patch to bug #332409
8305 2007-10-23 Andreia Gaita <avidigal@novell.com>
8307 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
8308 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
8311 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8313 * PropertyGridView.cs: If a property has an UIEditor available,
8314 make the drop-down/editor button available only if the property
8317 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8319 * PropertyGridView.cs: Don't make the grid item textbox
8320 editable when a drop-down control is available, but
8321 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
8322 true. The same bur the color of the grid item value's label.
8324 2007-10-22 Geoff Norton <gnorton@novell.com>
8326 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
8327 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
8328 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
8329 driver. Padd the bottom of all real windows so the resize thumb doesn't
8330 obscure scroll/status bars.
8332 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
8334 * WindowsFormsSection.cs: Implement.
8336 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8338 * MdiClient.cs: Maximize new active mdi child when a maximized child is
8339 closed see #325434 patch.
8341 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8343 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
8346 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8348 * PropertyGridView.cs: When showing the textbox for a grid item,
8349 have two local variables to store the read-only and non-editable
8350 status of a grid item (we were previously using just one variable
8351 to do this, when actually they are slightly different).
8352 Fixes part of #325023.
8354 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8356 * PropertyGridView.cs: When showing a drop-down list, try to get the
8357 values using TypeConverter.ConvertTo (to convert to a string). Fixes
8360 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8362 * PropertyGrid.cs: When updating a property and populating sub grid
8363 items, remove the previous ones, and invalidate the specific area.
8364 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
8365 area behind a grid item.
8366 * GridItemCollection.cs: Add an internal Clear method, to allow us to
8367 clean the items if needed (specially for controls implementing
8368 ICustomTypeDescriptor and returning a variable number of properties).
8371 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
8373 * TextControl.cs: Clean up and document the Insert function.
8375 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8377 * TextControl.cs: Make sure we know our start point for updating the view
8378 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
8381 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8383 * ListView: Couple of corcompare fixes.
8385 2007-10-17 Geoff Norton <gnorton@novell.com>
8387 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
8388 the title caption of real window.
8390 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8392 * ErrorProvider.cs: Add the error provider's internal window to a
8393 containercontrol when the parent changes. [Fixes bug #329714]
8395 2007-10-17 Geoff Norton <gnorton@novell.com>
8397 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
8398 When we make a new window; restore the old active window - fixes dialogs.
8400 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8402 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
8403 when modifying a property, and if found then invalidate as
8405 Fixes part of #324865.
8407 2007-10-17 Geoff Norton <gnorton@novell.com>
8409 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
8410 highly experimental. Fixed coordinate translation. Fixed window locations.
8411 Initial support for clipping. Implemented NC areas and menus. Support for
8412 launching from command line from Will Johansson (wjohansson@atacomm.com).
8413 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
8414 wjohansson@atacomm.com)
8415 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
8416 Hwnds now track the existence of all of their children for Mac clipping.
8417 * XplatUI.cs: Re-enabled the native driver on the Mac.
8419 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8421 * Line.cs: Move the InsertString function to here.
8422 * TextControl.cs: Cleanup some duplicate code, move some InsertString
8423 functionality to Line.
8425 2007-10-17 Geoff Norton <gnorton@novell.com>
8427 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
8429 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
8431 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
8432 always setting value to true.
8433 * Form.cs: When changing AcceptButton, notify new and original button.
8435 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
8437 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
8438 a custom control that implements IButtonControl instead of an actual
8439 button. [Fixes bug #334244]
8441 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8443 * Form.cs: Change SelectActiveControl to internal, we need to call it in
8446 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
8447 active control when activate a new mdi window.
8451 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8453 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
8457 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8459 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
8460 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
8461 so we always recalculate the whole document instead of just the new part.
8464 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8466 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
8467 when the mouse was to the left of the first character in the line.
8469 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8471 * TextBox.cs, TextBoxBase.cs: When setting the document's password
8472 character, use the property instead of the variable so that the
8473 UseSystemPasswordChar property is taken into account.
8476 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8478 * FolderBrowserDialog.cs: When a node is right clicked and the "New
8479 folder" contex menu appears, actually add the new folder to it, even
8480 if the node is not currently selected. Still use SelectedNode in case
8481 there wasn't found a node under the pointer.
8484 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8486 * ListViewItem.cs: When retrieving the focused state, the index check
8487 should be done only when ListView is in virtualmode, as it is an
8488 expensive check for normal mode.
8490 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8492 * ListViewItem.cs: Make the focus state information be stored
8493 in the ListView, not in the items. This is done to match the MS
8494 behaviour for items that are not yet part of a ListView control;
8495 besides that, since just one item can be focused at the same time,
8496 we save a little space in our items.
8497 Fixes part of #331643.
8499 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8501 * ComboBox.cs: When focus is lost, deselect the text. When setting
8502 text of control, select all text. Do not hide selection when control
8503 does not have focus. Fixes bug #333663.
8505 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8507 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
8508 instead of ArgumentException when SelectionLength is set to negative
8509 value. Added same check to SelectionStart. Code formatting.
8511 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8513 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
8514 or SelectionStart. Code formatting.
8516 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8518 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
8519 indicating that there was not a previous drag-and-drop operation going
8521 Fixes part of #325071.
8523 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8525 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
8526 AllowedEffect, don't let the drop operation happen.
8529 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8531 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
8533 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8535 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
8538 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8540 * Line.cs: Add a method that finds the tag that contains an x-coord.
8541 * LineTag.cs: Add a method that finds the character at an x-coord using
8542 a binary search, the old way was a linear search.
8543 * TextControl.cs: Change FindCursor to use the above new methods.
8545 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8547 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
8548 value different than AllowedEffect). This should be possible to
8549 indicate that dragging is not possible in some control/area.
8551 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
8553 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
8554 descent internally when font changes instead of outside code being responsible
8556 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
8557 instead of accessing internal variables.
8559 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
8561 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
8562 remove special treatment for ArrangeIcons since it is already arranged.
8564 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8566 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
8567 the Win32 backend uses Color.
8568 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8569 Refactor to store a Color instead of a Brush for Color.
8571 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8573 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
8574 away. I didn't realize I needed this when I refactored these earlier.
8576 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8578 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
8579 store a Color structure and use the ResPool for back color instead of
8580 holding onto brushes.
8582 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8584 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
8587 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8589 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
8590 to recalculate its size. Fixes a part of bug #331052.
8592 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8594 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
8595 button. Fixes a part of bug #331052.
8597 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8599 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
8601 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
8605 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8607 * TextBoxTextRenderer.cs: Don't make this a static class, as static
8608 doesn't exist in 1.1. (Thanks jb!)
8610 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8612 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
8613 class to allow us to use different backends on different platforms.
8614 Linux uses the current [Draw|Measure]String backend. Windows uses
8615 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
8616 of GDI+. This leads to better looking text and more accurate measurements
8617 on Windows, fixing many of the reported issues.
8618 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
8620 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8622 * FolderBrowserDialog.cs: When running on Windows,
8623 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
8624 since we must match both "C:" and "C:\" forms. A little hackish, but
8628 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8630 * ListView.cs: When calling EndEdit (after editing an item),
8631 create a new instance of LabelEditEventArgs to keep clean the fields
8632 in case we get a new call to BeginEdit; also do Application.DoEvents
8633 to have focus in synch. This is a fix similar to TreeView's #325244.
8635 2007-10-07 Andreia Gaita <avidigal@novell.com>
8637 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
8638 * WebBrowserBase.cs: Added dialog support, calling the
8639 WebBrowserDialogs classes for each specific dialog type.
8641 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8643 * ListView.cs: When the last item is focused and is removed,
8644 move the focus to the previous item (in Items order). This is what MS
8648 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8650 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
8651 instead of the opposite (RemoveAt call Remove). This is a better
8652 approach since we don't need to to a pair of traversals when using
8655 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8657 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
8658 check that the node actually has nodes, and if not, move to the
8659 parent node instead.
8662 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8664 * TreeView.cs: Move the previous change to the general case (to
8665 call Application.DoEvents in cases where the method was called by
8668 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8670 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
8671 call Application.DoEvents. This is neccessary when we get a call to
8672 BeginEdit from an AfterLabelEdit handler, because the focus always
8673 goes to the TreeView, even if we try to give it to our
8674 LabelEditTextBox. The call do Application.DoEvents seems to
8675 synchronize the focus, basically.
8678 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8680 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
8681 should be false. This also removes some nasty recursive paths. Fixes
8684 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
8686 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
8687 state to normal. Also resize window when cascading. Fixes #325433.
8689 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8691 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
8692 DefaultForeColor, as drawing empty colored lines isn't very useful.
8693 [Fixes the not drawn lines part of bug #324358]
8695 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8697 * TextControl.cs: Move Line and LineTag classes into separate files to
8698 make things easier to find.
8699 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
8700 * RichTextBox.cs: Capitalize LineTag.Length property access.
8701 - This is purely an organizational/formatting change, no logic changed. -
8703 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8705 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
8708 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8710 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
8713 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8715 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
8716 prevent calling of OnBackColorChanged. Fixes #325321.
8718 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8720 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
8721 because control can be disabled because owner is disabled.
8723 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8725 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
8726 string.Empty, test failed from previous change.
8728 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8730 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
8731 is null, not String.Empty. See bug #323038.
8733 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
8735 * TextControl.cs: Change the margins to match MS a little better.
8736 Still not perfect for X11 due to some DrawString differences, but
8737 is still an improvement over the old stuff.
8738 Partially fixes #324467.
8740 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8742 * FolderBrowserDialog.cs: When using MyComputer as
8743 RootFolder, let absolute paths be considered as valid ones. Also, use
8744 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
8745 for Windows compatibility.
8746 Partially fixes #325247.
8748 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8750 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
8751 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
8752 method, since it causes the dialog to not select folders directly
8753 under the root path (when setting SelectedPath property).
8755 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8757 * TreeNode.cs: When calling Expand/Collapse and need to call
8758 ExpandBelow/CollapseBelow respectively, take into account
8759 partially visible nodes (previously Expanding/Collapsing
8760 a partially visible node in the bottom was not updating its +- sign).
8762 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8764 * TreeView.cs: When calling Expand on a TreeNode, and we need to
8765 expand nodes below (ExpandBelow), scroll the entire Viewport
8766 area if the node is above it and not visible (instead of scrolling
8767 the area from node's Bottom, which applies only when the node is
8771 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8773 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
8774 node in the bottom area (as .Net does). This is done to preserve the
8775 scroll position when ExpandAll is called before handle is created for
8776 the 1.1 profile (bottom area, as opposed to top area in 2.0).
8779 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8781 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
8782 bottom area if we are in fact not using the vertical scroll bar.
8785 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8787 * Control.cs: Comment out a double buffering optimization that doesn't
8788 take into account invalidates created in OnPaint, causing the control
8789 to never be redrawn. It would take quite a bit of work to work around
8790 this, but I left it commented with an explanation for later possible
8794 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8796 * Control.cs: Ask parent to perform a layout if control is AutoSize and
8798 * RadioButton.cs: Implement GetPreferredSizeCore.
8801 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8803 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
8806 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8808 * Application.cs: Move the sync context stuff to Run instead of RunLoop
8809 so that it doesn't get uninstalled on modal forms.
8810 * Control.cs: Install a sync context when a control is created.
8811 * WindowsFormsSyncronizationContext.cs: Create a private static control
8812 to invoke on. This is easier than trying to find a created control we
8816 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
8818 * Application.cs: Install a WindowsFormsSynchronizationContext in the
8819 run loop, and uninstall it when done.
8820 * WindowsFormsSynchronizationContext.cs: Implement.
8821 [Fixes the common case in bug #327608]
8823 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
8825 * DataGridViewCellCollection.cs: Added argument checks for indexers.
8826 Use case-insensitive lookup of column name in indexer. Code
8829 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8831 * TreeNode.cs: When collapsing or expanding a node, check whether its
8832 change will affect the visible area (we were previously doing a
8833 IsVisible check, but that check is not enough since children nodes
8834 could be still visible). Fixes part of #325266.
8836 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8838 * TreeView.cs: Always select the first node when the TreeView gets
8839 focus if there is no currently selected node.
8842 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8844 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
8845 node being selected is null.
8846 [Patch from Yves Bastide fixes bug #326858]
8848 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8850 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
8851 whether all the parent nodes are expanded.
8852 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
8853 call RecalculateVisibleOrder if all previous nodes are expanded.
8854 Before that we were doing a IsVisible check, but sometimes the node
8855 is not in the visible area, but _should_already be ready, because of
8856 all previous nodes are expanded. Fixes #325259.
8858 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8860 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
8861 portion of the item is clicked.
8863 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8865 * TextControl.cs: Do not tell the system to move the cursor if the
8866 textbox isn't focused. Fixes part of bug #322668.
8868 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8870 * ComboBox.cs: When there are no items, do not show the dropdown if
8871 the down arrow is clicked. Fixes part of bug #322668.
8873 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8875 * ToolStripComboBox.cs: Manually set the size of this control in the
8876 constructor, as it doesn't seem to be the same as DefaultSize.
8877 Fixes a failing monobuild test.
8879 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8881 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
8882 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
8884 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8886 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
8887 Desktop. This lets it work for people who have moved their desktops
8888 from the default location on windows. For people who have not, both
8889 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
8891 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8893 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
8894 but when the base constructor sets this, the control is null. Set it
8895 again in the constructor. Fixes a failing monobuild test.
8897 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8899 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
8901 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
8904 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8906 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
8907 will handle it themselves.
8908 * ToolStripItem.cs: When deciding what the text of a tooltip should
8909 be, use the Text property instead of the text field.
8910 * ToolStripTextBox.cs: Handle tooltips.
8911 [Fixes bugs #325417 and #325973]
8913 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8915 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
8916 left click. Fixes the easy part of bug #325969.
8918 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8920 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
8921 bug #325406, but set a minimum for StatusStrip to 22 to keep
8922 bug #325390 fixed. I think this minimum would have been figured
8923 up automatically if the grip was actually a ToolStripItem, but it
8926 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8928 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
8929 as this is apparently the actual value used by .Net. Also apply
8930 ItemPadding in Details view only, and decrease the general width padding,
8931 to have only the needed. This should fix #324340 in Windows too.
8933 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8935 * ListViewItem.cs: Don't Invalidate item if parent is inside
8936 a BeginUpdate/EndUpdate block. This prevents to have differences
8937 between the ListView and items state, as well as avoid some exceptions
8939 * ListView.cs: Make 'updating' field internal.
8941 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8943 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
8944 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
8945 size if appropriate.
8946 Fixes reopened bug #325414.
8948 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8950 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
8951 * ToolStripItem.cs: Invalidate before and after our new autosize when
8953 Fixes reopened bug #325390.
8955 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8957 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
8958 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
8961 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8963 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
8965 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8967 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
8968 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
8971 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8973 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
8974 item to select when the ToolStrip is selected.
8975 * ToolStripControlHost: Realign the control when the bounds or visibility
8977 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
8978 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
8980 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
8981 base.OnPaint. Was causing text not to be drawn.
8983 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8985 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
8987 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8989 * TreeView.cs: When creating the label edit text box,
8990 set is initially to Visible = false. This is done to
8991 prevent a confusion in the layout which makes it to lose
8992 focus when shown the first time. Fixes part of #82592.
8994 2007-09-13 Andreia Gaita <avidigal@novell.com>
8996 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
8998 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9000 * ToolStrip.cs: Take Margin into account when calculating preferred
9001 size. Also, allow preferred size to get smaller than the explicit
9003 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
9004 First step towards fixing bug #82747.
9006 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9008 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
9009 full row select background over the plus/minus glyph. Also, turn
9010 off the focus rectangle for full row select since MS doesn't seem
9011 to ever paint it. [Fixes bug #81839]
9013 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9015 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
9016 This was causing keyboard opened dropdowns to lose focus.
9019 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9021 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
9022 ClientRectangle instead. [Fixes bug #82838]
9024 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9026 * SplitContainer.cs: We can't reset Visible on every layout because
9027 someone may have set Visible = false explicitly on a SplitterPanel.
9028 Make sure when we switch orientation the SplitterDistance does not
9029 change. Fixes two failing tests.
9031 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9033 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
9034 TextRenderer, since the latter is only available in 2.0.
9036 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
9038 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
9039 * SplitContainer.cs: Implement FixedPanel layouting.
9041 2007-09-12 Andreia Gaita <avidigal@novell.com>
9043 * WebBrowserBase.cs: setup shutdown routine
9045 2007-09-12 Andreia Gaita <avidigal@novell.com>
9047 * Application.cs: Let keyboard events that are targetted
9048 to non-mwf windows hosted inside mwf (as in, webbrowser),
9049 propagate properly. Fixes keyboard handling on the webbrowser.
9051 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9053 * ListView.cs: When handling MouseUp event and we are
9054 highligting a node with the mouse right button, don't trigger
9055 Before/AfterSelecting event, since we are not actually selecting
9058 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9060 * TreeView.cs: When editing a node, modify the edit text box
9061 depending on the text length (as you are typing), like MS does.
9063 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
9065 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
9066 Override GetPreferredSizeCore to perform calculations. Remove custom
9067 autosize logic. [Fixes bug #82739]
9069 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
9071 * TextBoxBase.cs: Modified should default to false.
9073 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9075 * Control.cs: Update the anchoring distances even when layout is supspended.
9076 Patch provided by George fixes bug #82805.
9078 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9080 * Control.cs: Provide a setter for ExplicitHeight.
9081 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
9082 remove the hacks in here for requested_height.
9085 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9087 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
9088 Maximum to lower that its current Value caused an ArgumentException by setting
9089 the Value to the new Maximum.
9091 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9093 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
9094 handle moves to the closest tick when it is being dragged.
9097 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9099 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
9100 can't let them count as real items when calculating where to merge in the
9101 user's items. [Fixed bug #82786]
9103 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9105 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
9106 who want to add a menu item directly onto a toolstrip.
9107 [Fixes bug #82775, part II]
9109 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9111 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
9112 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
9113 don't set it to available.
9114 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
9115 [Fixes bug #82727, part II]
9117 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9119 * StatusStrip.cs: Change item placement to None if not visible.
9120 * ToolStripItem.cs: Invalidate when InternalVisible changes.
9121 These should have been committed to fix 82723, but I missed them.
9123 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9125 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
9126 Click, and that it is only called once.
9127 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
9128 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
9132 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9134 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
9136 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
9137 instead of 8, just like above. Partially fixes #82734.
9139 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9141 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
9144 * ListView.cs: Remove extra space between rows in Details view (match
9146 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
9149 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
9151 * Application.cs: Modified ProductVersion to return value of
9152 AssemblyInformationVersion if available, and fallback to assembly
9153 version. Fixes bug #82746. Code formatting.
9154 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
9157 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9159 * Control.cs: When updating ZOrder for a child control,
9160 take into account the implicit ones (we need it in our controls
9161 using them). Fixes #82642.
9163 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9165 * ToolStripItem.cs: Add support for animated images.
9168 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9170 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
9171 visible. [Fixes bug #82727]
9173 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9175 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9176 so we repaint using the new size. [Fixes bug #82723]
9178 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9180 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9181 option. [Fixes bug #81779]
9183 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9185 * TreeView.cs: Override HandleClick because the StandardClick style is
9186 set to false. According to MSDN (and testing), the click events should
9187 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
9189 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9191 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9192 the border will disappear. Fixes reopened #82653.
9194 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9196 * Control.cs: If the control is autosize, and its preferred size changes
9197 when it lays out its children, tell its parent so it can be re-layed out.
9198 Fixing some of the fallout from r85433.
9200 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9202 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
9203 and CheckBox share some code.
9205 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9207 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
9208 the TrackBar, not every mouse move. [Fixed bug #82718]
9210 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9212 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
9213 under 2.0 rendering. [Fixes bug #82657]
9215 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9217 * TreeView.cs: If we found a TreeNode to display a context menu, but
9218 it doesn't have one to show, let the TreeView display its menu
9219 instead. [Fixes bug #82680]
9221 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9223 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
9224 OnPaintInternal instead. Give the internal TextBox a Border property
9225 so it can draw itself more correctly. [Fixes bug #82653]
9227 2007-09-06 Zoltan Varga <vargaz@gmail.com>
9229 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
9231 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9233 * ComboBox.cs: Adjust combobox button state to reflect current state when
9234 back to enabled = true. Fixes first issue of #82654.
9236 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9238 * Control.cs: Fix last patch regression, prevent forms to update zorder when
9239 setting visible property.
9241 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9243 * Control.cs: Update zorder after control creation in SetVisibleCore, it
9244 fix zorder for controls initially created as non visible. Fixes #82667.
9246 2007-09-04 Everaldo Canuto <everaldo@simios.org>
9248 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
9249 mimic win32 look. Fixes #82656.
9251 2007-09-01 Zoltan Varga <vargaz@gmail.com>
9253 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
9254 Stubs for new net 3.5 classes.
9256 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9258 * ListViewItem.cs: In ListViewItemCollection operations calculate
9259 Layout for owner as well as invalidate it. Fixes part of #82642.
9261 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
9263 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
9264 when returning Enabled. [Fixes bug #82651]
9266 2007-08-30 Everaldo Canuto <everaldo@simios.org>
9268 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
9270 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9272 * ListView.cs: Put item padding info in a single place
9273 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
9275 * ThemeWin32Classic.cs:
9276 * Theme.cs: Likewise.
9278 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9280 * ListView.cs: When a ListViewSubItem instance is invalidated,
9281 invoke Invalidate on parent ListViewItem, not parent ListView.
9284 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9286 * ListView.cs, ListViewItem.cs: corcompare stuffs.
9288 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9290 * BindingMemberInfo.cs: Implement == and != operators.
9292 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9294 * HtmlElementEventArgs.cs: Implement properties.
9296 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9298 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
9300 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9302 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
9303 Add (string,string,string) to implement the imagekey. It turns out, we
9304 use the requested imagekey whereas .Net does not. So I broke ours to match
9307 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9309 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
9311 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9313 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
9315 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
9317 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
9318 up-to-date. Fixes bug #82618.
9320 2007-08-29 Everaldo Canuto <everaldo@simios.org>
9322 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
9323 reflect document changes. Fixes #82367.
9325 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9327 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
9328 as well as add new ones. This should make work the BackgroundImage
9329 property for ListView again.
9331 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9333 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
9334 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
9335 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
9337 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9339 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
9342 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9344 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
9345 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
9347 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9349 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
9350 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
9352 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9354 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
9356 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9358 * GridEntry.cs: Implement GetService.
9360 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
9362 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
9363 for label editting, make sure we focus back on the TreeView.
9366 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9368 * ListView.cs: Add some 2.0 overrides.
9370 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9372 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
9373 because getter dont returns right value before handle creation. Thanks
9374 to George. Fixes #82569.
9376 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9378 * Theme.cs: Revert last patch, it causes error under win32.
9380 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9382 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
9383 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
9384 logical Desktop rather than the physical file system location. Fixes #82603.
9386 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
9388 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
9389 for the patch. Fixes #82568.
9391 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9393 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
9396 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9398 * ListViewInsertionMark.cs: New stubbed class.
9400 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9402 * FolderBrowserDialog.cs: When adding folder, immediately create the
9403 directory with temporary name and rename the directory when editing
9404 finishes. This matches MS. Ensure the node for the new folder is
9405 selected and LabelEdit is disabled, when editing is either finished
9408 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9410 * TreeView.cs: When editing label of node, ensure node is visible.
9412 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
9414 * PropertyGridView.cs: Set the value only if it has changed.
9416 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9418 * ListView.cs: Some more code refactoring to add support sorting
9419 with groups (now for Details view). Remove unused code also.
9421 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9423 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
9424 Not a big fan of reacting immediately to a field in an EventArg, but that's
9425 the way it's done. (This is part of the previous commit that got left out.)
9427 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9429 * FolderBrowserDialog.cs: Removed need for separate description field.
9430 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
9431 has focus when dialog box is displayed again, regardless of what
9432 button was pressed the previous time. Set RootFolder and SelectedPath
9433 each time dialog box is displayed. This ensures the treeview is
9434 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
9435 when it does not have focus. Added support for more special folders.
9437 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9439 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
9440 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
9441 it resets the edit_args.
9442 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
9445 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
9447 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
9448 button to match MS. Provide more meaningful exception message for
9449 invalid RootFolder value. Use zero-length string when SelectedPath
9450 is set to null. Allow non-rooted paths in SelectedPath, but ignore
9451 them in FolderBrowserTreeView. Allow folders to be created in
9452 RootFolder. Fixes bug #82576.
9454 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9456 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
9457 since we need to take into account the group headers and the margin
9459 * ListViewGroup.cs: Add a rows field to store the number of rows per
9462 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9464 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
9465 Anyways, let's just follow the lead.
9467 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9469 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
9470 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
9471 controls in GetPreferredSizeCore.
9472 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
9475 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9477 * PrintDialog.cs: Need to instantiate the form variable here too.
9479 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9481 * ListView.cs: Do some reorganization to support sorting in groups,
9482 by doing the layout sequentially in ListView.Items. Also add support
9483 for the Default Group, which should be available for items with no
9485 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
9486 for storing layout info also.
9487 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
9488 collection, as well as providing internal members to do a traversal
9489 including the default group (needed when doing layout/drawing).
9490 * ThemeWin32Classic.cs: When drawing group headers use internal
9491 ListViewGroupCollection members to take into account the default
9494 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
9496 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
9498 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9500 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
9501 been created. If handle is created, we want arror keys. If we are editing
9502 a node, we want things like enter, esc, home, end, page up, page down.
9503 Allows Esc to work for FolderBrowserDialog.
9505 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9507 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
9508 they close when ESC is pressed. Thanks Andy!
9510 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9512 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
9513 This way we can tell if this is a CommonDialog provided with mono, or one
9514 that is being implemented outside by a developer. If it is an external one,
9515 the developer is responsible for showing their own form. We were showing
9516 our blank form after the developer showed his.
9517 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
9518 PageSetupDialog.cs: Instantiate form variable in our constructor.
9521 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9523 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
9524 and always return true. [Fixes bug #81616]
9526 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9528 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
9529 TextBox. [Fixes bug #82549]
9531 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
9533 * FileDialog.cs: When Save/Open is clicked and no filename is selected
9534 or entered then do not close the dialog. Fixes bug #82539. Removed
9537 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
9539 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
9540 code to this method. It is calling every time filter changes. This method
9541 will help to fix the bug #80887.
9543 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9545 * CheckBox.cs: Implement AutoSize calculation.
9547 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9549 * CheckBox.cs: Use new 2.0 rendering for 2.0.
9550 * Theme.cs: Method declarations for 2.0 rendering path.
9551 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
9553 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9555 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
9557 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9559 * ListViewGroupCollection.cs: Implement AddRange the right way, to
9560 only call Redraw on the parent one time.
9562 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9564 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
9565 GetClipboardContent.
9566 * DataGridViewCell.cs: Implemented GetClipboardContent,
9567 GetEditedFormattedValue, GetFormattedValue.
9568 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
9570 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9572 * TableLayoutStyleCollection.cs: corcompare fix.
9574 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9576 * DataObject.cs: Implemented retrieval of convertible / not convertible
9579 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9581 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
9582 ourselves. This ensures the entire old bounds are repainted, in case our new
9583 size is smaller. [Fixes bug #82518]
9585 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
9587 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
9588 flag to make fast handle of mouse events, without this the mouse move is
9589 handled in some manner, whether it is a mouse move or not. Fixes #81588.
9591 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9593 * ListView.cs: When doing layout calculations don't use a ref
9594 param to keep the current item; instead use its Index value (this
9595 is specially important when doing the layout with Groups
9596 and Items being sparse). Also don't take into account items added to
9597 the Group but not yet added to the main ListView.Items collection.
9599 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9601 * ListViewGroupCollection.cs: Forgot to mimic an issue
9602 in the indexer (don't assign the ListView owner for new values).
9604 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9606 * ListViewGroupCollection.cs: Make the string indexer use
9607 the int based indexer to re-use code, instead of duplicate the code.
9608 Also Redraw as needed and take into account null values.
9610 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9612 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
9615 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9617 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
9618 when other buttons are clicked or navigated to.
9620 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9622 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
9623 it's XplatUIX11 that attaches them.
9625 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9627 * DataGridView.cs: If a column has been added, recreate the editing row.
9630 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9632 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
9633 of the tag to draw. Makes disappearing text show up again.
9635 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9637 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
9638 Contents. Fixes #82487.
9640 2007-08-19 Andreia Gaita <avidigal@novell.com>
9642 * Added HtmlElement.cs, HtmlElementCollection.cs,
9643 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
9645 2007-08-19 Andreia Gaita <avidigal@novell.com>
9647 * BindingSource.cs: Implement this, dispose and getenumerator.
9648 * DataGridViewRowCollection.cs: Move the InvalidOperationException
9649 out of AddInternal, throw it only on public Add calls. The
9650 UsingWebBrowser sample was blowing up with this when setting the
9651 DataSource after adding DataBindings, so it's likely that .net
9652 only throws this exception when Add is called directly.
9654 * ToolStripControlHost.cs: Return the hosted control's text
9655 property, and not the ToolStripItem one (it would always return
9658 * HtmlDocument.cs: Implement GetElementById and All
9659 * WebBrowser.cs: Remove exception on set_DocumentStream.
9661 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9663 * Form.cs: Fix the max and min value for opacity (0~1).
9665 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9668 * DataGridTableStyle.cs: Default header font is now null, on getter it
9669 returns datagrid font when is null. On setter permits null.
9672 - When ResetHeaderFont set header font to null.
9673 - On EndInit set grid_style.DataGrid.
9675 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9677 * TabControl.cs: Fix regression in default padding x.
9679 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9681 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
9683 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9685 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
9686 not 2. Fixes #82229.
9688 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9690 * TabControl.cs: Fix tab size when image height is less than text height.
9691 Partially fixes #81837.
9693 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9695 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
9696 "alt + tab". It works only for Win32, for X11 theres no way to remove window
9697 from taskbar and keep it on "alt_tab". Fixes #81722.
9699 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9701 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
9702 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
9703 Fixes #80877 and #79418.
9705 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9707 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
9708 between position and one of the screen borders. Fixes #82349.
9710 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9712 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
9713 the MessageBox in the taskbar. Fixes #82457.
9715 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9717 * MessageBox.cs: Fix form size when icon is set and text height is bigger
9718 than icon. Fixes #82468.
9720 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9722 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
9723 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
9724 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
9725 Refactored HandleNCCalcSize somewhat to avoid code duplication.
9726 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
9727 FormBorderStyle to decide if we're calculating a new size from the
9728 client size or not. CreateParams: Don't fake tool windows, only the X11
9729 backend manages toolwindows manually.
9731 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9733 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
9734 ObjectDisposedException.
9736 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9738 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
9739 in OnLoad should not have any effect. [Fixes bug #82470]
9741 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9743 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
9744 paint for controls that create their own ToolTipWindow instead of
9745 going through ToolTip.
9747 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9749 * ToolTip.cs: Make Hide internal instead of public to match MS API.
9751 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9753 * ListViewGroupCollection.cs: Use generic List instead of an
9754 ArrayList, since this collection is 2.0 only.
9756 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
9758 * ToolTip.cs (Hide): Made public to make the build work (should
9759 this not be public?).
9761 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9763 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
9765 * ToolTip.cs: Add an internal Visible property to facilitate transition.
9767 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9769 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
9770 PopupEventHandler.cs: Make these internal for 1.1.
9771 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
9772 use ToolTipWindow internals.
9773 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
9774 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
9776 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9778 * X11Dnd.cs: Add a null check.
9780 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9782 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
9783 nothing else succeeds. Fixes #82453.
9785 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9787 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
9788 rectangle if we're painting to another window than the one the paint
9789 message was generated on. Simplify the code somewhat, which makes
9790 PaintEventEnd also simpler.
9792 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9794 * Control.cs: When changing parent of a form, let the form decide whether
9795 XplatUI.SetParent should be called or not.
9796 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
9797 recreating the handle. If the new parent's handle isn't created, don't
9798 recreate our handle, just destroy it. CreateParams: Check if the
9799 parent's handle is created before fetching it.
9801 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9803 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
9804 Update calls to PaintEventStart/End to take a Message argument.
9805 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
9806 take a Message argument.
9807 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
9808 Message argument, and handle the case where we don't paint to the window
9809 for which the paint message was generated.
9811 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9813 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
9814 Marshal.GetLastWin32Error. Plug nasty memory leak in
9815 PaintEventStart/End, we were creating a DC we weren't releasing.
9817 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9819 * ListView.cs: Add Groups support in Details view. Also have a small
9820 method to do the layout of the group header. Don't use a separate
9821 method to do the groups calculation in Icons view, since our methods
9822 are now a little simpler.
9823 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
9825 * ThemeWin32Classic.cs: Likewise.
9827 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9829 * Application.cs: Add FilterMessage method and rework our message loop
9832 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9834 * Application.cs: Add some methods and stub a few methods that are
9835 pretty much never used.
9837 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
9839 * TreeNode.cs: Add some serialization methods.
9841 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9843 * ListView.cs: In ListViewItemCollection have a
9844 'is_main_collection' field to not modify ListViewItem.ListView
9845 when using it as ListViewGroup.Items (and not ListView.Items)
9846 and also don't modify selection state (.Net behaviour).
9847 Instead, set group for items contained in a ListViewGroup.Items collection.
9848 * ListViewItem.cs: Simplify some code in Group setter.
9849 * ListViewGroup.cs: use the new .ctor to pass the current instance
9850 to the ItemsCollection.
9851 * ListViewGroup.cs: Set the ListView property for ListViewGroup
9852 instances when adding/removing. Also make Remove use RemoveAt, which
9853 should perform better.
9855 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9857 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
9858 that crept into the 1.1 profile.
9860 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9862 * ToolBarButton.cs: Implement ImageKey.
9864 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9866 * ToolBar.cs: Implement ScaleControl/ScaleCore.
9868 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9870 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
9871 created, it might have gotten destroyed since we last checked. Fixes
9874 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
9876 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
9877 tooltip will hide when mouse is moved off the control.
9880 2007-08-11 Andreia Gaita <avidigal@novell.com>
9882 * WebBrowserBase.cs, WebBrowser.cs: add implementation
9883 using Mono.Mozilla for loading and navigating webcontrol
9885 The initial implementation was done on
9886 /trunk/mozembed/tests/browser , and copied here.
9888 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
9890 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
9891 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
9893 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9895 * DataGridView.cs: Add support for an editing row. Fixes #82226.
9896 RowTemplateFull: throw an exception if a column doesn't have a template.
9897 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
9898 add the row just before it.
9899 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
9901 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
9902 DataGridView field to be able to reach the grid's editing row.
9904 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9906 * ToolTip.cs: If the control's handle hasn't been created when it has a
9907 tooltip set on it, don't check to see if we need to show the tooltip. This
9908 check was causing the control's handle to be created.
9911 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9913 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
9915 Handle Not Created -1 0
9919 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9921 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
9924 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9926 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
9927 * ToolTip.cs: Implement some properties and owner draw.
9929 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9931 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
9932 show them again, since setting visibility causes a paint, causing an
9933 endless loop (instead use a temporary and set it all when it's known if
9934 they should be shown or not). Fixes #79265.
9936 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9938 * DataGridView.cs: Only do a full column/row selection if a header was
9939 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
9940 isn't pressed, deselect everything before selecting something.
9942 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9944 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
9945 behaviour according to bug #81075 - they are returned in the order they
9946 are selected. Fix HitTest to check if the point is within any of the
9947 headers. Allow for row/column selection when in ColumnHeader or
9948 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
9949 the row and column to call when their selected state changes, and
9950 updated selected_[rows|columns] whenever SetSelected* is called.
9951 * DataGridViewBand.cs: Initialize isRow correctly. Call
9952 SetSelected[Row|Column]CoreInternal when the selected state changes, and
9953 add a SelectedInternal to avoid StackOverflows.
9954 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
9955 ReadOnly no matter what.
9956 * DataGridViewSelectedColumnCollection.cs,
9957 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
9958 the items in reverse order (just as MS does...)
9960 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9962 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
9963 itself, not part of a mnemonic. [Fixes bug #82378]
9965 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9967 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
9968 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
9969 the DGV, the column, the row, or the cell itself is readonly.
9971 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9973 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
9975 * FileDialog.cs: Same.
9976 * TextRendered.cs: Same.
9977 * FolderBrowserDialog.cs: Same.
9978 * TextBoxBase.cs: Same.
9979 * Application.cs: Same.
9981 * ThemeClearLooks.cs: Same.
9983 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9985 * XplatUI.cs: Added RunningOnUnix property to be used by controls
9986 instead of duplicating these checks everywhere.
9987 * FileDialog.cs: Use case-insensitive comparison for populating the
9988 DirComboBox when not running on unix. Fixes bug #82385.
9989 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
9992 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9994 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
9995 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
9996 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
9997 cell and column selection with ctrl and shift pressed. Call the correct
9998 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
9999 the corresponding virtual method (PaintBackground to paint background,
10001 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
10002 either the column, row or the cell itself is selected.
10003 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
10005 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
10006 here. When the row is selected, don't select all cells. Each cell now
10007 queries the row to see if the row is selected.
10009 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10011 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
10014 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10016 * ListView.cs: In ListViewItemsCollection check that owner is
10017 not null before trying to access it (this happens quite often
10018 using Groups). Also don't duplicate calls by calling CollectionChanged
10021 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10023 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
10024 when we are dismissed to clear keyboard mnemonics.
10025 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
10026 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
10027 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
10028 was activated by keyboard or the OS tells us to always draw them.
10029 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
10030 [Fixes bugs #82376, #82377]
10032 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10034 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
10035 shot at having it because Alt was pressed.
10036 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
10037 the first real menu item.
10038 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
10039 a mnemonic if Text is null.
10042 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10044 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
10045 search do check whether the item is already contained in the
10046 collection or not; instead check if the owner of the item is the same
10047 as ours. Also, remove a redundant check in the same method.
10049 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10051 * Control.cs: Allow the clip region to be set back to null.
10052 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
10053 [Fixes button still showing up in bug #82370 when Show Through is turned off]
10055 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10057 * GridEntry.cs: Add a null check.
10058 * PropertyGrid.cs: When checking for existing grid entries, ignore category
10059 entries. Fixes #82297.
10061 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
10063 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
10066 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
10068 * ListBox.cs: Implement ScaleControl.
10070 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10072 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
10074 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
10075 parent has a menu strip. Fixes #81689.
10077 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10079 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
10080 moments, so apply some fuzzy logic to determine if the mouse is still
10081 inside a control or not. Fixes #82288 (for the third time).
10083 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10085 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
10086 Don't create the child if it has been disposed already (may happen if
10087 the user closes the form the Load event).
10089 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10091 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
10094 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10096 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
10097 might call us after we've been destroyed, in which case our own private
10098 parent field is null. Fixes #82326.
10100 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
10102 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
10103 check for setting the dropdown's owner.
10105 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
10107 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
10108 before removing system menu items.
10110 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
10112 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
10114 * MdiControlStrip.cs: Added. These are the menu items used in mdi
10116 * ToolStrip.cs: Add a null check to mnemonics.
10117 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
10119 [Fixes most of bug #81689]
10121 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10123 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
10125 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10127 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
10129 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10131 * DataGridViewCell.cs: EditType: returns
10132 DataGridViewTextBoxEditingControl always.
10134 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
10136 * TextRenderer.cs: Remove the LineLimit string format flag from the
10137 DrawString fallback method so that things like buttons that aren't
10138 tall enough to draw a full line will still draw part of the text.
10139 [Fixes part of bug #82272]
10141 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10143 * DataGridView.cs: Implemented AutoResizeColumn(s).
10144 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
10145 according to the Alignment.
10146 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
10147 Implement alignment and padding when painting.
10148 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
10150 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
10152 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
10155 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10157 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
10160 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10162 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
10163 hide GetPreferredSize from public API.
10164 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10165 * ToolStripItem.cs: Stub out drag and drop methods and events.
10166 * ToolStripManager.cs: Stub out Save/LoadSettings.
10167 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10168 * ToolStripPanel.cs: Fix corcompare error.
10169 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10170 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10171 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10173 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10175 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10176 bounds height instead of PreferredHeight. Puts things back the way
10177 they were for height while still fixing the width. Fixes broken unit
10180 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10182 * Binding.cs: Implement 2.0 constructors and add a null check.
10184 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10186 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10187 and fix row index (off by one).
10189 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10191 * PropertyGridView.cs: Remove debug output.
10193 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10195 * Control.cs: We need to reset the is_created flags when the handle is
10196 destroyed. Fixes #82187.
10197 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10198 client coordinates if the window doesn't have a parent.
10199 Win32GetParent returns the parent or the owner, and for top-level
10200 windows with no parent (but with an owner) we were calculating the
10201 location from the location of the owner.
10202 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
10203 form has been disposed.
10204 * MdiClient.cs: Add a null-check.
10206 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10208 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
10209 actually do auto-sizing. Override the internal GetPreferredSizeCore
10210 so we can provide an implementation that returns the current width
10211 and preferred height. Allows anchor = right to work with TextBox 2.0.
10214 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10216 * ListView.cs: Add support for navigating items in Groups mode, by
10217 creating a big matrix containing all rows and cols of all groups. When
10218 are in other mode than Details, pressing Up should have a similar
10219 behaviour as that one of Down (moving to the next available column if
10220 current one doesn't have an item in the requested row). Also, don't
10221 proceed to use groups if ShowGroups is false.
10222 * ListViewGroup.cs: Add an internal int field to store the starting
10223 row of the group (used by the big matrix used for navigating the
10225 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
10228 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10230 * ToolStripDropDown.cs: When we do Show, start with the
10231 DefaultDropDownDirection, but if our popup menu is going to off-screen,
10232 modify the direction to keep it on screen. [Fixes bug #82210]
10234 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
10236 * FileDialog.cs: Accept any FilterIndex value, and store it
10237 unmodified. When FilterIndex is less than 1, or greater than number
10238 of filters, then default to first filter. Only add filter extension to
10239 file if user did not specifiy an extension. When type of dialog is
10240 OpenFileDialog and DefaultExt is set, then only use filter extension
10241 if: CheckFileExists is true and no file wih the default extension
10242 exists, or CheckFileExists is false, and user specified file does not
10243 exist. When CheckFileExists is true, then add first extension of
10244 selected filter that matches existing file. Perform checks for
10245 existing file, overwrite and create after extension has been added to
10246 file name. When CheckFileExists is true and type is SaveFileDialog,
10247 then only consider first filter extension if DefaultExt is set.
10248 When CheckFileExists is true, then ignore DefaultExt if file with that
10249 extension does not exist. Also perform check for existing file when
10250 type is SaveFileDialog. Changed some field to constants.
10252 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10254 * ListView.cs: Take into account the region used by header
10255 control when doing the vertical scroll (this way we invalidate
10256 the precise area, and don't get any dirty one).
10258 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
10260 * FileDialog.cs: Check for valid filterIndex on button open/save.
10263 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10265 * ListView.cs: Update some layout calculations in details view
10266 and clean the code in a pair of assignations.
10268 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10270 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
10271 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
10272 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
10273 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
10275 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10277 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
10278 performance of thread-safe Graphic methods. (Thanks rolf!)
10280 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10282 * ListView.cs: When doing the layout calculations, don't calculate
10283 scroll bars before handle is created. This is unnecessary and also
10284 calculating them before handle creation item causes a number of random
10285 bugs (which begin to appear after Chris' big patch for handle creation
10288 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10290 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
10291 for things that don't have a Graphics object. Currently, things just use
10292 the static Hwnd.bmp_g which is not thread safe.
10294 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10296 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
10297 dialog. Fixes #82187.
10299 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10301 * DataGridViewElement.cs: Initialize state.
10302 * DataGridView.cs: Forward a few Mouse events to cells. Add
10303 GetRowInternal and GetCellInternal that doesn't unshare rows.
10304 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
10305 don't use the index, but look it up. Add
10306 DataGridViewControlCollection.RemoveInternal to remove controls
10307 that Remove won't remove (scrollbars, edit control).
10308 * DataGridViewColumn.cs: Initialize State correctly.
10309 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
10310 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
10312 * DataGridViewRowCollection.cs: Implemented shared rows.
10313 * DataGridViewRow.cs: Throw exceptions as MS do.
10314 * DataGridViewCell.cs: A few properties are implemented by a
10315 Get<Property> method, so move implementation there and remove the
10316 NIEX in the method. Add a bunch of OnXInternal that DataGridView
10317 calls when necessary.
10318 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
10319 complicates matters.
10320 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
10323 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10325 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
10326 the children controls. Instead, we will just set up the proper docking for the
10327 children controls so we don't have to worry about it. [Fixes bug #82188]
10329 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10331 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
10332 canceling and correct Before/AfterLabelEdit properties as layed out in bug
10333 81847. [Fixes bug #81847]
10335 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10337 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
10338 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
10339 an explicit size based on the design-time size of the text. Since our fonts
10340 may not match this explicit size, we tend to cut off the ends of people's labels.
10342 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
10344 * Menu.cs: Add some missing methods to MenuItemCollection.
10346 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10348 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
10349 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
10350 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
10351 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
10352 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
10353 * DataGridViewElement.cs: State defaults to Visible.
10354 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
10355 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
10357 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10359 * Control.cs: Minor 1.1 corcompare fix.
10361 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10363 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
10364 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
10366 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10368 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
10369 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
10370 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
10371 DataGridViewSelectedColumnCollection.cs,
10372 DataGridViewSelectedRowCollection.cs: Corcompare work.
10374 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10376 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
10377 it is autoset by VS2005 designer and the effect is barely noticeable.
10379 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10381 * TreeView.cs: Implement HitTest.
10383 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10385 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
10386 manually adding and removing the control from the Controls
10388 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
10389 EditingControlInternal property that tracks the editing control.
10390 Always keeping the scrollbars in the Controls collection, as MS
10391 testing confirms is the right behaviour.
10393 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10395 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
10396 according to MSDN and new test.
10398 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10400 * TreeNode.cs: Implement ToolTipText.
10401 * TreeView.cs: Implement tooltips, NodeMouse* events.
10403 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10405 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
10407 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10409 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
10410 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
10412 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
10414 * Control.cs, Form.cs, ContainerControl.cs,
10415 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
10416 for misc properties.
10418 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10420 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
10421 * TreeView.cs: Implement StateImageList.
10423 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10425 * Form.cs: Don't check if the current form is the active form before
10426 activating it. Fixes #81904.
10428 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10430 * Form.cs: Don't check if the current form is the active form before
10431 activating it. Fixes #81904.
10433 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10435 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
10437 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10439 * Form.cs: Don't try to position the form after loading if the form was
10440 disposed. Fixes #81969.
10442 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10444 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
10445 properties. Had to change ToolBar into ToolStrip, which required a
10448 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10450 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
10451 resized, fixes part of #79829 (vertical lines in toolbar).
10452 PropertyGrid: Refactored Populate* to something that's easier to
10453 follow at least for me, as well as splitting it up into several new
10454 methods, required to update only subitems when something has
10455 changed by a popup editor or listbox. Don't use events to check
10456 when any values are changed, since the events are unreliable (we're
10457 changing the objects the events are registered with, and if the
10458 event handling requires the objects to be immutable (objects stored
10459 in hashtables for instance), the events will never be raised).
10460 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
10461 everytime we change a value, since events are unreliable.
10462 DropDownButtonClicked: For the same reason don't compare objects to
10463 check if it has changed or not, it would require all objects to
10464 derive Equals. Fix dialog location on windows, MS is doing weird
10465 things when creating parented forms.
10466 * GridEntry.cs: Add a SelectedObject setter.
10468 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10470 * TreeNode.cs: Add some corcompare attributes.
10471 * TreeNodeCollection.cs: Implement 2.0 stuffs.
10472 * TreeView.cs: Implement some 2.0 stuffs.
10474 2007-07-18 Andreia Gaita <avidigal@novell.com>
10476 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
10479 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10481 * ListBox.cs: Implement custom tab offsets.
10483 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10485 * ToolStripContentPanel.cs: Support System renderer.
10486 * ToolStripControlHost.cs: Set RightToLeft to default to No.
10488 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10490 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
10492 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10494 * CheckBox.cs: Chain TextAlign to base implementation instead of
10495 maintaining another one.
10497 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10499 * ButtonBase.cs: Fix an incorrect string constant.
10501 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10503 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
10504 of creating one for measuring strings.
10506 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10508 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
10509 Implement MaxItemSize.
10511 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10513 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
10514 for DeviceContext. Instead, use the static one available in Hwnd.
10515 Informal tests show this saves about 500k on formtest.exe.
10517 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10519 * ContainerControl.cs: Implement 2.0 AutoScaling.
10521 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10523 * ComboBox.cs: Work around bug #82120 (bug in mcs).
10525 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10527 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
10528 Darken the focus color.
10530 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10532 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
10534 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
10535 X, Y instead of a rect for drawing text.
10536 - For ControlPaint.DrawCheckBox, center the check a little better when the
10537 checkbox is odd width. When drawing a flat checkbox, use a white background
10538 when state != inactive.
10539 [Fixes bugs #82097, 82100]
10541 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
10543 * ListControl.cs: When changing CurrencyManager, disconnect event
10544 handlers from previous one. Fixes bug #81771. Code formatting.
10546 2007-07-15 Andreia Gaita <avidigal@novell.com>
10548 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
10549 full preview invalidation from layout invalidation, and only invalidate
10550 the layout when setting zoom or other properties. Invalidation should
10551 always be done even when resetting properties with the same values as
10552 what is there. Fixes #81744 and #79830.
10554 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10556 * ListView.cs: Implement initial support for Groups. Split some of the
10557 LayoutIcons code to render a partial list of the items (needed by
10558 items contained in ListViewGroup instances). Let the
10559 ListViewItemsCollection.ListView property be modifiable (needed when
10560 using Groups, too).
10561 * ListViewGroup.cs: Use a Bounds property rather than a Location
10562 one. Also invalidate the bounds when they get changed.
10563 * ThemeWin32Classic.cs: When drawing items, also draw the group header
10564 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
10567 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10569 * ListView.cs: When space gets pressed and CheckBoxes is true,
10570 don't invoke the Begin and EndUpdate methods. We are generating
10571 a redraw of the entire control without need to do so.
10573 2007-07-13 William Holmes <billholmes54@gmail.com>
10575 * Control.cs: Changing logic in FindFlatForward and
10576 FindFlatBackward to handle multiple Controls with
10578 This fixes bug 81687.
10580 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
10582 * OSFeature.cs: Enable IsPresent.
10584 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10586 * Control.cs: Don't do anything in WmShowWindow if the control has been
10587 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
10588 control is created, put on a form, the control is disposed (the
10589 form is never shown), and then we get a MapNotify, triggering a
10591 * Form.cs: Exclude the current form when sending Deactivate to all
10593 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
10594 there was a race condition because assigning the handle raises
10595 events, we can get more messages, therefore trying to assign the
10596 handle again, which would fail if any of those event handlers
10597 closed/disposed the control.
10599 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10601 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
10603 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10605 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
10606 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
10608 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10610 * DateTimePicker.cs: If there's no part format specifier, return an
10613 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10615 * FlatButtonAppearance.cs: Throw NotSupportedException for a
10616 Transparent BorderColor.
10618 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10620 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
10621 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
10622 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
10623 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
10624 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
10625 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
10626 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
10628 * X11Structs.cs: Remove warnings, add ToString implementations.
10630 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10632 * XplatUIX11.cs: Translate min/max size according to the actual min/max
10633 size, and not the current size. Fixes #81798.
10635 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10637 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
10638 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
10639 to the control yet).
10641 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10643 * PropertyGridTextBox.cs: Add a method that sends any forwarded
10644 mousedowns to the contained textbox.
10645 * X11Structs.cs: More ToString implementation.
10646 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
10649 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10651 * PropertyGridView.cs: Add a null-check, fixes a few tests.
10653 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10655 * TableLayoutPanelCellPosition.cs: TypeConverter.
10657 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10661 * PropertyGridTextBox.cs: Propagate any color changes to all contained
10663 * PropertyGridView.cs: A few color fixes.
10665 2007-07-10 Jackson Harper <jackson@ximian.com>
10667 * TextControl.cs: Remove some old unused text formatting stuff.
10669 2007-07-10 Jackson Harper <jackson@ximian.com>
10671 * TreeView.cs: Update full row select invalidation to match the
10672 newer DrawSelection... method.
10673 - Make sure to invalidate the entire width when selecting a new
10674 node, if we have full row selection enabled.
10676 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10678 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
10679 display of properties again.
10681 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10683 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
10684 to existing collections.
10686 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10688 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
10689 that changed between 1.1 and 2.0.
10691 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10693 * PowerStatus.cs: Added. This is just a data class, it is filled
10694 in by SystemInformation.
10696 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10698 * Message.cs: Add op_Equality and op_Inequality.
10700 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10702 * MenuStrip.cs: Finish corcompare work.
10704 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10706 * LinkArea.cs: Add op_Equality and op_Inequality.
10708 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10710 * Application.cs: Add MessageLoopCallback delegate.
10712 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10714 * ListBox.cs: First set of 2.0 stuffs.
10716 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10718 * Control.cs: Make an internal Height property we can override
10719 without messing up the public API.
10720 * ListBox.cs: Override HeightInternal to always return the size
10721 the user set. [Fixes bug #80466]
10723 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
10725 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
10726 paint cell borders if we haven't calculated where they go yet.
10727 [Fixes bugs #82040 and #82041]
10729 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10731 * ListView.cs: In Details view, set the location of item_control
10732 in the (0,0) position (and the header_control is thus on the
10733 item_control). This way the Bounds of the Items are relative to the
10734 ListView control (before this, they had a Bounds value without the
10735 header_control offset, which wasn't matching .Net). Fixes #82004.
10737 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10739 * ListControl.cs: When DataSource is set to null, pass an empty
10740 array of object to SetItemsCore. This is done to clean the items
10741 in the ListContol children. Fixes #81788.
10743 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10745 * ListControl.cs: Add 2.0 stuffs.
10747 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10749 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
10750 Refresh is overkill for just about every repaint request.
10752 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10754 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
10755 so remove my custom Get method and fix the property getter.
10757 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10759 * Label.cs: DefaultMargin for 2.0.
10761 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10763 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
10764 reported issue where other controls with mnemonics would steal strokes
10765 from a selected ComboBox.
10767 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10769 * ScrollOrientation.cs: Make internal for 1.1.
10770 * ScrollEventArgs.cs: Add 2.0 stuffs.
10772 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
10774 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10775 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
10776 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
10778 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10780 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
10782 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10784 * ListView.cs: Implement the so-incredibly broken 2.0
10785 VirtualItemsSelectionRangeChanged event.
10787 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10789 * ListView.cs: When enter is pressed and selection is non empty,
10790 an OnItemActivate event must be fired.
10792 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10794 * ListView.cs: Store the FocusedItem information as an
10795 int instead of a ListViewItem (needed by VirtualMode).
10796 Update the calls to SetFocusedItem to pass an index instead of
10798 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
10799 the Focused state from the owner ListView.
10801 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10803 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
10804 property. Also, invalidate previous focused item in the mentioned
10805 property (match .Net).
10807 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10809 * ListView.cs: Implement 2.0 FocusedItem property setter.
10811 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10813 * ListView.cs: Implement 2.0 TopItem property setter.
10815 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
10817 * StatusStrip.cs: The default renderer is System.
10818 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
10819 if the user specifies it.
10820 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
10821 if we are ManagerRenderMode.
10822 * ToolStripMenuItem.cs: Calculate our text color better.
10823 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
10824 from Professional to the base class based off working with the System renderer.
10825 * ToolStripSystemRenderer.cs: Added.
10827 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10829 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
10831 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
10833 * ToolTip.cs: Implement 2.0 Tag property.
10835 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10837 * ListView.cs: Implement 2.0 HitTest methods.
10839 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10841 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
10842 item is under the pointer or not (sugar). Also remove the TODO
10843 regarding to the cursor changes in OneClick activation.
10844 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
10845 the subitems use the parent's HotFont if UseItemStyleForSubItems is
10846 true; otherwise don't show the underline style.
10848 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10850 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
10851 the code to retrieve the item at position only one time. Also
10852 change cursor when Activation is ItemActivation.OneClick as well
10853 as invalidate the item if HotTracking is true (to show/hide the
10854 underline style). Add an internal HotItemIndex property to retrieve
10855 the current hot item's index.
10856 * ListViewItem.cs: Add an internal HotFont property to cache the
10857 font used when HotTracking is true and the pointer moves within the
10859 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
10860 HotFont depending on the hot state of the item.
10862 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10864 * ListView.cs: Implement 2.0 HotTracking property.
10866 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10868 * ToolStripControlHost.cs: If our hosted control never got created,
10869 don't try to dispose it. [Fixes bug #81909]
10871 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10873 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
10875 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10877 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
10879 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10881 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
10883 * DrawListViewColumnHeaderEventArgs.cs:
10884 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
10885 using the DrawText () methods.
10887 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
10889 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
10890 background which got erased in my changes yesterday.
10892 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10894 * ListViewItem.cs: Actually set bounds for subitems in Details view
10896 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
10897 can invoke from the owner draw routines if we need it. Also, add
10898 support for Owner draw in Details view.
10900 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10902 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
10903 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
10904 ShowImageMargin setting, properly align text in a ToolStripLabel
10905 hosted on a ToolStripDropDown.
10907 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10909 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
10910 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
10912 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10914 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
10916 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10918 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
10919 location to match ToolStripMenuItems.
10921 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10923 * DrawListViewColumnHeaderEventArgs.cs:
10924 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
10925 column headers in ListView.
10927 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10929 * UserControl.cs: Implement AutoSize.
10931 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10933 * DrawListViewItemEventArgs.cs:
10935 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
10938 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10940 * ToolStripDropDownItemAccessibleObject.cs: Added.
10941 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
10942 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10943 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
10944 ToolStripTextBox.cs: corcompare work.
10946 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10948 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
10949 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
10950 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
10953 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10955 * OSFeature.cs: Add IsPresent.
10956 * PrintPreviewControl.cs: Add RightToLeft.
10957 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
10958 * SplitterPanel.cs: Add AutoSizeMode.
10960 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10962 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
10963 * MdiClient.cs: Add 2.0 ScaleControl.
10964 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
10965 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
10967 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10969 * Form.cs: Implement some scaling methods, stub some RTL methods,
10972 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10974 * Control.cs: corcompare work.
10975 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
10977 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10979 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
10980 ControlPaint 2.0 stuffs.
10982 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10984 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
10986 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10988 * UpDownBase.cs: Add 2.0 stuffs.
10990 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10992 * NumericUpDown.cs: Add 2.0 stuffs.
10994 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10996 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
10998 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11000 * ErrorProvider.cs: Implement 2.0 stuffs.
11002 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11004 * DomainUpDown.cs: Implement 2.0 stuffs.
11006 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11008 * CheckedListBox.cs: Fix RefreshItems signature.
11010 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11012 * PictureBox.cs: Implement 2.0 stuffs.
11014 2007-06-12 Andreia Gaita <avidigal@novell.com>
11016 * TabControl.cs: Check if there are tabpages before checking
11017 the selected index - fix #81802 (font changes raise a ResizeTabs
11018 call on controls.add, which blew up nicely with no tabpages)
11020 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11023 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
11025 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11028 * ListViewItem.cs: In VirtualMode the selection information
11029 resides in the ListView, rather than in the Items. Also, throw
11030 InvalidOperationExceptions when VirtualMode is being used and
11031 CheckedItemCollection is accessed.
11033 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11035 * ComboBox.cs: Add ScaleControl.
11037 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11039 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
11041 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11043 * GroupBox.cs: Add 2.0 stuffs.
11045 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11047 * Panel.cs: Add autosize properties/event.
11049 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
11052 - When we remove a control, remove it from the collection before performing the layout.
11053 - Setup an internal property for explicit_bounds.
11054 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
11055 - Perform a layout when we set a new AutoSizeMode.
11057 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
11059 * ScrollableControl.cs: Add 2.0 stuffs.
11061 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11063 * ScrollBar.cs: Add 2.0 stuffs.
11065 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11067 * Splitter.cs: Add 2.0 stuffs.
11069 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11071 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
11072 to have BindingContext simply use base implementation.
11074 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11076 * ColumnHeader.cs: corcompare fix.
11078 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11080 * Button.cs: corcompare fixes.
11081 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
11083 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11085 * Button.cs: Override GetPreferredSizeCore.
11086 * ButtonBase.cs: PerformLayout after changing properties that can affect
11087 AutoSize. Simplify some mouse/keyboard code.
11088 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
11089 * MouseEventArgs.cs: Make Location internal for 1.1.
11090 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
11091 * Theme.cs: Add CalculateButtonAutoSize.
11092 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
11094 2007-06-05 Miguel de Icaza <miguel@novell.com>
11096 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
11098 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11100 * ListViewItem.cs: We can't cache Bounds in VirtualMode
11101 since we can get different item instances every time we retrieve it.
11103 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11105 * ListView.cs: Work around for #81602, since an unkown an pretty
11106 infrequent condition appears only in some systems (old linux boxes, it
11109 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11111 * Button.cs: Completely reformat and a little refactor to bring
11112 this closer to Mono circa 2007.
11114 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11116 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
11117 to be ButtonBase.Invalidate.
11119 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11121 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
11123 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11125 * ButtonBase.cs: Completely reformat and a little refactor to bring
11126 this closer to Mono circa 2007.
11128 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
11130 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
11131 values for autosize. Fixes #80137.
11133 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11135 * Control.cs: Don't perform layout when AutoSize changes.
11136 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
11137 directly when autosizing, use SetBounds with BoundsSpecified.None.
11138 Fixes unit tests my last commit broke.
11140 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11142 * Control.cs: Perform layout when AutoSize changes.
11143 * Form.cs: Implement AutoSizing.
11145 2007-06-01 Chris Toshok <toshok@ximian.com>
11147 * DataGrid.cs: remove the XXX'ed check at the top of
11148 ProcessGridKey. fixes #80464.
11150 2007-06-01 Chris Toshok <toshok@ximian.com>
11152 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
11153 adding idempotent (add/remove in Edit()), and also make sure we
11154 don't add it until after we set the text, so it's not tripped in
11155 Edit(). Fixes unit test regression.
11157 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11159 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
11160 change is user explicit, not when the layout engine moves stuff. Fixes
11161 anchoring to bottom and right. [Fixes bug #81790]
11163 2007-06-01 Andreia Gaita <avidigal@novell.com>
11165 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11167 2007-06-01 Andreia Gaita <avidigal@novell.com>
11169 * ContainerControl.cs:
11170 Fire enter event for common ancestor if it is not a ContainerControl.
11171 Send focus to the active_control and not the 'value', the active
11172 control might have been changed in one of the events fired.
11173 Definitely fixes #80159.
11175 2007-06-01 Andreia Gaita <avidigal@novell.com>
11177 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11179 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11181 * PropertyGrid.cs: Anchor the help description to the bottom of the
11182 help panel and refactor SelectGridItem into a
11183 SelectGridItemInternal that can be set to null (and update it to
11184 clear the help texts when it is set to null). Set root item to null
11185 when there's no SelectedObject. Fixes #80438.
11186 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11187 when we're recalculating after a resize (only).
11189 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11191 * ListView.cs: Implement 2.0 RedrawItems method.
11193 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11195 * ListControl.cs: Disconnect PositionChanged and ItemChanged
11196 handlers from previous data manager when DataSource is set to
11197 null. Fixes #81771.
11199 2007-05-31 Jackson Harper <jackson@ximian.com>
11201 * TextBoxBase.cs: These seem to be the correct values.
11203 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
11205 * FileDialog.cs: When close dialog with ok set filterindex using combobox
11206 value. Fixes #81784.
11208 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
11210 * Control.cs: Implement 2.0 scaling methods.
11212 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11214 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
11215 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
11218 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11220 * ProgressBar.cs: Implemented missing 2.0 members.
11222 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11224 * Control.cs: Corcompare issues.
11225 * MessageBox.cs: Implemented missing 2.0 functions.
11227 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11229 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
11230 Implemented more 2.0 members.
11232 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11234 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
11235 null (strange, but it seems to happen when running unit tests).
11237 2007-05-30 Andreia Gaita <avidigal@novell.com>
11239 * ContainerControl.cs: Set active_control even earlier, before
11240 firing any events, and undo it if validation returns false.
11242 2007-05-30 Andreia Gaita <avidigal@novell.com>
11244 * ContainerControl.cs: Raise Validation and Enter/Leave events
11245 even if there is no Form and set active_control earlier, just
11246 before firing Enter events (toshok's patches). Fixes #80647.
11248 2007-05-30 Jackson Harper <jackson@ximian.com>
11250 * TextControl.cs: Redid the pageup/pagedown a little to simplify
11251 things and fix bug #81311.
11253 2007-05-30 Jackson Harper <jackson@ximian.com>
11255 * X11Dnd.cs: Now that we have our own event loop, we need to
11256 cancel when we get a mouseup but it won't be accepted.
11258 2007-05-30 Chris Toshok <toshok@ximian.com>
11260 * DataGrid.cs (set_CurrentCell): guard against negative
11263 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
11264 array index syntax instead of looping over the property names.
11266 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
11267 and set IsInEditOrNavigateMode to false there.
11269 2007-05-30 Jackson Harper <jackson@ximian.com>
11271 * TreeView.cs: Make sure we don't get a bad visible order when
11272 setting to the top node. Fixes some misc crashing in
11275 2007-05-30 Andreia Gaita <avidigal@novell.com>
11277 * UserControl.cs: Add 2.0 AutoSizeMode
11279 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11281 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
11283 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11285 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
11286 lines. Fixes #80285.
11288 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11290 * DataGridColumnStyle.cs: Add char trimming column header text format.
11292 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11294 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
11297 2007-05-29 Jackson Harper <jackson@ximian.com>
11299 * TreeNode.cs: Fix off by one on calculating whether or not a node
11302 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
11304 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
11305 * ScrollableControl.cs: Force an UpdateDistances when we move the
11309 2007-05-29 Andreia Gaita <avidigal@novell.com>
11311 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
11312 update the page setup screen.
11314 2007-05-29 Andreia Gaita <avidigal@novell.com>
11316 * PageSetupDialog.cs: Fix landscape mode.
11318 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11320 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
11321 IconSizeHorizontalSpacing.
11323 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11325 * ListView.cs: The declaration of prev_tooltip_item should be inside
11326 a NET_2_0 conditional (avoid a warning).
11328 2007-05-28 Andreia Gaita <avidigal@novell.com>
11330 * PageSetupDialog.cs: Implement PrintPreview control to display
11331 the preview thumbnail. Change unit conversion to use
11332 PrinterUnitConvert methods.
11334 Note: there is a huge bug in ms.net where the default margins are
11335 interpreted as centimeters (?), when in fact they are set in inches. When
11336 loading the page setup dialog initially (ms.net), the default margins
11337 are set to 1 inch, and the dialog shows them with value 10, when in fact
11338 it should be 25 (properly converted). Our dialog doesn't have this bug.
11340 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
11342 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
11344 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11347 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
11350 2007-05-28 Andreia Gaita <avidigal@novell.com>
11352 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
11353 an IntPtr on csc (it builds fine on mcs, could it be a compiler
11354 bug?), convert the ptr to Int32 first.
11356 2007-05-28 Jackson Harper <jackson@ximian.com>
11358 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
11359 recieved, we will exit the dnd tracking loop.
11361 2007-05-28 Jackson Harper <jackson@ximian.com>
11363 * X11Dnd.cs: Keep tracking until the xdnd finished event is
11364 recieved. TODO: I should probably stick a timer on the dropped
11365 event, and finish the drag if the XDND Finished event never shows
11366 (because some apps don't seem to send it).
11368 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
11370 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
11373 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11375 * MonthCalendar.cs: Only mark the keypresses we actually handle as
11378 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11380 * MonthCalendar.cs: Set the size after initializing all the relevant
11381 variables. Fixes #81742.
11383 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11385 * KeyEventArgs.cs: Fix typo.
11387 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
11389 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
11390 to match MS. Fixed MinDate to only accept value less than or equal
11391 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
11392 Removed TODO's that are now verified by unit tests.
11394 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
11396 * TreeNodeCollection.cs: Minor corrections to exceptions to match
11399 2007-05-25 Jackson Harper <jackson@ximian.com>
11401 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
11402 it's own message loop.
11403 * XplatUIX11.cs: Remove some of the dnd hooks
11405 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
11407 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
11408 instead of MinimizedWindowSize.
11410 2007-05-25 Jackson Harper <jackson@ximian.com>
11412 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
11414 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11416 * KeyEventArgs.cs: Added SuppressKeyPress.
11417 * Control.cs: Added support for SuppressKeyPress.
11419 2007-05-24 Andreia Gaita <avidigal@novell.com>
11421 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
11422 problems with PieChart. suppress_validation should not be a counter,
11423 if there are several BeginInit calls, the first EndInit will
11424 activate validation. Fix exceptions thrown by set_Value.
11425 * UpDownBase.cs: ValidateText only if it's the user editing it.
11427 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11429 * ListControl.cs: FilterItemOnProperty should return the filtered
11430 item proeprty even if DataSource is null. The same applies for
11431 GetItemText. Fixes #80427.
11433 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11435 * Control.cs: If a control doesn't have a parent when it's Dock is
11436 set, but it has children, it needs to do a layout. Fixes some nested
11437 controls issues. [Fixes bug #81199]
11439 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11441 * ComboBox.cs: If there are few items in the drop down list, make it
11442 the exact size the items need, no bigger. Fixes #81612.
11444 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11446 * Application.cs: When we have captured the keyboard for a menu,
11447 check for mouse down events in case we need to close the menu.
11448 * Control.cs, Form.cs: Remove mouse down checks for menus.
11450 2007-05-24 Jackson Harper <jackson@ximian.com>
11452 * TextControl.cs: Handle tabs in non multiline mode a little
11455 2007-05-24 Jackson Harper <jackson@ximian.com>
11457 * TextControl.cs: We need to manually break apart tabbed text and
11458 move the tabs, since the system.drawing tabbing mechanism relies
11460 * TextBoxBase.cs: Move the caret properly when the user enters a
11463 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11465 * ContainerControl.cs: Don't check CanSelect before calling
11467 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
11468 release a KeyboardActive on click if it's not ours.
11470 2007-05-23 Andreia Gaita <avidigal@novell.com>
11472 * ColumnHeader.cs: Add TypeConverter
11474 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11476 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
11478 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11480 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
11482 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11484 * LinkLabel.cs: Implement public Padding property.
11486 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11488 * LinkLabel.cs: Implement public FlatStyle.
11490 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
11492 * Control.cs: Apply patch from George to call parent.PerformLayout
11493 when Visible is changed. [Fixes bugs #81118, 81718]
11495 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11497 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
11499 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11501 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
11503 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11505 * ContextMenu.cs: Implement Collapse.
11507 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11509 * ToolBarButton.cs: Implement Name.
11511 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11513 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
11514 use current_item, it prevents some NRE. Fixes #81675.
11516 2007-05-22 Andreia Gaita <avidigal@novell.com>
11518 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
11519 without updating the text.
11521 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11523 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
11524 without calling DeleteObject. [Should fix bug #81709]
11526 2007-05-22 Jackson Harper <jackson@ximian.com>
11528 * RichTextBox.cs: Set the line endings correctly, when flushing
11531 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
11533 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
11534 {Width=0,Height=0}.
11536 2007-05-22 Jackson Harper <jackson@ximian.com>
11538 * TreeView.cs: Setting top with a null node should set to the very
11541 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11543 * Form.cs: ShowDialog: destroy the handle when message loop is
11544 finished, matches MS behaviour. Refactor parts of WmClose into
11545 RaiseCloseEvents, that only raises events if they haven't already
11546 been raised. Fixes #81688 and #81521.
11547 * Application.cs: Don't call close on the form when exiting a modal
11548 loop, it will raise all the (Form)Closed/Closing events again if
11549 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
11550 which doesn'r raise any events it they have been raised before.
11552 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11554 * Control.cs: Add OnPrint.
11555 * ToolStrip.cs: Add GetChildAtPoint.
11556 * ToolStripContainer.cs: Add OnRightToLeftChanged.
11557 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
11559 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11561 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
11563 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11565 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
11566 isn't visible anymore. Fixes #81651.
11568 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11570 * Control.cs: WmShowWindow: Update children's z-order after setting
11571 their parent. SetParent may show the window, thereby corrupting
11572 z-order, since the window will be shown on top.
11573 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
11574 multiple (and redundant) WM_SHOWWINDOW messages.
11575 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
11576 event has already been raised.
11577 * Form.cs: Change is_changing_visible_state to a counter, since
11578 SetVisibleCore can be called recursively. CreateHandle: when
11579 creating mdi children, send (De)Activated events.
11580 * MdiClient.cs: Update use of is_changing_visible_state.
11581 * Application.cs: OnThreadException: Surround exception handling with
11582 try/finally to ensure we always reset the error-handling state
11585 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11587 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
11590 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11592 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
11593 SmallIcon views, now that we have a standarized horizontal spacing.
11595 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
11596 4, just like the other views (Match .Net).
11598 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
11600 * Control.cs: Delay calculating anchor distances until we actually layout.
11601 Always query the WM for the actual size and location it put us at instead of
11602 only when we send negative values.
11603 [Fixes bugs #81694, 81695]
11605 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11607 * Application.cs: Avoid a possible stack overflow when trying to exit
11610 2007-05-19 Marek Safar <marek.safar@gmail.com>
11612 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
11615 2007-05-19 Andreia Gaita <avidigal@novell.com>
11617 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
11618 * NumericUpDownAcceleration.cs,
11619 NumericUpDownAccelerationCollection.cs: Added 2.0
11622 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
11624 * RichTextBox.cs: Recalculate the document after the ScrollBars
11625 property is changed. Fixes bug #81681.
11627 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11629 * DataObject.cs: Implement 2.0 methods.
11631 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11633 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
11634 in the center of the checkbox, not in the left-top corner.
11637 2007-05-18 Jackson Harper <jackson@ximian.com>
11639 * RichTextBox.cs: Recalculate the document after the scrollbars
11640 property is changed.
11641 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
11644 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11646 * CreateParams.cs: Make HasWindowManager marginally faster.
11647 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
11648 into Hwnd so that other drivers can use it as well.
11649 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
11650 the default location from Hwnd. Fixes MDI client windows always
11651 showing up at (0,0) in Windows (Win32 won't set the default
11652 location since the window styles aren't correct).
11654 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
11656 * TreeView.cs: Modified DoubleBuffered to just use the base
11659 2007-05-18 Jackson Harper <jackson@ximian.com>
11661 * TreeView.cs: Set the top node to the last child node when
11663 - When we get focus, if there is no selected node, use the top
11666 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11668 * KeysConverter.cs: Add CanConvertTo.
11669 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
11670 * LinkConverter.cs: Added.
11672 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11674 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
11675 it prevents error when file dont have write access. Fixes #81669 and #81667.
11677 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11679 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
11680 button text. Fixes #79640.
11682 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11684 * Control.cs: According to MSDN controls created in the designer theres
11685 keyboard accelerators visible by default. So included check for design
11686 in ShowKeyboardCuesInternal.
11688 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11690 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
11691 text. Fixes #81621.
11693 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11695 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
11696 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
11698 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11700 * Control.cs: Finish implementation of UI State using WmChangeUIState
11701 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
11702 in some controls to check for show_keyboard_cues to draw accell keys "_".
11704 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11706 * ListBox.cs: When calculating the horizontal scrollbar
11707 in single column mode, don't use values less than 0 for
11708 Maximum. Fixes #81474.
11710 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11712 * ListBox.cs: Throw the some missing exceptions in
11713 ListBox.ObjectCollection methods.
11715 2007-05-17 Jackson Harper <jackson@ximian.com>
11717 * TextBoxBase.cs: Recalculate the document when the word wrap
11718 value has changed. This fixes 81488.
11720 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11722 * Clipboard.cs: Implement missing GetText overload.
11724 2007-05-17 Chris Toshok <toshok@ximian.com>
11726 * Control.cs (CheckDataBindings): remove the binding_context arg
11729 * CurrencyManager.cs (OnItemChanged): fix this now that
11730 BindingManagerBase is fixed. also remove the comment telling where
11731 the fix should go. We set transfering_data to true/false around
11732 the call to PushData to keep UpdateIsBinding from being called.
11733 (ListChangedHandler): remove the extra OnMetaDataChanged call for
11734 PropertyDescriptorAdded in the 1.1 case. The extra call is
11735 actually generated by System.Data generating 2 metadata changed
11736 events of its own per column add. The fix should go there. Add a
11737 comment to that affect in our test's Assert.Ignore.
11739 * BindingManagerBase.cs: Rework PullData and PushData slightly.
11740 we keep a boolean flag (transfering_data) that keeps us from
11741 calling UpdateIsBinding multiple times if we re-enter either of
11744 * ControlBindingsCollection.cs (AddCore): remove the
11745 binding_context arg to binding.Check.
11747 * Binding.cs (IsBinding): don't check if we're binding here, just
11748 return our cached value. we update it in UpdateIsBinding.
11749 (Check): don't take the binding_context arg, we'll just use our
11750 control's. Also, for some reason MS doesn't use the data member
11751 field when getting the bindingmanager for this binding. it just
11752 uses the datasource. Make this method callable multiple times,
11753 and only do the is_null_desc stuff if manager.Position != -1 (so
11754 we don't get an exception accessing manager.Current).
11755 (UpdateIsBinding): move the code from IsBinding here.
11756 (PositionChangedHandler): call Check here to we can initialize
11757 things that require a non- -1 position.
11759 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11761 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
11764 2007-05-17 Andreia Gaita <avidigal@novell.com>
11766 * TabControl.cs: Add 2.0 methods and events, including
11767 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
11768 * TabPage.cs: Add 2.0 methods
11770 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11772 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
11773 keyboard_cues is properly handled by message method.
11775 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11777 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
11779 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11781 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
11783 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
11786 - WmUpdateUIState added to handle state changes, it make call to
11787 OnChangeUICues event.
11788 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
11791 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
11793 * ImageKeyConverter.cs: Added.
11794 * TreeViewImageKeyConverter.cs: Added.
11796 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11798 * ToolTips.cs: Update Text if SetToolTip is called for a control
11799 already showing the tooltip, as well as restarting its timer; show
11800 tooltip if we are inside the control bounds by the time of calling
11801 SetToolTip. Inside ShowTooltip remove the check to not show the
11802 tooltip again for the active control (it is allowed by .Net to
11803 show the tooltip on the same control multiple times).
11805 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11807 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11809 2007-05-16 Andreia Gaita <avidigal@novell.com>
11811 * ContainerControl.cs: only process tab key if there are no
11812 modifier keys present, otherwise the control does the
11813 tab processing, if it needs to. Fixes #81622
11814 * TabControl.cs: Fixes calculation for which tab to select on
11817 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11819 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11821 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
11823 * Control.cs: Make IsInputCharInternal to allow controls to
11824 override it and still match MS API.
11825 * TextBoxBase.cs: Override IsInputCharInternal and always
11829 2007-05-15 Jackson Harper <jackson@ximian.com>
11831 * TextBox.cs: Disable some of the menu options when using a
11834 2007-05-15 Jackson Harper <jackson@ximian.com>
11838 * RichTextBox.cs: Some new 2.0 methods
11840 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
11842 * FileDialog.cs: On 1.0 profile, do not support multidotted
11845 2007-05-14 Jackson Harper <jackson@ximian.com>
11847 * TextBoxBase.cs: Implement some of the new 2.0 methods.
11848 * RichTextBox.cs: We need to override these methods on 2.0.
11849 * MaskedTextBox.cs: These are implemented now
11850 * TextControl.cs: This was off by one.
11852 2007-05-14 Jackson Harper <jackson@ximian.com>
11854 * TextControl.cs: Because the line endings are including in the
11855 text, we don't need to add them in anymore.
11857 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11859 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
11860 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
11862 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11864 * ToolBar.cs: Adjust size to default size when button theres no text and
11865 image, it fixes remaining issues from #81524.
11867 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11870 - When not flat call redraw to recalculate sizes on creare handle to match
11872 - Revert 77220 because it causes some regressions in toobar
11875 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11877 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
11878 now actually enters a usable state.
11880 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11882 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
11883 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
11886 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11888 * ToolBar.cs: Save default_size on create handle to use later for buttons
11889 without text, needed to mimic win32 behavior.
11891 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11893 * ToolBar.cs: Fix button layour to best fit width or height according to
11894 vertical or not. Fixes #81524.
11896 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11898 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
11899 toolbar size info because different styles theres different sizes.
11902 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11904 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
11905 if we are using checkboxes, checked is true, and we have less
11906 than two images in StateImageList; for the 1.1 in the same scenario
11907 draw the first image if we have at least one image in StateImageList.
11908 Fixes part of #81191.
11910 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11912 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
11913 the owner's Items collection on merge.
11915 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11917 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
11918 * ToolStripItemCollection.cs: Lots of fixes to when events get called
11919 and parent/owner gets changed based on gert's unit tests.
11921 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11923 * MaskedTextBox.cs: Started implementing parts of it.
11925 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11927 * ListView.cs: When clicking the checkbox on the items
11928 take into account the double clicks even if we have only
11929 one image in StateImageList (only for 1.0/1.1). Also
11930 generate an extra change of checked state when we receive
11931 the second click on checkbox (match .Net behaviour).
11932 Fixes part of #81191.
11934 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11936 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
11938 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11940 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
11941 even if OnLoad is overriden and base.OnLoad is not called.
11944 2007-05-10 Andreia Gaita <avidigal@novell.com>
11946 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
11947 shame. (I blame my ever-persisting and annoying cold)
11949 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11951 * ListView.cs: Don't eat navigation keys. Let them flow through to
11952 KeyDown/KeyPress routines. [Fixes bug #81569]
11954 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11956 * ListView.cs: When handling keys for selecting the item based off
11957 keyboard input, do not consider keys pressed with Alt or Control. Also,
11958 correctly handle keys when the Shift key is down. [Fixes bug #81578]
11960 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11962 * Control.cs: When using UseWaitCursor, we have to store the requested
11963 Cursor to use when UseWaitCursor is turned off.
11965 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11967 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
11969 * Application.cs: Use PreProcessControlMessage instead of
11971 * PreProcessControlMessage.cs: Make internal for 1.1.
11973 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11975 * Control.cs: Add InternalContains focus property, which hast the same
11976 functionality of ContainsFocus, but also including implicit controls.
11977 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
11978 since we need to know if the focus is contained in our implicit
11979 ItemControl when calculating Layout. Fixes part of #80888.
11981 2007-05-08 Everaldo Canuto <everaldo@simios.org>
11983 * ToolTip.cs: Remove center form string alignment as it must be align to
11986 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
11988 * ToolStripItemCollection.cs: Set the new item's parent and owner
11989 in Insert like we do in Add. [Fixes bug #81568]
11991 2007-05-08 Jackson Harper <jackson@ximian.com>
11993 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
11994 - Off by one error in SetTop
11995 - Disable DoubeBuffering
11997 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11999 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
12000 control as much as necessary in order to make it entirely visible,
12001 instead of centering the control in the container (matches MS
12002 behaviour). CalculateCanvasSize: we need to take the current scroll
12003 position into account when calculating the maximum canvas,
12004 otherwise the following scenario will fail: resize so that the
12005 scrollbars appear, use the scrollbars to scroll, resize again
12006 smaller, and now the canvas size is too small. Recalculate: when
12007 showing scrollbars make sure they start off at 0, and try to scroll
12008 the active control into view. Fixes #79540. HandleScrollBar: don't
12009 scroll anywhere if the scrollbar isn't visible.
12011 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12013 * ListView.cs: When focus changed, call Layout/Invalidate
12014 in the focused item to update the selected state (should show
12015 entire label when ListView is focused, and a part of it if is not).
12016 * ListViewItem.cs: When doing layout for LargeIcon, take into account
12017 for displaying the entire label not only the Focused state of the
12018 item, but also the Focused state of the ListView (match .Net
12021 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12023 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
12024 Implement UseWaitCursor.
12026 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12027 Applying contributed patch from Sergey Volk.
12029 * Clipboard.cs: Implement SetDataObject retry logic and new overload
12031 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
12033 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12035 * Control.cs: Implement DrawToBitmap.
12037 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12038 Applying contributed patch from Stefan Noack.
12040 * Control.cs: Add [Get|Set]AutoSizeMode.
12042 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12044 * MdiClient.cs: Unmerge menus when the last child is closed.
12046 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12048 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
12049 * ToolStripManager.cs: Call Merge on DropDowns.
12052 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12054 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
12056 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
12057 visibility. We can't create forms visible, since we have to set the
12058 owner before making the form visible (otherwise Win32 will do
12059 strange things with task bar icons). The problem is that we set the
12060 internal is_visible to true before creating the control, so
12061 is_changing_visible_state is the only way of determining if we're
12062 in the process of creating the form due to setting Visible=true -
12063 this works because SetVisibleCore explicitly makes the form
12064 visibile afterwards anyways. Fixes #80775.
12066 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12068 * ThemeWin32Classic.cs: When drawing ListViewItems,
12069 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
12070 or LargeIcon _and_ item is not focused (match .Net behaviour).
12072 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
12074 * Control.cs, Form.cs: Fix some obsolete method warnings.
12076 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
12078 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
12079 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
12081 2007-05-04 Andreia Gaita <avidigal@novell.com>
12083 * ContainerControl.cs: Fix active_control attribution when going
12084 up the parent chain so that the first parent container gets the control
12085 and the rest of the parent containers get the child containers (skips
12086 non-containers). Fixes #80729
12088 2007-05-04 Randolph Chung <tausq@debian.org>
12090 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
12093 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12095 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
12096 takes a size parameter, since the CreateParam's size isn't true for
12097 minimized forms. Fixes #81518,
12099 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12101 * Form.cs: Add OnDeactivateInternal.
12102 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
12104 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12106 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
12107 accessing the parent. Fixes #81508.
12109 2007-05-03 Chris Toshok <toshok@ximian.com>
12111 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
12112 2.0 block, pass listposition + 1 to ChangeRecordState when a row
12113 was added before the current listposition. Fixes the
12114 TestInsertRowBeforeCurrent unit test.
12116 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
12118 * Application.cs: Add RaiseIdle.
12119 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12120 XplatUIX11.cs: Implement RaiseIdle.
12122 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
12123 corcompare work: N - Z
12127 * ScrollableControl.cs
12128 * SplitContainer.cs
12131 * SystemInformation.cs
12133 * TableLayoutControlCollection.cs
12134 * TableLayoutPanel.cs
12139 * ToolStripComboBox.cs
12140 * ToolStripContainer.cs
12141 * ToolStripContentPanel.cs
12142 * ToolStripDropDown.cs
12143 * ToolStripDropDownItem.cs
12144 * ToolStripDropDownMenu.cs
12146 * ToolStripItemCollection.cs
12147 * ToolStripMenuItem.cs
12148 * ToolStripPanel.cs
12149 * ToolStripSplitButton.cs
12152 * TreeNodeCollection.cs
12153 * TreeNodeMouseHoverEventArgs.cs
12156 2007-05-01 Everaldo Canuto <everaldo@simios.org>
12158 * ContextMenu.cs: Add public method Show with alignment property to 2.0
12159 stuff. Thanks aatdark for the patch.
12161 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12163 * GridItem.cs: Implement 2.0 Tag property.
12165 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
12167 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12168 count instead of Nodes.Length. [Fixes bug #81448]
12170 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12172 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12175 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12176 corcompare work: A - M
12177 * BindingNavigator.cs
12182 * FlowLayoutPanel.cs
12188 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12190 * Application.cs: Give toolstrips a chance to process mnemonics.
12191 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12192 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12193 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12195 2007-05-01 Jackson Harper <jackson@ximian.com>
12197 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
12199 - Don't set the BoundsSpecified
12201 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12203 * Application.cs: When using the toolstrip shortcut mechanism, allow the
12204 message to pass through to a regular control if it hosted by a toolstrip.
12205 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12206 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
12208 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12210 * TextRenderer.cs: Use the flags argument when using the MeasureString
12211 fallback algorithm.
12213 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12215 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
12216 the MDI menu item. [Fixes bug #81483]
12218 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
12220 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
12221 string. When setting Name to null, use zero-length string instead.
12223 2007-04-29 Andreia Gaita <avidigal@novell.com>
12225 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
12226 DeselectTab). Implement missing 2.0 TabPageCollection methods
12227 (Add, ContainsKey, RemoveByKey, IndexOfKey)
12229 2007-04-29 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
12231 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
12233 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
12235 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
12236 Fixes bug #81479. Include details of exception when LoadFile fails.
12238 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
12240 * DrawListViewSubItemEventArgs.cs: Added missing setter
12242 2007-04-27 Andreia Gaita <avidigal@novell.com>
12244 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
12245 Hide methods (not complete). Implement missing 2.0 OnPopup event.
12247 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12249 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
12250 removed in ly last commit (it was breaking the Label edit feature).
12252 * ThemeWin32Classic.cs: When drawing a ListViewItem use
12253 StringAlignment.Near for LineAlignment (match .Net).
12255 2007-04-27 Andreia Gaita <avidigal@novell.com>
12257 * TabControl.cs: Change SetTab so it adds the tabpage to the list
12258 of controls if it isn't already there - was blowing up when doing
12259 tabcontrol.TabPages[i]=new TabPage().
12260 SetTab now does a replace by removing the page at the index.
12261 Add a new InsertTab method that inserts a page in a given index
12262 instead of replacing.
12263 Implements TabPageCollection.Insert(int, TabPage).
12265 2007-04-27 Chris Toshok <toshok@ximian.com>
12267 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
12268 internal handler that can be invoked from our subclasses.) Also,
12269 add a comment to PushData about how we need to fix it.
12271 * CurrencyManager.cs: tons of changes here. trying to get things
12272 matching the behavior of .net wrt event orders (ItemChanged,
12273 CurrentChanged, PositionChanged.) I've implemented a private .net
12274 symbol (ChangeRecordState) that appears in stack traces because
12275 it's actually easier to do this than to effective inline all its
12276 various behaviors at every call site.
12278 * RelatedPropertyManager.cs: guard against an exception here by
12279 not using parent.Current if the position is set to -1 (if the
12280 parent datasource is cleared, for instance).
12282 * Binding.cs: don't parse data in PushData (this might be wrong,
12283 but it jives with MS's behavior.) Also, don't call PushData when
12284 we get a CurrentChanged event.
12286 2007-04-27 Andreia Gaita <avidigal@novell.com>
12290 WebBrowserSiteBase.cs,
12291 HtmlDocument.cs: Added stubbed out classes, no real implementations
12294 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12296 * MainMenu.cs: In draw method without parameters call draw method with
12297 PaintEvent, another one (just rect) adjust rectangle and we dont need it
12298 as Rect property is already adjusted. Fixes #80694.
12300 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
12302 * Application.cs: Need to handle keyboard menu deselection here.
12303 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
12304 navigation, allowing keyboard to work on X11.
12305 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
12307 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12309 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
12310 menu bar. It fixes some drawing issues in menu bar.
12312 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12314 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
12315 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
12316 when <alt> key is pressed.
12318 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12320 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
12321 example just set visible to false and make this prevent from other problems.
12322 In SystrayAdd always remove pending expose. Fixes #81072.
12324 2007-04-26 Marek Safar <marek.safar@gmail.com>
12326 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
12329 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12331 * ListView.cs: Added three missing 2.0 events and corresponding
12332 EventHandlers. Added the OwnerDraw property.
12333 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
12335 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12337 * DrawListViewItemEventArgs.cs
12338 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
12340 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12342 * TextControl.cs: Fixed typo in constructor
12344 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
12346 * Application.cs: Create a shortcut path so that currently selected
12347 MenuStrips can intercept keyboard events without having focus.
12348 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
12349 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
12350 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
12351 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
12352 generate WM_SYSCOMMAND message in X11 for other platforms.
12353 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
12354 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
12355 * ToolStripSplitButton.cs: Add DefaultItem property.
12357 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12359 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
12360 fixes some menu draw problem on Windows with border diferent from default
12361 it also fixes #81403.
12363 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12365 * Form.cs: Refactor WndProc into separate methods, just like Control is
12368 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12370 * Control.cs: set_Text: move the call to the driver into a seperate
12371 virtual method so that Form can override it.
12372 * MaskedTextBox.cs: Corcompare fixes.
12373 * Form.cs: Override UpdateWindowText and only update the styles if the
12374 form has been shown (fixes #81405).
12376 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12378 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
12379 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
12380 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
12381 the form lost focus or another control was clicked.
12383 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
12385 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
12388 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12390 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
12391 DrawListViewItemEventHandler.cs,
12392 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
12394 * X11Structs.cs: More ToString implementation.
12396 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12398 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
12399 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
12401 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12403 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
12405 * FormCollection.cs: Don't add a form if it's already in the
12407 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
12408 according to behaviour and MSDN. The ownerWin32 is the active
12409 window at the moment when we call ShowDialog, not the context's
12410 main form (the context's main form may open another form that opens
12411 a form with ShowDialog, the win32 owner is the second form). Add
12412 and remove forms to the Application.OpenForms in other places to
12413 better match MS behaviour. Add an IsActive property that raises
12414 On(de)Activated only if the active state has changed (we were
12415 raising OnDeactivated before OnActivated while creating forms).
12416 * Application.cs: Refactor Enabling/Disabling of windows for modal
12417 dialog loops out to separate methods, and restore the thread
12418 context when we quit the method. Fixes #81407.
12420 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12422 * ListView.cs: In ItemControl.HandleClicks, also fire
12423 2.0 MouseClick or MouseDoubleClick events on the parent,
12424 not only the Click/DoubleClick events.
12426 2007-04-24 Andreia Gaita <avidigal@novell.com>
12428 * TableLayoutSettings.cs:
12429 - Added a GetControls method and a support structure to help the
12430 TypeConverter to enumerate the controls for serialization.
12431 - Added a new serialization constructor.
12432 - Added a isSerialized flag initialized to true on the
12433 serialization constructor so that the TableLayoutPanel.LayoutSettings
12434 setter does not throw the designed NotSupportedOperation exception
12435 when the object is built through deserialization.
12436 - Implemented GetObjectData
12438 * TableLayoutPanel.cs: Added check on LayoutSettings.
12440 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12442 * ListView.cs: Report Click and DoubleClick events to the parent
12443 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
12444 from breaking the click count state when using dialog forms (Control
12445 reports the clicks in a similar fashion). In the previous behaviour
12446 the last WM_LBUTTONUP message in a double click was sent to the
12447 ListView's form, instead of the ListView, which was breaking the click
12448 count for it. Fixes #80387.
12450 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12452 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
12454 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12456 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
12457 us from created dropdowns for menu items that do not have subitems.
12458 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
12459 Check HasDropDownItems before calling DropDown so a dropdown will not be
12460 created if it isn't needed.
12462 2007-04-24 Jackson Harper <jackson@ximian.com>
12464 * TreeView.cs: Set the first node to the selected node when we get
12465 focus if there is no selected node.
12467 2007-04-24 Andreia Gaita <avidigal@novell.com>
12469 * MimeIcon.cs: remove using blocks so that image streams are
12470 not disposed of. Fixes #80151
12472 2007-04-24 Jackson Harper <jackson@ximian.com>
12474 * TextBoxBase.cs: Fixup the height of textboxes when the control
12477 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12479 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
12480 for each ToolStripItem when the parent's RightToLeftChanged is called.
12482 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12484 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
12486 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
12487 property, so that the setter can be overriden too.
12488 * TextBox.cs: Change GetContextMenuInternal() to use
12489 ContextMenuInternal.
12491 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12493 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12496 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12498 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12501 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12503 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
12504 avoid duplicate work. Mostily skeleton code, it's not working at
12507 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
12509 * NotifyIcon.cs : stub for MouseClick event
12510 * Application.cs: stub for SetUnhandledExceptionMode
12512 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12514 * BindingNavigator.cs : Initial (partial) implementation
12516 2007-04-23 Jackson Harper <jackson@ximian.com>
12518 * TreeView.cs: Do not create the treeview's handle when setting
12519 the scroll position.
12520 - ExpandAll needs to compute the scrollbars so it knows which
12521 position to set the bar too.
12523 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
12525 2007-04-23 Jackson Harper <jackson@ximian.com>
12527 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
12530 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
12532 * ToolStripItem.cs: Make GetImageSize internal.
12533 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
12534 need to draw an item. Fixes a reported issue where images on menus
12535 that were not 16x16 were drawing incorrectly.
12537 2007-04-21 Miguel de Icaza <miguel@novell.com>
12539 * Padding.cs: Use the converter, fixes the resgen2 issue with
12542 2007-04-21 Jackson Harper <jackson@ximian.com>
12544 * TreeView.cs: Dont try to unhighlight the selected node if there
12545 isn't a selected node.
12547 2007-04-21 Jackson Harper <jackson@ximian.com>
12553 * TreeView.cs: Use the InternalBorderStyle property to set the
12554 initial border style, this forces the client rectangle to be sized
12557 2007-04-20 Jackson Harper <jackson@ximian.com>
12559 * TreeView.cs: Simplify scrolling to the last node after expanding
12561 - Fix some off by ones with setting the bottom.
12563 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12565 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
12566 that. We were incorrectly doing it the other way around. Also,
12567 update ClientSize if we change the BorderStyle before the control
12570 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12572 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12573 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12574 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
12575 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12576 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12577 Caption to CaptionHeight.
12578 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
12579 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
12580 and FixedFrameBorderSize to return value from current XplatUI driver.
12581 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
12582 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
12583 and FixedFrameBorderSize using win32 API. Renamed Caption to
12585 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
12586 * SystemInformation.cs: Fixed typo in BorderSize.
12588 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12590 * XplatUI.cs: Added MenuAccessKeysUnderlined.
12591 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
12592 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
12594 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
12595 value from XplatUI driver.
12596 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
12597 SystemParametersInfo.
12598 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
12600 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
12603 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12605 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
12607 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12609 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
12611 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12613 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
12614 MenuStrips that contain ToolStripSeparators.
12616 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12618 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
12619 DefineStdCursorBitmap.
12620 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
12621 has been created off a standard cursor. This is used to get a
12622 bitmap of the standard cursor when Draw or DrawStretched is called
12623 in order to draw the cursor.
12624 * X11Structs.cs: Added XcursorImage and XcursorImages.
12625 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
12626 DefineStdCursorBitmap.
12627 * Cursors.cs: Update all relevant creations of Cursor to use the new
12628 internal constructor.
12630 2007-04-19 Jackson Harper <jackson@ximian.com>
12632 * TextBox.cs: Move the has_been_focused into the base control, so
12633 some of the text adding methods can manipulate it (probably time
12634 for a better name for this flag too).
12635 - Call a new version of selectall that doesn't scroll
12636 * TextBoxBase.cs: When we append text, if the document is empty,
12637 don't scroll. If the document has text already, we scroll to the
12638 end of the appended text.
12639 - When the text is changed, we reset the has_been_focused, so the
12640 next time the control gets focused, all the text is selected.
12642 2007-04-19 Jackson Harper <jackson@ximian.com>
12644 * TextControl.cs: Move the margins to the document, add a method
12645 so the margin sizes can be updated.
12646 * TextBoxBase.cs: When the border style is changed, update the
12649 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
12651 * Control.cs: Respect DefaultPadding.
12652 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
12653 padding into account.
12654 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
12656 2007-04-19 Jackson Harper <jackson@ximian.com>
12658 * TextControl.cs: Oops, we need to use the ClientRect not the
12661 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12663 * ListView.cs: In ItemControl.ItemsMouseDown, take into
12664 account the double clicks when CheckBoxes are used and
12665 the pointer is inside the checkbox. Fixes part of #81191.
12667 2007-04-18 Jackson Harper <jackson@ximian.com>
12669 * TextControl.cs: Pressing the end key shouldn't move the caret
12670 past the line ending.
12671 * TextBoxBase.cs: We can still delete if we are in the line
12672 ending and the combine will just kill the existing line ending.
12674 2007-04-18 Jackson Harper <jackson@ximian.com>
12676 * TextControl.cs: We can't move lines, then invalidate their
12677 bounds, we need to get the old bounds and combine that with the
12679 * TextBoxBase.cs: Before combining two lines for a delete, we need
12680 to invalidate the area of the old line, since that will be moved
12681 in the combine operation.
12683 2007-04-18 Everaldo Canuto <everaldo@simios.org>
12685 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
12686 with transparent background. Fixes #80482.
12688 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
12690 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
12691 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
12694 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12696 * CreateParams.cs: Add a couple of helper methods and do a less string
12697 concatenation in ToString.
12698 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
12699 overload that takes a Control parameter, since this method may be
12700 called before a control is assigned to the hwnd (from
12701 CreateWindow), and update CreateWindow to use the new overload. In
12702 GetMenuOrigin subtract the title bar from the y position if the
12703 form has a window manager (since we're painting it and not X).
12704 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
12705 CreateParams to calculate the origin (since border sizes may vary).
12706 In ScreenToMenu only subtract the title height if we actually have
12708 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
12709 mdi children never have menus of themselves.
12710 * InternalWindowManager.cs: Implement menu handling like form does.
12711 Added GetMenuOrigin to calculate the menu origin, can't use the
12712 CreateParams from the form like normally since it's lying.
12713 * Hwnd.cs: Implement GetBorderSize better (in the sense more
12714 windows-like) and add Inflate and comparison operators to the
12715 Borders type. When calculating MenuOrigin and it's a form with a
12716 window manager, use the window manager to calculate it.
12718 2007-04-17 Chris Toshok <toshok@ximian.com>
12720 * Control.cs (CreateControl): turns out in 2.0 we don't need this
12721 OnBindingContextChanged thing here. It's only generated from
12722 ContainerControl.OnCreateControl. Fixes a newly written unit test
12723 - BindingTest.BindingContextChangedTest4.
12725 2007-04-17 Jackson Harper <jackson@ximian.com>
12727 * ScrollBar.cs: When setting values, make sure the current
12728 position stays within the new values range.
12730 2007-04-17 Chris Toshok <toshok@ximian.com>
12732 * Control.cs (CreateControl): talk about a bizarre corner case.
12733 Don't emit OnBindingContextChanged here if we're a parentless
12734 control (i.e. if we're a form.). Fixes
12735 BindingTest.BindingContextChangedTest2.
12737 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12739 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
12740 from win32. Fixes #81255.
12742 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12744 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
12745 already present in CalculateButtonTextAndImageLayout.
12747 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12749 * XplatUIX11.cs: When setting min/max size for a window we need to
12750 translate the coordinates to x coordinates. Create an overload of
12751 SetWindowMinMax that takes a CreateParams handling this, and change
12752 SetWMStyles to call this function (can't use Control.FromHandle in
12753 the SetWindowMinMax to get the control/CreateParams from the handle
12754 because the handle might not have been assigned to the control
12755 yet). Fixes #81371.
12757 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12759 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
12760 if StateImageList is non-null and it has less than two items (match MS
12761 behaviour). Also, in HandleNavKeys handle the Space key, calling
12762 the new ToggleItemsCheckState method, which tries to change the
12763 checked state of the selected items. Fixes part of #81191.
12765 2007-04-16 Jackson Harper <jackson@ximian.com>
12767 * RichTextBox.cs: namespace cleanup.
12769 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12771 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
12773 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12776 * Control.cs: Call invalidate in set_Region.
12778 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
12779 it dont works here.
12781 2007-04-16 Jackson Harper <jackson@ximian.com>
12783 * TextBoxBase.cs: When enter is pressed, we need to update all
12784 lines below the current.
12786 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
12788 * MdiClient.cs: Implement implicit menu merging for MDI
12789 children. When a child form is active, if it has a menustrip
12790 and the parent form has a MainMenuStrip, automatically merge
12793 2007-04-15 Andreia Gaita <avidigal@novell.com>
12795 * TabControl.cs: Refactored sizing methods to not repeat
12796 code all over the place. Tab bounds are now calculated
12797 as if alignment is top and single line, and only when
12798 setting the bounds are the positions adjusted according
12799 to alignment. Replaced hardcoded positions, spacings and
12800 paddings by getting the values the ThemeEngine.
12803 * Theme.cs: Change TabControl properties and methods so
12804 that all start with TabControl*. Added more properties
12805 to help remove hardcoded values on tabcontrol.
12806 Add CPDrawBorder3D declaration so the Theming classes
12809 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
12811 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
12812 on the Theming namespace, and call the appropriate methods here.
12813 Change CPDrawBorder3D to public.
12815 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12817 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
12818 the control after firing the OnMouseUp event, instead of sending
12819 the message before the mentioned event. This is so we can match the
12820 MS behaviour. Fixes part of #80385.
12822 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12824 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
12825 RightToLeft property.
12827 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12829 * ToolStrip.cs: Add properties and internal methods to support merging.
12830 * ToolStripItem.cs: Add MergeAction and MergeIndex.
12831 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
12832 not trigger reparenting or layouts.
12833 * ToolStripManager.cs: Add Merge and RevertMerge methods.
12834 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
12835 is hosting the overflow menu.
12837 2007-04-13 Jackson Harper <jackson@ximian.com>
12839 * TextControl.cs: Set the line ending correctly for the first
12842 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
12844 * Theme.cs: Update GetMethod to get the new definition for
12845 KnownColors.Update (and fix theme color updates).
12847 2007-04-12 Everaldo Canuto <everaldo@simios.org>
12849 * MessageBox.cs: Fix some test and button position.
12851 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12853 * Form.cs: Consider the implicit controls in
12854 GetRealChildAtPoint. We need it since this method
12855 is called on Form when handling the some messages in
12856 WndProc, and need to consider those implicit ones too.
12859 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
12861 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
12862 if there are no ShortcutKeys set.
12863 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
12864 set, use it when painting.
12866 2007-04-12 Jackson Harper <jackson@ximian.com>
12868 * TextControl.cs: Fix some off-by-one issues in line duplication
12869 and insertion in the undo manager. Also, overwrite the first tag
12870 of a line on insert, if it is just a zero lengthed tag. This
12871 prevents us from getting an extra stranded tag at the beginning of
12874 2007-04-11 Everaldo Canuto <everaldo@simios.org>
12876 * Label.cs: Remove check for handle created in CalcAutoSize, we need
12877 to calculated proper size including when handle was not created yet.
12879 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12881 * MdiWindowManager.cs: When moving a form, allow the form to be moved
12882 when the mouse is outside of it's parent's client rectangle. Fixes
12883 #79982 (take 3, part 2).
12885 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12887 * X11Structs.cs: Add a few ToString() overrides.
12888 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
12889 the window location in a window-manager independent way. Reworked
12890 FrameExtents, it now actually works. Reworked AddConfigureNotify
12891 and ReparentNotify handling to use GetTopLevelWindowLocation
12892 instead of the earlier, more hacky solution. Reworked SetWMStyles,
12893 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
12894 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
12895 for all other windows (fixes #81281 part 1), a toolwindow is hidden
12896 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
12897 and generally refactored to do as few calculations as possible
12900 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
12902 * Theme.cs: Change "reflective-contract" between MWF and SD to
12903 minimize # of calls, avoid Color serialization and avoid updating
12904 every "known colors" each time a single one is updated.
12906 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12908 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
12909 when not readonly and the text is explicitly set. Code style updates.
12910 * DataGridTableStyle.cs: Removed extra line.
12911 * DataGrid.cs: Code style updates. Removed extra whitespace.
12912 * DataGridColumnStyle.cs: Code style updates. Removed extra
12915 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12917 * XplatUIX11.cs: Added comment that "fixes" #80021.
12919 2007-04-09 Jackson Harper <jackson@ximian.com>
12921 * TextControl.cs: We don't need this -1 on the line count anymore.
12923 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12925 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
12926 entered value to underlying type, and convert it back to a string to
12927 apply formatting. Modified GetFormattedValue to use TypeConverter
12930 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
12932 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
12933 Use SubItems property when we want to ensure there's at least one
12934 subitem. Modified SubItems property to ensure there's always at least
12935 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
12936 the NRE's reported by MS.
12938 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
12940 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
12941 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
12942 Spaces to tabs. Removed extra tabs.
12944 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
12946 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12947 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
12949 2007-04-06 Jackson Harper <jackson@ximian.com>
12951 * TextBoxBase.cs: When a delete removes a line, recalculate all
12952 lines below that line (they need to get offsets setup correctly)
12955 2007-04-05 Jackson Harper <jackson@ximian.com>
12957 * TextControl.cs: We need to invalidate across the width of the
12958 document when we are invalidating multiple lines.
12959 * TextBoxBase.cs: Don't delete into the line ending.
12961 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12963 * ListView.cs: Restore the check for the MouseHover event
12964 in ListView. It looks like the ListView fires more than one MouseHover
12965 event when HoverSelection is true _only_ in weird-corner scenarios, but
12966 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
12969 2007-04-05 Mike Kestner <mkestner@novell.com>
12971 * ListView.cs : raise MouseDown before updating selection.
12972 [Fixes #80373 tab 1&3]
12974 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12976 * ToolStripRenderer.cs: Add static method to mirror image.
12977 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
12978 and RightToLeftAutoMirrorImage.
12979 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
12981 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12983 * ToolStripSplitStackLayout.cs: Support Alignment property.
12984 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
12986 2007-04-05 Jackson Harper <jackson@ximian.com>
12988 * TextControl.cs: Move around the line endings when crossing line
12990 - When combining lines, strip the ending text off the first line.
12992 2007-04-05 Jackson Harper <jackson@ximian.com>
12995 * TextBoxBase.cs: Try to never move the cursor into the line
12998 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13000 * ToolStripItem.cs: Make sure we aren't firing mouse events when
13001 the item is disabled. Also add a few missing methods.
13003 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13005 * ListView.cs: We don't need the MouseEnter/MouseLeave check
13006 to fire just one MouseHover event when HoverSelection is true, since
13007 .Net does fire more than one MouseHover event in that scenario. Also,
13008 fix the selection in HoverSelection, by invoking UpdateMultiSelect
13009 if MultiSelect is true, instead of only setting ListViewItem.Selected.
13010 Finally, we need to reset the Hover logic in MouseMove, even when we
13011 don't have a selected item.
13013 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13015 * ToolStrip.cs: Add several missing methods, properties, and events.
13017 2007-04-04 Chris Toshok <toshok@ximian.com>
13019 * DataGridTextBoxColumn.cs: set the bounds of the text box to
13020 (0,0,0,0) in Commit, as MS does.
13022 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
13023 make sure we set CurrentRow on a row header click *before* calling
13024 Select. This moves the current cell (and the textbox) to the new
13025 row. The call to Select then hides the textbox, giving us the
13026 correct behavior. Fixes #80362.
13028 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
13029 (ListChangedHandler): reorder the position/current changed events,
13030 and call UpdateIsBinding in the ItemAdded case.
13032 * GridColumnStylesCollection.cs: add some columns events, one of
13033 which raises the CollectionChanged event.
13035 2007-04-04 Jackson Harper <jackson@ximian.com>
13037 * TextControl.cs: When we delete multiple selection lines
13038 invalidate the selection area, don't need to do that for single
13039 lines because the final update view will handle it.
13041 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13043 * Control.cs: When we CreateControl, we need to also create all of the
13044 control's children. The child's OnLoad must also fire before the parent's
13045 OnLoad. Fixes the toolbox size in PDN.
13047 2007-04-04 Jackson Harper <jackson@ximian.com>
13049 * TextBoxBase.cs: When the user presses enter, insert a line
13050 ending into the text. (Maybe this would be a good spot for
13051 Environment.NewLine).
13052 * TextControl.cs: Remove undo manager hack, line endings get
13053 inserted properly now.
13055 2007-04-04 Everaldo Canuto <everaldo@simios.org>
13058 - Remove unneeded parameters in UpdateCursor.
13059 - Fix UpdateCursor to check if menu is active.
13060 - Call UpdateCursor when menu deactivate my click.
13061 [Fixes remaining issues from #80410]
13063 2007-04-04 Everaldo Canuto <everaldo@simios.org>
13065 * Control.cs: GetRealChildAtPoint method added, it make an
13066 recursive child control search for the point.
13068 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
13071 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
13073 2007-04-03 Everaldo Canuto <everaldo@simios.org>
13075 * Form.cs: Fix mouse position when send back mouse event after closes
13078 2007-04-03 Everaldo Canuto <everaldo@simios.org>
13080 * Form.cs: Simplify the BUTTONDOWN for active tracker.
13082 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
13084 * Control.cs: Fix an issue where if a user resized a control inside
13085 a sizing method like OnResize, we would overwrite their explicit
13086 value. Also, only call DefaultSize once in the constructor instead
13087 of 4 times. Also, do not call SetBoundsCore from SetBounds if
13088 nothing actually changed.
13090 2007-04-03 Jackson Harper <jackson@ximian.com>
13092 * TextControl.cs: Don't attempt to copy text for lines with no
13093 text in them (technically this shouldn't happen, but we aren't
13094 always inserting line endings when we should be).
13096 2007-04-03 Jackson Harper <jackson@ximian.com>
13098 * TextBoxBase.cs: Calculate the scrollbars before calculating the
13099 document, because this sets some of the document size properties
13102 2007-04-03 Jackson Harper <jackson@ximian.com>
13104 * TextBoxBase.cs: We need to calculate maximums even if this is
13105 not a multiline control, because the maxs are used for scrolling.
13106 - Display the caret after doing a page up/down, we need to
13107 manually display it because a proper CaretMoved event isn't
13108 triggered (this is because of the way the math is done to
13109 determine how far to scroll).
13111 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
13113 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
13114 (ToolBar was relying on SetBoundsCore to default the values sent
13115 base off of BoundsSpecified.)
13117 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13119 * DateTimePicker.cs: Change Text so that when a null value or empty
13120 string is assigned to the test we always raise ValueChanged and
13121 TextChanged (earlier implementation would only raise ValueChanged
13122 if the current date value was different from DateTime.Now).
13124 2007-04-03 Andreia Gaita <avidigal@novell.com>
13126 * ButtonBase: Call update after invalidation, fixes #80194
13128 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13130 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
13133 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13135 * XplatUIX11.cs: SetWMStyles: If the control is a form with
13136 FormBorderStyle = None, don't give the window any decorations.
13139 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13141 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13142 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
13143 to check for is a mix of several styles (such as WS_CAPTION for
13145 * Control.cs: Don't paint an area bigger than the client area when
13146 painting the background colour. Add an internal GetCreateParams.
13147 Update calls to XplatUI.CalculateWindowRect due to API change.
13148 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
13149 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
13150 the size if it hasn't been handled by any windows. When creating
13151 and moving windows, X wants the location of the entire window, but
13152 the size of the client window, so add
13153 TranslateClientRectangleToXClientRectangle,
13154 TranslateWindowSizeToXWindowSIze and
13155 TranslatedXWindowSizeToWindowSize to cope with this, and call them
13156 before every window creation and move. Update CalculateWIndowRect
13157 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
13158 In AddConfigureNotify don't do anything if the hwnd is a zombie
13159 (fixes the BadWindow we were getting while running the tests),
13160 always calculate the offsets when it's a parentless window, not
13161 only when reparented, and translate the window size, since we're
13162 getting the client size of the whole window, excluding entire
13164 * Theme.cs: Added BorderSizableSize.
13165 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13166 anymore. Update calls to XplatUI.CalculateWindowRect due to API
13168 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13169 change. Fake the window styles here instead of in XplatUIWin32 so
13170 that all back-ends get the same window styles (and it's Form that's
13171 deciding when to use wm, not the Win32 backend anyways)
13172 * Hwnd.cs: Completely reworked GetWindowRectangle and
13173 GetClientRectangle - they are now passed a CreateParams and they
13174 only use Style and ExStyle to determine the rectangles (they should
13175 now work just like Win32AdjustWindowRectEx - though quite a few
13176 special cases are probably missing). They should also be 100%
13177 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13178 == rect), and all numbers (borders, menu sizes) are taken from the
13179 current theme. Added a GetBorders helper function that will return
13180 the borders for any given CreateParams (including captions and
13181 menus), and GetBorderSize that returns the given border size only.
13182 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13183 Hwnd.GetClientRectangle.
13185 2007-04-02 Chris Toshok <toshok@ximian.com>
13187 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13188 logic between the values we present to the user and the values
13189 which are stored in the column's property. Also, don't call
13190 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13192 2007-04-02 Jackson Harper <jackson@ximian.com>
13194 * TextBoxBase.cs: Scroll faster!
13196 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13198 * StatusStrip.cs: Layout fixes for PDN.
13199 * ToolStrip.cs: Set item's available to true, and placement to main when
13201 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
13202 changing in setter before doing any work, add InternalVisible.
13203 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
13204 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13207 2007-04-02 Jackson Harper <jackson@ximian.com>
13209 * TextBox.cs: LBUTTON does not make the textbox select all of it's
13212 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13214 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
13215 Makes ToolStripComboBoxes show up again.
13217 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13219 * ListView.cs: Add a hover_pending field in ListView
13220 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
13221 cycle (we are resetting the MouseHover logic in XplatUI
13222 to handle HoverSelection). Fixes #80429.
13224 2007-04-02 Jackson Harper <jackson@ximian.com>
13226 * TextControl.cs: Make sure the attributes get set on the last
13228 - Still have to do the end tag if we have stepped all the ways to
13231 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
13233 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
13234 on an internal libgdiplus call when the information is already
13235 available via the public API.
13237 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13239 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
13240 control is removed from a control collecftion.
13241 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
13242 Fixes FormPropertyTest (failed on rare occasions).
13243 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
13244 of Win32SetParent (when changing from no parent to a parent it
13245 might add the new parent's location in screen coordinates to this
13246 window's location).
13247 * Form.cs: Rework ChangingParent once again, now the handle is
13248 recreated whenever a FormWindowManager is added or removed (that is
13249 whenever a normal form is parented or abandoned). Also change
13250 CreateParams so that all non-toplevel windows always get the
13251 specified sice (StartupPosition is never considered for
13252 non-TopLevel forms).
13253 * ContainerControl.cs: Add ChildControlRemoved, the container control
13254 needs to be notified when a control is removed from it's
13255 collection, in the case the removed control is the active control.
13257 2007-04-02 Jackson Harper <jackson@ximian.com>
13259 * RichTextBox.cs: Use the new methods for setting the font and
13260 color, these methods set the specified attribute without
13261 overriding the other attributes.
13263 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13265 * ToolStripPanel.cs: Fixes for better layouts in PDN.
13267 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
13269 * TextBox.cs: Added internal ChangeBackColor method to special-case
13270 Color.Empty. Added check for invalid ScrollBars value.
13271 * TextBoxBase.cs: Added internal ChangeBackColor method.
13272 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
13273 internal ChangeBackColor method to special-case Color.Empty. Added
13274 check for invalid ScrollBars value.
13276 2007-03-30 Everaldo Canuto <everaldo@simios.org>
13278 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
13280 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
13282 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
13283 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
13284 [Based on submitted patch from Olivier Duff.]
13286 2007-03-30 Jackson Harper <jackson@ximian.com>
13288 * TextBox.cs: Only select all on initial focus if the user has not
13289 specified a selection area.
13291 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
13293 * UserControl.cs: Override CreateParams.
13295 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13299 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13300 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
13301 check for is a mix of several styles (such as WS_CAPTION for instance).
13302 * Control.cs: Don't paint an area bigger than the client area when painting
13303 the background colour. Add an internal GetCreateParams. Update calls to
13304 XplatUI.CalculateWindowRect due to API change.
13305 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
13306 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
13307 hasn't been handled by any windows. When creating and moving windows, X
13308 wants the location of the entire window, but the size of the client
13309 window, so add TranslateClientRectangleToXClientRectangle,
13310 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
13311 to cope with this, and call them before every window creation and move.
13312 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
13313 removing DeriveStyles). In AddConfigureNotify don't do anything if the
13314 hwnd is a zombie (fixes the BadWindow we were getting while running the
13315 tests), always calculate the offsets when it's a parentless window, not
13316 only when reparented, and translate the window size, since we're getting
13317 the client size of the whole window, excluding entire window.
13318 * Theme.cs: Added BorderSizableSize.
13319 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13320 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
13321 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
13322 Fake the window styles here instead of in XplatUIWin32 so that all
13323 back-ends get the same window styles (and it's Form that's deciding when
13324 to use wm, not the Win32 backend anyways)
13325 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
13326 they are now passed a CreateParams and they only use Style and ExStyle
13327 to determine the rectangles (they should now work just like
13328 Win32AdjustWindowRectEx - though quite a few special cases are probably
13329 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
13330 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
13331 sizes) are taken from the current theme. Added a GetBorders helper
13332 function that will return the borders for any given CreateParams
13333 (including captions and menus), and GetBorderSize that returns the given
13335 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13336 Hwnd.GetClientRectangle.
13338 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13340 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
13341 layout of the mdi children is handled by CreateParams. Fixes
13344 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13346 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
13349 * Form.cs: When active tracker mouse down is not processed, send event
13350 back to control inside mouse position. [Fixes #81227]
13352 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13354 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
13355 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
13356 stealing focus from the active form on Windows. (Control will be made
13357 visible in ShowWindow.)
13359 2007-03-29 Mike Kestner <mkestner@novell.com>
13361 * ImageList.cs : add internal Changed event.
13362 * ListView.cs : hook up to StateImageList.Changed to perform
13363 invalidations when the the state icon list changes. [Fixes #81191]
13365 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13367 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
13368 to prevent tooltips from stealing focus from the active form on Windows.
13370 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13372 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
13374 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
13376 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13378 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
13381 2007-03-29 Jackson Harper <jackson@ximian.com>
13383 * TextControl.cs: When deleting text from non multiline textboxes,
13384 we need to update the entire document, because line offsets will
13387 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13389 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
13390 added to theme, now we can create themes that uses diferent notify engines
13391 like notification-daemon from galago project or growl for Mac OS.
13393 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13395 * NotifyIcon.cs: Prevent Balloon to show in task bar.
13397 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13399 * XplatUIX11.cs: Prevent system to open more than one balloon.
13401 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
13402 some compiler warning messages.
13404 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13408 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
13410 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
13411 implemented, this methods is used by NotifyIcon.BalloonWindow class.
13413 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
13416 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13418 * ListViewItem.cs: Forgot to make Invalidate internal.
13420 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13422 * ListView.cs: Add a InvalidateSelection method to
13423 invalidate methods which are currently selected, and call
13424 it when setting FullRowSelect and HideSelection, instead of
13427 2007-03-28 Chris Toshok <toshok@ximian.com>
13429 * XplatUIX11.cs (UnmapWindow): reindent this block.
13431 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
13432 the selection_start if we're moving the selection (that is, not
13433 extending it). Fixes bug #80461.
13435 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13437 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
13438 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
13439 create private ControlCollection.
13441 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13443 * Control.cs: We need to call OnVisibleChanged for our implicit
13444 children as well as our normal children. Fixes scrollbars in
13445 comboboxes not showing up.
13447 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13449 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
13450 the check for IsHandleCreated first. The check in CreateHandle is not
13451 good enough because CreateHandle can be overriden, and the override
13452 should not be called if the handle is already created.
13454 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13456 * ToolStrip.cs: Remove MonoTODO for tooltips.
13457 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
13458 * ToolStripContainer.cs: Add custom ControlCollection class.
13459 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
13460 * ToolStripDropDown.cs: Add some missing properties/methods.
13461 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
13462 * ToolStripItem.cs: Remove MonoTODO for tooltips.
13463 * ToolStripManager.cs: Add IsShortcutDefined.
13464 * ToolStripOverflow.cs: Override LayoutEngine.
13465 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
13466 * ToolStripSeparator.cs: Add ImageKey.
13468 2007-03-28 Jackson Harper <jackson@ximian.com>
13470 * TextControl.cs: If a char delete removes a line ending, we need
13471 to update the ending style.
13472 - Make sure the line ending calcs get called.
13474 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13476 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
13477 it was making the new code not work. Fixed a typo in the new code
13478 as well. Fixes #79826.
13480 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13483 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
13484 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
13485 - SystrayBalloon method implemented.
13486 [Add support for notifyicon balloon on win32, #79149]
13488 2007-03-27 Mike Kestner <mkestner@novell.com>
13490 * ThemeWin32Classic.cs : update StateImageList selection to mirror
13491 the ms behavior when only one image is added to the list.
13494 2007-03-27 Jackson Harper <jackson@ximian.com>
13496 * TextControl.cs: Improvements to non multiline line ending
13499 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13501 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
13503 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13506 - Balloon message handling added.
13507 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
13509 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13510 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
13511 to SystrayBalloon to me like other Systray method, also a
13512 handle parameter added.
13514 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13516 * ListView.cs: Show scrollbars even when items.Count == 0
13517 but the columns Width is bigger than the ListView.Width.
13518 Also, when columns.Count == 0 set layout_wd and layout_ht
13519 to the ClientRectangle values, so we don't show any scrollbar
13522 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13524 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
13526 2007-03-27 Jackson Harper <jackson@ximian.com>
13528 * RichTextBox.cs: The RTF library decodes the text properly for us
13531 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13533 * ListView.cs: Display HeaderControl even when columns.Count == 0.
13534 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
13535 ListView header (HeaderControl), instead of Control.BackColor.
13537 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13539 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
13540 Fixes tab control issues where controls would not show up because they
13541 never received their OnVisibleChanged call.
13543 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13545 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
13548 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13550 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
13551 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
13552 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
13553 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
13554 the handle. Fix WindowState by using the internal variable until we are
13555 sure that we've been shown.
13556 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
13560 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
13562 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
13563 (at least borders). Fixes #79386 on Linux (with a small difference
13564 in behaviour: when trying to resize a caption-less window metacity
13565 shows the sysmenu. Resizing is still possible though).
13566 * XplatUIWin32.cs: When setting window styles send request an extra
13567 WM_NCCALCSIZE when it's a form without title (due to no text and no
13568 caption), since Win32 seems to calculate it wrong the first time we
13569 get the message, though the second time things work as they should.
13570 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
13571 newly reparented window might show up unparented. Update
13572 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
13573 there's no title text. Fixes #79386.
13575 2007-03-27 Mike Kestner <mkestner@novell.com>
13577 * ListBox.cs : don't perform invalidations if the handle hasn't been
13578 created. [Fixes #80753]
13580 2007-03-27 Mike Kestner <mkestner@novell.com>
13582 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
13585 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13587 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
13588 needed to implement Balloon.
13590 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13592 * ListViewItem.cs: In the constructors that take
13593 an array of strings, don't use ListViewSubItemCollection.AddRange
13594 method to add items, since we need to have a different behaviour (in
13595 the constructors we add an item for each null string, opposed to
13596 the behaviour of AddRange, which adds nothing).
13598 2007-03-26 Andreia Gaita <avidigal@novell.com>
13600 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
13602 2007-03-26 Jackson Harper <jackson@ximian.com>
13604 * TextControl.cs: Draw and measure line endings when in non
13606 - When searching the text, count the end of the last line as a
13609 2007-03-26 Jackson Harper <jackson@ximian.com>
13611 * RichTextBox.cs: The selection_start and selection_end don't
13612 really track the correct tags for the selection. So we'll manually
13613 compute the correct tag here.
13615 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13617 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
13618 and Continuous styles. Fixes #79469.
13620 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13622 * ToolStrip.cs: Implement Tooltips.
13623 * ToolStripItem.cs: Create internal method for determining tooltip.
13625 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13627 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
13629 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13631 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
13632 it prevents a problem thak keeps icon visible after application
13635 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13637 * NotifyIcon.cs: Balloon properties and methods created.
13639 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13640 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
13642 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
13644 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
13646 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13648 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
13649 parameter indicates which aspects were explicit/user-set.
13650 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
13652 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13654 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
13655 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
13656 SmallChange, and Value (2.0).
13657 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
13659 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13661 * ListView.cs: Always set item_control.Width in LayoutDetails
13662 if View is Details. Setting it later in CalculateScrollBars
13663 in a not-so-corner scenario (the sum of columns width is
13664 not bigger than the ListView width when handle is created, and then
13665 that sum gets bigger by increasing the width of the columns)
13666 causes a very weird recursion path (which shouldn't be happening,
13667 since header_control sets it in CalculateScrollBars too). This bug
13668 appeared after Chris' fixes for handle created issues, so probably
13669 it's related to some handle-creation time.
13671 2007-03-23 Chris Toshok <toshok@ximian.com>
13673 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
13674 case where there's an add row, just so we don't end up in a case
13675 where it's not displayed (this happens when the row is partially
13676 obscured). Fixes bug #79574.
13678 2007-03-23 Jackson Harper <jackson@ximian.com>
13682 * RichTextBox.cs: Preserve line endings in the lines text buffer,
13683 also added an enum that represents the line ending type.
13685 2007-03-23 Andreia Gaita <avidigal@novell.com>
13687 * NumericUpDown.cs: Fix logic so Text and Value properties are not
13688 messed with in every method call, but only from DownButton,
13689 UpButton, UpdateEditText() and ValidateText. Fixes #80346
13691 2007-03-23 Chris Toshok <toshok@ximian.com>
13693 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
13694 format objects if the format spec is "". Fixes bug #80889.
13696 2007-03-22 Miguel de Icaza <miguel@novell.com>
13698 * ToolStripPanel.cs (Join): added stubs to build PDN3
13700 * Control.cs (AutoScrollOffset): Add.
13702 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
13703 property, its only implemented for Win32, on X11 it defaults to
13704 some hardcoded value.
13706 * ToolStripItem.cs (AllowDrop): Add property
13708 2007-03-22 Mike Kestner <mkestner@novell.com>
13710 * ListView.cs : in FullRowSelect Details mode, only enable box
13711 selection if the user clicks over the "item" column outside of the
13712 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
13714 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13716 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
13717 handle is not created yet.
13718 * Form.cs: Select: Don't call CreateHandle if the handle is already
13719 created, avoids a stack overflow on Windows when we are recreating
13721 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
13722 they are made visible, and override AfterTopMostControl to keep
13723 them on top when other controls are brought to front.
13724 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
13725 or force_*scroll_visible is true (old implementation always shows
13726 scrollbars when needed, no matter what auto_scroll was set to).
13727 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
13728 IsHandleCreated check.
13730 2007-03-22 Andreia Gaita <avidigal@novell.com>
13732 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
13733 row or col separator.
13734 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
13736 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13738 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
13740 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13742 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
13743 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
13744 every time. Fixes #80410.
13746 2007-03-22 Chris Toshok <toshok@ximian.com>
13748 * BindingSource.cs (AddNew): partially implement.
13750 remove a couple of NotImplementedException's
13751 to get bug #81148 closed.
13753 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13758 - UpdateCursor method added to update the screen cursor.
13759 - GetAvailableCursor method added to return cursor for enabled tree,
13760 it searches for cursor on control and it's parent's for enabled control.
13761 - Call UpdateCursor method on setter of Cursor property.
13762 - On setter of Enabled call UpdateCursor when it is false, we need to
13763 change cursor to normal (or to this parent cursor) because cursor
13764 setting theres no effect to disabled controls.
13765 - Some minor source changes to follow the coding style guidelines.
13767 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
13770 2007-03-22 Chris Toshok <toshok@ximian.com>
13772 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
13775 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13777 * XplatUIX11.cs: Implement default locations for forms.
13778 * Form.cs: Completely rework startup location for forms. Fixes #79964.
13779 * Hwnd.cs: Add previous_child_startup_location (to track the current
13780 startup location for any child forms of the current form) and
13781 previous_main_startup_location (to track the startup location for
13782 the current toplevel form).
13784 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13786 * Control.cs: Don't trigger a layout if an implicit control is added
13787 that isn't visible. Also, don't notify the owner when an implicit control
13788 is added. (Owners shouldn't even know about their implicit controls.)
13790 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13792 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
13793 to save some re-layouts.
13795 2007-03-21 Everaldo Canuto <everaldo@simios.org>
13797 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
13800 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13802 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
13803 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
13805 2007-03-21 Mike Kestner <mkestner@novell.com>
13807 * ListView.cs : disable selection update for non-left button clicks
13808 with mods and over selected items. [Fixes #80524]
13810 2007-03-20 Jackson Harper <jackson@ximian.com>
13813 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
13816 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13818 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
13819 very probably a more complicated calculation there. Update the
13820 textbox' ForeColor and BackColor when the ComboBox' colors are
13821 changed. Change the border change in LayoutComboBox to only affect
13822 the textbox, not all the calculations there. Seems to fix most of
13825 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13827 * ComboBox.cs: Handle Home and End keys as well as all combinations of
13828 modifiers + navigation keys as input keys, enables advanced text
13829 selection in the combobox (like Shift+Left Arrow for instance).
13830 ComboTextBox now overrides Focused and returns whatever
13831 ComboBox.Focused returns, since it really should be focused
13832 whenever the ComboBox is. Fixes #80795. Also make the border around
13833 the text box one pixel bigger, as mentioned in #79436.
13835 2007-03-20 Jackson Harper <jackson@ximian.com>
13837 * TreeView.cs: Don't offset the images, this was causing some
13838 artifacts when expanding/collapsing with images that were the
13839 exact height of the treenode.
13841 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13843 * TrackBar.cs: Query the theme for the correct value when the mouse
13844 moves and the thumb is pressed.
13845 * Theme.cs: Added TrackBarValueFromMousePosition
13846 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
13847 implementation was updating the trackbar value when drawing, now
13848 the drawing methods only draw. Fixes #80900. Refactored the
13849 calculations out to TrackBarValueFromMousePosition and
13850 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
13851 according to the mouse position whenever it wants to. Changed the
13852 light coloured pen when drawing the thumb from ControlLight to
13853 ControlLightLight, because the ControlLight is the same colour as
13854 the background so the 3D effect is lost.
13856 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13858 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
13859 defined. Fixes #80784.
13861 2007-03-20 Marek Habersack <mhabersack@novell.com>
13863 * ContextMenuStrip.cs: align with the change introduced in
13866 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13868 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
13869 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
13872 2007-03-19 Chris Toshok <toshok@ximian.com>
13874 * Control.cs (WmPaint): don't make use of the Handle property
13875 after an event is emitted, as the user could have closed the
13876 form/destroyed the control. Store the Handle in a local variable
13877 and make use of that. Fixes bug #80768.
13879 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13881 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
13882 behavior in X11 environments.
13884 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13886 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
13887 because on setter of topmost we dont call SetTopmost when handle is not
13890 2007-03-20 Jackson Harper <jackson@ximian.com>
13892 * TextControl.cs: Need to use SelectionLength () not
13893 selection_length, since that var is reset to -1.
13894 - Draw the caret when we don't have focus.
13895 * TextBox.cs: The selectall actually doesn't occur until the first
13897 * TextBoxBase.cs: Need to update the caret position after a
13900 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13902 * ListView.cs: Enable scrolling when using Tile view.
13904 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13908 * XplatUIDriver.cs: Abstract SetOwner method created.
13910 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
13911 must be implemented and was masked as todo.
13913 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
13916 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
13917 cheking for null owner to remove transient. The SetTopmost will be change
13920 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
13921 SetTopmost. Now owned forms will work properly in win32 and X11.
13923 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13925 * MdiWindowManager.cs: Update function name.
13926 * Form.cs: After closing a form MdiParent is always null.
13927 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
13928 better what it should do: necessary book-keeping when the form is
13929 closed, it should not close the form itself.
13931 2007-03-19 Andreia Gaita <avidigal@novell.com>
13933 * ListViewItem.cs: Fix back and fore color. The subitems only
13934 use their own colors if they are set, otherwise use the listview's
13935 colors. Don't set default colors on constructor for subitem.
13938 2007-03-19 Mike Kestner <mkestner@novell.com>
13940 * ListView.cs : make box selection for Details views with
13941 FullRowSelect conform to MS behavior when clicking in the "item"
13942 column and clicking outside the defined columns.
13943 [Fixes case 5-6 of #80374]
13945 2007-03-19 Chris Toshok <toshok@ximian.com>
13947 * ScrollableControl.cs: create the controls from within the ctor,
13948 but don't actually add them until our handle is created. this
13949 fixes a NRE possibility jpobst found (if you override OnLayout in
13950 a subclass, it's called before your ctor). Also, add a
13951 IsHandleCreated guard to UpdateSizeGripVisibility as well.
13953 2007-03-19 Jackson Harper <jackson@ximian.com>
13955 * TextBox.cs: Reduce the amount of invalidation we do.
13956 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
13957 some of them are true by default on MS.
13958 - Add some functions to reduce the amount of invalidates we do.
13959 * TextControl.cs: Less invalidation.
13961 2007-03-19 Chris Toshok <toshok@ximian.com>
13963 [ Fixes #81773, and *seems* to fix #81553 as well ]
13965 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
13966 AccumulateDestroyedHandles. We need to do it *after* we send
13967 WM_DESTROY, as the user's code can access Control.Handle in
13968 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
13969 move the WM_DESTROY/zombie handling to before the call to
13970 XDestroyWindow. For some reason without this ordering
13971 FormTest.RecreateHandle hangs. This ordering is semantically
13972 equivalent, however, as XDestroyWindow is async anyway.
13974 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
13976 * RichTextBox.cs: Reset backcolor_set after setting default.
13978 2007-03-19 Chris Toshok <toshok@ximian.com>
13980 * ScrollableControl.cs: the scroll position should not effect the
13981 canvas size. commit patch from georgegiolfan@yahoo.com, which
13982 fixes some really bizarre behavior on resizing. Fixes bug #80778.
13984 2007-03-19 Chris Toshok <toshok@ximian.com>
13986 * ScrollableControl.cs: clean this up a bit. create the
13987 scrollbars in the ctor and just show/hide them as needed. Also,
13988 make hscroll_visible/vscroll_visible internal to Recalculate, and
13989 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
13990 everywhere else. This seems to fix the scrollbars appearing
13991 beneath the content for me (i have *no* idea why that is,
13994 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
13996 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
13997 some redundacy for stuff in Anchor and Dock that base will take care of.
14000 2007-03-19 Mike Kestner <mkestner@novell.com>
14002 * ListView.cs : make box selection for Details views without
14003 FullRowSelect dependent on the text bounds, not item bounds.
14004 * ListViewItem.cs : add an internal property to obtain the TextBounds
14005 in Details view. [Fixes case 1-4 of #80374]
14007 2007-03-19 Andreia Gaita <avidigal@novell.com>
14009 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
14010 we're < 2.0. #78448 && #80316
14012 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
14014 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
14015 have the same style available as the previously selected one. Also,
14016 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
14018 2007-03-19 Jackson Harper <jackson@ximian.com>
14020 * TextControl.cs: Add an alignment property that all new lines
14022 - Make sure to use the align shift when calculating the line's X
14024 * TextBox.cs: Set the alignment on the document as well as on all
14025 the document lines.
14027 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14029 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
14030 throw if setting the parent of an mdichild that already has an
14031 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
14032 AssemblyProductAttribute in the assembly, use the type's namespace (as
14033 MS seems to do). CreateControl: don't create the handle if the control
14034 is not visible (according to MS behaviour and spec). SetTopLevel: Only
14035 create handle if the control is not a form. Change FocusInternal to
14036 virtual so that it can be overriden by Form.
14037 * TextBox.cs: Update call to FocusInternal.
14038 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
14039 form is not a toplevel form when it's a mdi child, so update is_toplevel
14040 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
14041 hasn't been created. Show (IWin32Window): Don't allow this overload for
14042 toplevel windows. CenterToParent/CenterToScreen/Select: create the
14043 handle as MS does. SetVisibleCore: if called on a MdiChild and the
14044 parent isn't visible yet, save the visibility and restore it when the
14045 parent is made visible.
14046 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
14047 methods, since the visibility of the scrollbars can be changed from
14048 several places, not only from AutoScroll.
14051 2007-03-19 Jackson Harper <jackson@ximian.com>
14053 * RichTextBox.cs: Enable shortcuts by default.
14054 * TextBoxBase.cs: Add conditional shortcuts.
14056 2007-03-19 Everaldo Canuto <everaldo@simios.org>
14058 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
14060 2007-03-19 Chris Toshok <toshok@ximian.com>
14062 [ Fixes bug #80604]
14064 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
14065 swallow the message we're waiting on, instead of delivering it, as
14066 this is only used for the WM_SHOWWINDOW raised from
14067 MapWindow/UnmapWindow, and the message needs to be generated
14068 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
14069 before doing the Map/Unmap. Also make sure that the Hwnd is still
14070 alive after the message has been handled.
14072 *before* the window is shown.
14074 * Control.cs (CreateControl): guard a few more things inside the
14075 if (!is_created) block, as we might end up being called again -
14077 (WmShowWindow): call CreateControl if we're showing the control.
14079 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14081 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
14082 controls without a handle if they have any parent with a handle. In
14083 Dispose add a check whether the handle is created or not before
14084 calling BeginInvoke, this removes the need of the extra disposing
14085 parameter (which was bogus anyway since it didn't prevent the
14086 invoke from happening, it only skipped the check for an existing
14087 handle, meaning that the invoke would call on an inexistent
14090 2007-03-19 Everaldo Canuto <everaldo@simios.org>
14092 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
14093 appears in taskbar.
14095 2007-03-18 Everaldo Canuto <everaldo@simios.org>
14098 - Fixed a problem that dont show help button for messages with 3 buttons.
14099 - Refactory button size and position calculations, now dont use fixed
14100 values, also fixed button sizes (#80043) and form's border space.
14101 - AddButton method created, now all other AddButton methods call this one.
14102 - Some other source code cosmetic changes.
14104 2007-03-18 Jackson Harper <jackson@ximian.com>
14106 * RichTextBox.cs: Don't do this all fonts must match check if
14107 there is only one char selected.
14109 2007-03-18 Jackson Harper <jackson@ximian.com>
14111 * TreeView.cs: ScrollWindow works properly now, so we don't need
14112 to screw around with the scroll area. This fixes some artifacts
14113 when expanding and collapsing.
14115 2007-03-18 Jackson Harper <jackson@ximian.com>
14117 * TextBoxBase.cs: Allow updating the selection position when the
14118 cursor is outside the textarea, but we have a capture.
14119 * TextControl.cs: A special case for when the cursor is outside
14120 the bounds of the TB.
14122 2007-03-18 Jackson Harper <jackson@ximian.com>
14124 * TextBoxBase.cs: Remove image pasting code for now. There is no
14125 way to get an image on the clipboard right now anyways.
14127 * RichTextBox.cs: Use the new RTF Picture class for pictures.
14129 2007-03-18 Everaldo Canuto <everaldo@simios.org>
14132 - Set window properties in constructor intead of on CreateParams.
14133 - Remove topmost from Window ExStyle.
14134 - Set ShowInTaskbar to false.
14135 - Set form border to FixedDialog.
14136 - Some cosmetic changes and remove unneeded comments.
14137 - It fixes itens 2,3 and 4 of bug #80043.
14139 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
14141 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
14142 none was explicitly set. Fixes part of bug #79949.
14144 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14146 * ToolStripComboBox.cs: Add AutoComplete*.
14148 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14150 * ToolStripComboBox.cs: Add FlatStyle.
14152 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14154 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
14155 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
14157 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14159 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
14160 CheckBox.cs, RadioButton.cs, BindingSource.cs,
14161 DataGridColumnStyle.cs: Remove warnings.
14163 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14165 * Menu.cs: MergeMenu: Check menu argument for null before looping over
14167 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14168 visibility of mdi child forms. FormSizeChangedHandler: update the
14169 maximized size if size has changed while maximized.
14170 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14171 creating the handle.
14172 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14173 avoid creating the handle if not created.
14174 * XplatUI.cs: Update debug output.
14175 * XplatUIStructs.cs: Added ToString's for a couple of structs.
14177 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14179 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14181 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
14182 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14183 Implement keyboard shortcuts.
14185 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14187 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14188 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
14189 ColorDialog and all derived classes.
14191 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14193 [ Fixes bug #79828 ]
14196 - Rename ToolBarButtonInfor to ToolBarItem.
14197 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14198 - Maintain an array of ToolBarItem, used instead of ToolBarButton
14199 collection to be able add same button more than one time on a toolbar.
14200 - Refactory all properties and methods to use ToolBarItem.
14202 * ToolBarButton.cs:
14203 - Remove all propeties and methods that is now in ToolBarItem.
14204 - Rectangle propery now gets the rectangle from first ToolBarItem to
14205 mimic win32 behavior.
14206 - Size calculation and layout methods also removed.
14208 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
14209 ToolBarItem instead of ToolBarButton to right drawing buttons when
14210 same button/separator was added more than one time to ToolBar.
14212 * ThemeNice.cs: Same as above.
14214 2007-03-15 Andreia Gaita <avidigal@novell.com>
14216 * XplatUIX11.cs: Fire extra MouseMove events right after
14217 MouseDown and MouseUp, emulating win32's <censored> behaviour
14218 for apps that rely on it.
14220 2007-03-15 Jackson Harper <jackson@ximian.com>
14223 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
14224 it is drawn on the controls client window and there is no NC
14226 - Set the background color to gray on 2.0 when we are readonly.
14228 2007-03-15 Chris Toshok <toshok@ximian.com>
14230 [ Fixes bug #81144 ]
14232 * XplatUIX11.cs: implement VirtualScreen independently of
14233 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
14236 2007-03-15 Chris Toshok <toshok@ximian.com>
14238 * Hwnd.cs: add an internal field for the cached_window_state.
14240 * XplatUIX11.cs: cache the window state, invalidating the cache
14241 (and thus re-querying the X server) only when we see an update to
14242 the _NET_WM_STATE property.
14244 2007-03-15 Chris Toshok <toshok@ximian.com>
14246 * BindingSource.cs: get a lot of the unit tests working.
14248 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14250 * Control.cs: Modify UpdateStyles to store distances when bounds >=
14251 0 instead of just bounds > 0. [Fixes bug #80912]
14253 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14255 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
14258 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
14260 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
14261 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
14262 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
14263 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
14265 2007-03-15 Chris Toshok <toshok@ximian.com>
14269 * Control.cs: add Ivan's fix for 81101, with a slight modification
14270 - you can set control.Target to null.
14272 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
14274 * ToolStripItem.cs: If our OwnerItem is null, we can't use
14275 HideDropDown, use Hide instead to prevent an NRE.
14278 2007-03-14 Jackson Harper <jackson@ximian.com>
14280 * TextBoxBase.cs: Mess with the creation stuff a little. We need
14281 to calculate the document before the handle is created, in some
14282 cases. (Actually just one case).
14284 2007-03-14 Jackson Harper <jackson@ximian.com>
14286 * TextBoxBase.cs: Need to display the caret after letting the base
14287 wndproc handle the focus methods, because the caret display
14288 methods check the focus state.
14289 - Try to display the caret after updating it's position with SelectWord.
14290 - Don't need to do an immediate update on this recalc, since there
14291 will be an invalidate anyways.
14293 2007-03-14 Jackson Harper <jackson@ximian.com>
14295 * TreeView.cs: Some workarounds so that we can match event order a
14298 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
14300 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
14301 #80803. Avoid NullReferenceException when Control does not have
14302 parent. Fixed different blinkstyle issues. Only subscribe to Tick
14303 event a single time. Only draw error icon when control is created and
14304 visible. Fixes failing unit tests.
14306 2007-03-14 Andreia Gaita <avidigal@novell.com>
14308 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
14309 Selecting events. Fire Leave and Enter events when changing tabs.
14311 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
14313 * TreeView.cs: Add TreeViewNodeSorter.
14314 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
14316 2007-03-14 Chris Toshok <toshok@ximian.com>
14318 * Form.cs: go ahead and remove the RecreateHandles that jpobst
14319 removed earlier and I had him add back it. It turns out metacity
14320 *does* in fact handle the MOTIF_WM_HINTS property changing, it
14321 just doesn't redraw the window titlebar until you resize the
14322 window. This also means we aren't recreating the entire window
14323 hierarchy on X when you change this property. And it looks better
14326 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14329 * ListView.cs: Collecting selection information
14330 is now done in SelectedIndexCollection rather than in
14331 SelectedListViewItemCollection. This is done so we can
14332 have the selection information code in one single place
14333 (virtual mode selection information entirely depends on
14334 SelectedIndexCollection).
14336 2007-03-13 Miguel de Icaza <miguel@novell.com>
14338 * ErrorProvider.cs: Add stubs for ISupportInitialize
14340 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14342 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
14343 in the right order with the right values, from the Checked property,
14344 just as MS does (instead of triggering them from ListView).
14346 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
14348 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14350 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
14351 the correct handler in OnItemCheck method (ItemCheckEventHandler
14352 instead of EventHandler). This used to throw an InvalidCastException.
14354 2007-03-13 Jackson Harper <jackson@ximian.com>
14356 * TextBoxBase.cs: Calculate the document before the handle is
14357 created, so there isn't an extra invalidate called.
14359 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
14361 * Form.cs: Don't set owner in ShowDialog until we are sure
14362 that we aren't going to throw an exception. [Fixes bug #80773]
14364 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
14366 * TreeView.cs: Make it compile.
14368 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14370 * Control.cs: Another place we don't call SizeFromClientSize.
14371 * Form.cs: Another place we don't call SizeFromClientSize.
14374 2007-03-12 Jackson Harper <jackson@ximian.com>
14376 * TreeView.cs: Basically emulating some strangness here with
14377 exanding nodes and setting node positions when windows aren't
14379 - Also attempting to walk the node tree less than previously, and
14380 just use visible order calculations for determining offsets.
14381 - oops made scrolling backwards.
14382 * TreeNode.cs: We need to start nodes with a zero visible order,
14383 because the order calcs are based on the first nodes order.
14385 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14387 * Form.cs: Don't exit the program if RecreateHandle is called on
14390 2007-03-12 Chris Toshok <toshok@ximian.com>
14392 * XEventQueue.cs: remove the use of PostQuitState.
14394 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
14395 WM_QUIT message in GetMessage, return false (and if we're in the
14396 nested WaitForHwndMessage, repost the WM_QUIT message).
14398 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14400 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
14401 or the MaximizeBox properties. [Part of bug #80640]
14403 2007-03-12 Everaldo Canuto <everaldo@simios.org>
14405 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
14408 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14410 * ToolStripItem.cs: Fix some tests I broke by checking Visible
14411 instead of visible.
14413 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
14415 * FileDialog.cs: Use text of File name combobox to determine what
14416 files the user selected. Added tokenizer to parse the file names.
14419 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14421 * Control.cs: We can't call SizeFromClientSize in the constructor,
14422 but we still need to do the same work, so make an internal version.
14425 2007-03-12 Jackson Harper <jackson@ximian.com>
14429 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
14432 2007-03-12 Jackson Harper <jackson@ximian.com>
14434 * TextBoxBase.cs: Now that the handles are being created a little
14435 later, we need to make sure that the document is recalculated when
14436 the handle is created.
14438 2007-03-11 Everaldo Canuto <everaldo@simios.org>
14440 * Theme.cs: GetLinkFont abstract method added.
14443 - Remove CalcTrimRectangle, no longer needed.
14444 - Factor also remove, position issues must be fixed in libgdiplus.
14445 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
14446 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
14447 care about font used to draw links.
14448 - Set TabStop to true when control is "Selectable", control is selectable
14449 when have one or more links. Fixes #80501 (test case is also added).
14450 - Set the LinkArea values after links change, LinkArea values must be
14451 based in first link position and size, a test case was created.
14452 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
14453 the attribute must be true LinkArea.Length > 0. The same was applied to
14456 * ThemeWin32Classic.cs:
14457 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
14459 - Use CPDrawStringDisabled to draw disabled text instead of hard code
14461 - Draw focus rectangle for every parts focused, including parts that
14462 is on another line, its because regions returns various rectangles
14463 and not only one. Needed to mimic W32 look.
14464 - Uses Graphics.Clip to delimite region painted, it mean that now
14465 complete text is passed to DrawString, with this we solve layout
14466 issues without create another text renderer.
14467 - Uses Region.Intersect to fix some flickers problems, now only needed
14468 parts will redrawed.
14469 - This changes fixes #79614 and some other unreported issues, on Linux
14470 some layout problems still remain, the problem is under
14471 MeasureCharacterRanges but it is an libgdiplus bug.
14473 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
14475 * TextBox.cs: Set for foreground color.
14476 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
14477 this is already done in Control.
14479 2007-03-10 Jackson Harper <jackson@ximian.com>
14481 * TextBox.cs: Set the background color, but reset the
14482 backcolor_set flag which is just for the user setting the
14485 2007-03-09 Chris Toshok <toshok@ximian.com>
14487 * Control.cs: really remove the call to XplatUI.SetVisible from
14488 CreateHandle(), like I said I did when I merged the branch.
14490 * BindingSource.cs: implement some more of this stuff.
14492 2007-03-09 Jackson Harper <jackson@ximian.com>
14494 * TextBox.cs: Don't explicitly set our background colors.
14496 * TextBoxBase.cs: Draw readonly text.
14497 - Need to invalidate when backcolor or readonly are changed.
14499 2007-03-09 Jackson Harper <jackson@ximian.com>
14501 * TextBoxBase.cs: Don't set the forecolor until the handle is
14503 - Do not raise OnPaint, and removed some old debug code.
14505 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
14507 * ScrollableControl.cs: Fix mouse wheel scrolling.
14509 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14511 * Control.cs: Wire up MouseDoubleClick event.
14513 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14515 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
14517 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
14518 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
14519 item is added. This logic was moved to ToolStrip.OnItemAdded.
14522 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14524 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
14526 2007-03-08 Jackson Harper <jackson@ximian.com>
14528 * TreeView.cs: Show the correct image for selected node (this used
14529 to work, not sure how the code got deleted). Also implemented 2.0 feature
14532 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14535 * ListViewItem.cs: Cache index in items when retrieving them
14538 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14540 * ToolStripItem.cs: Don't return the explicit_size if we are using
14541 AutoSize. Fixes invalidation issue when user has explicitly set a
14542 size and has AutoSize = true.
14544 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14546 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
14548 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14550 * DataGridView.cs: Remove event handler from DataView when a
14551 DataTable is used as DataSource.
14553 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14555 * Control.cs: Create internal setter for client_size to allow it to be
14556 set without triggering resizing code.
14557 * Form.cs: Calculate client_size in constructor, only change client_size
14558 in FormBorderStyle property if Handle has been created.
14559 [Fixes #80574, #80791]
14561 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
14563 * SystemInformation.cs: Add TerminalServerSession.
14565 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14567 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
14570 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14572 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
14573 Handle before we were supposed to. Now checks ActivateOnShow property
14575 * Control.cs: Add internal ActivateOnShow property.
14576 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
14577 for ActivateOnShow.
14578 * Hwnd.cs Remove no longer needed no_activate field.
14580 2007-03-07 Jackson Harper <jackson@ximian.com>
14582 * TreeView.cs: Implement owner draw tree nodes. And a couple more
14584 * DrawTreeNodeEventHandler.cs: Add
14585 * DrawTreeNodeEventArgs.cs: Correct default value.
14587 2007-03-07 Chris Toshok <toshok@ximian.com>
14589 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
14590 to be called before NativeWindow.WndProc. Put the HwndCreating
14591 magic there to hook up our Hwnd's to handles.
14593 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
14595 * DataGridView.cs: Comment out debug code.
14597 2007-03-07 Chris Toshok <toshok@ximian.com>
14599 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
14600 to make the rest of the world happy]
14602 * Control.cs (CreateHandle): there's no need to call
14603 XplatUI.SetVisible here, it's effectively done by
14604 XplatUI.CreateWindow on X now, and always was on windows.
14606 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
14607 shortcircuit out of the loop if we have a message loop running on
14610 [Changelog from merge]
14612 2007-03-05 Chris Toshok <toshok@ximian.com>
14614 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
14615 causes handle creation.
14617 2007-02-28 Chris Toshok <toshok@ximian.com>
14619 * ApplicationContext.cs: Add a flag to make sure we only raise the
14620 ThreadExit event once (ExitThreadCore can be indirectly called
14621 from a few places.) I don't like the additional flag, but it
14622 makes the event ordering/count correct.
14624 * Application.cs (MWFThread.LoopCount): don't use an enumerator
14625 without locking the collection. An enumerator doesn't give us any
14626 protection from modification anyway. Lock the thread hash and
14627 replace the complicated enumerator loop with a foreach.
14628 (Application.CloseForms): make internal so it can be called from
14629 ApplicationContext. This should probably be moved to MWFThread.
14630 (Application.ExitThread): don't call MWFThread.Current.Exit()
14631 here. just call XplatUI.PostQuitMessage. We'll exit the thread
14632 when the runloop exits (in response to WM_QUIT.)
14633 (Application.RunLoop): add a comment (and check) for
14634 context.MainForm being null after setting context.MainForm.Visible
14635 = true. This is because you're perfectly free to dispose of a
14636 form in VisibilityChanged. Chalk this up to another case where we
14637 need to synchronously generate WM_ACTIVATE from Control.Show.
14638 Also, add handling for WM_QUIT here so we'll exit the loop.
14640 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
14641 fact that we don't wait if we're only unmapping the whole_window
14642 makes me a bit nervous, but it doesn't seem to cause any problems
14645 also, add a comment about the stupid, broken and wrong resetting
14646 of PostQuitState to false in GetMessage().
14648 In PostQuitMessage, we need to add a WM_QUIT message to the
14649 thread's queue. We use the FosterParent to get the right
14652 Lastly, in SetVisible, we need to unmap both windows, since the
14653 waiting only happens when we're unmapping the client window. So
14654 now, the *only* time we unmap just the whole_window is in the hack
14655 for resizing a control to 0,0.
14657 2007-02-21 Chris Toshok <toshok@ximian.com>
14659 * Application.cs (CloseForms): rewrite this so that we don't
14660 modify the list while we're traversing it.
14662 2007-02-20 Chris Toshok <toshok@ximian.com>
14664 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
14665 of OnHandleCreated.
14666 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
14667 handle is created. otherwise we'll create it here.
14668 (VerticalScrollEvent): same here.
14670 * Application.cs (CloseForms): call Form.Dispose, don't post
14673 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
14674 here. Application should Dispose() of the Form's.
14676 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
14677 WM_DESTROY as well.
14678 (MapWindow,UnmapWindow): only actually do the waiting for
14679 SHOWWINDOW if the control we're dealing with is a Form.
14680 (CreateWindow): if the control isn't a form, SendMessage
14681 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
14683 * Control.cs (SetVisibleCore): always use is_visible here, not
14684 value. If we use value, we can end up re-setting something
14685 visible if, for instance, you do Control.Hide() in a delegate
14686 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
14688 2007-02-20 Chris Toshok <toshok@ximian.com>
14690 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
14691 the message we need. PeekMessage returning false should not be a
14692 condition under which we exit the loop.
14694 2007-02-15 Chris Toshok <toshok@ximian.com>
14696 * Control.cs (Refresh): only refresh if we've got a handle and are
14698 (CreateAccessibilityInstance): CreateControl() here.
14699 (UpdateChildrenZOrder): complicate the code loop even more by
14700 taking into account controls that haven't had their handle
14701 created, and those that aren't visible. But on the flip side,
14702 simplify the code by splitting it into two loops. one which
14703 builds up the list of child controls we're interested in, and the
14704 other that sets the z order of those children.
14706 2007-02-14 Chris Toshok <toshok@ximian.com>
14708 * Control.cs: Control.AccessibilityObject causes the control to be
14709 created, not just the handle.
14711 2007-02-14 Chris Toshok <toshok@ximian.com>
14713 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
14714 problem on X where a window might have its handle created (and be
14715 visible) while the window is unmapped. calling XConfigureWindow
14716 on an unmapped window is bad, and generates X errors.
14718 2007-02-13 Chris Toshok <toshok@ximian.com>
14720 * Control.cs (CreateHandle): don't loop over our children setting
14721 their parent here. do it when in WndProc when we're shown.
14722 (UpdateChildrenZOrder): make this internal so we can call it from
14724 (WndProc): for WM_SHOWWINDOW, reparent the child control after
14725 creating its handle. Also, remove the calls to PerformLayout from
14726 here. they're done in ScrollableControl.OnVisibleChanged. Also,
14727 OnVisibleChanged only seems to be called directly here for the
14728 toplevel control. It's propagated down the window hierarchy by
14729 calls to child.OnParentVisibleChanged.
14730 (OnVisibleChanged): don't do layout here - it's done (oddly
14731 enough, according to a glance at stack traces on ms.net..) in
14734 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
14735 z order of our children before calling PerformLayout.
14737 2007-02-12 Chris Toshok <toshok@ximian.com>
14739 [big change, fixes #80020]
14741 * AccessibleObject.cs: we need to make owner internal again to fix
14742 some of ControlAccessibleObject.
14744 * Control.cs: lots of changes here. add support for WM_CREATE,
14745 for which we generate OnHandleCreated. Remove the OnHandleCreated
14746 call from CreateHandle. Also add support for WM_SHOWWINDOW where
14747 we create child controls. leave the MonoTODO's for the
14748 accessibility calls, but fix the exceptions so the tests pass.
14750 Add the InvalidOperationExceptions to Invoke methods, and remove a
14751 couple of InvokeInternal methods we aren't using.
14753 Also, add a couple of CreateHandle calls in places where we know
14754 the handles are being created but our code doesn't reference
14757 Make SetVisibleCore call OnVisibleChange if the handle isn't
14758 created. If the handle is created, we rely on XplatUI.SetVisible
14759 generating the event synchronously.
14761 Lastly, make sure we don't use this.Handle inside CreateHandle,
14762 because we can call back into client (and that code can dispose of
14765 * XplatUIStructs.cs: misc/cleanup.
14767 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
14768 although we don't populate the wParam properly.
14769 (CreateWindow): generate WM_CREATE.
14770 (MapWindow,UnmapWindow): make these calls synchronous, at great
14771 performance expense (particularly in the unmap case), to match
14774 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
14776 (set_MdiParent): don't recreate the handle unless it's been
14779 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
14782 * NativeWindow.cs: this is probably the weirdest part of the
14783 patch. We need a way to link up the window being created to the
14784 WM_CREATE message. Since we can only be creating one window at a
14785 time on a given thread, we keep track of a per-thread reference so
14786 we can dispatch it properly. We also need to keep track of the
14787 Hwnd currently being created so that the win32 backend doesn't
14790 * XplatUIWin32.cs: a similar change to the one we made in
14793 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14795 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
14796 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
14797 to draw the menu shortcut string.
14799 2007-03-07 Jackson Harper <jackson@ximian.com>
14801 * TreeNode.cs: Add the 2.0 collapse method.
14803 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14805 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
14807 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14809 * DataGridView.cs: Change DataSource will clear column and row
14810 lists. Call Invalidate() to reflect DataSource change.
14812 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14814 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
14815 and a new row is added to it.
14817 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14819 * DataGridView.cs: Add columns when DataSource is en empty list but
14820 is a System.Data.DataView (from a System.Data.DataTable).
14822 2007-03-06 Andreia Gaita <avidigal@novell.com>
14824 * Label.cs: Implement AutoEllipsis (2.0)
14826 2007-03-06 Jackson Harper <jackson@ximian.com>
14828 * TreeView.cs: Implement 2.0 TopNode setter property.
14829 - Use a local var instead of the skipped_nodes field for computing
14830 how many nodes to skip. Otherwise we won't scroll because the
14831 valuechanged handler checks if skipped_nodes is equal to the new
14833 - Implement 2.0 Sort method.
14834 - Add useless 2.0 DoubleBuffer property
14835 - Implement 2.0 LineColors property. Lets you change the color of
14836 the lines in the tree. Terribly useful for creating non cohesive
14838 - Implement 2.0 image key feature.
14840 2007-03-06 Jackson Harper <jackson@ximian.com>
14842 * TreeView.cs: We can't get the bounds of the nodes before raising
14843 the AfterSelect event, because that event could change the node's
14844 bounds (scrolling, font change, etc).
14846 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14848 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
14849 * Form.cs: Don't recreate handle when creating FormWindowManager, just
14850 update window styles. In CreateParams us VisibleInternal instead of
14851 VIsible to get the actual visible flag set for this form.
14852 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
14853 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
14854 handle the case when the form is already maximized, in which case
14855 it should be restored. Fixes #81043.
14857 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14859 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
14861 2007-03-05 Jackson Harper <jackson@ximian.com>
14863 * TreeViewHitTestInfo.cs: implement.
14865 2007-03-05 Jackson Harper <jackson@ximian.com>
14867 * InternalWindowManager.cs: class status fix.
14869 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14871 * InternalWindowManager.cs: All windows that have a parent
14872 are confined to their parent when they're being moved.
14875 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
14877 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
14878 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
14880 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14882 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
14883 buttons invisible before deciding which ones should be visible
14884 (fixes minimize/maximize buttons showing up in toolwindows). Remove
14885 an unused variable.
14886 * InternalWindowManager.cs: Remove warning.
14888 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14890 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
14891 to throw an InvalidOperationException is virtual mode is being used.
14893 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14895 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
14896 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
14897 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
14898 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
14899 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
14900 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
14902 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14904 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
14905 driver.KeyboardDelay from XplatUI.KeyboardDelay
14906 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
14907 (patch by Sergey Volk)
14909 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14911 * ToolWindowManager.cs: Added, contains logic for
14913 * CreateParams.cs: Add a few helper methods and an
14914 internal variable to know which control the CreateParams belongs
14916 * Control.cs: Call Form.ChangingParent when the
14917 parent is about to be changed.
14918 * XplatUIX11.cs: DeriveStyles (): Set
14919 caption_height for all windows that have captions and are children.
14920 Update to use ToolWindowManager instead of InternalWindowManager
14922 * XplatUIWin32.cs: Set fake window styles for all
14923 windows that have window managers.
14924 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
14925 now duplicated for mdi windows when they are
14926 maximized, first for the buttons the window itself has, then for
14927 the buttons that appear in the menu bar. Makes things a little
14928 easier). Updated UpdateWindowDecorations, SetWindowState and the
14929 mouse eventhandlers accordingly.
14930 * Form.cs: Add ChangingParent (), contains the
14931 logic of what should happen when the parent changes. In MdiParent
14932 don't set things that ChangingParent () is doing. When handling
14933 WM_CLOSE, we can close the form if there are any other modal forms
14934 and the current form is a descendent of the modal form.
14935 * InternalWindowManager.cs: A lot of refactoring,
14936 the title buttons are now extracted to a separate container class
14937 that takes care of all button code (clicks, tooltips, etc). Moved
14938 Iconic|Maximized|Normal Bounds properties to this class from
14939 MdiWindowManager, so that the window state logic can succeed for
14940 other than mdi wm's. Implemented general window state change logic.
14941 Moved CreateButtons to ThemeWin32Classic, since the theme might
14942 override which buttons are available when as well as the exact
14944 * FormWindowManager.cs: Added, contains logic for
14946 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
14947 which buttons go where (and if they are at all visible).
14948 Removed special handling of maximized windows, since they aren't special.
14949 In DrawManagedWindowDecorations don't try to draw the text if it is
14951 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
14952 use whatever the wm gives us.
14954 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14956 * ButtonBase.cs: Add 2.0 properties.
14957 * Button.cs: Override Draw for 2.0.
14958 * Control.cs: Add Entered and Selected properties.
14959 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
14960 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
14961 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
14963 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
14965 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14967 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
14969 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14971 * XplatUIWin32.cs: Register a new class with Windows each time we get
14972 a new ClassStyle. [Fixes bugs #79432, #80817]
14973 * Controls.cs: Set the correct ClassStyle in CreateParams.
14974 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
14976 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
14978 * ListView.cs: Add fireEvent argument to ReorderColumn since the
14979 ColumnReordered event must not be signaled when modifying DisplayIndex
14980 of a ColumnHeader. Added internal ReorderColumns method which takes
14981 care of drawing, and updating the internal DisplayIndex of the
14982 ColumnHeader. Added AddColumn method which is invoked from
14983 ColumnHeaderCollection when adding or inserting columns, and which
14984 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
14985 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
14986 Recalculated dispay indices after removing a ColumnHeader.
14987 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
14988 match MS. Allows last display index to be returned after ListView
14989 is disposed. Update actual location of ColumnHeader when DisplayIndex
14992 2007-03-01 Everaldo Canuto <everaldo@simios.org>
14994 * LinkLabel.cs: Improve CalcTrimRectangle.
14996 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
14998 2007-02-28 Everaldo Canuto <everaldo@simios.org>
15000 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
15001 get rectangle as a result value.
15003 2007-02-28 Everaldo Canuto <everaldo@simios.org>
15005 * LinkLabel.cs: Theres some diferences between rectangle return from
15006 MeasureCharacterRanges and the area used for DrawString to fix this
15007 CalcMeasurementFactor method was created, it calcules the diferences
15008 to be use later to adjust rectangle in draw operations. Fixes #80473.
15010 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
15011 to adjust draw rectangle.
15013 2007-02-27 Everaldo Canuto <everaldo@simios.org>
15015 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
15016 text and some other changes to reduce and optimize source code.
15018 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
15020 * RadioButton.cs: Implement 2.0 event.
15021 * RelatedImageListAttribute.cs: Implement new class.
15023 2007-02-27 Everaldo Canuto <everaldo@simios.org>
15025 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
15027 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
15029 * CheckBox.cs: Implement 2.0 functionality.
15031 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15033 * ListView.cs: Refactor Add and AddRange methods of
15034 ListViewItemCollection, to not update the ListView
15035 everytime an item is added in AddRange. Also move the update
15036 code to a new CollectionChanged method, and call it
15037 from other methods that need it as well (this should also fix some
15038 bugs when Sorting is used).
15040 2007-02-27 Jackson Harper <jackson@ximian.com>
15042 * TextControl.cs: Try to never let the caret stay in a non-text
15044 * TextBoxBase.cs: Update the caret.
15046 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
15048 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
15049 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
15050 delete POINT structure, duplicate of one in XplatUIStructs.
15051 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
15053 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
15055 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
15056 edit box since otherwise the Label would immediately be set (even if
15057 the user did not modify the label). In OnKeyDown set Handled to true
15058 if Return or Escape was pressed. In ColumnHeaderCollection unlink
15059 columns that are to be removed. In ListViewItemCollection unlink items
15060 that are to be removed.
15062 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
15064 * TextRenderer.cs: If we set a GDI clip region, we need to clear
15065 it when we are done. [Fixes bug #80949]
15067 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15069 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
15071 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15073 * ListView.cs: I forgot to commit the changes for ListView
15074 in my previous patch.
15076 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15078 * Clipboard.cs: Partially implement an overload of SetDataObject.
15079 * Form.cs: Implement ShowWithoutActivation.
15080 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
15082 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15084 This is a first set of changes to make the Virtual mode works,
15085 by avoiding the retrieval of ListViewItem instances until
15088 * ListView.cs: Store item position in the ListView instead of the
15089 ListViewItem, this way we don't request the Bounds property of
15090 ListViewItem inside the ListView calculations, as well as cache the item
15091 size in item_size field. Store indexes instead of ListViewItem
15092 instances in the matrix used by icon view. Add a ItemMatrixLocation
15093 struct to hold the row and col info of the matrix info.
15095 * ListViewItem.cs: Don't store the location anymore, and only cache
15096 the rectangles for GetBounds. Use the ListView.GetItemLocation
15097 method to retrieve the actual location.
15099 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15101 * TextRenderer.cs: Add clipping support, thanks to George.
15104 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15106 * ListViewItem.cs: Cancel label edit when item is removed from
15108 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
15109 event before the edit textbox is displayed. Added CancelEdit method
15110 which is used end to editing while ignoring the value set by the
15111 user. In EndEdit, set focus to ListView to avoid losing focus to
15112 other controls. In ListViewItemCollection.Clear, cancel editing of
15113 any of the items. In Remove, cancel editing of item being removed.
15114 Avoid udplicate code by modifing RemoveAt to invoke Remove.
15116 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15118 * FileDialog.cs: Update FSEntry when move is successful. Fixes
15121 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15123 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
15124 compatible with non X11 systems. Fixes #80901.
15126 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15128 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
15129 whether the item should be unselected and reselect. We do no want this
15130 when we're starting to edit the label. Do not fire the
15131 SelectedIndexChanged event from ListView when its already been fired
15132 by modifying ListViewItem.Selected. Fixes bug #80943.
15134 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15136 * TextRenderer.cs: Previos commit logic was backwards.
15138 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15140 * TextRenderer.cs: Don't add padding on MeasureText if we were
15141 sent the NoPadding flag.
15143 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15145 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
15146 after DrawButton. To prevent image overlaps button borders SetClip and
15147 ResetClip added before and after draw image. Fixes #79129.
15149 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15151 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
15152 window size, it fix problem when you run under win32 that theres
15153 Size diferent than ClientSize. Also fix controls size and positions
15154 to mimic Win32. Fixes #80837.
15156 2007-02-22 Everaldo Canuto <everaldo@simios.org>
15158 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
15159 menu area to fix some problems for non X11 systems. Fixes #80613.
15161 2007-02-22 Jackson Harper <jackson@ximian.com>
15163 * TreeNode.cs: When a node is expanded, set its is_expanded flag
15164 even if it doesn't have any children.
15166 2007-02-22 Jackson Harper <jackson@ximian.com>
15168 * TreeView.cs: Calculate the top node 'on the fly', this
15169 eliminates issues where you need to click on the tree before
15170 scrolling it to get the top node computed correctly.
15171 * TreeNodeCollection.cs: We don't need to mess with the top node
15174 2007-02-22 Jackson Harper <jackson@ximian.com>
15176 * DataGridViewRow.cs: Fix typo so height can actually be set.
15177 Patch by Peter Grimm.
15179 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15181 * FileDialog.cs: Fixed support for renaming files and directories.
15182 * ListView.cs: Do not lose focus when edit is canceled. Process
15183 Escape as regular key (to prevent closing of dialogs).
15185 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15187 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15188 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15190 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15192 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15193 did not modify label.
15194 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15195 modified the text. Reset Label when user presses Escape in edit mode.
15196 Move focus to ListView after having cancelled or finished editing the
15199 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
15201 * ComboBox.cs: Removed unnecessary initializations. Marked items field
15202 private. Clear textbox when Text is set to null and SelectedIndex is
15204 * FileDialog.cs: Removed unnecessary initializations. Removed
15205 workarounds for ComboBox bugs that are now fixed. Modified
15206 DefaultExt, InitialDirectory and Title property to change null to
15207 zero-length string in getters. Avoid directly accessing fields.
15209 2007-02-20 Jackson Harper <jackson@ximian.com>
15211 * TextControl.cs: Remove RecalAlignments call, that was some
15212 debugging leftovers.
15213 - Don't use the line indent when we shouldn't.
15214 * RichTextBox.cs: Add support for paragraph left indents.
15216 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15218 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
15219 Seems like the class status pages doesn't catch params differences.
15221 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15223 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
15225 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15227 * ComboBox.cs: Setting Text should have no effect if item text of
15228 selected item exactly matches value. First lookup text using
15229 case-sensitive comparison, and fallback to case-insensitive comparison.
15230 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
15231 allow startIndex to be last index. Changed ArgumentOutOfRangeException
15232 paramname to match MS. Restart from first item if string is not found
15233 after startIndex. Fixed paramname of ArgumentNullException that is
15234 thrown for null value in ObjectCollection.Contains.
15236 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15238 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
15240 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15242 * ListControl.cs: In SelectedValue use value.Equals to compare for
15243 equality instead of ==, otherwise it will fail for strings.
15246 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15248 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
15249 since the caret won't show up unless ShowSelection is true.
15252 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15254 * Application.cs: When disabling all forms but the main form, do not
15255 disable any descendants of the main form (such as mdi children or
15256 other parented forms). Fixes #80822 on Windows.
15257 * Form.cs: If we have a parent, set the WS_CHILD style.
15258 * Control.cs: Update the window styles if the control whose parent has
15259 changed is a form (the WS_CHILD style has to be switched).
15261 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15263 * XplatUIStructs.cs: MsgUIState structure added.
15265 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
15267 * FileDialog.cs: Removed need for separate fileName field. On 2.0
15268 profile, do not check filename(s) for illegal character if filename(s)
15269 were set non-interactively but always check on 1.0 profile. Fixed NRE
15270 in DefaultExt and only strip off first leading dot. Improve exception
15271 message when invalid Filter is set. Do not ignore InitialDirectory if
15272 it does no exist. Store specified Title, and if empty use default
15273 title (depending on type of dialog). Added an internal DialogTitle
15274 property for retrieving dialog title. Fixed logic of displayed dir to
15275 more closely match MS. Avoid setting ComboBox.Text to a zero-length
15276 string as its buggy.
15277 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
15278 FileName is a zero-length string (it can never be null). Override
15279 DialogTitle property to set default title of dialog box.
15280 * SaveFileDialog.cs: Override DialogTitle property to set default
15281 title of dialog box.
15283 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
15285 * FileDialog.cs: Modify default text of filename and filetype labels
15286 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
15287 after we've updated the SelectedIndex. Fixes part of bug #80887.
15288 * SaveFileDialog.cs: Set text of filetype label.
15290 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15292 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
15293 label field. Needed by latest Jackson's fixes for ListView.
15295 2007-02-16 Andreia Gaita <avidigal@novell.com>
15297 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
15298 print preview images.
15300 2007-02-16 Jackson Harper <jackson@ximian.com>
15302 * ListView.cs: Make AfterLabelEdit work correctly.
15303 * FileDialog.cs: After changing the name of the folder, we have to
15304 make sure that it is created, or that we pop up an error because
15307 2007-02-16 Jackson Harper <jackson@ximian.com>
15309 * X11Dnd.cs: Implement aliases on mime handlers, so things like
15310 System.String are mapped to text.
15311 - Handle dataobjects, getting all the possible formats out of them
15312 - We dont need the drag event args before we give feedback. This
15313 allows feedback cursors to be immediate before selections have
15316 2007-02-16 Jackson Harper <jackson@ximian.com>
15318 * TextBoxBase.cs: Modified the method for inserting images to
15319 taking a line and position instead of tag and position.
15320 * RichTextBox.cs: Handle PngBlip data by inserting the png image
15322 * TextControl.cs: Allow images to be inserted as the first tag of
15324 - Fix some off by one issues when we assume the first tag is a
15325 text tag, not an image tag.
15327 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15329 * ListView.cs: Set focus to ListView when ItemControl gets a
15330 WM_RBUTTONDOWN message, to mimic .Net behaviour.
15331 Fixes part of #80467.
15333 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15335 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
15336 validate Text input (if null or empty string reset Value to default
15337 value). Fixes #80830.
15339 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15341 * ListView.cs: Set owner as null for columns and items when
15342 Dispose is invoked. Fixes #80607.
15344 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
15346 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
15347 showing DropDowns, don't show a Grip when doing Flow layout.
15348 [This fixes the toolbox in PDN 2.72.]
15349 * ToolStripItem.cs: Add Anchor property and some internal properties to
15350 reduces needed changes to FlowLayout.
15351 * ToolStripOverflow.cs: Remove unused variable.
15352 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
15353 use it in the layout calculations.
15355 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15357 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
15358 reported in #79640.
15360 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
15363 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15365 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
15366 MeasureString format, it can make button very large in some cases, it is
15367 strange but is what win32 do.
15369 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15371 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
15374 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
15375 rendering, the value is based on MenuAccessKeysUnderlined.
15377 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15379 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
15382 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
15384 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
15385 and use MenuAccessKeysUnderlined instead.
15387 2007-02-13 Andreia Gaita <avidigal@novell.com>
15389 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
15390 A selected control would not get a Focus call if:
15391 - the default active control of the container is the same as
15392 the one that was selected
15393 - we are switching from one container to another
15394 Under these conditions, the container being selected already has
15395 an active_control, which is the same as the one being activated,
15396 so set_ActiveControl would always return and not send the Focus
15397 call. Fix to check if the currently active control of the container
15398 is actually focused.
15400 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
15402 * StatusStrip.cs: Implement the spring layout.
15403 * ToolStripControlHost.cs: Make sure the hosted control's visibility
15404 always matches the host.
15405 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
15406 and TextAfterImage.
15408 2007-02-13 Andreia Gaita <avidigal@novell.com>
15410 * Control.cs: Code reorganization only.
15411 - Reorganize the WndProc cases so that each case has it's own handling method,
15412 to help with the no-line-numbering stack traces.
15413 - Formatting changes (it's vstudio's fault, really :p)
15415 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15417 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
15418 Thread.CurrentUICulture to match DateTimePicker's (and MS)
15421 2007-02-12 Jackson Harper <jackson@ximian.com>
15424 * TextBox.cs: By default we have a non multiline document
15425 - use the multiline property instead of the internal variable
15426 * TextBoxBase.cs: Treat multiline and non multiline the same in
15428 - Use the documents multiline flag instead of tracking it ourself
15429 * TextControl.cs: Attempt at getting multiline to match MS
15430 behavior. Lines now track an offset, which is either their X or Y
15431 offset depending on whether or not we are in multiline mode.
15432 - Update all the methods to understand that lines have an X value.
15433 - Fix crash in Undo::Duplicate when empty lines are deleted.
15435 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15437 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
15438 code moved to properties PreferredHeight and PreferredWidth. It solve the
15439 all problems when preferred sizes must be recalculated. Fixes #80801.
15441 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15443 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
15444 font height when compatible_text_rendering is false. Partially fix #80801.
15446 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15448 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
15450 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15452 * Form.cs: Improved exception messages in ShowDialog.
15454 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15456 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
15457 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
15458 if not set. Fixes bug #80764. Avoid accessing current_settings field
15461 2007-02-08 Everaldo Canuto <everaldo@simios.org>
15463 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
15466 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
15467 public in 2.0 and for easy maintenance and dont break compatibility it is
15470 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15472 * ToolStripItem.cs: Implement using images from ImageList.
15474 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15476 * DateTimePicker.cs: Change default date-formatting culture from
15477 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
15478 seems to be the way MS does it.
15480 2007-02-08 Andreia Gaita <avidigal@novell.com>
15482 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
15483 (the 6 was cut off on the right side)
15485 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15487 * Form.cs: Tell MenuStrips to close when the form is clicked.
15488 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
15489 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
15490 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
15491 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
15492 support for Overflow, where items that do not fit are automatically
15493 reparented to a drop down menu.
15494 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
15495 Also: fixes bug #80747.
15497 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15499 * ComboBox.cs: Remove warning (unused code).
15500 * ScrollableControl.cs: Remove warning for 1.1 profile.
15502 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15504 * Form.cs: Remove a warning.
15506 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15508 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
15509 'g' specifier, not documented anywhere, but seems to always show up
15510 as a single space (might have something to do with the DateTime 'g'
15511 specifier, which is the era format, but since DateTimePicker can't
15512 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
15513 won't crash if the format has an unmatched quote. Now shows
15514 single-character formats correctly. Fixes #80744.
15516 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15518 * StatusStrip.cs: Stretch property needs to call base.Stretch,
15519 not this.Stretch to fix stack overflow. [Fixes bug #80760]
15521 2007-02-07 Chris Toshok <toshok@ximian.com>
15523 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
15524 background color. it overwrites the background image we've
15525 already painted. Fixes #80599.
15527 2007-02-07 Chris Toshok <toshok@ximian.com>
15529 * DataGrid.cs: return immediately from Edit() when there are no
15530 columns. Fixes #80662.
15532 2007-02-07 Chris Toshok <toshok@ximian.com>
15534 * MessageBox.cs: fix #80625. don't always show the Help button in
15535 2.0. use the displayHelpButton parameter to determine if we
15536 should show it. Also, make the internal show_help field private.
15538 2007-02-07 Chris Toshok <toshok@ximian.com>
15540 * Control.cs (SetVisibleCore): check in the proposed patch for
15541 80604, and set is_visible before calling CreateControl.
15543 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
15545 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
15546 MonoInternalNote. This is added automagically by VS2005, so let's not crash
15549 2007-02-06 Everaldo Canuto <everaldo@simios.org>
15551 * MenuAPI.cs: hotkey_active internal field added, it is required because
15552 we need to know when hotkeys must be draw, before this change a keystate
15553 Navigating was used but we can have menu in navigating state without
15554 hotkeys. Fixes #80694.
15556 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
15558 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15560 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
15561 corresponding events and methods to be internal for 1.1 profile and
15562 public for 2.0 profile (required by SizeGrip).
15563 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
15564 implicit control list). Don't set the size nor the location of the
15565 SizeGrip anymore as it's not needed.
15566 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
15567 draw directly on the captured control (fixes #80656). Removed
15568 ShowGrip (it wasn't used anywhere), redraw (always true), added
15569 GetDefaultSize and GetDefaultRectangle to calculate defaults.
15570 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
15571 be called from SizeGrip.
15573 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15575 * Timer.cs: Throw ArgumentException if Interval <= 0.
15577 2007-02-05 Jackson Harper <jackson@ximian.com>
15579 * TreeView.cs: We need to check scrollbar visibility when window
15580 visibility is updated, because non visible trees don't ever add
15582 * Cursor.cs: We want the override cursor to be reset to NULL when
15583 we set current cursor to the default cursor.
15585 2007-02-05 Jackson Harper <jackson@ximian.com>
15587 * TextControl.cs: Don't have crlfs when we are non multiline.
15588 - Consolidate the line position.
15590 2007-02-05 Jackson Harper <jackson@ximian.com>
15592 * X11Keyboard.cs: BACK+CTRL gets a special char code.
15594 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15596 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
15597 handling LeaveNotify->NotifyUngrab in order to send
15598 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
15599 after calling XUngrabPointer, so we call WindowUngrabbed directly
15600 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
15601 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
15602 MouseCaptureChanged correctly. Also create handles if changing
15603 Capture (matches MS behaviour).
15605 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15607 * SizeGrip.cs: Make the last change 2.0 only.
15609 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15611 * SizeGrip.cs: If resizing and the capture is lost, revert any size
15612 changes to initial size (fixes #80597).
15614 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15616 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
15618 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15620 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
15621 background) and only allow dragging if enabled. This way the
15622 sizegrip can be used to fill the open square that otherwise would
15623 have been shown in the bottom right corner of ScrollableControl
15624 when ScrollableControl is not suppose to support sizing.
15625 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
15626 sizegrip is shown and enabled, and hook up with necessary events.
15628 2007-02-01 Chris Toshok <toshok@ximian.com>
15630 * DataGridTextBoxColumn.cs: clean up the
15631 GetFormattedString/GetColumnValueAtRow combination of functions.
15632 Also fix UpdateUI, and the initial state of
15633 IsInEditOrNavigateMode.
15635 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
15636 aren't supposed to scroll the textbox here, we're supposed to
15637 scroll the datagrid.
15639 2007-02-01 Chris Toshok <toshok@ximian.com>
15641 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
15642 setting the position.
15644 2007-02-01 Chris Toshok <toshok@ximian.com>
15646 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
15647 here, since the most recent focus fixes keep us from generating
15648 the Leave event when our textbox gets focus.
15649 (Edit): we should be passing null for the column style's
15650 instantText parameter.
15652 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
15654 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
15655 raised. Fixes menu text/icons not showing up in PDN.
15657 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
15659 * Control.cs: Remove code in constructor that makes every
15660 control with WS_CHILD set have initial location -1, -1.
15662 2007-01-31 Jackson Harper <jackson@ximian.com>
15664 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
15666 * XplatUIX11.cs: Give teh keyboard to teh dnd.
15668 2007-01-31 Jackson Harper <jackson@ximian.com>
15670 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
15671 - Remove some debug code.
15673 2007-01-31 Jackson Harper <jackson@ximian.com>
15675 * XplatUIX11.cs: If you set the override cursor during a grab, it
15676 should actually override the grab cursor. This comes into play
15677 when you are setting custom cursors in a DND feedback method.
15679 2007-01-31 Jackson Harper <jackson@ximian.com>
15681 * X11Dnd.cs: Add support for handling the QueryContinue and
15682 GiveFeedback events.
15683 - Cancel drag and drop actions when the escape key is clicked.
15684 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
15685 can handle the ESCAPE key.
15686 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
15687 done when dnd events are continued after the button is released.
15688 - Add a new helper method so that dnd can translate key events.
15690 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
15692 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
15693 make it more obvious what is happening.
15695 2007-01-30 Jackson Harper <jackson@ximian.com>
15697 * XplatUIX11.cs: Don't break when handling button release in drag
15698 and drop operations. We need that BUTTONUP message to get through
15699 so capture is released.
15700 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
15701 this is handled automatically when the mouse is down.
15703 2007-01-30 Jackson Harper <jackson@ximian.com>
15705 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
15706 is closed, so we need to make sure that we aren't changing the
15707 dialog result when the OK (Open or Save) button has been clicked
15708 and we are closing the window ourselves. Note we don't need to
15709 worry about the cache being written in this case, because it was
15710 already done in the previous FilOk call.
15712 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15714 * DateTimePicker.cs: Remove a warning.
15715 * ComboBox.cs: Remove a couple of warnings.
15717 2007-01-29 Chris Toshok <toshok@ximian.com>
15719 * XplatUIX11.cs: don't crash, and remove the icon if the user has
15720 set one, if SetIcon is passed a null icon.
15722 2007-01-29 Andreia Gaita <avidigal@novell.com>
15724 * TextBox.cs: Redraw when the password characters changes
15725 * TextControl.cs: Check if textbox has a password char and draw
15726 a line of password chars instead of the text in the line. LineTag gets
15727 an extra Draw() method which allows document.Draw to override the text
15728 that will be drawn. Removes 1024 char limitation on length of passworded
15731 2007-01-29 Jackson Harper <jackson@ximian.com>
15733 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
15734 single chars is not.
15736 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
15738 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
15739 one pixel. Fix a StackOverflowException caused by an overload wrongly
15742 2007-01-26 Everaldo Canuto <everaldo@simios.org>
15744 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
15745 also remove ProcessArrowKey and put the code inside ProcessKeys.
15747 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
15749 * PaddingConverter.cs: Added.
15751 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15753 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
15754 ShowPanels is false (fixes #80600). Only draw up to 127 characters
15755 of text (fixes #80601). For panels clip the text to draw to the
15756 panel (fixes #80603).
15758 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15760 * ComboBox.cs: Fixed implementation of ResetText.
15762 2007-01-25 Jackson Harper <jackson@ximian.com>
15764 * TextControl.cs: For the last char of a line we need to use the
15765 line size, not that chars width, since it won't actually be
15766 computed since the right side of a char is based on the start of
15767 the left side of the next char, and the next char does not exist.
15769 2007-01-25 Chris Toshok <toshok@ximian.com>
15771 * Splitter.cs: fix the new unit tests, and reindent some switch
15774 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15776 * ComboBox.cs: Implemented 2.0 methods and events.
15777 * TextBoxBase.cs: Added OnTextUpdate, so that
15778 ComboBox.ComboTextBox can inform ComboBox of it.
15780 2007-01-25 Jackson Harper <jackson@ximian.com>
15782 * TextControl.cs: Respect ShowSelection when deciding whether or
15783 not to display the caret, this allows comboboxes to have carets
15784 when the combotextbox does not have focus.
15786 2007-01-25 Jackson Harper <jackson@ximian.com>
15788 * TextControl.cs: Add a Suspend/Resume for updating, basically the
15789 same as the Suspend/Resume for recalc, except this will do actual
15791 - New Undo manager, works much like the MS version.
15793 * TextBoxBase.cs: The Cut operation is undoable.
15795 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15797 * TextBoxBase.cs: Don't antialias text. Makes it look way better
15798 on Windows (no difference on Linux).
15800 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15802 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
15803 we don't want to activate any windows. Fixes #79433.
15805 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
15807 - ButtonBase.cs: Fix capitalization of parameter: disposing.
15810 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
15813 - Move to using System.ComponentModel.EventHandlerList
15814 - Replace Refresh with Invalidate
15815 - Clear the mime filecache on closing
15816 - Some other memory reducing work. After beeing closed FD now uses
15817 only about 300 KB for the fdo mime stuff plus the memory of the
15819 * Mime.cs: Changed coding style and removed unnecessary commented
15820 code. Some more memory memory reducing work.
15822 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15824 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
15825 a few other missing 2.0 properties.
15826 * Theme.cs: Added DrawFlatStyleComboBox.
15827 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
15829 2007-01-24 Chris Toshok <toshok@ximian.com>
15831 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
15832 wake_waiting flag, not just when there's data to be read. if we
15833 don't, then future wakeup's won't reach us and we'll be doomed to
15834 wait for the entire 1 second timeout forever (unless there are X
15837 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15839 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
15840 until you pass Items.Count, not Items.Count - 1 like 1.1.
15842 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
15844 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
15846 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15848 * ToolStripContainer.cs: The recent Dock fix exposed that I was
15849 adding the panels in the wrong order.
15851 2007-01-24 Jackson Harper <jackson@ximian.com>
15853 * TextBoxBase.cs: When we move the caret we also need to move the
15854 selection, this fixes some random crashing after doing select
15855 text, unselect, delete a char, paste.
15857 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
15859 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
15861 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15863 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
15864 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
15865 * ToolBar.cs: Force redraw in BackgroundImageChanged.
15867 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15870 - Implement support for vertical toolbars. Fixes #80539;
15871 - Call LayoutToolBar when resize, it fix some other problems in layout.
15872 - Rename requested_height to requested_size, as we can have width on it
15873 when toolbar is vertical.
15874 - Create a private property "Vertical" that uses Dock to verify when
15875 toolbar is vertical or not.
15876 - Set ControlStyles when change Dock property.
15877 - Refactory in LayoutToolBar to have better variables names and to support
15879 - Fixes default value for ButtonSize when button count is equal zero, size
15880 must be (39, 36) test case writed.
15882 2007-01-23 Chris Toshok <toshok@ximian.com>
15884 * Control.cs: fix the checks so that they work correctly for mdi
15887 2007-01-23 Chris Toshok <toshok@ximian.com>
15889 * Control.cs: ControlCollection seems to have super-secret
15890 abstraction breaking knowledge of Mdi containers. allow MdiClient
15891 to add toplevel controls.
15893 2007-01-23 Chris Toshok <toshok@ximian.com>
15895 * Control.cs: throw an ArgumentException if a toplevel control is
15896 added to our control collection from ControlCollection.Add, as
15897 well as from ControlCollection.IList.Add. This fixes the
15898 ControlSetTopLevelTest.TestTopLevelAdd unit test.
15900 Also, in ControlCollection.IList.Add, don't through an
15901 ArgumentNullException, throw an ArgumentException, when value ==
15902 null. This matches MS.
15904 2007-01-23 Chris Toshok <toshok@ximian.com>
15906 * BindingSource.cs: initial, incomplete, implementation of
15909 2007-01-23 Jackson Harper <jackson@ximian.com>
15912 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
15913 that I can fix a broken unit test (TextBoxTest::ClearUndo)
15915 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15917 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
15919 2007-01-23 Andreia Gaita <avidigal@novell.com>
15921 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
15922 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
15923 IndexOfKey() for 2.0
15925 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15927 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
15928 to prevent it from changing z-order.
15929 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
15930 leave UI updates in MdiWindowManager.
15931 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
15932 1 sized (NC handling goes weird on Linux otherwise).
15933 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
15934 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
15935 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
15936 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
15937 and SetWindowState(s) to allow for changing the size of an activated child
15938 before activating it (reduces a lot of flicker).
15940 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15942 * Form.cs: Changing FormBorderStyle has different semantics based
15943 on whether the Form is visible or not. If not visible, don't change
15944 the Size. But InvalidateNC needs to be called to force the window
15945 to pick up the changes and redraw itself. [Fixes bug #80574]
15947 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15950 * ContainerControl.cs: ProcessCmdKey.
15951 * ErrorProvider.cs: new constructor.
15952 * Form.cs: fix AutoValidateEvent compiler warning.
15953 * Label.cs: fix OnAutoSizeChanged compiler warning.
15954 * MenuStrip.cs: fix CanOverflow compiler warning.
15955 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
15956 * TextBox.cs: Dispose.
15957 * ToolStrip.cs: CanOverflow, re-enable double buffering.
15958 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
15959 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
15960 * ToolStripItem.cs: Overflow, RightToLeft properties.
15962 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15964 * Form.cs: Move the layout of the main form to MdiWindowManager.
15965 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
15966 do a layout of the main window to update MdiClient's client area to
15967 the right area. Fixes #80533. Remove the calculation of nc size,
15968 it was just wrong and the correct one is the same as for
15969 InternalWindowManager.
15971 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
15973 * Control.cs: Setting Anchor or Dock needs to reset the other
15974 to its default. [Fixes bug #80556]
15976 2007-01-20 Chris Toshok <toshok@ximian.com>
15978 * CheckedListBox.cs: class status changes.
15980 * ScrollableControl.cs: same.
15982 * RichTextBox.cs: same.
15984 * ContainerControl.cs: same.
15986 * ListView.cs: same.
15988 * NotifyIcon.cs: same.
15990 * MenuStrip.cs: same.
15992 * RadioButton.cs: same.
15994 * CheckBox.cs: same.
15996 * PrintPreviewDialog.cs: same.
16000 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
16002 * TreeNode.cs: Apply Alan's patch for Name property.
16004 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16006 * Form.cs: Implemented SizeGripStyle.
16007 * SizeGrip.cs: Check for minimum and maximum size for the
16008 control being resized and only resize if size has actually
16011 2007-01-19 Chris Toshok <toshok@ximian.com>
16013 * DataGridColumnStyle.cs: stop setting _readonly in the
16014 PropertyDescriptor setter. fixes a unit test failure.
16016 also, rename ParentReadOnly to TableStyleReadOnly, and have it
16017 just consult our table style (if we have one). We don't need to
16018 consult the datagrid readonly attribute because that's passed in
16019 as the _ro arg to Edit. this simplifies things a little.
16021 * DataGrid.cs: use CurrentColumn instead of
16022 current_cell.ColumnNumber just to simplify some of the code.
16024 switch the order of some things in the CurrentCell setter to keep
16025 the previous cell from getting a textbox again -
16026 EnsureCellVisibility causes scrolling to happen, which calls Edit.
16027 So we need to set the new cell before calling it.
16029 call Edit in OnEnter, as does Microsoft.
16031 also, make sure the current table style isn't the one we create
16032 initially when checking to see if it's different than the one
16033 we're setting it to in BindColumns (this fixes #80421).
16035 * GridTableStylesCollection.cs: table styles can have "" for a
16036 mapping name. part of the fix for #80421.
16038 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
16039 Edit significantly.
16041 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16043 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
16044 and less GDI object leaky-er.
16046 2007-01-18 Andreia Gaita <avidigal@novell.com>
16048 * LinkLabel.cs: Add opaque control style
16050 2007-01-18 Jackson Harper <jackson@ximian.com>
16052 * TextControl.cs: Calculate width properly.
16053 - Don't store the tag's X offset, this can be figured out very
16055 - When getting the caret tag make sure to get the last empty tag.
16057 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16059 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
16062 * Control.cs: Color.Empty shouldn't count for previous transparent
16065 2007-01-18 Jackson Harper <jackson@ximian.com>
16069 * TextControl.cs: Starting to merge in some pieces of my older
16070 undo work. Basically just some slight cleanup of the undo API.
16072 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
16074 * TrackBar.cs: Fix signature of RightToLeftLayout.
16075 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
16076 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
16077 * Application.cs: Implemented UseWaitCursor.
16079 2007-01-18 Jackson Harper <jackson@ximian.com>
16081 * TextControl.cs: We can't skip tags if any part of the tag is
16084 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16086 * ContainerControl.cs: Override OnLayout.
16088 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16090 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
16092 * ContextMenuStrip.cs: Make sure context menu is shown on top of
16095 2007-01-18 Chris Toshok <toshok@ximian.com>
16097 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
16098 (leftover from the container_selected days, I'd wager). fixes bug
16101 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16103 * Control.cs: Apply patch from George to fix the new testcase on
16104 bug #80451. We can't just check for Color.Transparent, we need
16105 to check if the back color's alpha channel is < 255.
16107 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16109 * Form.cs: Move setting show_icon = true to before the constructor
16110 so that the base constructor has that information when it calculates
16111 the form's size. Was causing forms to be (6, 6) bigger than they
16112 were supposed to be. Thanks for catching this Rolf!
16114 2007-01-18 Jackson Harper <jackson@ximian.com>
16116 * TextControl.cs: When replacing a selection we need to invalidate
16117 from the initial selection start, because selection start is moved
16118 to the end of the replacement.
16120 2007-01-18 Andreia Gaita <avidigal@novell.com>
16122 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
16124 2007-01-18 Chris Toshok <toshok@ximian.com>
16126 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
16129 2007-01-17 Everaldo Canuto <everaldo@simios.org>
16131 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
16132 layout methods and properties from ToolBarButton must be available
16133 into ToolBarButtonInfo.
16135 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16137 * Control.cs: If the control has a transparent background, we
16138 need to refresh it when it moves and when it's parent's background
16139 image changes. [Fixes bug #80451]
16141 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16143 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
16145 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16147 * XplatUIWin32.cs: Implement proper double buffering for Windows.
16148 [Fixes bug #80447, and probably speeds up things as well]
16150 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16152 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
16153 * XplatUIWin32.cs: We need to recalculate NC size after changing
16154 window style to toolwindow (otherwise the client rectangle will be
16155 3 pixels to small for some reason).
16156 * MdiWindowManager.cs: Revert NC size calculations to match how
16157 they are calculated only based on window styles (to match
16158 Win32AdjustWindowRectEx, since otherwise when setting size or
16159 location, Control will call Win32AdjustWindowRectEx to update client
16160 size, which would provoke a paint, then we'd get a NCCALCSIZE and
16161 calculate a different value of client size causing another paint
16163 * InternalWindowManager.cs: When moving or resizing a window only
16164 update size or location if they actually changed.
16165 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16166 (seems to match Windows behaviour better). Cleaned up
16167 ManagedWindowDecorations to draw what's needed and nothing else
16168 (was drawing borders and lines where they shouldn't be)
16169 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16170 (style = 0xFFFF) and takes into account caption height when
16171 calculating window rectangle.
16173 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16175 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
16176 can be added to toolbar multiple times, we need to maintain a list of
16177 button information for each positions.
16179 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16181 * ToolBar.cs: Some small stetic changes.
16183 2007-01-16 Jackson Harper <jackson@ximian.com>
16185 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16186 that allow us to have nested recalc = false blocks.
16187 - Add paste support for images in the RichTextBox
16188 * RichTextBox.cs: flush the text after the color is changed, so
16189 the change takes effect.
16190 - Use SuspendRecalc
16191 - Some extra debugging info
16192 * TextControl.cs: Tags no longer track their length, it is just
16193 computed from the next tags length, this makes things a little
16194 simpler and reduces places that we have to track length changes.
16195 - Refactored the linetag class a little so we could make it
16196 a base class for different kinds of tags
16197 - Created a image tag, a tag that can have a single image inserted
16199 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
16200 that we can call suspend multiple times.
16201 - Add some debugging methods
16203 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16205 * MdiClient.cs: Add ActivatePreviousChild for
16206 mdi child window navigation.
16207 * Form.cs: Use MdiClient.ActivateNextChild/
16208 ActivatePreviousChild instead of Form.SelectNextControl
16209 to select the next/previous child since
16210 SelectNextControl doesn't do it in the same order
16211 as mdi children should do it.
16213 2007-01-16 Chris Toshok <toshok@ximian.com>
16215 * Control.cs: remove container_selected field.
16217 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16219 * MdiClient.cs: Update main form's ActiveChild when
16220 updating keyboard focus for the mdi child.
16222 2007-01-16 Jonathan Pobst <jpobst@novell.com>
16224 * Control.cs: PreferredSize fix.
16226 * Form.cs: Add several 2.0 events, properties, and methods.
16228 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
16230 * Form.cs: Provide meaningful message when MdiParent is assigned a
16231 Form that is not an MdiContainer.
16233 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16235 * MdiClient.cs: Update main form's ActiveChild when
16236 activating a mdi child.
16238 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16240 * MdiWindowManager.cs: Fix NRE when merging menus and main form
16241 doesn't have a menu.
16243 * Form.cs: Request NCRecalc after creating a mdi child window.
16244 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
16245 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
16247 * MdiClient.cs: Add new method SendFocusToActiveChild that either
16248 sends keyboard focus to the active child, or to the MdiClient
16249 if there are no child forms.
16251 2007-01-15 Chris Toshok <toshok@ximian.com>
16253 * ListView.cs: drop the *Internal overrides, just do our work in
16254 ItemControl's WndProc instead.
16256 * UpDownBase.cs: a few large changes. Fix up the Selectable state
16257 of the various controls, and forward the events properly (in the
16258 same manner as MS) from the textbox to the UpDown. Also the
16259 ActiveControl of the UpDownBase gets set properly now. Finally,
16260 we don't call UpdateEditText from the ctor. Fixes bug #79957.
16262 * NumericUpDown.cs: set Text in the ctor.
16264 * DomainUpDown.cs: call UpdateEditText in the ctor.
16266 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
16267 so even a Selectable = false textbox can be focused if you click
16270 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
16271 just add their handling in their respective WndProc's. Also add
16272 an explicit FocusInternal method that doesn't consult CanFocus
16273 before calling Select(this).
16275 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
16276 do our work in WndProc instead.
16278 * TabControl.cs: same.
16280 * ComboBox.cs: same.
16282 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16284 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
16287 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16290 * ThemeWin32Classic.cs: Don't draw the item text outside
16291 item bounds in Details view, as well as use trimming.
16294 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16296 * Form.cs: Implement Form.ShowIcon.
16298 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
16299 null, which when combined with the DlgModalFrame window style removes
16300 the icon from the title bar.
16302 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16304 * Control.cs: Call OnMouseClick after OnClick. (2.0)
16306 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16308 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
16309 menu when mdi child windows theres a menu, uses insert to get icon
16310 at first position. Partially fix #80006.
16312 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16314 * Clipboard.cs: Implement 2.0 methods.
16316 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16318 * Menu.cs: Implement Insert method of MenuItemCollection class
16321 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16323 * ListView.cs: Implement 2.0 FindItemWithText method.
16325 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16327 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
16328 to calculate menu bar size. Fixes #80290.
16330 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16332 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
16334 2007-01-11 Chris Toshok <toshok@ximian.com>
16336 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
16339 2007-01-11 Chris Toshok <toshok@ximian.com>
16341 * LinkLabel.cs: make sure to call base.Select in our Select method
16342 if it turns out we're going to be selected (i.e. if we have a link
16343 that is going to receive focus). That way our container's
16344 ActiveControl is updated properly.
16346 2007-01-11 Chris Toshok <toshok@ximian.com>
16348 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
16349 they have 1 or more links. this fixes the crash gert reported.
16351 2007-01-11 Andreia Gaita <avidigal@novell.com>
16353 * ContainerControl.cs: Remove ContainerSelected flag, not needed
16356 * Control.cs (Controls.Add): Check if control to be added to the collection
16357 is a top level control, and throw an ArgumentException if it is.
16358 Remove ContainerSelectedFlag, not needed anymore.
16360 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
16361 top most control doesn't activate the form. This fixes a problem in the
16362 MessageBox, where the default button wouldn't get focus because the form
16363 was activated before being Loaded - when the Owner is set, SetTopMost is
16364 called, and it would activate it.
16366 2007-01-11 Jonathan Pobst <jpobst@novell.com>
16368 * Button.cs: When clicked and setting the parent form's DialogResult,
16369 use FindForm instead of Parent, since parent could be a container
16370 control and not the Form. Fixes bug #80495.
16372 2007-01-10 Chris Toshok <toshok@ximian.com>
16374 * Form.cs: move the call to SendControlFocus into the same
16377 2007-01-10 Chris Toshok <toshok@ximian.com>
16379 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
16380 It breaks in the face of the new ActiveControl stuff, and should
16383 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
16384 activecontrol's focus if it's not already set, after we set
16385 ActiveControl, but before we call OnActivated. Re-fixes #79667
16386 after the previous focus/active control fixes regressed it.
16388 * Control.cs: reindent some code.
16390 2007-01-10 Chris Toshok <toshok@ximian.com>
16392 * Splitter.cs: clearing some outstanding changes from my tree.
16393 Replace all accesses (not writes) to the internal dock_style field
16394 with the Dock property.
16396 2007-01-10 Chris Toshok <toshok@ximian.com>
16398 * Control.cs: make FireEnter, FireLeave, FireValidating, and
16399 FireValidated virtual.
16401 * Form.cs: override and don't chain up calls to FireEnter and
16404 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16406 * ListView.cs: Add more text padding space when using
16407 auto resize for columns (the previous value didn't work fine).
16409 * ThemeWin32Classic.cs: Update text position inside columns,
16410 to match the appeareance of .Net.
16412 * ColumnHeader.cs: When using auto resize, only the Width should
16413 depend on the sub items, not the Height. Also, set width after
16414 auto resizing (the value of Width should never remain as -1 or -2).
16416 2007-01-10 Chris Toshok <toshok@ximian.com>
16418 * Application.cs: fix compilation errors when debug is enabled.
16420 2007-01-10 Chris Toshok <toshok@ximian.com>
16422 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
16423 add some nice ascii art pictures and explanation of the process).
16424 (GetMostDeeplyNestedActiveControl): new utility function we need
16425 because our ActiveControl can refer to a child container with its
16428 * Form.cs (OnActivated): remove the call to SelectActiveControl
16429 from here, since you can override this method and not chain up,
16430 and winforms still sets the active control.
16431 (OnCreateControl): also remove the unnecessary SelectActiveControl
16433 (WndProc): it's actually called from the WM_ACTIVATE block, just
16434 before calling OnActivated.
16436 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
16437 inside the else. the ActiveControl setter will end up setting
16438 focus on @control. This keeps us from setting it again (and
16439 generating an extra LostFocus/GotFocus pair).
16440 (Select (bool, bool)): reindent.
16442 2007-01-10 Jonathan Pobst <jpobst@novell.com>
16444 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
16445 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
16446 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
16447 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
16448 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
16449 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
16450 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
16451 ToolStripTextBox.cs: Another wave of corcompare work.
16453 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16455 * ColumnHeader.cs: Implement 2.0 AutoResize method using
16456 the Width property.
16458 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
16459 methods by callling Column.AutoResize method on columns.
16461 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16463 * Control.cs: Provide proper implementations of PreferredSize
16464 and GetPreferredSize (2.0).
16466 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16468 * Form.cs: Remove one character (!) to make my previous OnClosing
16469 stuff work for modal windows like MessageBox.
16471 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16474 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
16475 ListView.Columns to get the last displayed column. Fixes #80452.
16477 2007-01-09 Everaldo Canuto <everaldo@simios.org>
16479 * Label.cs, LinkLabel.cs: Source code identation fixes.
16481 2007-01-08 Everaldo Canuto <everaldo@simios.org>
16483 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
16484 we dont need to invalidate only borders because when we invalidate four
16485 border lines the invalidate's generates a complete redraw of button,
16486 because it now invalidate a complete rect some other redraws operations
16487 are fixed. Fixes #80196.
16489 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
16490 Remove ToolBarInvalidateEntireButton as it is not used.
16492 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16494 * Form.cs: Make sure that both OnClosing and OnFormClosing are
16495 called for 2.0 profile.
16496 * CloseReason.cs: Make class internal for 1.1.
16498 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16500 * ToolStripManager.cs: Implement FindToolStrip functionality.
16501 * ToolStrip.cs: Register and unregister with ToolStripManager.
16503 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16505 * Control.cs: This was messy. 2.0 moves much of ControlCollection
16506 to ArrangedElementCollection. Implemented this with as few #if's as
16507 possible (which is still too many).
16509 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16511 * Control.cs: Implement SizeFromClientSize() [2.0].
16513 2007-01-07 Everaldo Canuto <everaldo@simios.org>
16515 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
16516 use Theme.BorderSize to calculate area instead of static value 1,
16517 by the way use new BorderStaticSize instead Border3DSize when
16518 border_static is true. Fixes #79537.
16520 * XplatUIOSX.cs: Fix call to GetClientRectangle.
16522 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
16525 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16527 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
16529 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16531 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
16532 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
16535 - border_static field added, it will used to define when a control
16536 theres 3D border but it must be static (thin).
16537 - In GetWindowRectangle use Theme.BorderSize to calculate area
16538 instead of static value 1, by the way use new BorderStaticSize instead
16539 Border3DSize when border_static is true.
16541 * XplatUIX11.cs, XplatUIOSX.cs:
16542 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
16544 * Theme.cs: BorderStaticSize field added.
16546 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16548 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
16550 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16552 * Control.cs: Under InternalBorderStyle call RecreateHangle to
16553 mimic same behavior than win32 that set border only in CreateParams,
16554 it fix problems under CreateParams overrides. Fix #79442 and partial
16557 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
16558 of thi control you must call recreate handle.
16560 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
16561 need to do anything as RecreateHangle will take care about borders.
16563 2007-01-05 Mike Kestner <mkestner@novell.com>
16565 * ListView.cs: hack to eliminate Lost/Got focus notifications on
16566 cycles between the ItemControl and parent. Fixes #80388.
16568 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
16570 * Control.cs: Lazy init layout engine. Do not directly use
16571 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
16573 2007-01-05 Chris Toshok <toshok@ximian.com>
16575 * DataGrid.cs: don't forceably rebind columns in SetDataSource
16576 unless our list manager has changed (i.e. unless we have reason to
16577 believe our columns have changed). Fixes #80422.
16579 also, disable the call do BindColumns in
16580 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
16581 1.1 the event isn't raised in response to a column addition on a
16584 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16586 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
16587 that inheritors can not call it if they choose. Fixes bug #80456.
16589 2007-01-05 Andreia Gaita <avidigal@novell.com>
16591 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
16592 doesn't blow up with a null exception on marshalling.
16594 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16596 * Control.cs: Implement several 2.0 protected properties and methods.
16597 Ensure that all necessary events are being called when properties
16600 2007-01-05 Mike Kestner <mkestner@novell.com>
16602 * ListView.cs: implement PgUp/PgDn for Details view. Also
16603 fixes First/LastVisibleIndex to use the item_control.ClientRect
16604 instead of the parent control. Fixes #80378.
16606 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
16608 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
16609 determine whether to use yard-pound or not (bug #78399).
16611 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
16613 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
16614 problems. So it is time to bring back the old popupbutton colors.
16616 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16619 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
16620 property by using the internal information of the
16621 columns order in ListView.
16623 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
16625 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
16626 Add 2.0 Tag properties.
16628 * LinkArea.cs: Add 2.0 ToString method.
16630 2007-01-03 Chris Toshok <toshok@ximian.com>
16632 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
16633 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
16634 when we're editing, which fixes #80047.
16636 2007-01-03 Chris Toshok <toshok@ximian.com>
16638 * Form.cs: apply patch contributed by Dominik Seichter. fixes
16641 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
16643 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
16644 property and implementation.
16646 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
16647 for MdiWindowListItem property.
16649 * ToolStripDropDown.cs: Don't consider hidden menu items while
16650 laying out the menu.
16652 2007-01-03 Andreia Gaita <avidigal@novell.com>
16654 * SendKeys.cs: window handle is not needed in win32, so just
16655 get the active window for X after parsing keys and don't use
16656 it when building the message; it is passed by parameter to the
16657 Xplat method and used there to build the message instead. Also,
16658 wait for events to be processed on SendWait, as opposed to Send,
16659 which doesn't wait :) Playing with threads and Send() completely
16660 hangs on ms.net, only SendWait() works.
16663 X11Display.cs: Check for valid window handle.
16665 2007-01-03 Jackson Harper <jackson@ximian.com>
16667 * TextControl.cs: Need to prevent wrap calculations when replacing
16668 text (this was there before i removed it accidently).
16669 - Don't update the cursor during the positioning, just set it to
16670 selection_start at the end of the operaion.
16672 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16675 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
16677 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16679 * MonthCalendar.cs: Added Click and DoubleClick events again,
16680 but this time they only hide Control's Click and DoubleClick.
16682 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
16684 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
16685 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
16687 2007-01-02 Jackson Harper <jackson@ximian.com>
16689 * TextBoxBase.cs: We move the caret with the split now, so we
16690 don't need to explicitly move the caret after splitting. This
16691 fixes the caret bumping down an extra line on Enter.
16693 2007-01-02 Miguel de Icaza <miguel@novell.com>
16695 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
16698 * ScrollableControl.cs: Add Scroll event.
16700 2007-01-02 Mike Kestner <mkestner@novell.com>
16702 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
16703 to fix all hdr height padding codepaths. Fixes #80207.
16705 2007-01-02 Chris Toshok <toshok@ximian.com>
16707 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
16708 setting it to the Control defaults anyway, and it being after the
16709 Dock set was screwing up layout.
16710 (set_Dock): don't short circuit out of setting base.Dock. Also,
16711 no need to call UpdateStatusBar here, as it'll be re-layed out if
16714 2007-01-02 Mike Kestner <mkestner@novell.com>
16716 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
16717 to header height for width == -1. Fixes the rest of #80207.
16719 2007-01-02 Mike Kestner <mkestner@novell.com>
16721 * ListView.cs: rework the mouse event forwarding everaldo added
16722 to translate the coordinates to the parent control not
16723 raise the parent events until after we've done our work. Hover
16724 needs more work, in the case where HoverSelection is on, because
16725 the item control receives more than one MouseHover per Enter
16726 event, so we need to ensure only the "first" hover gets forwarded.
16727 Opening a minor bug for that.
16729 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
16731 * CheckedListBox.cs: Fixed SelectionMode to match MS.
16732 * ListControl.cs: Implemented AllowSelection property. Removed extra
16734 * ListBox.cs: Implemented AllowSelection property.
16736 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16738 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
16739 SelectedItem, it prevent for errors when you must disable item
16740 before perform click. Fixes #80409.
16742 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16744 * MenuAPI.cs: Prevent second level and beyond submenus to close
16745 until first level when move out side of popup.
16747 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16750 - Down submenu positin in three pixels.
16751 - Closes sub menu when mouse leaves from menu. Fixes #80402.
16753 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16755 * ThemeWin32Classic.cs:
16756 - Fix popup menu size adding one pixel on the top.
16757 - Down menu item border from two to one to mimic Win32.
16758 - Some source identation fixes.
16760 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16762 * ThemeWin32Classic.cs: Use float numbers to calculate size and
16763 position of menu arrows, it fix wrong arrow size.
16765 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16767 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
16768 instead of line, it simplify draw operation and fix it using 3D
16769 borders to mimic Win32.
16771 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
16773 * StatusStrip.cs: Add implementation of the sizing grip.
16775 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
16776 StatusStrip rendering.
16778 2006-12-31 Chris Toshok <toshok@ximian.com>
16780 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
16781 override the layout style (anchor/dock) of the control. assign to
16782 Dock instead. Fixes bug #80416.
16784 * ToolStrip.cs: same.
16786 2006-12-31 Andreia Gaita <avidigal@novell.com>
16788 * ContainerControl.cs: Use ContainerSelected flag to check if
16789 a Container is directly selected, or if Select is called on a
16790 non-container. If a container is directly selected, focus events
16791 should not be raised.
16792 Apply #80411 patch to throw exception on set_ActiveControl if
16793 control is the same as the current one.
16795 * Control.cs: Use ContainerSelected flag (see above).
16796 Add invalidation check to raise event but not invalidate if
16798 Apply #80411 patch.
16801 2006-12-31 Everaldo Canuto <everaldo@simios.org>
16803 * MenuAPI.cs: After click, dont close popup menu when menu is
16804 ContextMenu. Fixes #80399.
16806 2006-12-30 Chris Toshok <toshok@ximian.com>
16808 * ContainerControl.cs: make sure we throw the exception if the
16809 container control doesn't contain the control we're setting
16812 2006-12-30 Chris Toshok <toshok@ximian.com>
16814 * Control.cs (SetTopLevel): fix the exception raised by
16815 SetTopLevel for child controls.
16816 (set_Anchor): call UpdateDistances when setting the anchor type.
16817 This fixes bug #80336.
16819 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16821 * Theme.cs: For now, revert back to 8pt font.
16823 2006-12-29 Everaldo Canuto <everaldo@simios.org>
16825 * MenuAPI.cs: Set popup as active when open a ContextMenu.
16828 2006-12-29 Chris Toshok <toshok@ximian.com>
16830 * Control.cs: reorder the code in OnResize to give the same event
16833 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
16835 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
16836 TileHorizontally and TileVertically.
16838 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
16840 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
16841 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
16842 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
16843 Corrected copyright and email adress.
16845 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16847 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
16848 of Exception in FullPath property if no TreeView is associated with
16851 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16853 * Theme.cs: Marked default_font as private, and initialize it in ctor
16854 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
16856 * ThemeGtk.cs: Removed default_font intialization.
16857 * ThemeWin32Classic.cs: Removed default_font initialization.
16859 2006-12-28 Chris Toshok <toshok@ximian.com>
16861 * Control.cs: fix a couple of place where we were creating handles
16862 more aggressively than we should be. Fixes ControlRefresh unit
16865 2006-12-28 Chris Toshok <toshok@ximian.com>
16867 * Control.cs: contrary to what the comment said, Control.Dock does
16868 not supercede Control.Anchor - the last one you assign to decides
16869 the layout behavior. so we need to keep track of which was the
16870 last set. Also, fix some of the affected property arguments in
16871 PerformLayout calls, and remove an redundant parent.PerformLayout
16874 Add a VisibleInternal property, which returns is_visible. We
16875 can/should get rid of all the usage of this field elsewhere.
16877 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16879 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
16880 control style, not DoubleBuffer. Added UseDoubleBuffering property
16881 that indicates whether doublebuffering is enabled and supported.
16882 (comment from and code based on Gert Driesen's patch in #80324).
16885 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16887 * Control.cs: Fixed a NRE.
16889 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16891 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
16894 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16896 * Control.cs: Rewrote double buffering, now a seperate
16897 class handles all the buffering, no Graphics is disposed of
16898 until the painting is finished (earlier implementation
16899 would crash if the control was resized in the OnPaint,
16900 since it would cause the double buffer to be recreated
16901 and the old one disposed), a separate Graphics is
16902 created for every paint (MS behaviour and anyways the state
16903 of the Graphics would have to be saved and restored otherwise)
16905 * XplatUIDriver.cs:
16907 * XplatUI.cs: Added and implemented GetOffscreenGraphics
16908 so that we can get the graphics for the back buffer without
16909 having to create a new one and remove the offscreen_dc parameter
16910 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
16912 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16914 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
16915 Also make virtual all the key-related methods.
16917 * ListViewItem.cs: Make virtual the key related methods for
16918 ListViewSubItemCollection.
16920 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16924 * ThemeWin32Classic.cs:
16925 * Theme.cs: Initial support for Tile view in ListView,
16926 as well as the implementation of the required bits for it (Item
16929 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16931 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
16932 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
16933 Provide useful exception messages.
16935 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
16937 * TrackBar.cs: Remove a warning.
16938 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
16939 when used by DateTimePicker, fixes #80287. This also requires that
16940 MonthCalendar implements it's own drawing for the yearly updown control,
16941 otherwise the Capture tracking would be too complicated. Removed the Click
16942 and DoubleClick events (according to comments they were hiding the base class
16943 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
16944 raise these events, not that they cannot be raised. It is possible to raise
16945 them by calling OnClick and OnDoubleClick). Added two internal fields in
16946 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
16947 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
16948 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
16949 event, no longer needed.
16951 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16953 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
16954 true if new value differs from current value.
16956 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16958 * Control.cs: ControlCollection.Count must be public. Fixed build of
16961 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16963 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
16965 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16967 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
16969 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16971 * Control.cs: Invalidates control including when Width and Height is
16972 equal zero or is not visible, only Paint event must be care about
16973 this. Fixes #79913.
16975 2006-12-26 Chris Toshok <toshok@ximian.com>
16977 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
16978 more corcompare work.
16980 * DataGridView.cs: fix compiler warning.
16982 * ColumnHeader.cs: some corcompare work, and also take the
16983 opportunity to make the internal fields private.
16985 * ListView.cs: fix the fallout from the above field change.
16987 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
16989 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
16990 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
16991 ToolStripTextBox.cs: Fixes to events and corcompare.
16993 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16995 * ListView.cs: Call owner.OnMousexx event to propagate events from
16996 item to ListView. Fixes #80367.
16998 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17000 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
17001 if value is less than one. ItemHeight should not be set to a value
17002 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
17003 Removed extra tabs.
17005 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
17007 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
17008 * ToolStripStatusLabel.cs: Add Spring for Moma.
17010 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17012 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
17013 Fixed code formatting. Removed debug code.
17014 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
17016 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17018 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
17019 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
17020 ArgumentOutOfRangeException if ColumnCount is negative. In
17021 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
17022 less than 4 or higher than 32768.
17023 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
17024 Fixed FormatProvider to return CurrentCulture unless explicitly set.
17025 Fixed IsFormatProviderDefault to return true if FormatProvider has
17026 not been explicitly set.
17028 2006-12-25 Chris Toshok <toshok@ximian.com>
17030 * Application.cs: add a couple of 2.0 events.
17032 2006-12-25 Chris Toshok <toshok@ximian.com>
17034 * Control.cs: fix compiler warning.
17036 * AxHost.cs: corcompare fixes.
17038 * ApplicationContext.cs: corcompare fixes.
17040 2006-12-25 Chris Toshok <toshok@ximian.com>
17042 * Control.cs: only update dist_right/dist_bottom if the
17043 width/height is > 0. this fixes anchored controls being resized
17044 smaller until they disappear and then resized larger again.
17046 2006-12-25 Chris Toshok <toshok@ximian.com>
17048 * Control.cs: a couple of changes. Remove dist_left and dist_top,
17049 since they're nothing more than X/Left and Y/Top, respectively.
17051 Also, move back to a per-control Bitmap/Graphics for
17052 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
17053 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
17056 2006-12-25 Miguel de Icaza <miguel@novell.com>
17058 * MessageBox.cs: Implemented overload that takes a new "bool
17059 displayHelpButton" by adding a new internal field "show_help".
17060 When clicked this will raise the HelpRequested on the owner or the
17063 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
17064 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
17066 * ListView.cs: Add support ColumnWidthChanged and
17067 ColumnWidthChanging.
17069 Add support for ColumnReordered event.
17070 (ReorderColumn): Add NET_2_0 specific support for cancelling the
17073 Very nice codebase!
17075 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
17077 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
17079 2006-12-24 Chris Toshok <toshok@ximian.com>
17081 * GridTablesFactory.cs: 2.0 corcompare work.
17083 * ToolStripContainer.cs: add "override" to
17084 ContextMenuStripChanged, and remove the local event object.
17086 * ToolStripDropDown.cs: same with a couple properties.
17088 * ToolStripPanel.cs: same with AutoSizeChanged event.
17090 * TextBoxBase.cs: add "override" to AutoSizeChanged.
17092 * Form.cs: add the remaining 2.0 events, and do some corcompare
17095 * DateTimePicker.cs: add "new" to padding.
17097 * ButtonBase.cs: use Control's use_compatible_text_rendering.
17099 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
17101 * DataGridView.cs: PaddingChanged is overridden.
17103 2006-12-24 Chris Toshok <toshok@ximian.com>
17105 * Control.cs: corecompare work here too.
17107 * DataGridViewElement.cs, DataGridView.cs,
17108 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
17109 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
17110 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
17111 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
17114 2006-12-24 Miguel de Icaza <miguel@novell.com>
17116 * Control.cs: Switched the error message on the console for a
17117 todo. A review of the code will have to cope with this anyways
17118 (since its a large feature, it is in our radar) and it was
17119 producing too much output when running PDN.
17121 * ToolStripComboBox.cs: Set the text when the SelectedIndex
17122 changes. Applications depend on this (PDN 2.72)
17124 2006-12-23 Chris Toshok <toshok@ximian.com>
17126 * TableLayoutSettings.cs: finish up the corcompare work for this
17129 2006-12-23 Chris Toshok <toshok@ximian.com>
17131 * Control.cs: make SetImplicitBounds internal, do some futzing
17132 with LayoutEngine so that it's available in 1.1, and remove the
17133 entire duplicated code mess from PerformLayout. Use
17134 System.Windows.Forms.Layout.DefaultLayout instead.
17136 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
17138 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17140 * Form.cs: Add MainMenuStrip property.
17142 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17144 * Control.cs: Add ContextMenuStrip property and implementation.
17145 Fix ContextMenu implementation to show menu centered on control when
17146 activated using the keyboard instead of showing at screen (0,0).
17148 * ToolStripDropDown.cs: Fix needed overload of Show ().
17150 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17152 * Menu.cs: Name property added for 2.0 profile.
17154 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17156 * Menu.cs: Update information about FindMenuItem, method to be
17159 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17161 * MenuAPI.cs: When deselect items deselect also selected subitems.
17163 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17165 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17166 FindSubItemByCoord to found itens that is not active, also an
17167 cheking added to FindSubItemByCoord to search for items only
17168 in visible popup windows. Fixes #80274.
17170 2006-12-22 Everaldo Canuto <everaldo@simios.org>
17172 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17173 internal property, it be care about change ExStyle.
17175 2006-12-22 Andreia Gaita <avidigal@novell.com>
17177 * ContainerControl.cs: set activeControl for parent forms up the
17178 tree when the new activecontrol is a container.
17179 When validating the active control, if it is a container, also
17180 raise up the validation for it's active control. Fixes #80280
17182 * Control.cs: Add internal property flag and check to prevent
17183 Focus events from getting raised when Select() is called for
17184 a ContainerControl. There are still too many focus events being
17185 raised at the moment though.
17186 Cleaned up the code a bit.
17188 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17190 * Control.cs: Added all missing 2.0 events.and
17191 fixed a couple of corcompare issues.
17192 * TrackBar.cs: Implemented missing 2.0 bits.
17193 * MonthCalendar.cs,
17194 * DateTimePicker.cs,
17195 * MdiClient.cs: Fixed some corcompare issues.
17197 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17199 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
17200 SplitterPanel.cs: corecompare work.
17202 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17204 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
17205 Clean up warnings for BackgroundImageChanged and PaddingChanged
17206 events now that they are implemented in Control.cs.
17208 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17210 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
17212 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
17213 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
17214 of TableLayoutPanel and supporting cast.
17216 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
17219 - GrabWindow now confines the mouse pointer to the confine window.
17220 - Added Win32ClipCursor and Win32GetClipCursor.
17223 - Added CaptureWithConfine to be able to capture and confine
17226 * InternalWindowManager.cs:
17227 - Call CaptureWithConfine instead of Capture if we're an
17228 MdiChild (fixes #79982).
17230 2006-12-21 Chris Toshok <toshok@ximian.com>
17232 * DataGrid.cs: guard against the initial state of selection, where
17233 selection_start == -1. make sure we only select from index >= 0.
17236 2006-12-21 Chris Toshok <toshok@ximian.com>
17238 * Control.cs: we don't need to be so draconian with
17239 UpdateDistances, and we thusly don't need to call it before
17240 calling PerformLayout in ResumeLayout. Fixes bug #80289.
17242 2006-12-21 Daniel Nauck <dna@mono-project.de>
17245 TextBox.cs: Implemented AutoComplete properties.
17247 2006-12-20 Chris Toshok <toshok@ximian.com>
17249 * DataGridView*.cs: some corecompare work.
17251 2006-12-20 Jackson Harper <jackson@ximian.com>
17253 * XplatUIX11.cs: We need to hide the caret when deleting it,
17254 otherwise you get carets left lying around everywhere.
17255 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
17256 prevents getting some weird half drawn caret tracers when
17258 * TextControl.cs: Attempt to reduce the number of times we need to
17259 recreate the caret.
17261 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
17263 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
17265 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17267 * DateTimePicker.cs:
17268 - Implemented missing 2.0 bits.
17269 - Changed some default values to match MS.
17271 2006-12-20 Jackson Harper <jackson@ximian.com>
17273 * TextBoxBase.cs: When changing the font across the document we
17274 can't recalculate after changing each line, since that will cahnge
17276 - PreferredHeight is a little different than i thought.
17277 - When backspacing, move the caret before we do the actual char
17278 delete, because when that delete crosses a wrap boundary the
17279 positional information will change.
17281 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17283 * Control.cs: Added some missing 2.0 bits:
17284 BackgroundImageLayout, BackgroundImageLayoutChanged,
17285 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
17286 add IBindableComponent and IDropTarget implementation.
17288 * MonthCalendar.cs:
17289 - Added all missing 2.0 features:
17290 BackgroundImageLayout, RightToLeftLayout,
17291 OnHandleDestroyed, RightToLeftLayoutChanged,
17292 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
17294 - Rewrote all the BoldDate code, it was completely broken.
17295 - Fixed all the tests (the tests can now be re-enabled, the
17296 problems were not with the tests, but with the control, it was
17299 * DateTimePicker.cs: Changed the location where the
17300 MonthCalendar is shown.
17302 2006-12-19 Chris Toshok <toshok@ximian.com>
17304 * DataGridView.cs: add IDropTarget implementation.
17306 * ToolStripPanel.cs: add IDropTarget implementation.
17308 2006-12-19 Jackson Harper <jackson@ximian.com>
17310 * TextControl.cs: soft now means something different than what it
17311 used to mean, we want to move the caret regardless of whether or
17312 not this break was soft (would we really have wanted the caret
17313 to not move with the break in the old context?)
17314 * TreeView.cs: Make sure we factor in the vert scrollbar when
17315 calculating the horizontal scrollbar's maximum.
17317 2006-12-19 Andreia Gaita <avidigal@novell.org>
17319 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
17320 check for keywords in alternate casing, close bug #80049.
17322 2006-12-19 Chris Toshok <toshok@ximian.com>
17324 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
17325 methods (which all do nothing).
17327 * IDropTarget.cs: add the 4 missing methods.
17329 2006-12-19 Chris Toshok <toshok@ximian.com>
17331 * TableLayoutRowStyleCollection.cs: corcompare work.
17333 * TableLayoutSettings.cs: same.
17335 * TableLayoutStyle.cs: same.
17337 * TableLayoutColumnStyleCollection.cs: same.
17339 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
17341 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
17342 TableLayoutPanel I've had in my local tree for way too long.
17344 2006-12-19 Miguel de Icaza <miguel@novell.com>
17346 * TableLayoutSettings.cs: Finish the public API (still needs all
17347 the logic to update on changes).
17349 * TableLayoutPanelCellPosition.cs: new file.
17351 * TableLayoutRowStyleCollection.cs,
17352 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
17353 TableLayoutSettings.cs: Track the final 2.0 table api.
17355 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17357 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
17358 and Image List 2.0 members for ColummnHeader.
17359 * ListView.cs: Add key-related 2.0 methods for
17360 ColumnHeaderCollection.
17362 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17364 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
17365 ArgumentNullException if items argument is null. Ignore null item in
17366 arrays. Removed extra tabs.
17368 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17370 * MonthCalendar.cs: Fixed InvalidCastException.
17372 2006-12-19 Jackson Harper <jackson@ximian.com>
17374 * TextControl.cs: Don't increment the position here.
17375 - When calculating char positions only add in the line break size
17376 for hard line breaks.
17378 2006-12-19 Andreia Gaita <avidigal@novell.org>
17380 * SendKeys.cs: Changed some things to match ms.net behaviour
17381 when parsing shifted capital letters.
17383 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
17384 Add window handle as parameter to SendInput. X11 needs the
17385 window handle, and the handle being passed to it in the keys
17386 queue is the active control handle (which windows needs), not
17389 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
17390 to support SendKeys on X.
17392 * X11Keyboard: Implement helper method to lookup a linux keycode
17393 given the virtual keycode. Added table of keycode-2-virtualkey
17394 values to support this.
17396 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17398 * ListView.cs: Add support for SelectedIndexCollection
17399 and SelectedItemCollection 2.0 methods. Implement support
17401 * ListViewItem.cs: Add support for ListViewSubItemCollection
17402 2.0 methods. Also, fix an incorrect behavior of AddRange method
17403 (it shouldn't call Clear).
17404 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
17406 2006-12-19 Jackson Harper <jackson@ximian.com>
17409 * TextBoxBase.cs: New args for FormatText
17410 * TextControl.cs: Rewrote the main drawing method, this version
17411 feels a little easier to understand and debug to me. Hopefully it
17412 does to others also
17413 - Fix FormatText to OR in the new formating values. Added
17414 FormatSpecified param, basically this works in the same way as
17415 BoundsSpecified in Control.
17416 - Set the caret properties when the caret is positioned.
17417 - When wrapping text make sure that we calculate the width of the
17419 - when calculating alignments we might have wrapped down to the
17420 next line, so don't search for an individual tag, search for the
17422 - We need to invalidate the selection area when we replace the
17425 2006-12-19 Daniel Nauck <dna@mono-project.de>
17427 * Application.cs: add Restart () 2.0 support
17429 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17431 * MenuItem.cs: Invalidate menu item rectangle after change Enable
17432 property. Fixes #80268.
17434 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17436 * MenuAPI.cs: Dont trigger select event when closes top menu
17437 item. Fixes #80270.
17439 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17441 * MenuAPI.cs: When you click on menuitem only trigger onselect
17442 event for top menu itens. Fixes #80271.
17444 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17446 * MdiWindowManager.cs: Make IconicBounds depend on
17447 the bottom of MdiClient, not the top (fixes #80267)
17449 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17451 * MdiClient.cs: Added missing 2.0 attribute
17453 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17455 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
17456 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
17458 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17460 * MenuAPI.cs: Fix click when menuitem is not popup,
17461 this regression was caused by last commit (#80272).
17463 2006-12-17 Everaldo Canuto <everaldo@simios.org>
17465 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
17466 fire click event or close menu. Fixes #80272.
17468 2006-12-17 Daniel Nauck <dna@mono-project.de>
17470 * ListViewHitTestInfo.cs: add
17472 2006-12-17 Daniel Nauck <dna@mono-project.de>
17474 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
17475 * FlatButtonAppearance.cs: add
17476 * DockingAttribute.cs: add
17478 2006-12-17 Chris Toshok <toshok@ximian.com>
17480 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
17481 and rebind our columns when it does - this way, if you make
17482 changes to the DataTable (or set the Table attribute on a DataView
17483 after setting it as the DataGrid's DataSource, the changes are
17484 made visible.) Fixes bug #80107.
17486 2006-12-17 Daniel Nauck <dna@mono-project.de>
17488 * ListViewGroup.cs: add internal Location property for layouting.
17489 * Theme.cs: add abstract ListViewGroupHeight function.
17490 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
17492 2006-12-16 Andreia Gaita <avidigal@novell.com>
17494 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
17495 Added reset of selected index to 0 when adding first tab page.
17498 * NumericUpDown.cs: Fix NET_2_0 check
17500 2006-12-16 Daniel Nauck <dna@mono-project.de>
17502 * ListViewGroup.cs: fixed DefaultValueAttribute value
17504 2006-12-16 Daniel Nauck <dna@mono-project.de>
17506 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
17508 2006-12-15 Miguel de Icaza <miguel@novell.com>
17510 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
17511 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
17512 ScrollableControl.cs: Add a handful of methods that are
17515 2006-12-15 Chris Toshok <toshok@ximian.com>
17517 * XplatUIWin32.cs: initial implementation of the Reversible
17518 drawing functions. there are some problems. DrawReversibleFrame
17519 doesn't seem to work at all for Dashed FrameStyle, and in the
17520 Thick case there are drawing errors at the corners (we probably
17521 need to bind Rectangle instead of doing moveto/lineto's.)
17523 2006-12-16 Andreia Gaita <avidigal@novell.com>
17525 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
17526 to send blocks of key messages. Send accumulates keys to send with Flush,
17527 while SendWait sends all keys immediately.
17529 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17530 XplatUIX11.cs, XplatUIX11-new.cs:
17531 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
17532 to Win32 SendInput.
17533 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
17535 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
17536 testing for ms.net on this class is very tricky, as the tests run too fast
17537 to allow the hook to release, essentially freezing the keyboard and the
17538 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
17541 2006-12-16 Daniel Nauck <dna@mono-project.de>
17543 * Padding.cs: fixed serialization compability to MS ("_var" field names),
17544 added missing attributes.
17546 2006-12-15 Daniel Nauck <dna@mono-project.de>
17548 * ListViewGroup.cs: Added missing attributes.
17549 * ListViewGroupCollection.cs: Added missing attributes.
17551 2006-12-15 Daniel Nauck <dna@mono-project.de>
17553 * ListViewItem.cs: fixed ListViewSubItem text property.
17555 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17557 * Control.cs: Added missing 2.0 attributes
17559 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17561 * MdiClient.cs: Added missing 2.0 attribute.
17562 * MonthCalendar.cs: Added some missing 2.0 attributes
17565 2006-12-15 Daniel Nauck <dna@mono-project.de>
17567 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
17569 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
17571 * MainMenu.cs: Add the new 2.0 constructor to help out people
17572 using the MainMenu in VS2005.
17574 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17576 * MdiChildContext.cs: Removed it, no longer used.
17577 * MdiClient.cs: Added missing 2.0 attributes.
17579 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17581 * InternalWindowManager.cs: Fix a NullRef with previous
17582 changes for toolwindows.
17584 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17587 - Added AfterTopMostControl to allow for certain controls
17588 to always stay on top when normal controls are brought to
17592 - (DrawInversibleRectangle): Get window rectangle from Win32
17593 in stead of from control, since Win32 doesn't calculate
17594 screen coords correctly from control's Location if it
17595 have docked siblings.
17597 * MdiWindowManager.cs:
17598 - Correct the control menu popup location when clicked on
17599 the maximized form icon. (fixes #80223.1)
17600 - Don't show moving rectangle if mouse hasn't moved from
17601 the original clicked point.
17602 - Removed FormGotFocus handler (not used).
17603 - Calculate the control buttons location from the main
17604 window's size and not client size (fixes #79770).
17605 - Form is now closed when the form icon is double-clicked
17607 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
17609 * InternalWindowManager.cs:
17610 - Moved some MDI-only methods to MdiWindowManager.
17611 - Removed unused properties and methods.
17612 - Unified method naming for methods handling wm messages.
17613 - Moved all message handling to seperate methods for
17616 * ThemeWin32Classic.cs:
17617 - DrawManagedWindowDecorations now draws the title bar
17618 with a gradient brush.
17619 - Add a CPDrawButtonInternal that allows us to specify
17620 light, normal and dark colors for the buttons (control
17621 buttons for MDI children were drawn with the same light
17622 color as the background, therefore loosing the 3D effect).
17625 - Add a CapturedControl property that is used to
17626 determine the control to resize (defaults to parent).
17627 Needed for MdiClient, since its SizeGrip's parent is
17628 MdiClient, but the control to resize is the main form.
17631 - Set SizeGrip's CapturedControl to the main form in order
17632 to resize the main form and not the MdiClient.
17633 - Override AfterTopMostControl to leave the scrollbars
17636 2006-12-15 Daniel Nauck <dna@mono-project.de>
17638 * ListView.cs: fixed ListViewItemCollection AddRange and
17639 implemented ListViewItemCollection AddRange 2.0 support.
17641 2006-12-15 Daniel Nauck <dna@mono-project.de>
17643 * ListViewGroup.cs: Add.
17644 * ListViewGroupCollection.cs: Add
17645 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
17646 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
17647 stub for ImageKey 2.0 support.
17649 2006-12-14 Mike Kestner <mkestner@novell.com>
17651 * ListView.cs: add text padding to the autocalculation for columns
17652 of width -2. Fixes #80207.
17654 2006-12-14 Mike Kestner <mkestner@novell.com>
17656 * ListView.cs: add some index guarding for partial row navigation
17657 logic. Fixes #80250.
17659 2006-12-14 Mike Kestner <mkestner@novell.com>
17661 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
17662 are added or inserted to the collection. Fixes #81099.
17664 2006-12-13 Everaldo Canuto <everaldo@simios.org>
17666 * MenuAPI.cs: Closes menu when right click out side of popup
17667 it fix problem in ContextMenu and MainMenu. Fixes #80252.
17669 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17671 * ListViewItem.cs: Fix dumb error.
17673 * ListView.cs: Add Find and ContainsKey methods in
17674 ListViewItemCollection, and also return true for IsReadOnly
17675 and IsFixedSize (changes for 2.0).
17677 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
17679 * Control.cs: Allow Region to be set to null.
17681 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17683 * MdiWindowManager.cs: Remove unused (commented out) code.
17684 * Form.cs: When the MdiChild is maximized, the form needs
17685 WM_NCMOUSELEAVE, so request it.
17686 * InternalWindowManager.cs:
17687 - Added tooltips to control buttons.
17688 - Removed duplicated control button handling code.
17689 - Removed unused (commented out) code.
17691 2006-12-12 Everaldo Canuto <everaldo@simios.org>
17693 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
17694 was used because we must set cursor without trigger ChangeCursor event
17695 and without change Cursor control property. Fixes #79963.
17697 2006-12-12 Andreia Gaita <avidigal@novell.com>
17699 * Control.cs: Check if Region setter value is null, and ignore
17701 2006-12-12 Jackson Harper <jackson@ximian.com>
17703 * TextControl.cs: We were almost always drawing one more line then
17704 needed, since the GetLineByPixel will return the last line found
17705 at that pixel. In most cases though, we were invalidating up to
17706 the junction between two lines.
17707 - Improve debug code.
17709 2006-12-12 Chris Toshok <toshok@ximian.com>
17711 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
17712 and FillReversibleRectangle.
17714 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
17715 and FillReversibleRectangle.
17717 * XplatUIWin32.cs: add stubs which do nothing for
17718 DrawReversibleFrame, DrawReversibleLine, and
17719 FillReversibleRectangle.
17721 * XplatUIOSX.cs: add stubs which raise NIE for
17722 DrawReversibleFrame, DrawReversibleLine, and
17723 FillReversibleRectangle.
17725 * XplatUIX11.cs: add working implementation for
17726 DrawReversibleFrame, DrawReversibleLine, and
17727 FillReversibleRectangle.
17729 * ControlPaint.cs: implement DrawReversibleFrame,
17730 DrawReversibleLine, and FillReversibleRectangle, by calling into
17731 the appropriate XplatUI method.
17733 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17735 * Form.cs: Make MdiClient have the focus even if it's
17736 not selectable, since it should receive WM_KEY* and WM_MOUSE
17737 messages. Fixes #79907.
17739 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17741 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
17742 queried after the window is created.
17744 * XplatUIX11.cs: Added SendParentNotify to implement
17745 WM_PARENTNOTIFY logic. Fixes #79965.
17747 * Control.cs: Added MakeParam.
17749 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17751 * MdiClient.cs: Resume Layout before setting window
17752 states (fixes #80201).
17754 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17756 * MenuAPI.cs: Deselect a menu item after performing
17757 the click (fixes #80197).
17759 2006-12-11 Jackson Harper <jackson@ximian.com>
17761 * TextBoxBase.cs: We need to cap this value, since Maximum -
17762 ViewPortHeight can be less than zero.
17763 - Only do selection with the left mouse button.
17764 * TextBox.cs: Don't tell the world that we have a context menu.
17765 * Control.cs: New method so that we can control whether or not the
17766 context menu is visible outside MWF.
17768 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17770 * ToolBarButton.cs: Fix text positon.
17772 2006-12-11 Miguel de Icaza <miguel@novell.com>
17774 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
17776 * Control.cs (DoubleBuffered): Add implementation.
17778 * Application.cs (OpenForms): Add.
17780 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17782 * Form.cs: Use opacity instead of Opactiy to determine if we need
17783 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
17785 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17787 * Control.cs: Fix NRE if Control.Site was set to null.
17789 2006-12-11 Chris Toshok <toshok@ximian.com>
17791 * Control.cs: ControlCollection.Remove should return if the arg is
17792 null, and ControlCollection.SetChildIndex should raise a ANE.
17794 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
17796 * Control.cs: Verify value set for Dock property. Code formatting
17799 2006-12-11 Jackson Harper <jackson@ximian.com>
17801 * TextControl.cs: Draw the caret and the selection when a flag is
17803 * TextBoxBase.cs: We want to draw the caret and the selection for
17804 TextBox but not for TextBoxBase.
17805 - If the window is resized and scrolling is no longer needed (the
17806 whole doc is visible) set the scroll position to zero.
17807 - The default SelectWord (the one TextBox uses) should move the
17808 caret to the end of the word.
17809 - SelectAll moves the caret to the end of the selection.
17810 * TextBox.cs: We don't selectall on focus, we just do it when the
17811 control is created.
17813 2006-12-11 Mike Kestner <mkestner@novell.com>
17815 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
17817 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17819 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
17821 * ListViewItem.cs: Add Name 2.0 property.
17823 2006-12-11 Andreia Gaita <avidigal@novell.com>
17825 * TabControl.cs: Set visibility on selected or default tab
17826 when tabcontrol handle is created, so that it's contents
17827 actually show up (duh). Fixes #80193
17828 Don't redraw the control if there is no handle created, as
17829 the selected index might be completely invalid. Added some tests
17832 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17834 * ToolBar.cs: Uses maximun width and height of all buttons as
17835 button rectangle when ButtonSize specified, it looks strange but
17836 is what happens in Win32. Fixes #80189.
17838 2006-12-11 Jackson Harper <jackson@ximian.com>
17840 * TextControl.cs: Need to track undo levels ourself, since
17841 compound actions will mess them up.
17843 2006-12-10 Andreia Gaita <avidigal@novell.com>
17845 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
17846 SelectedIndex value is changed (even if it's not valid).
17847 Reset SelectedIndex to 0 when the handle is created and if
17848 the current index is invalid.
17849 Fixes SelectdeIndex unit tests and #80128
17851 2006-12-08 Chris Toshok <toshok@ximian.com>
17853 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
17854 calls EndEdit, it needs to be called before we set current_cell to
17855 its new value. Otherwise, we end up committing the value in the
17856 textbox to the new cell as well. Fixes bug #80160.
17858 2006-12-08 Chris Toshok <toshok@ximian.com>
17860 * Form.cs (set_CancelButton): if the button's DialogResult is
17861 None, set it to Cancel. Fixes bug 80180.
17863 2006-12-08 Jackson Harper <jackson@ximian.com>
17865 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
17866 to watch ourselves when setting the canvas size and setting the
17869 2006-12-08 Chris Toshok <toshok@ximian.com>
17871 * DataGrid.cs: comment out the two MakeTransparent calls for the
17872 time being so people using trunk (and not 1.2.2) on windows can
17873 actually use the datagrid. This deals with bug #80151.
17875 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17877 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
17878 Graphics.DrawImage (image, int, int, int, int) overload instead
17879 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
17880 the dpi difference and was blurring images it drew.
17883 2006-12-08 Chris Toshok <toshok@ximian.com>
17885 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
17886 rowcnt is 0 (such as with an empty datasource), and make sure we
17887 initialize not_usedarea.Y to cells.Y, so we don't draw over the
17888 other areas (caption, parent row, etc, etc). Fixes bug #80095.
17890 2006-12-08 Chris Toshok <toshok@ximian.com>
17892 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
17895 2006-12-08 Chris Toshok <toshok@ximian.com>
17897 [ Fixes bug #80167 ]
17899 * ThemeWin32Classic.cs: don't draw the image if the button's flat
17900 style is FlatStyle.System.
17902 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
17903 ButtonBase.flat_style private, and switch uses of it to the public
17906 2006-12-08 Chris Toshok <toshok@ximian.com>
17908 [ Fixes bug #80121 ]
17910 * ThemeWin32Classic.cs: center the caption text in the datagrid
17913 * DataGrid.cs: lessen the amount we add to the caption height from
17914 6 to 2. 6 was making it huge.
17916 2006-12-08 Andreia Gaita <avidigal@novell.com>
17918 * UpDownBase: Handle MouseWheel call directly instead of capturing
17919 the inner textbox's OnMouseWheel. Fixes #80166
17921 2006-12-08 Jackson Harper <jackson@ximian.com>
17923 * TextControl.cs: We need to invalidate the textbox when we empty
17924 it (how had this not been discovered before?)
17926 2006-12-08 Jackson Harper <jackson@ximian.com>
17928 * TextBoxBase.cs: Reworked the mouse down code so I could get it
17929 to behave like MS, we now ignore the eventargs.Click and just
17930 track state ourself, which we were already doing anyways.
17931 - Constrain the double click handler to the double click size.
17933 2006-12-08 Chris Toshok <toshok@ximian.com>
17935 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
17936 direction if that scrollbar isn't shown. fixes bug #80158.
17938 2006-12-08 Andreia Gaita <avidigal@novell.com>
17940 * NumericUpDown.cs: Update value on getter. Fixes #79950
17942 2006-12-08 Chris Toshok <toshok@ximian.com>
17944 * MenuItem.cs: add back in the event cloning code. I didn't know
17945 how to do it in the face of the EventHandlerList work i'd done
17946 last week. Fixes bug #80183.
17948 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17950 * Control.cs: Add an invalidate to the BackgroundImage setter.
17953 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17955 * ToolStrip*: Add some small properties reported by MoMA, fix event
17956 firing and default properties based off of unit tests, and add some
17957 attributes based off of the class status page.
17959 2006-12-07 Jackson Harper <jackson@ximian.com>
17961 * TextBoxBase.cs: Take HideSelection into account when determining
17962 whether or not to show the selection.
17963 * RichTextBox.cs: After inserting the RTF into the document move
17964 the cursor to the beginning of the document.
17966 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17968 * Control.cs: Remove static ArrayList "controls" which maintained
17969 a reference to every control created.
17970 * Application.cs: Create a static FormCollection to maintain a reference
17971 to every form created. Use it in places that formerly enumerated through
17972 the controls one looking for forms.
17973 * Form.cs: Add and remove self from above FormCollection.
17975 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
17977 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
17978 not libgdk (though it makes me wonder why I didn't have any
17981 2006-12-07 Chris Toshok <toshok@ximian.com>
17983 [ you had to know this was coming after that last commit...]
17985 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
17986 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
17987 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
17990 2006-12-07 Chris Toshok <toshok@ximian.com>
17992 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
17993 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
17994 all the behavior we need for double buffering.
17996 * XplatUIDriver.cs: implement the 3 double buffer methods using a
17997 client side Bitmap, just like the old Control-based double buffer
17998 code did. The methods are virtual, so each XplatUI driver
17999 subclass can replace the implementation to use a faster, platform
18002 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
18003 double buffer code, and clean things up a bit in the process.
18005 2006-12-06 Chris Toshok <toshok@ximian.com>
18007 * Control.cs: reindent WndProc.
18009 2006-12-06 Chris Toshok <toshok@ximian.com>
18011 [ I wanna be like BenM when I grow up ]
18013 * Hwnd.cs: create a single static Graphics object on the static
18014 Bitmap we create. use this for our text measurements.
18016 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
18017 This was causing us to allocate a backbuffer for every control,
18018 even when it wasn't flagged as double buffered. Instead use the
18019 single graphics instance. This might have implications for
18020 multithreaded applications. If we run into problems we can switch
18021 to creating 1 Graphics per control, on the static Hwnd bitmap.
18023 this change nets us a 7M savings in private dirty mappings when
18024 running FormsTest.exe.
18026 2006-12-06 Chris Toshok <toshok@ximian.com>
18028 * ListView.cs: the BackgroundImage override is just to set
18029 attributes. chain up to base.BackgroundImage.
18031 * RichTextBox.cs: same.
18033 * ToolBar.cs: same, but we need to also redraw the toolbar when it
18034 changes, so instead a handler for BackgroundImageChanged.
18036 * Control.cs: make background_image private.
18038 2006-12-06 Chris Toshok <toshok@ximian.com>
18040 * ScrollBar.cs: change the assignment of cursor to Cursor. not
18041 sure we even need this assignment, but roll with it for now.
18043 * Control.cs: make the cursor field private.
18045 2006-12-06 Chris Toshok <toshok@ximian.com>
18047 * Form.cs: we don't need to explicitly set ImeMode to
18048 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
18049 behavior in the face of ImeMode.Inherit.
18051 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
18052 change the ctor's assignment to use ImeMode instead of ime_mode.
18054 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
18055 ImeModeInherit. Only check for the parent's imemode (and return
18056 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
18057 This fixes the button unit test, which sets both ImeMode and
18058 DefaultImeMode to ImeMode.Disable.
18060 also make the ime_mode field private.
18062 2006-12-06 Chris Toshok <toshok@ximian.com>
18064 * Control.cs: make control_style private.
18066 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
18067 setting the styles to true, then setting them to false instead of
18068 reverting to their previous values.
18070 also, call SetStyle on the scrollbars instead of using
18071 control_style directly.
18073 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
18075 * FormCollection.cs: Implement. [2.0]
18077 2006-12-06 Chris Toshok <toshok@ximian.com>
18079 * Control.cs: make tab_stop private.
18081 * Label.cs: set TabStop, not tab_stop. reformat some event
18082 add/remove methods to make them more compact.
18084 2006-12-06 Chris Toshok <toshok@ximian.com>
18086 * RadioButton.cs: fix TabStop handling.
18088 2006-12-06 Chris Toshok <toshok@ximian.com>
18090 * TextBox.cs: remove the explicit assignments to has_focus.
18093 * ButtonBase.cs: remove the assignment to has_focus. Control will
18096 2006-12-06 Chris Toshok <toshok@ximian.com>
18098 * ButtonBase.cs: remove all uses of is_enabled from this code.
18099 it's always true when any of the code containing the checks is
18102 2006-12-06 Chris Toshok <toshok@ximian.com>
18104 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
18105 with different semantics (some are present in both 1.1 and 2.0
18106 profiles) so that we match MS's behavior in our unit tests.
18108 2006-12-06 Jackson Harper <jackson@ximian.com>
18110 * TextControl.cs: Make this operation undoable.
18111 * TextBoxBase.cs: Factor the border width into the preferred
18113 - implement Modified as per the spec.
18115 2006-12-06 Chris Toshok <toshok@ximian.com>
18117 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
18119 2006-12-06 Chris Toshok <toshok@ximian.com>
18121 * Control.cs: make right_to_left and context_menu fields private.
18123 2006-12-06 Chris Toshok <toshok@ximian.com>
18125 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
18126 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
18127 Control.child_controls private. switch all uses over to
18130 2006-12-06 Chris Toshok <toshok@ximian.com>
18132 * System.Windows.Forms/GroupBox.cs,
18133 System.Windows.Forms/AccessibleObject.cs,
18134 System.Windows.Forms/ErrorProvider.cs,
18135 System.Windows.Forms/Control.cs,
18136 System.Windows.Forms/UpDownBase.cs,
18137 System.Windows.Forms/ScrollBar.cs,
18138 System.Windows.Forms/DateTimePicker.cs,
18139 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18140 System.Windows.Forms/ToolTip.cs,
18141 System.Windows.Forms/RadioButton.cs,
18142 System.Windows.Forms/LinkLabel.cs,
18143 System.Windows.Forms/Splitter.cs,
18144 System.Windows.Forms/TextBoxBase.cs,
18145 System.Windows.Forms/ToolStripTextBox.cs,
18146 System.Windows.Forms/ContainerControl.cs,
18147 System.Windows.Forms/ThemeWin32Classic.cs,
18148 System.Windows.Forms/SizeGrip.cs,
18149 System.Windows.Forms/ToolStripDropDown.cs,
18150 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
18151 private. switch all uses over to Control.Parent.
18153 2006-12-06 Chris Toshok <toshok@ximian.com>
18155 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
18156 Control does this before calling emitting these events.
18158 * TabControl.cs: same.
18160 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
18161 Control.client_rect.
18163 * ButtonBase.cs: use the ClientSize property instead of the
18166 * ScrollableControl.cs: same.
18168 * Control.cs: another pass at making properties private. also,
18169 move the initialization of tab_stop to the ctor.
18171 2006-12-05 Andreia Gaita <avidigal@novell.com>
18173 * TabControl.cs: Let the selected index be set freely if the
18174 control handle is not yet created.
18176 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18178 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
18179 internal until I can rewrite DefaultLayout.
18180 * ToolStrip.cs: Fix build error and some general cleaning.
18181 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18182 Fix build errors caused by making some of Control's fields private.
18184 2006-12-05 Jackson Harper <jackson@ximian.com>
18186 * TextControl.cs: Redo Insert a little so that it use IndexOf
18187 instead of Split, this prevents it from messing up on things like
18188 \n\n\n. Also more effecient since the split array doesn't need to
18190 * TextBoxBase.cs: AppendText doesnt handle multiline and non
18191 multiline text differently, this is the first of many fixes that
18192 will make multiline/non-multiline the same thing as far as the
18193 TextBoxBase is concerned.
18194 - Don't split the text and insert lines, this can lose some line
18195 endings (like is the last line a soft or hard break). Instead use
18197 - Fix an off by one when combining all the lines in the Text
18199 - Remove separate multiline handling from the Text getter/setter.
18201 2006-12-05 Chris Toshok <toshok@ximian.com>
18203 * ButtonBase.cs: a few changes:
18205 - don't reinitialize internal Control fields in the ctor when they
18206 have the same values as Control sets them.
18208 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
18209 this before calling those methods.
18211 - we don't need to call Refresh for anything. use Invalidate
18214 - OnEnabledChanged doesn't need to redraw at all - Control.cs
18215 calls Refresh in its OnEnabledChanged.
18217 - several of the events we were registered for in the ctor to
18218 redraw ourselves already include calls to Invalidate in the
18219 property setters that raise the events. remove the extra
18222 - reformat a switch statement that was 83274658 columns wide.
18224 2006-12-05 Mike Kestner <mkestner@novell.com>
18226 * ComboBox.cs: fix a unit test regression from a TextBox
18227 SelectionLength return of -1 when there's no selection.
18229 2006-12-05 Chris Toshok <toshok@ximian.com>
18231 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
18232 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
18233 cleaning up some of the internal Control fields being used by
18236 2006-12-05 Mike Kestner <mkestner@novell.com>
18238 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
18239 listbox after AddImplicit calls since it defaults to hidden. Add a
18240 hack to preserve requested heights across DropDownStyle changes.
18242 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18244 * PropertyGrid.cs: Hide FindFirstItem method from public API.
18246 2006-12-05 Chris Toshok <toshok@ximian.com>
18248 * DataGridView.cs: fix compiler warnings.
18250 * PrintControllerWithStatusDialog.cs: same.
18252 * ToolBar.cs: same.
18254 * FolderBrowserDialog.cs: same.
18256 * Splitter.cs: same.
18258 * DataGridViewComboBoxCell.cs: same.
18260 * XplatUIWin32.cs: same.
18262 * PictureBox.cs: same.
18264 * Win32DnD.cs: same.
18266 * PageSetupDialog.cs: same.
18268 * FileDialog.cs: same.
18270 * PrintDialog.cs: same.
18272 * DataGridTextBoxColumn.cs: same.
18274 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
18276 2006-12-05 Chris Toshok <toshok@ximian.com>
18278 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
18279 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
18280 System.ComponentModel.EventHandlerList work.
18282 2006-12-05 Jonathan Chambers <joncham@gmail.com>
18284 * DrawTreeNodeEventArgs.cs: Added.
18286 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18288 * InternalWindowManager.cs: Remove an unused field.
18290 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18292 * InternalWindowManager.cs:
18293 - Save the point where the title bar is clicked.
18295 * MdiWindowManager.cs:
18296 - Only allow moving of the window as long as the
18297 clicked point on the title bar does not get out of
18298 MdiClient's rectangle. Fixes #79982.
18301 - Added Horizontal/VerticalScrollbarVisible.
18302 - Simplified the scrollbar sizing algorithm.
18303 - Cache the difference in scrolled value in
18304 H/VBarValueChanged and move the calculation out
18307 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18309 * Control.cs: Make the Console.WriteLine in WndProc
18312 2006-12-05 Chris Toshok <toshok@ximian.com>
18314 * ToolStripManager.cs, ToolStripButton.cs,
18315 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
18316 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
18317 ToolStripSplitButton.cs, ToolStripSeparator.cs,
18318 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
18319 ToolStripProgressBar.cs, ToolStripContainer.cs,
18320 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
18321 to using System.ComponentModel.EventHandlerList.
18323 2006-12-04 Chris Toshok <toshok@ximian.com>
18325 * LinkLabel.cs: fix up compiler warnings.
18327 * TableLayoutSettings.cs: same.
18329 * TreeView.cs: same.
18331 * ToolBar.cs: same.
18333 * TabControl.cs: same.
18335 * RichTextBox.cs: same.
18337 * ListViewItem.cs: same.
18339 * PropertyGrid.cs: same.
18341 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
18345 * TextRenderer.cs: fix up compiler warnings.
18349 * Form.cs: corcompare fixes.
18351 * PictureBox.cs: fix up compiler warnings.
18353 * ImageListStreamer.cs: same.
18355 * TrackBar.cs: corcompare fix.
18357 * Control.cs: fix up compiler warnings.
18359 * SplitterPanel.cs: same.
18361 * NumericTextBox.cs: same.
18363 * ImageList.cs: same.
18365 * StatusStrip.cs: same.
18367 * ProgressBar.cs: corcompare fix.
18369 * ToolStripButton.cs: fix up compiler warnings.
18371 * ToolStripStatusLabel.cs: same.
18373 * ToolStripSplitButton.cs: same.
18375 * ToolStripSeparator.cs: same.
18377 * ToolStripProgressBar.cs: same.
18379 * ToolStripDropDownMenu.cs: same
18381 * ToolStripDropDown.cs: same.
18383 * ToolStripDropDownButton.cs: same.
18385 * ToolStrip.cs: same.
18387 * ToolStripControlHost.cs: same.
18389 * ToolStripContentPanel.cs: same.
18391 * ToolStripDropDown.cs: same.
18393 * ToolStripContainer.cs: same.
18395 * ToolStripPanel.cs: same, and add "new" where we need it to work
18396 with the new ArrangedElementCollection.
18398 * ToolStripItemCollection.cs: add "new" where we need it to work
18399 with the new ArrangedElementCollection.
18401 2006-12-04 Andreia Gaita <avidigal@novell.com>
18403 * TabControl.cs: Fix default tab selection to after TabControl
18404 gets focus and not before. Fixes #80128
18406 2006-12-04 Chris Toshok <toshok@ximian.com>
18408 * DataGridTableStyle.cs: remove the gross calling of
18409 datagrid.Refresh from here. It's a broken idea and it doesn't
18412 * DataGrid.cs: instead, just register/unregister from the
18413 DataGridTableStyle events in CurrentTableStyle. we play it
18414 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
18415 even though some would most likely not require it. Fixes bug
18416 #80115 (and one portion of #80117 as a side effect).
18418 2006-12-04 Chris Toshok <toshok@ximian.com>
18420 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
18421 so the textbox (if any) goes away. Fixes bug #80117.
18423 2006-12-04 Chris Toshok <toshok@ximian.com>
18425 * DataGridColumnStyle.cs: set the column's readonly property
18426 initially based on the property descriptor's IsReadOnly. Fixes
18429 2006-12-04 Chris Toshok <toshok@ximian.com>
18431 * ComboBox.cs: wrap the dropdown style changing work in
18432 SuspendLayout/ResumeLayout. Fixes bug #79968.
18434 2006-12-04 Jackson Harper <jackson@ximian.com>
18436 * TextBoxBase.cs: Fix off by one, since these are one-based.
18437 * TextBox.cs: Select all the text when we get focus. The TextBox
18438 does this but the RTB does not.
18440 2006-12-04 Chris Toshok <toshok@ximian.com>
18442 * DataGridTextBoxColumn.cs: remove some spew.
18444 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
18445 but some part of me is saying "it shouldn't be here.." At any
18446 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
18449 2006-12-04 Chris Toshok <toshok@ximian.com>
18451 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
18452 to reassign the propertydescriptor.
18454 2006-12-04 Jackson Harper <jackson@ximian.com>
18457 * TextControl.cs: Remove some unused variables. Maybe this will
18458 patch things up between mike and I.
18459 - don't split lines less then one char wide, if the viewport is
18460 that small text won't be visible anyways.
18462 2006-12-04 Jackson Harper <jackson@ximian.com>
18464 * TextBoxBase.cs: Default selection length is -1, need to do some
18465 more testing on windows to see when this is used for the property.
18466 - Redid the Lines [] property to that we properly remove soft line
18468 - added support for preserving carriage returns
18469 - CanUndo is not a variable like 'is undo enabled' it just returns
18470 true if there is undo operations available.
18471 - AppendText doesn't need to grab the last tag itself anymore,
18472 this happens automatically when we move the cursor.
18473 * TextControl.cs: Add CompoundActions to the undo class. This
18474 allows combining the other operations into one big option. ie a
18475 paste will combine { delete old, insert new, move cursor }
18476 - Add InsertString undo operation
18477 - New method for deleting multiline text
18478 - Add carriage returns to lines. So we can preserve carriage
18479 returns when text is 'roundtripped'
18481 2006-12-04 Chris Toshok <toshok@ximian.com>
18483 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
18484 minimum 0. Fixes the scrollbar exception in bug #80136.
18486 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18489 * MdiWindowManager: Removed unused fields and methods.
18491 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18493 * StatusBar.cs: Update all panels when a AutoSize=Contents
18494 panel needs updating.
18496 * StatusBarPanel.cs: Remove twidth and only use initialize.
18499 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18501 * Form.cs: When a form's MdiParent is set add it directly
18502 on top of the z-order in stead of relying on MdiClient's
18503 ActivateChild to do it. Fixes #80135.
18506 - Remove original_order, mdi_child_list is already doing
18508 - Create mdi_child_list on construction in
18509 stead of first use (avoids a few null checks).
18511 * MenuItem.cs: Use an already existing list of mdi children
18512 to get the correct order of children and remove the other
18515 2006-12-04 Chris Toshok <toshok@ximian.com>
18517 * PropertyGridView.cs: cached_splitter_location is only used in
18518 !DOUBLEBUFFER code.
18520 * PropertyGrid.cs: implement the ComComponentNameChanged event
18521 using Events, hoping that would fix the warning. Looks like a
18522 compiler bug instead (#80144).
18524 * PropertyManager.cs: remove unused method.
18526 2006-11-04 Everaldo Canuto <everaldo@simios.org>
18528 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
18529 include parentesis to fix expression evaluation. Fixes #79634.
18531 2006-11-02 Everaldo Canuto <everaldo@simios.org>
18534 - Changes to fix behavior in Menu control, some reported in #80097
18535 and other detected during behavior refactory like a select event
18537 - Remove unneded "if's" conditions.
18538 - Created an internal to flag when popup is active in control, we need
18539 it because in .NET you can have menu active but without popup active
18540 when you active menu using popup without visible items.
18541 - Mimic win32 behavior for Select and Popup events.
18542 - Dont open popup menu when you dont have visible subitems.
18543 - Do nothing when click on disabled menu item.
18544 - Some small changes to follow the coding style guidelines.
18545 - Unselect menu only when another control gives focus. Fixes #80097.
18546 - Remove unused code.
18548 * MenuItem.cs: internal VisibleItems method to check if menu
18549 theres visible subitems, it will be usefull to fix some
18550 behavior in Menu control.
18552 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18554 * Timer.cs: Tag property for 2.0 profile.
18556 2006-12-01 Chris Toshok <toshok@ximian.com>
18558 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
18560 * Win32DnD.cs: comment out some unused fields.
18562 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
18563 some unused properties/methods.
18565 * XplatUIX11.cs: fix MousePosition so we override the base class's
18566 property instead of conflicting with it.
18568 * PictureBox.cs: comment out some unused fields
18570 * OSXStructs.cs: make some struct fields public.
18572 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
18573 MousePosition so we override the base class's property instead of
18574 conflicting with it.
18576 * X11Dnd.cs: comment out some unused fields
18578 * X11DesktopColors.cs: fix some struct field visibility to quiet
18581 * X11Dnd.cs: remove some debug code.
18583 * ThemeClearlooks.cs: comment out unused field.
18585 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
18587 * ThemeGtk.cs: comment out some unused pinvokes.
18589 * Timer.cs: remove some unused fields.
18591 * ThemeClearlooks.cs: comment out unused field.
18593 * UpDownBase.cs: comment out unused field.
18595 * DataObject.cs: comment out unused field.
18597 * DataGridBoolColumn.cs: reomve unused field.
18599 * DataGrid.cs: remove unused field.
18601 * Cursor.cs: remove old ToBitmap code.
18603 * ControlPaint.cs: remove unused method.
18605 * ScrollBar.cs: remove unused fields.
18607 * ComboBox.cs: remove unused field, and chain up to
18608 AccessibleObject ctor.
18610 * ListBox.cs: remove unused field.
18612 * ButtonBase.cs: wrap a couple fields in NET_2_0.
18614 * GridEntry.cs: remove unused fields.
18616 * Binding.cs: remove unused fields.
18618 * AxHost.cs: remove unused method.
18620 * ContainerControl.cs: remove unused field.
18622 * ScrollableControl.cs: remove unused fields.
18624 2006-12-01 Chris Toshok <toshok@ximian.com>
18626 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
18627 the Where/WhereString stuff. it's easy enough to CWL
18628 Environment.StackTrace.
18630 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
18631 unused private fields.
18633 2006-12-01 Jackson Harper <jackson@ximian.com>
18635 * TextControl.cs: Do not update the view while inserting multiline
18636 text. If we update the view we might wrap lines, before entering
18637 the new lines, which causes the new line insertion calculations to
18638 be totally fubared.
18639 - Remove an old TODO
18640 - Make debug output a little nicer
18642 2006-12-01 Chris Toshok <toshok@ximian.com>
18644 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
18646 2006-12-01 Chris Toshok <toshok@ximian.com>
18648 [ fix the majority of the CS0108 warnings we've been suppressing ]
18650 * TreeView.cs: mark BackgroundImageChanged as 'new'.
18652 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
18653 to "LayoutToolBar" to quiet mcs.
18655 * TabControl.cs: mark our ControlCollection class as 'new'.
18657 * TextBoxBase.cs: mark some events as 'new'.
18659 * Splitter.cs: TabStop is 'new'.
18661 * ControlBindingsCollection.cs: mark a few methods as new since
18662 they change the visibility from protected to public.
18664 * RadioButton.cs: DoubleClick -> base class, and remove unused
18667 * MonthCalendar.cs: ImeMode property -> base class, and mark many
18670 * NumericUpDown.cs: TextChanged -> base class.
18672 * CheckedListBox.cs: mark our ObjectCollection class as new to
18675 * FolderBrowserDialog.cs: make HelpRequest event new and have it
18676 muck with the base class.
18678 * StatusBar.cs: fix some mcs warnings about Update being the same
18679 name as a base class method.
18681 * RichTextBox.cs: mark some events as new, and make them do things
18682 to the base class impl.
18684 * UserControl.cs: mark TextChanged as new, and have it manipulate
18687 * UpDownBase.cs: mark some things new.
18689 * CheckBox.cs: mark DoubleClick "new", and add some text about
18690 what we need to look at.
18692 * Panel.cs: make the events "new", and manipulate the base
18693 version. these are just here for attributes.
18695 * AccessibleObject.cs: make owner private.
18697 * Control.cs: deal with AccessibleObject.owner being private.
18698 cache our own copy if we need it.
18700 * Button.cs: add "new" to the DoubleClickEvent.
18702 * ListBox.cs: no need to track our own has_focus here. let
18703 Control.has_focus do it for us. Also some other work to clear up
18704 warnings about not overriding base class methods of the same name.
18706 * ComboBox.cs: clear up some warnings about not override base
18707 class methods of the same name.
18709 2006-12-01 Chris Toshok <toshok@ximian.com>
18711 * Form.cs: flag a few things as "new" to quiet some of the mcs
18716 * PrintPreviewDialog.cs: same.
18718 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
18719 now DGV isn't so horrible on the class status page. also, move
18720 all events to using System.ComponentModel.EventHandlerList. my
18723 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
18725 * MdiWindowManager.cs:
18726 - Set form to active mdi child if shown,
18727 and update the active mdi child to the next
18728 remaining child in the z-order if the form is hidden.
18731 - Track if the form has been visible and if its
18732 visibility is beeing changed, so that the MdiClient
18733 can properly decide the ActiveMdiChild. The MdiClient
18734 cannot track this since the form can change visibility
18735 before MdiClient is created.
18738 - Don't activate anything of the parent form is changing
18740 - Rework ActiveMdiChild to only return visible mdi
18741 children and take into account several other corner
18744 2006-12-01 Chris Toshok <toshok@ximian.com>
18746 * IBindableComponent.cs: new 2.0 interface.
18748 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
18750 * DataGrid.cs: Font for caption area is bold by default.
18752 2006-12-01 Everaldo Canuto <everaldo@simios.org>
18754 * Menu.cs: Tag property for 2.0.
18756 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18758 * ThemeWin32Classic.cs: Adjust menu separator drawing.
18760 2006-12-01 Chris Toshok <toshok@ximian.com>
18762 * TreeView.cs: doh, the Begin* events should be
18763 TreeViewCancelEventHandler.
18765 2006-12-01 Chris Toshok <toshok@ximian.com>
18767 * Form.cs: Form.ControlCollection already stores off the
18768 form_owner field. don't access the base class's internal "owner"
18771 * Control.cs: make all the fields in Control.ControlCollection
18772 private. there's no need for any internal fields here.
18774 2006-12-01 Chris Toshok <toshok@ximian.com>
18776 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
18777 OnHandleCreated. Fixes bug #80109.
18779 2006-12-01 Chris Toshok <toshok@ximian.com>
18781 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
18782 SplitContainer.cs, Control.cs, StatusStrip.cs,
18783 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
18784 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
18785 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
18786 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
18787 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
18788 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
18789 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
18790 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
18791 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
18792 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
18794 do most of the work to convert our code over to use
18795 System.ComponentModel.Component.Events for
18796 adding/removing/dispatching events.
18799 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18801 * DataGridView.cs: Fix an ArgumentNullException reported
18802 twice today in IRC.
18804 2006-11-30 Mike Kestner <mkestner@novell.com>
18806 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
18807 grabbed listbox. Fixes #80036 and #80101.
18809 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18811 * Message.cs: Changed ToString() to match MS.
18813 2006-11-30 Jackson Harper <jackson@ximian.com>
18815 * TextBoxBase.cs: You can still change the selected text on a read
18817 * TextControl.cs: Lower magic number for wrap calculations. This
18818 lets text get closer to the right (far) edge.
18820 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18822 * Control.cs: Tweak 2.0 layout properties.
18823 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
18824 * TextRenderer.cs: Add a new overload.
18825 * ToolStrip*: Huge amount of changes and new features.
18827 2006-11-30 Mike Kestner <mkestner@novell.com>
18829 * ComboBox.cs: fixes for LargeChange and Maximum to get the
18830 scroll range correct. Fixes #79994.
18832 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18834 * MdiWindowManager.cs: Update main form's text when
18835 a form is closed. (fixes #80038)
18837 2006-11-30 Everaldo Canuto <everaldo@simios.org>
18840 - Fix an regression in ButtonSize.
18841 - Get ImeMode default value change to "Disable".
18842 - Get ShowTooltips default value change to true, default value is
18843 "false" but after make a test in .NET we get "true" result as default.
18845 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
18847 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
18849 2006-11-29 Chris Toshok <toshok@ximian.com>
18851 * XplatUIWin32.cs (GetWindowTransparency): check return value of
18852 GetLayeredWindowAttributes. if it's 0, return 1.0, as
18853 SetWindowTransparency hasn't been called.
18855 2006-11-29 Chris Toshok <toshok@ximian.com>
18857 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
18859 (set_AllowTransparency): reorder things a little so that the
18860 WS_EX_LAYERED style is removed properly.
18862 2006-11-29 Chris Toshok <toshok@ximian.com>
18864 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
18866 * Form.cs: only call the XplatUI transparency method (get/set) if
18867 SupportsTransparency says it's supported. Otherwise fallback to
18868 doing nothing (in the set case) or returning the instance field we
18869 cache (in the get case).
18871 * XplatUIStructs.cs: add TransparencySupport flag enum.
18873 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
18874 change to SupportsTransparency.
18876 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
18877 TransparencySupport.None from SupportsTransparency.
18879 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
18880 TransparencySupport.Set from SupportsTransparency.
18882 * XplatUIWin32.cs: implement GetWindowTransparency calling
18883 GetLayeredWindowAttributes, and implement SupportsTransparency by
18884 checking whether or not both
18885 GetWindowTransparency/SetWindowTransparency are available
18886 entrypoints. We need to do this since SetWindowTransparency is
18887 available as of win2k, but GetWindowTransparency requires winxp.
18890 * XplatUI.cs: Add GetWindowTransparency, and change
18891 SupportsTransparency to allow for either/both Get/Set.
18893 2006-11-29 Chris Toshok <toshok@ximian.com>
18895 * DataGrid.cs: keep from going into an infinite loop redrawing a
18896 datagrid that has no datasource. Fixes bug #80033.
18898 2006-11-29 Chris Toshok <toshok@ximian.com>
18900 * MenuItem.cs: fix the NRE when we assign text (and therefore call
18901 Invalidate) before the mainmenu has been assigned to a control.
18903 2006-11-29 Chris Toshok <toshok@ximian.com>
18905 * DataGrid.cs: detect when we should be double the double click
18906 row/column autosize stuff, although that codepath has yet to be
18907 written. part of the work for bug #79891.
18909 2006-11-29 Chris Toshok <toshok@ximian.com>
18911 * Binding.cs (SetControl): fix unit test.
18913 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18915 * PageSetupDialog.cs: Validate the margins and set them in
18917 * NumericTextBox.cs: New class to mimic the behavior of the
18918 textboxes used in the printing dialogs.
18920 2006-11-29 Andreia Gaita <avidigal@novell.com>
18922 * Form.cs: Revert previous change (remove call UpdateBounds
18923 from form constructor), because it messes with the handle creation
18924 order, and that one needs lots and lots of love.
18925 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
18926 for valid printer and throw InvalidPrinterException if document
18927 is set but printer not valid), adding a MonoTODO. Once
18928 handle creation is done properly, we can put this back in.
18930 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18932 * MenuItem.cs: Create a invalidate method for menu item, to be
18933 calling from set text, it make text changes to imadiate update
18934 on screen. Fixes #80013.
18936 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18938 * ToolBar.cs: Fixes and simplify toolbar button layout, it
18939 fixes bug #80070 and some other problem on toolbar buttons
18942 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18944 * ThemeWin32Classic.cs: Paint toolbar toggle button background
18945 with dotted brush. Fixes #79564
18947 2006-11-28 Andreia Gaita <avidigal@novell.com>
18949 * Form.cs: Removed call to UpdateBounds on Form
18950 constructor, it was causing a call to CreateHandle
18951 before it was supposed to.
18952 * PrintControllerWithStatusDialog: Applied patch
18953 by Chris Toshok to hide controller when there are
18954 no printers available.
18955 PrintDialog.cs: initialize printer settings to
18956 null - correct DefaultValues test #5
18957 * PrintPreviewControl.cs: Move PrintController
18958 initialization to GeneratePreview
18959 * PrintPreviewDialog.cs:
18960 - Remove Preview generation from Document_set(). It is
18962 - Throw InvalidPrinterException on CreateHandle if
18963 a Document is set but there are no printers or
18964 printer is not valid.
18965 * ThemeWin32Classic: don't paint PrintPreviewControl
18966 if there is nothing to paint
18968 2006-11-28 Miguel de Icaza <miguel@novell.com>
18970 * Form.cs: Add another popular method.
18972 * TabPage.cs: ditto.
18974 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18976 * MenuItem.cs: Fixed a warning.
18977 * InternalWindowManager: Fixed a warning.
18979 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18982 - When cloning a menu also clone MdiList and clone the
18983 window menu items properly (as the forms and menuitems
18984 are kept in an internal hashtable, these need updating
18986 - Rewrote the window menu code, menu items are added in the
18987 order the forms were added to their parent, and they are
18988 updated every time the window menu is shown (before the
18989 list was only generated once, in the current order of the
18990 forms, and would never be updated). A checkmark is shown
18991 next to the item corresponding to the active mdi child.
18993 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18995 * XplatUIStructs.cs:
18996 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
18999 - Added TME_NONCLIENT to TMEFlags.
19000 - Handles WM_NCMOUSEMOVE in GetMessage to
19001 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
19003 * MdiWindowManager:
19004 - Now merges mdi child menu to parent menu when maximized.
19005 - Recalculate NC areas of both mdi child and mdi parent.
19007 on window state and size changes.Fixes #79844 (3).
19008 - Handle WM_NCCALCSIZE to properly calculate borders.
19011 - Add/remove to the mdi containers list of mdi children
19012 in the order they are added.
19013 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
19014 to the maximized mdi child.
19016 * InternalWindowManager.cs:
19017 - Only execute a click on the control buttons on the mouse up,
19018 not on the mouse down. Show the state of the button
19019 (was only showing Normal state, never Pressed state). The
19020 pressed button now follows the mouse (if you click the Close
19021 button and move the mouse over the Maximize button, the
19022 Maximize button will be shown as pressed). Since Win32 does
19023 not generate WM_NCLBUTTONUP if you release the button outside
19024 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
19027 * ThemeWin32Classic.cs:
19028 - Draw a missing border around mdi child forms. Fixes #79844 (2).
19031 - Added a list of forms which contains the order the forms are
19032 added to the mdi parent.
19033 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
19034 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
19035 - If the active form changes set the scrollbars to the top
19036 of the Z order, otherwise the form could hide them.
19037 - Scrollbars are now sized according to ClientSize, not
19038 to Size, and they take into account the other scrollbar
19039 to determine maximum.
19041 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19044 * XplatUIDriver.cs:
19048 - Added RequestAdditionalWM_NCMessages for windows to
19049 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
19050 Currently only implemented in XplatUIWin32.
19052 2006-11-27 Chris Toshok <toshok@ximian.com>
19054 * Hwnd.cs: only add the hwnd to the windows hash in
19055 set_WholeWindow and set_ClientWindow if whole_window/client_window
19056 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
19058 2006-11-27 Mike Kestner <mkestner@novell.com>
19060 * ComboBox.cs: remove redundant OnDropDown call. It is called
19061 from the ComboListBox.ShowWindow code. Fixes #79969.
19063 2006-11-27 Chris Toshok <toshok@ximian.com>
19065 * Hwnd.cs: remove the setters for ExposePending and
19066 NCExposePending - noone uses them.
19068 2006-11-27 Jackson Harper <jackson@ximian.com>
19070 * TextControl.cs: new param for ReplaceSelection which determines
19071 whether we select the new selection, or set the cursor to the end
19072 of the new selection.
19073 * TextBoxBase.cs: Use new param for ReplaceSelection. When
19074 pasting, select the new text.
19075 * RichTextBox.cs: Use new param for ReplaceSelection.
19077 2006-11-27 Jackson Harper <jackson@ximian.com>
19079 * TextBoxBase.cs: Set the selection to the caret after the caret
19080 is moved, otherwise they get out of sync.
19082 2006-11-26 Everaldo Canuto <everaldo@simios.org>
19084 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
19087 2006-11-26 Everaldo Canuto <everaldo@simios.org>
19089 * ThemeWin32Classic.cs:
19090 - Fix toolbar drop down arrow position.
19091 - Fix drop down appearance when ToolBar.Appearance is normal,
19094 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
19096 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
19097 * Control.cs: Same.
19098 * UpDownBase.cs: Same.
19099 * ButtonBase.cs: Same.
19100 * ScrollBar.cs: Same.
19101 * TrackBar.cs: Same.
19102 * PictureBox.cs: Same.
19103 * UserControl.cs: Same.
19105 * ListControl.cs: Same.
19106 * TextBoxBase.cs: Same.
19107 * ListView.cs: Same.
19108 * RichTextBox.cs: Same.
19109 * TreeView.cs: Same.
19111 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
19114 - Text label for where
19115 - Text label comment was not shown
19117 2006-11-23 Everaldo Canuto <everaldo@simios.org>
19119 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
19121 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19123 * InternalWindowManager.cs:
19124 - Handle WM_PARENTNOTIFY to activate the form
19125 if any child control is clicked.
19126 - The form is only sizable if not minimized.
19128 * MdiWindowManager.cs:
19129 - Save the IconicBounds if the form is moved.
19130 - Rework SetWindowState, now the window bounds
19131 are stored only if the old window state is Normal.
19134 - In SetWindowStates store the old window state if
19135 the window is maximized and restore window state if
19136 the window looses focus.
19137 - Don't handle any scrollbar value changes if
19138 initializing the scroll bars. Fixes #79771.
19139 - Reworked ArrangeIconicWindows. Current algorithm
19140 tests bounds agains all other minimized windows, if
19141 any intersections create new bounds (going left to
19142 right, bottom to top) and then test again. When
19143 successful the bounds are saved and never computed
19144 again. Fixes #79774.
19146 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19148 * InternalWindowManager.cs: Added HandleTitleBarUp.
19150 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19152 * NumericUpDown.cs: In .NET 1.1, user entered text is still
19153 hexadecimal in ParseUserEdit.
19156 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19158 * MdiWindowManager.cs:
19159 - Handle a click on the form's icon to show the
19160 system menu (when maximized). Fixes #79775.
19161 - Change the existing click handler for the form's
19162 icon when not maximized to show on MouseUp.
19165 * Form.cs: In OnResize only layout the mdi child's
19166 parent if it actually has a parent. Might not if
19167 the window is closing.
19170 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19172 * MdiClient.cs: Ignore active MDI client for text of parent, if
19173 child has no text set.
19175 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19177 * ToolBar.cs: Fixed ToString to match MS.
19179 2006-11-22 Andreia Gaita <avidigal@novell.com>
19182 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
19183 update inner values on set. Fixes #79966.
19184 - Override OnLostFocus to update value on NET 2. Fixes #79950.
19185 - Fix hexadecimal parsing.
19187 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
19188 parent. Fixes #79957
19190 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
19192 * Control.cs: After calling SetWindowsPos in SetBoundsCore
19193 the actual size has to be queried, since if height /
19194 width is negative Win32 changes it to 0.
19195 Fixes #79999 on Windows.
19197 * XplatUIX11.cs: Set height / width to 0 if negative
19198 in SetWindowPos. Fixes #79999 on Linux.
19200 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19202 * ThemeWin32Classic.cs: Fix text redenring when button is
19205 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19207 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
19208 and later navigate by mouse. Fixes #79528.
19210 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19212 * ToolBar.cs: Set default value for TabStop to false in
19213 constructor, it fixes remaining behavior of bug #79863.
19215 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
19217 * MdiWindowManager.cs:
19218 * InternalWindowManager.cs:
19219 - Moved a few methods specific to Mdi from
19220 InternalWindowManager to MdiWindowManager.
19223 2006-11-21 Chris Toshok <toshok@ximian.com>
19225 * XplatUIOSX.cs: stub out InvalidateNC.
19227 * XplatUIWin32.cs: implement InvalidateNC using the call I found
19228 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
19230 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
19232 * XplatUIDriver.cs: add InvalidateNC abstract method.
19234 * XplatUI.cs: add InvalidateNC.
19236 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19238 * ToolBar.cs: Invalidate complete button area when pressed status
19240 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
19241 * ThemeWin32Classic.cs: Increase vertical and horizontal position
19242 by 1 when button is pressed.
19244 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19246 * ToolButton.cs: Invalidate middle of DropDown button when
19247 ToolBar theres DropDownArrows.
19248 * ThemeWin32Classic.cs: Change position of DropDown arrow and
19249 fix DropDown drawing operations.
19251 2006-11-20 Chris Toshok <toshok@ximian.com>
19253 * NativeWindow.cs: fix the formatting of functions ('{' on the
19254 following line), and enable the thread exception dialog.
19256 * Application.cs: remove the duplicate exception catching from
19259 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19261 * Toolbar.cs: Triggers button click event when click on icon
19262 of dropdown ToolBarButton. Fixes #79912.
19264 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
19267 * ThemeWin32Classic.cs:
19268 - Added a property WindowBorderFont to enable themeing
19269 of mdi child windows' Text.
19271 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
19273 * InternalWindowManager.cs:
19276 * MdiWindowManager.cs:
19277 - If mdi child is maximized, set mdi parent's
19278 text to "Parent - [Child]". Fixes #79770.
19279 - If there is any maximized mdi child windows, only the active
19280 window (and any new windows) is maximized, the rest are normal.
19281 - On a WindowState change only save mdi child's window bounds
19282 if the old window state was normal. Fixes #79774.
19283 - The scroll bars are now calculated on hopefully all
19284 necessary events. Fixed #79771 / #79844->6 / #79906.
19285 - MdiClient.SizeScrollBars() now takes into account docked
19286 controls in the parent when calculating available space.
19287 - InternalWindowManager now always repaints the entire title
19288 area. Fixes #79844->1/4/5.
19289 - Added RequestNCRecalc on mdi child windowstate changes.
19292 2006-11-20 Mike Kestner <mkestner@novell.com>
19294 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
19295 in the MouseUp handler of the listbox and move the return handling
19296 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
19298 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19300 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
19302 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19304 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
19305 working in 1.2.x anymore. So, updated.
19307 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
19309 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
19310 NumberGroupSeparator of current culture instead of assuming en-US.
19313 2006-11-17 Mike Kestner <mkestner@novell.com>
19315 * Control.cs: Add the concept of implicit bounds setting so that
19316 dock/undock round trips preserve explicitly set size/locations.
19319 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19321 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
19322 can't handle those filters. (Fixes bug #79961)
19324 2006-11-17 Chris Toshok <toshok@ximian.com>
19326 [ fixes the exit/crashes associated with #79835. it's clearly
19327 suboptimal though, we need to figure out a better way to solve
19330 * PrintPreviewControl.cs: deal with the new invalid printer
19333 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
19334 and return false (so CommonDialog.ShowDialog doesn't actually show
19337 * PrintDialog.cs: enable/disable the Ok button depending on
19338 whether or not the printer is valid.
19340 * CommonDialog.cs (ShowDialog): only actually show the form if
19341 RunDialog returns true.
19343 2006-11-17 Jackson Harper <jackson@ximian.com>
19345 * TextControl.cs: When soft splitting a line, mark it as a soft
19346 split line. Also carry over the current line break to the next
19349 2006-11-17 Chris Toshok <toshok@ximian.com>
19351 * XplatUIX11.cs: when scrolling a window with an invalid area, we
19352 only want to shift the part of the invalid area that overlaps the
19353 area we're scrolling. we also don't want to clear the invalid
19354 area unless the invalid area was entirely contained within the
19357 2006-11-16 Chris Toshok <toshok@ximian.com>
19359 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
19360 also make sure to free the memory returned by XGetWindowProperty
19363 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
19365 2006-11-16 Chris Toshok <toshok@ximian.com>
19367 * XplatUI.cs: add a new super secret way to get at the totally
19368 unsupported X11 backend.
19370 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
19372 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
19374 2006-11-16 Jackson Harper <jackson@ximian.com>
19376 * TreeView.cs: Allow more explicit setting of top node position
19377 for scrollbars. Slower algo, but more accurate.
19378 - CollapseAll should maintain the current top node.
19379 * TextBoxBase.cs: When positioning the caret, use the line, pos
19380 method, since the x, y method does not grab the correct tag, and
19381 the caret height never gets set correctly. (Maybe I should just do
19382 away with the caret having its own height, and always use the
19383 carets current tag for height).
19385 2006-11-16 Jonathan Pobst <monkey@jpobst.com
19387 [Fixes 79778, 79923]
19389 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
19390 Parent to the FosterParent instead.
19392 2006-11-16 Jackson Harper <jackson@ximian.com>
19394 * TreeView.cs: Need to recalc the topnode when we expand or
19395 collapse. The scrolling methods can't handle this on their own,
19396 since they use differences between the last scroll position, and
19397 those difference get completely messed up since we are expanding
19398 nodes. This problem should probably be fixed in the scrolling
19399 methods, so they can figure out exactly where they are, but this
19400 will slow things down a little.
19401 * ThemeWin32Classic.cs: Special case for groupboxes with empty
19402 strings, makes nunit-gui look a lot nicer.
19404 2006-11-16 Chris Toshok <toshok@ximian.com>
19406 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
19407 the broken multithreaded event handling we have in here. File
19408 this entry under "Why we should move to the new X11 backend".
19410 Any thread can make it into UpdateMessageQueue, which gets events
19411 from the X socket - some of which could belong to hwnds being
19412 managed by a different thread. We can also have multiple threads
19413 in UpdateMessageQueue at the same time, with each one reading from
19414 the X socket. This leads to many problems, with the following
19417 We can't use hwnd.Queue.Enqueue anywhere in here and must use
19420 The MotionNotify compression we do can't work across threads
19421 (without locking the entire queue, perhaps) since we call
19422 hwnd.Queue.Peek, so we just punt and don't compress motion events
19423 unless the owning thread is the one which got the X event.
19425 ConfigureNotify is another fun one, since it modifies the hwnd's
19426 bounds and then enqueues the event. We add a lock to Hwnd which
19427 is held when setting configure_pending to true (and enqueuing the
19430 There is a race wrt the wake socket. we need to make sure that
19431 only 1 thread is waiting on that socket, or else a thread could
19432 sleep waiting for data that never comes. It's difficult (but not
19433 impossible) to make happen, because it seems to require something
19434 like the following:
19436 1. Thread 1 polls on wake_receive
19438 2. poll returns saying there's data to be read on
19441 3. Thread 2 polls on wake_receive and immediately returns
19442 saying there's data to be read.
19444 4. Thread 2 reads the wakeup byte from wake_receive
19446 5. Thread 1 attempts to read the wakeup byte from
19449 6. Thread 2 exits (due to a form closing, perhaps).
19451 7. Thread 1 blocks forever.
19455 Fixing the Expose handling isn't done yet, and the races inherent
19456 in that piece of code are responsible for the drawing mistakes you
19457 see when generating expose events in a MT app (like NPlot). This
19458 one is the likely to be the hardest to bandaid, and it doesn't
19459 appear to cause anything but drawing problems. The other issues
19460 caused apps to exit or hang.
19462 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
19463 called from a different thread than the one that should be calling
19466 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
19468 2006-11-15 Chris Toshok <toshok@ximian.com>
19470 * Application.cs: null out the context's MainForm when we exit
19471 RunLoop. Fixes a newly checked in unit test as well as the last
19472 ODE from bug #79933.
19474 2006-11-15 Chris Toshok <toshok@ximian.com>
19476 * Form.cs (set_Owner): allow a null value so we can clear the
19478 (Dispose): set all our owned_form's Owner properties to null, and
19479 clear the owned_forms collection.
19480 (WM_CLOSE): clean up this a little bit.. still not right though.
19482 * ApplicationContext.cs: OnMainFormClosed should only call
19483 ExitThreadCore if the main form isn't recreating. Fixes unit
19486 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19490 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
19492 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19496 * Hwnd.cs: Add a flag to show a window, but not activate it, to
19497 keep popup window types from stealing focus from the main form
19500 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
19502 * MenuAPI.cs: Set above flag to true.
19504 2006-11-15 Chris Toshok <toshok@ximian.com>
19506 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
19507 the button being released is not in wParam.
19509 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19511 * Form.cs: Add the released button to MouseEventArgs.Button
19512 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
19515 2006-11-15 Chris Toshok <toshok@ximian.com>
19517 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
19518 GetText(). untested because it's unused in our implementation.
19519 Control.Text always caches the text, even if
19520 ControlStyles.CacheText is not set.
19524 2006-11-15 Chris Toshok <toshok@ximian.com>
19528 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
19529 message. no hiding, no disposing.
19531 in the WM_CLOSE handler, hide the form if it's modal.
19533 2006-11-15 Chris Toshok <toshok@ximian.com>
19535 * XplatUIX11.cs: use AddExpose instead of sending a message.
19536 fixes textbox border drawing.
19538 2006-11-15 Chris Toshok <toshok@ximian.com>
19540 * PropertyGridView.cs: keep from crashing on mouse move/down when
19541 the property grid is empty.
19543 2006-11-14 Jackson Harper <jackson@ximian.com>
19545 * TextControl.cs: Make PageUp and PageDown more like the MS
19547 * TextBoxBase.cs: When we set the text property position the
19548 cursor at the beginning of the document.
19550 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19552 * Form.cs: if a mdi child's WindowState has changed
19553 before it's creation, it would display wrong control
19556 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
19558 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
19561 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19563 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
19564 the window gets to paint its borders even if the window is
19567 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
19568 otherwise the old control buttons would still be painted
19569 if the window gets bigger.
19571 * PaintEventArgs.cs: add an internal method so that the clip
19572 rectangle can be changed.
19574 2006-11-13 Chris Toshok <toshok@ximian.com>
19576 [ fixes bug #79745 ]
19578 * NotifyIcon.cs: lots of cleanup.
19580 * X11Structs.cs: add an enum for XEMBED messages.
19582 * XplatUIX11.cs: reindent one of the giant switch statements, it
19583 was taking up an additional tab stop, and this file is already way
19584 too wide for my laptop's screen.
19586 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
19587 we get it, resize the hwnd to the WMNormalHints max_width/height.
19589 2006-11-13 Jackson Harper <jackson@ximian.com>
19591 * TextBoxBase.cs: Compute the value changes for the mouse wheel
19594 2006-11-13 Chris Toshok <toshok@ximian.com>
19596 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
19597 #79898. force a reference to the Region to stick around so the
19598 unmanaged object isn't collected (rendering our handle in the MSG
19601 2006-11-13 Chris Toshok <toshok@ximian.com>
19603 * XplatUIX11.cs: fix #79917 for window managers which support
19605 using XStoreName on the raw utf8, and we need to convert to
19606 COMPOUND_TEXT if it's non-latin1.
19608 2006-11-13 Chris Toshok <toshok@ximian.com>
19610 * Form.cs (set_DialogResult): we need to set closing to false if
19611 we're setting our result to None. fixes bug #79908.
19613 2006-11-13 Jackson Harper <jackson@ximian.com>
19615 * TextControl.cs: When formatting text, compute the adjusted tag
19616 lengths correctly, using FindTag for the end tag instead of trying
19617 to figure it out outselves.
19618 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
19619 the item, ItemHeight doesn't work, because trees with large
19620 imagelists use those for their height
19621 * TreeView.cs: ActualItemHeight factors in the image height
19622 - compute left edge of checkboxes correctly
19623 - when expanding/collapsing move the bottom down one pixel, so we
19624 aren't moving part of the node
19626 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
19628 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
19629 stack in PaintEventStart so that it won't get disposed by the gc
19630 before reaching PaintEventEnd.
19632 2006-11-13 Jackson Harper <jackson@ximian.com>
19634 * TextBoxBase.cs: Don't select the word if we are on a line with
19636 - We don't need to position the caret on mouse up, since the mouse
19637 move handler should be doing this
19638 - When double clicking a blank line, the caret is advanced to the
19641 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
19643 * TreeNodeCollection.cs: Avoid duplicating indexer code.
19645 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
19647 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
19648 Fixes part of bug #79910.
19650 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
19652 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
19653 (bug #79903). Some minor string updates to match ms.
19655 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19657 * FileDialog.cs: Don't add an extension if the filename
19658 already ends with that extension.
19660 2006-11-10 Jackson Harper <jackson@ximian.com>
19662 * TreeView.cs: Use the currently highlighted node for the
19663 BeforeSelect event.
19664 * TextBoxBase.cs: There is no need to expand selection on
19666 - CanUndo means 'is there any undo operations', not 'is undo
19667 allowed on this textcontrol. Fixed ClearUndo unit test.
19669 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
19671 * Button.cs: only perform click when button is Selectable (so as
19672 not to activate default buttons when they're disabled)
19674 * Control.cs: Rewrite of the SelectNextControl and related
19675 methods. HandleClick now selects next control if the current one
19678 * Form.cs: OnActivated selects next active control only if Load
19679 has already occurred. If Load hasn't run, there's no point in
19680 selecting here, Load might change the state of controls.
19682 * FocusTest.cs: Tests marked as working again for these fixes
19684 2006-11-10 Chris Toshok <toshok@ximian.com>
19686 * XplatUIX11.cs: a couple of fixes.
19688 - use XInternAtoms with almost all the atoms we need to register,
19689 instead of many, many calls to XInternAtom. should help a bit on
19690 startup time, at the expense of making the code look a little
19693 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
19694 isn't reparented (which seems to be a clue that we're running fon
19695 compiz) and they have an Owner form. This fixes the tool windows
19696 in paint.net when running under compiz.
19698 - when setting the opacity of a window, support both the case
19699 where the window has been reparented and also when it hasn't been.
19700 Since compiz/beryl doesn't seem to reparent windows, and these are
19701 the only window managers which support translucency, I'm not sure
19702 why we need the hwnd.reparented case at all.. but leave it in.
19703 now we get translucent windows in paint.net under compiz/beryl.
19705 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19707 * FileDialog.cs: Always return the value for FilterIndex that
19708 was set. Internally convert it to values that make sense.
19710 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19712 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
19714 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19716 * Toolbar.cs: Change default value of DropDownArrows to true, the
19717 signature still using false to make it compatible with MS but the
19718 initial value is true. Fixes #79855.
19720 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19722 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
19723 only available on Linux.
19725 2006-11-09 Everaldo Canuto <everaldo@simios.org>
19727 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
19728 reduce number of calls to redraw method during toolbar creation.
19730 2006-11-09 Mike Kestner <mkestner@novell.com>
19732 * ListView.cs : raise SelectedIndexChanged when an item is selected
19733 programmatically via the Item.Selected property. Gert's nice
19734 ListViewSelectedIndexChanged test fixture now runs clean.
19736 2006-11-09 Mike Kestner <mkestner@novell.com>
19738 * ListView.cs : raise SelectedIndexChanged when a selected item is
19739 removed from the item collection using Remove or RemoveAt.
19741 2006-11-09 Mike Kestner <mkestner@novell.com>
19743 * ListView.cs : raise SelectedIndexChanged once per selected item
19744 for compat with MS. Fixes #79849+.
19746 2006-11-09 Chris Toshok <toshok@ximian.com>
19748 * TabControl.cs: initialize row_count to 0, and set it to 1 when
19749 we need to (if we have any tab pages). Fixes unit test.
19751 2006-11-09 Chris Toshok <toshok@ximian.com>
19753 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
19754 width is 0, not 3. Fixes a unit test.
19756 2006-11-09 Mike Kestner <mkestner@novell.com>
19758 * ListView.cs : use Implicit scrollbars so that focus isn't
19759 stolen from the listview when they are clicked. Fixes #79850.
19761 2006-11-09 Chris Toshok <toshok@ximian.com>
19763 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
19764 have a root item. Fixes #79879.
19766 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
19770 - An ArgumentException is now thrown if a wrong filter
19771 is applied (matches ms). The previous filter doesn't change
19772 anymore if an exception is thrown.
19773 - Changing the FileName property also affects FileNames
19774 * ColorDialog.cs: The length of the CustomColors array is always
19775 16. It doesn't matter if we use a smaller array or null to update
19776 or change the custom colors property.
19777 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
19778 for RootFolder if we get a undefined value.
19780 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19782 * StatusBarPanel.cs:
19783 - Width is set to MinWidth if Width is smaller than
19784 MinWidth. Fixes #79842.
19785 - MinWidth now always overrides Width (MSDN says MinWidth
19786 is set to Width when AutoSize = None, but they do not
19788 - Style has now the the correct default value.
19790 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19793 - The control is completely invalidated on
19794 Got/LostFocus to draw the focus rectangle correctly.
19795 - When AutoSize then height is always 45 (width for
19796 vertical controls).
19798 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
19799 on the mouse when moved and it doesn't move when grabbed
19800 until the mouse moves as well. Also fixed some wrong
19801 calculations when clicking on the thumb (control thought
19802 click was outside of thumb and didn't grab it).
19803 Fixes some of the issues in #79718.
19805 2006-11-08 Everaldo Canuto <everaldo@simios.org>
19807 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
19809 2006-11-08 Chris Toshok <toshok@ximian.com>
19811 * PropertyGridView.cs: only call ToggleValue if the item is not
19814 2006-11-08 Jackson Harper <jackson@ximian.com>
19816 * TextBoxBase.cs: The RichTextBox and textbox have very different
19817 word selection methods. Implement the textbox's simple word
19818 selection here, and let the RichTextBox override and provide it's
19820 - Don't do extra selection on mouseup
19821 * RichTextBox.cs: Use the documents word selection algorithm, I
19822 think ideally, this function will be pulled into the
19823 RichTextBox.cs code someday.
19825 2006-11-08 Chris Toshok <toshok@ximian.com>
19827 * RootGridEntry.cs: new class to represent GridItemType.Root.
19829 * CategoryGridEntry.cs: reformat, and add boilerplate.
19831 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
19832 returns the UI parent anyway, and we need special handling to
19833 implement the GetTarget method in the face of it. Also, implement
19836 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
19837 a root grid item, and use that instead of PropertyGrid.grid_items.
19838 Also, make use of TypeConverters (and add limitted support for
19839 ICustomTypeDescriptors) when initially populating the grid.
19840 Arrays now show up more or less properly.
19842 2006-11-08 Chris Toshok <toshok@ximian.com>
19844 * Application.cs: set the modal dialog to non modal after we close
19845 it. Fixes bug #79866.
19847 2006-11-08 Jackson Harper <jackson@ximian.com>
19849 * TextControl.cs: When combining lines carry over the line end
19850 style from the end line.
19851 - Invalidate the selected area when setting it, if it is visible.
19852 * TextBoxBase.cs: Only rich text box can do full line selects.
19853 - Make sure to set the cursor position when there is a click,
19854 otherwise two clicks in separate areas could cause a large chunk
19857 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19859 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
19862 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19864 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
19865 time. Remove tooltips when ToolButton click events. Fixes #79856.
19867 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19869 * MenuAPI.cs: Ignore right click for menu actions and fixes
19870 menu border when clicked. Fixes #79846.
19872 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19874 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
19875 MouseState after create wParam for message, this fixes mouse button
19876 equal none in mouse up events.
19878 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
19880 * Control.cs : Focus() now calls Select to set the Container's
19881 Active Control and to give it focus. To avoid infinite recursion
19882 (because ActiveControl also calls Focus at one point), a check
19883 is made in Focus with the help of a new internal variable
19886 2006-11-07 Mike Kestner <mkestner@novell.com>
19888 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
19889 if there's a selection. Fixes #79849.
19891 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
19893 * PropertyGrid.cs: Avoid fixed height of help description label.
19894 Fixes part of bug #79829.
19896 2006-11-07 Chris Toshok <toshok@ximian.com>
19898 * XplatUIX11.cs: fix #79790 again, by using the
19899 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
19901 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19903 * ToolBar.cs: Fix left click checking.
19905 2006-11-07 Chris Toshok <toshok@ximian.com>
19907 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
19909 2006-11-07 Chris Toshok <toshok@ximian.com>
19911 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
19912 PropertyManager unit tests.
19914 * PropertyManager.cs: make property_name internal.
19916 2006-11-07 Chris Toshok <toshok@ximian.com>
19918 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
19919 pass a unit test. Also, don't set image_index to anything in
19920 response to setting the ImageList property.
19922 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19924 * ToolBar.cs: Ignore click events when mouse button is not a
19925 left button, only accepts other button for dropdown menus.
19928 2006-11-07 Chris Toshok <toshok@ximian.com>
19930 * DataGrid.cs: make the back and parent row buttons a little less
19933 2006-11-07 Jackson Harper <jackson@ximian.com>
19935 * TextBoxBase.cs: When converting to Text don't put line breaks in
19936 for soft line breaks.
19937 * TextControl.cs: There is an initial "fake" line in the document,
19938 this is now a soft break line, so that an extra line feed doesn't
19939 get added to the end of documents.
19941 2006-11-07 Chris Toshok <toshok@ximian.com>
19945 * CurrencyManager.cs: if the list is readonly, don't bother
19946 checking if IBindingList.AllowNew is true.
19948 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
19949 for non-DataRowView datasources.. or rather, make it not crash.
19950 (DataGridPaintRelationRow): make sure we limit the row painting to
19951 the area not covered by the row header, and make our cell width at
19952 least large enough to cover the relation area. This allows grids
19953 that have relations but no rows to render correctly.
19954 (DataGridPaintRowContents): same type of changes here.
19955 (SetDataSource): move back to always calling
19956 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
19957 navigating back through relations.
19958 (HitTest): handle the case where we have no cells but have
19959 relations. Right now we generate a hit in cell 0 of whatever the
19960 row is, not sure if this is strictly correct, but it works for our
19963 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
19964 bother doing anything.
19966 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
19968 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
19969 early version of StatusStrip. Not responsible for eaten
19970 application or firstborn children.
19972 2006-11-06 Chris Toshok <toshok@ximian.com>
19974 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
19975 call GetTabRect with a -1 index. Fixes #79847.
19977 2006-11-06 Jackson Harper <jackson@ximian.com>
19979 * TreeNodeCollection.cs: Update scrollbars after clearing.
19981 2006-11-06 Chris Toshok <toshok@ximian.com>
19983 * NumericUpDown.cs: fix the ToString method for some unit test
19986 2006-11-06 Chris Toshok <toshok@ximian.com>
19989 - set the initial SelectedGridItem if we can.
19991 - Exclude non-mergable properties only if we're merging > 1
19992 object. Merging 1 object isn't really merging, obviously.
19994 - Handle PropertySort.NoSort just like Alphabetical, which is
19995 wrong of course, but at least gets things on the screen.
19997 * PropertyGridView.cs:
19998 - Add method "FindFirstItem" which finds the first property grid
19999 item, so we can select it by default.
20001 - make use of GridEntry.CanResetValue.
20003 - Don't call RedrawBelowItemOnExpansion here anymore, the
20004 individual GridEntry's will do that.
20006 - Remove the ITypeDescriptorContextImpl internal class.
20009 - this class needs to implement ITypeDescriptorContext, as it's
20010 what MS's PropertyDescriptorGridEntry does, which means we can
20011 remove the ITypeDescriptorContextImpl internal class from
20012 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
20014 - keep a reference to our PropertyGridView, and move the call to
20015 RedrawBelowItemOnExpansion here from PGV. This means
20016 programmaticly setting Expanded actually does something visible.
20018 - add a CanResetValue() function which takes into account our
20019 possibly multiple "selected_objects" in the merged case. Shifting
20020 PropertyGridView to use this method fixes another unreported
20021 crasher found running the test for #79829.
20023 - when Top or Bounds is updated, make sure the PropertyGridTextBox
20024 is updated to reflect this.
20026 * CategoryGridEntry.cs: the ctor takes the PGV now.
20028 2006-11-06 Jackson Harper <jackson@ximian.com>
20030 * TextControl.cs: These are 1 based.
20031 * TextBoxBase.cs: When setting the selected text, don't change the
20032 selected text tags, this is done by ReplaceText, just position the
20033 cursor at the end of the new text.
20035 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
20037 * ListView.cs: Allow label edit only when, when LabelEdit is
20040 2006-11-06 Jackson Harper <jackson@ximian.com>
20042 * TextControl.cs: If a suitable wrapping position isn't found,
20043 just wrap right in the middle of a word.
20045 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
20047 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
20050 2006-11-06 Jackson Harper <jackson@ximian.com>
20052 * TreeView.cs: Can't use the VisibleCount property when setting
20053 scrollbar heights, because this doesn't take into account whether
20054 or not the horz scrollbar just came visible.
20056 2006-11-05 Everaldo Canuto <everaldo@simios.org>
20058 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
20059 activated. Fixes #79369, #79832.
20061 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
20063 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
20064 had to remove support for links that point to a directory. FileInfo
20065 returns no usefull information (means, the directory they point to)
20066 for such links. Replaced some empty string ("") with String.Empty.
20068 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
20070 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
20071 NullReferenceException when attempting to remove node that is not in
20072 collection. Throw NullReferenceException when null is passed to
20073 Remove. Allow first element of the collection to be removed. Fixes
20074 bug #79831. In GetEnumerator ().Current return null if positioned
20075 before the first element of the collection. In GetEnumerator ().Reset,
20076 position before first element of the collection.
20078 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
20080 * PropertyGrid.cs: To match MS, remove default title and description
20081 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
20084 2006-11-04 Chris Toshok <toshok@ximian.com>
20086 * Theme.cs: add a Clamp method, just for kicks.
20088 * ThemeWin32Classic.cs: clamp all color components to [0..255].
20090 2006-11-04 Chris Toshok <toshok@ximian.com>
20092 * Form.cs: if the form isn't visible, Close() does nothing.
20094 2006-11-03 Chris Toshok <toshok@ximian.com>
20096 * Form.cs (Close): if the form is modal, don't Dispose of it, only
20098 (WndProc): don't Dispose after handling the WM_CLOSE message.
20100 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
20101 them as such, instead of using casts from Control to Form. Also,
20102 don't Dispose of the modal dialog when we fall out of the loop -
20103 Close() it instead.
20107 2006-11-03 Chris Toshok <toshok@ximian.com>
20109 * Control.cs (Dispose): only go through the dispose thing if we're
20110 @disposing, and we haven't already been disposed. Fixes bug
20113 * Form.cs: no reason to call "base.Dispose()" here instead of
20116 2006-11-03 Mike Kestner <mkestner@novell.com>
20118 * ComboBox.cs : use ToString instead of casts in AddItem for
20119 sorting functionality. Fixes #79812.
20121 2006-11-03 Chris Toshok <toshok@ximian.com>
20123 * Application.cs: pave the way for actually using the thread
20124 exception dialog. it's ifdefed out at the moment.
20126 2006-11-03 Chris Toshok <toshok@ximian.com>
20128 * ThreadExceptionDialog.cs: until we get a better layout, actually
20129 hide the details textbox and label when we shouldn't see them.
20131 2006-11-03 Jackson Harper <jackson@ximian.com>
20133 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
20134 multiline textboxes anymore. This method also determines the
20135 width/height of a textboxes canvas area.
20136 - Sorta a revert of the last patch. For multiline just position
20137 the controls, then bail. This way the scrollbar width won't be
20140 2006-11-03 Everaldo Canuto <everaldo@simios.org>
20142 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
20143 it dont need. Fixes #79537.
20145 2006-11-02 Jackson Harper <jackson@ximian.com>
20147 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
20148 send the status after firing the DndOver event.
20150 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20152 * TrackBar.cs: Now orientation only switches height / width if
20153 the control's handle is created (Win32 does it like this). Also
20154 fixed a typo in ToString() for a test to pass, changed the
20155 exception thrown in set_LargeChange and set_SmallChange to
20156 match Win32 behaviour, and added TrackBar tests to the unit
20159 2006-11-02 Chris Toshok <toshok@ximian.com>
20161 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
20162 not _NET_WM_STATE_NO_TASKBAR.
20164 2006-11-02 Jackson Harper <jackson@ximian.com>
20166 * TextControl.cs: Increment count by one, since in the update view
20169 2006-11-02 Jackson Harper <jackson@ximian.com>
20171 * TextBoxBase.cs: Use client rectangle not bounds for checking if
20172 the mouse is in the client rectangle (duh).
20174 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20176 * TrackBar.cs: Fixed trackbar jumping around when clicking
20177 on it - the trackbar was not detecting correctly at which
20178 side of the thumb the click was done. (fixes #79718)
20180 2006-11-02 Everaldo Canuto <everaldo@simios.org>
20182 * ListBox.cs: scroll visible area when change SelectedIndex to
20183 a non visible area. Fixes #79481.
20185 2006-11-01 Jackson Harper <jackson@ximian.com>
20187 * TextControl.cs: When replacing the selection move the selection
20188 start/end/anchor to the end of the new text.
20190 2006-11-01 Jackson Harper <jackson@ximian.com>
20192 * XplatUIWin32.cs: When setting the parent change the controls
20193 visibility to it's visibility flag, not to it's old parents
20194 visibility (.Visible walks the parent chain).
20196 2006-11-01 Chris Toshok <toshok@ximian.com>
20198 * XplatUIX11.cs: revert the #79790 fix, as the simple.
20199 XSetTransientForHint fix breaks paint .net's tool windows. more
20200 work needed for that one.
20202 2006-11-01 Chris Toshok <toshok@ximian.com>
20204 * ScrollBar.cs: throw ArgumentException instead of Exception in
20205 LargeChange/SmallChange setters. fixes unit tests.
20207 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20209 * ContainerControl.cs: reverted rev.67183 (which was itself
20210 a reversion of rev.66853... eh).
20212 * Control.cs: Fixes Reflector hang by changing Focus() call
20213 to what it was before rev.66643 (calling Select() here sets
20214 ActiveControl, which in some situations calls back Focus and
20215 eventually does a stack overflow). Temp fix.
20216 Changes to GetNextControl() to not look for children to select when
20217 parent cannot be selectable (so it looks for siblings instead)
20219 2006-10-31 Mike Kestner <mkestner@novell.com>
20221 * CheckedListBox.cs : off by one error in returned index from
20222 ObjectCollection.Add. Fixes #79758.
20224 2006-10-31 Chris Toshok <toshok@ximian.com>
20226 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
20227 calls for the textbox/spinner, to keep from recursing to the point
20228 where we crash. Fixes #79760.
20230 2006-10-31 Chris Toshok <toshok@ximian.com>
20232 * ListControl.cs (set_SelectedValue): don't throw exceptions on
20233 null/"" value, just return. matches ms's behavior and fixes some
20236 2006-10-31 Chris Toshok <toshok@ximian.com>
20238 * Control.cs (set_Capture): make a logic a little easier to
20241 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
20242 if it's being destroyed. A necessary fix surely, but a bandaid
20243 also, to fix the stuck capture problem in bug #78413.
20245 2006-10-31 Chris Toshok <toshok@ximian.com>
20247 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
20248 convention of clearing hwnd.ClientRect when we set the
20249 width/height (so it'll be recalculated by Hwnd).
20251 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20253 * ContainerControl.cs: reversed Contains check from
20254 ActiveControl due to hanging problems. This fix
20255 partly regresses #79667 (button does not have
20256 initial focus), so this might be a symptom for
20257 a larger parenting problem (set_ActiveControl
20258 is being called but the child control does
20259 not have the parent set yet?)
20261 2006-10-31 Mike Kestner <mkestner@novell.com>
20263 * MenuAPI.cs : fix keynav when menu is click activated.
20265 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
20267 * ToolStrip*: Version 0.2.
20269 * MenuStrip.cs: Version 0.1.
20271 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
20273 2006-10-30 Chris Toshok <toshok@ximian.com>
20275 [ fixes the oversized notify icon issue in bug #79745 ]
20277 * NotifyIcon.cs: scale the icon down to the size we're given by
20278 the XplatUI layer (this would be faster if we did it once instead
20279 of whenever we paint..) Also, remove the WM_NCPAINT handling,
20280 since it's never invoked.
20282 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
20283 pixels high by default, so let's hardcode our systray icon to that
20284 size. The SYSTEM_TRAY protocol should really have a way for
20285 client apps to query for the correct icon size.. but oh well. A
20286 couple of patches to deal with the screwy client_window ==
20287 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
20288 instance, and also make sure we don't XSelectInput twice).
20290 2006-10-30 Chris Toshok <toshok@ximian.com>
20292 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
20293 recreating forms. Control recreation is the bane of my existence.
20294 Fix it in a way that keeps everyone happy.
20296 2006-10-30 Chris Toshok <toshok@ximian.com>
20298 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
20299 just non-CHILD ones. otherwise sometimes scrollbars end up with
20300 client_windows not being resized to the proper size (ReportBuilder
20301 shows this extremely well).
20303 2006-10-30 Chris Toshok <toshok@ximian.com>
20305 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
20306 for non-WS_EX_APPWINDOW windows. This is what keeps them from
20307 showing up in the gnome taskbar. Fixes bug #79790.
20309 2006-10-30 Chris Toshok <toshok@ximian.com>
20311 * ApplicationContext.cs: guard against a NRE.
20313 * Application.cs: null out the old MainForm for the context, so we
20314 don't try to use it again once it's disposed. Fixes bug #79783.
20316 2006-10-30 Chris Toshok <toshok@ximian.com>
20318 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
20319 BindingContext, set the data source directly, otherwise do the
20320 lazy approach - the actual ListManager will be created when we get
20321 a BindingContext. Fixes bug #79700.
20323 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20325 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20326 XplatUIX11.cs: Remove old 2 parameter SetVisible.
20328 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
20330 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20332 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
20333 of SetVisible that allows a window to be shown, but not activated.
20334 This is needed on Windows for MenuStrip, and can probably be used
20335 with MainMenu and ComboBox to fix the focus stealing issues on
20338 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
20340 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
20342 * PictureBox.cs: Fix the output of the ToString method.
20344 2006-10-29 Chris Toshok <toshok@ximian.com>
20346 * Control.cs (get_TopLevelControl): fix bug #79781.
20348 2006-10-29 Chris Toshok <toshok@ximian.com>
20350 * ListControl.cs (set_DataSource): throw Exception here, not
20351 ArgumentException, to match MS behavior.
20353 2006-10-29 Chris Toshok <toshok@ximian.com>
20355 * Form.cs: remove the try-catch's around calls to GetWindowState.
20356 We can just check the return value.
20358 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
20361 * XplatUI.cs: Add note about additional return value for
20364 2006-10-29 Chris Toshok <toshok@ximian.com>
20366 * Control.cs (CreateHandle): when we create our handle, we also
20367 create the handles of our child controls. Fixes one of the
20368 Control unit tests (CH11).
20370 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20372 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
20374 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20376 * ThemeClearlooks.cs: A little speedup.
20378 2006-10-27 Chris Toshok <toshok@ximian.com>
20380 * Control.cs: implement Control.FromChildHandle in a way that
20381 matches the docs (and fixes the failed test.)
20383 2006-10-27 Chris Toshok <toshok@ximian.com>
20385 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
20388 * DataGrid.cs: implement ResetForeColor such that the tests
20391 2006-10-27 Chris Toshok <toshok@ximian.com>
20393 * ToolBarButton.cs: setting text/tooltiptext to null results in it
20394 being set to "". Fixes bug #79759.
20396 2006-10-27 Jackson Harper <jackson@ximian.com>
20398 * TextControl.cs: We need to clear the entire selection area when
20399 setting the start, otherwise multiline selections are still
20402 2006-10-26 Chris Toshok <toshok@ximian.com>
20404 * PropertyGridView.cs:
20406 - ifdef all the code specific to the double
20407 buffer case, and provide some alternatives in the non-doublebuffer
20408 code, which makes heavy use of XplatUI.ScrollWindow to move things
20409 around without having to invalidate (and cause flicker). There
20410 are still some drawing problems in the non-doublebuffered case, so
20411 DOUBLEBUFFER is defined by default.
20413 - Fix the way dropdowns are handled. now we explicitly watch for
20414 the events which might cause the dropdown to close, and break out
20415 of the nested event loop there. This gets rid of all Capture
20416 code, at the expense of the Msg special casing. Seems to work,
20417 though, and fixes bug #79743.
20419 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
20420 * Control.cs: SetIsRecreating now recreates implicitly added
20421 child controls as well. Finally fixes #79629. The flag passed to
20422 SetIsRecreating has also been removed since it wasn't used.
20424 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20426 * PageSetupDialog.cs: Clean some code, fix some bits,
20427 add some checks, and add a printer sub-dialog.
20429 2006-10-26 Chris Toshok <toshok@ximian.com>
20431 * PropertyGrid.cs: make set_SelectedObject call
20432 set_SelectedObjects, and move the duplicate logic to the
20433 SelectedObjects setter. Also, raise SelectedObjectsChanged.
20435 * PropertyGridView.cs: hide the textbox when we get a
20436 SelectedObjectsChanged event.
20440 2006-10-26 Chris Toshok <toshok@ximian.com>
20442 * PropertyGridView.cs: deal with the type converter not supporting
20443 GetStandardValues() or GetStandardValues() returning null, which
20444 is does in the default case. Fixes #79742.
20446 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20448 * CheckedListBox.cs: nunit no longer crashes when selecting
20449 Project/Edit menu option
20451 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20453 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
20454 is no menu selected. fixes #79739
20456 2006-10-25 Chris Toshok <toshok@ximian.com>
20458 * PropertyGridView.cs: factor out the splitter invalidation code
20459 into the SplitterPercent setter, and for kicks implement the
20460 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
20461 amount in either direction.
20463 2006-10-25 Chris Toshok <toshok@ximian.com>
20465 * PropertyGridView.cs: do some cleanup of the brush used to draw
20466 text - read only fields should be grayed out. not sure how to do
20467 this with the textbox, though. but the textbox's should also be
20468 readonly now at least. Also, hide/show the textbox when resizing
20471 * CursorConverter.cs: use System.Reflection when getting the
20472 properties of Cursors, as TypeDescriptor.GetProperties isn't
20473 returning static properties.
20475 2006-10-25 Chris Toshok <toshok@ximian.com>
20477 * PropertyGridView.cs: factor out the up/down handling, and reuse
20478 it for page up/down. also add End/Home support.
20480 2006-10-25 Chris Toshok <toshok@ximian.com>
20482 * PropertyGridView.cs:
20484 - ensure the selected grid item is visible in the scrolled area,
20487 - fix Keys.Down handling when you're on the last item in the
20490 2006-10-25 Mike Kestner <mkestner@novell.com>
20492 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
20493 clicks too. Fixes #79725.
20495 2006-10-24 Chris Toshok <toshok@ximian.com>
20497 * PropertyGrid.cs: use property.Converter instead of
20498 TypeDescriptor.GetConverter(property.PropertyType), so we catch
20499 TypeConverters declared on the property as well as on the
20500 PropertyType. Fixes bug #79678.
20502 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
20504 * MimeIcon.cs, Mime.cs:
20505 Fallback to the default platform handler if no shared mime info
20506 stuff exists (fixes #79693).
20508 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20509 * ContainerControl.cs: Incorrect contains check in ActiveControl
20510 from previous fix (duh).
20512 2006-10-20 Chris Toshok <toshok@ximian.com>
20514 * PropertyGridView.cs: the dropdown should be MIN(number of items
20515 in list, 15). Fixes #79551.
20517 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20518 Fixes #79384, #79394, #79652, #79667
20521 - Modal windows are now destroyed in the proper order for windows
20523 * ContainerControl.cs:
20525 - ActiveControl setter has more conditions on when to return:
20526 - if we're reselecting the active control, but it actually
20527 didn't have focus (window hidden or some such), it runs
20528 - if the active control being selected doesn't actually
20529 exist in the container, it returns
20533 - The ShowDialog now gets the current form as the owner when
20534 invoking without parameters, and correctly activates the owner
20539 - MessageBox now catches the Escape key to exit
20541 2006-10-20 Chris Toshok <toshok@ximian.com>
20543 * PropertyGridView.cs: fix a number of issues (bug #78565, and
20544 most of bug #79676):
20546 - you can navigate around the property grid with the arrow keys.
20548 - the dropdown is sized properly when the pg has a vertical
20551 - fix the indentation for subentries, and properly select the
20554 - fix the gray bar's drawing (only draw it to the last element,
20555 not for the height of the control. Also make sure we draw that
20556 last horizontal grid line.
20558 - use the same mechanism the datagrid uses wrt the editing textbox
20559 when scrolling/resizing/etc. Namely, we hide it first, do the
20560 operation, then show it again (if it's still visible).
20562 - aggressively remove a lot of unnecessary refreshes (and also
20563 calls to Invalidate(). call more limited variants, and only redraw
20568 - when we're populating the merged collection, fill in the UI
20569 parent with either the passed in item, or the category item we
20572 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
20574 * GridItem.cs: drop some fully qualified names.
20576 * GridEntry.cs: add a "UIParent", which is basically the parent
20579 * GridItemCollection.cs: add an IndexOf method.
20581 2006-10-20 Mike Kestner <mkestner@novell.com>
20583 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
20584 a working win32 NC invalidation mechanism, we can't invalidate
20585 menus. [Fixes #79705]
20587 2006-10-20 Mike Kestner <mkestner@novell.com>
20589 * ListBox.cs : don't update the VScrollbar if the list is empty,
20590 just hide it. [Fixes #79692]
20592 2006-10-20 Jackson Harper <jackson@ximian.com>
20594 * RichTextBox.cs: Handle some special chars better, and don't skip
20595 the entire group when we encounter a special char that we don't
20598 2006-10-18 Chris Toshok <toshok@ximian.com>
20600 * PropertyGridView.cs: address a number of issues from bug #79676,
20601 mostly of the cosmetic variety.
20603 - The highlight rectangle for indented items not extends all the
20606 - Indented items aren't indented so much.
20608 - the dropdown is properly sized width-wise if the pg has a
20609 vertical scrollbar.
20611 2006-10-18 Chris Toshok <toshok@ximian.com>
20613 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
20614 systray stuff is rather convoluted to begin with.
20616 systray icons are a single window for some reason (that I haven't
20617 figured out yet), and for them, client_window == whole_window.
20618 Given the way the tests are structured elsewhere to determine
20619 which paints are pending (client vs. nc), that situation will
20620 always yield PAINT, not NCPAINT. So, if we have a pending
20621 nc_expose and no pending expose, remove the hwnd from the paint
20622 queue, and also set nc_expose_pending to false, to keep us from
20623 blocking further expose's adding the hwnd to the paint queue.
20625 phew. like i said, a rather convoluted change. Fixes the
20626 notifyicon repaint issues in bug #79645.
20628 2006-10-18 Chris Toshok <toshok@ximian.com>
20630 * Form.cs: when getting the backcolor of the form, don't get
20631 base.BackColor, as this allows parents to influence the background
20632 color. This breaks mdi forms. Instead, if the background_color
20633 is empty, return the default.
20635 2006-10-18 Chris Toshok <toshok@ximian.com>
20637 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
20638 to being private instead of internal static.
20640 * Control.cs: remove all the stupid ParentWaitingOnRecreation
20641 crap, it wasn't working for more deeply nested controls anyway,
20642 and we already have the is_recreating flag - use that instead.
20643 Before calling DestroyHandle in RecreateHandle, recurse through
20644 the control tree setting it to true. this returns the recreate
20645 code to much of its original simplicity, while now guaranteeing we
20646 actually recreate everything we're supposed to. This change gets
20647 fyireporting actually showing mdi children.
20649 2006-10-17 Chris Toshok <toshok@ximian.com>
20651 * Form.cs: remove some debug spew, and collapse some duplicate
20652 code at the end of SetClientSizeCore.
20655 - add some more debug spew here too wrt Destroy handling.
20656 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
20657 in Control's handling of WM_DESTROY.
20658 - Remove the handling of zombie window DestroyNotifies from the
20659 event loop - we don't need it. Now the only DestroyNotifies we
20660 actually handle are ones generated by X.
20661 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
20662 match gtk's (functioning) handling of this. This keep metacity
20663 from leaving droppings in the form of wm borders with no window
20664 contents all over the place.
20667 - add a bunch of debug spew wrt control recreation.
20668 - fix a bug where we weren't tracking Visible properly on
20670 - fixed the WM_PAINT double buffer handling to support re-entrant
20671 calls (yes, i know it's gross, but it's happening to us).
20673 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20674 * ThemeWin32Classic.cs: changed drawing of selected days
20675 to make them look better.
20677 2006-10-16 Chris Toshok <toshok@ximian.com>
20679 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
20680 drawing_stack. Nuke the ClientDC/NonClientDC properties.
20682 * XplatUIX11.cs: move away from using hwnd.client_dc and
20683 hwnd.non_client_dc and on to a stack of dc's (and in window's
20684 case, PAINTSTRUCT's), so we can deal with nested Paint calls
20685 without puking or not disposing of Graphics objects.
20687 * XplatUIOSX.cs: same.
20689 * XplatUIWin32.cs: same.
20691 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
20693 * FileDialog.cs: Don't call on_directory_changed inside
20694 OnSelectedIndexChanged (it changes the SelectedIndex too).
20695 Instead move it to OnSelectionChangeCommitted.
20697 2006-10-13 Chris Toshok <toshok@ximian.com>
20699 * XplatUIX11.cs: more Destroy work. the current code does the
20700 following things, in order:
20702 1. Enumerates all handles of all controls at or below the one
20703 being destroyed, in pre-order. As it is doing this, it marks the
20704 handles as zombie and clears all references to them.
20706 2. calls XDestroyWindow on the window passed in.
20708 3. SendMessage's WM_DESTROY to all he handles in the accumulated
20711 2006-10-13 Chris Toshok <toshok@ximian.com>
20713 * XplatUIX11.cs: set hwnd.zombie to true before calling
20714 SendMessage (WM_DESTROY). this keeps us from marking the new
20715 window a zombie, and also keeps us from calling sendmessage at
20718 2006-10-13 Jackson Harper <jackson@ximian.com>
20720 * TextControl.cs: Do not show the caret and selection at the same
20721 time. Reduces ugliness by 35%.
20723 2006-10-13 Chris Toshok <toshok@ximian.com>
20725 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
20726 zombie after we do the recursive call, so we actually do call
20727 SendMessage on the children controls.
20728 (GetMessage): if we find a pending paint event for a zombie hwnd,
20729 remove the hwnd from the paint queue, or else it will always be
20730 there (and we'll effectively loop infinitely)
20732 2006-10-13 Mike Kestner <mkestner@novell.com>
20734 * MenuItem.cs : add Selected format under keynav too.
20737 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
20739 * PropertyGrid.cs: Fixed some NRE's and small difference between our
20740 implementation and that of MS.
20742 2006-10-13 Chris Toshok <toshok@ximian.com>
20744 * Control.cs (OnInvalidated) only futz with the invalid_region if
20745 the control is double buffered. this fixes the apparent hang in
20746 the ListView unit tests. Someone needs to make the
20747 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
20749 2006-10-13 Chris Toshok <toshok@ximian.com>
20751 * PropertyGridView.cs:
20753 - do a little refactoring so that only one place calls
20754 dropdown_form.Hide, and that is CloseDropDown. make everywhere
20755 else call that. Also make it Refresh, since there are redraw bugs
20756 otherwise (we should take a look at that...)
20758 - do a little more refactoring work to share the body of code
20759 involved with the drop down. it was duplicated in the code
20760 dealing with the listbox handling and in the code dealing with the
20763 - add a Capture to the dropdown form's control once it's
20764 displayed, and add a MouseDown handler that checks to make sure
20765 the position is inside the control. If it's not, close the
20766 dropdown. This fixes #78190.
20768 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
20769 if the value is different than the initial value.
20771 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
20773 * Control.cs: see #78650
20774 - Fixed GetNextControl for several cases:
20775 - Changed FindFlatForward to return
20776 correct sibling control when more than one
20777 control has same TabIndex as the currently
20779 - Changed FindFlatBackward to loop children
20780 from last to first and apply same logic as in
20782 - Changed FindControlForward to search for
20783 children when control is not a container
20784 but has children, or search for siblings if
20785 control is a container...
20786 - Changed FindControlBackward to continue
20787 searching for child controls when hitting
20790 - Fixed Focus method to update ActiveControl
20791 (FocusTest.FocusSetsActive failure)
20794 - Focus rectangle now refreshes when gaining
20796 - Removed grab for Tab key on IsInputKey that
20797 was keeping tab navigation from working (#78650)
20799 2006-10-13 Chris Toshok <toshok@ximian.com>
20801 * PropertyGridView.cs:
20802 - Rewrite SetPropertyValue to loop over SelectedGridItem's
20805 - Deal with GridItem.Value == null a few places.
20808 - replace the PopulateGridItemCollection with a pair of methods
20809 which compute the intersection of all the properties in the
20810 SelectedObjects array. Fixes #79615.
20812 - Throw ArgumentException from set_SelectedObjects if there's a
20815 - Add GetTarget method which can be used to traverse up the
20816 GridItem.Parent chain. It depends on the assumption that
20817 selected_objects for different GridEntries are always in the same
20818 order (a safe assumption). Use this method and loop over all the
20819 selected objects in the entry when calling RemoveValueChanged and
20822 * GridEntry.cs: Make this handle multiple selected objects.
20823 .Value returns null if not all the selected objects share the same
20826 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
20827 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
20828 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
20829 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
20830 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
20831 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
20832 add additional functionality.
20834 2006-10-12 Mike Kestner <mkestner@novell.com>
20836 * ErrorProvider.cs : new ToolTipWindow ctor sig.
20837 * HelpProvider.cs : new ToolTipWindow ctor sig.
20838 * ToolTip.cs : remove ToolTip param from Window sig since it is
20840 * ToolBar.cs : add tooltip support. Fixes #79565.
20842 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20844 * ComboBox.cs: move the events in set_SelectedIndex to
20845 after the call to HighlightIndex in order to avoid
20846 possible recursion and subsequent problems with the call
20847 to HighlightIndex and include a range check in
20848 set_HighlightIndex. Fixes #79588
20850 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20852 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
20853 to ui thread's settings instead of sunday.
20854 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
20856 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20858 * DateTimePicker.cs
20860 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
20861 and implement missing functionality (selecting different parts
20862 of the date and edit them individually with the keyboard).
20864 2006-10-11 Chris Toshok <toshok@ximian.com>
20866 * Control.cs (OnInvalidated): fix NRE relating to last change.
20868 2006-10-11 Chris Toshok <toshok@ximian.com>
20870 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
20871 atoms in _NET_WM_STATE here if the window is maximized. We need
20872 to do this because we're *replacing* the existing _NET_WM_STATE
20873 property, so those atoms will be lost otherwise, and any further
20874 call to GetWindowState will return Normal for a window which is
20875 actually maximized. Fixes #79338.
20877 2006-10-11 Jackson Harper <jackson@ximian.com>
20879 * TextControl.cs: Special case for setting selection end to
20880 selection start, we basically kill the anchor.
20881 - some todo comments.
20883 2006-10-11 Chris Toshok <toshok@ximian.com>
20885 * Control.cs: switch to using an "invalid_region" to track which
20886 parts of the image buffer need updating. This is more code than
20887 the simple fix from r66532. That version just attempted to always
20888 fill the entire buffer on redraw, which turns out to be
20889 inefficient when invalidating small rectangles. This version
20890 simply adds the invalid rectangle to the invalid region. When we
20891 get any WM_PAINT message we see if it can be filled using the
20892 image buffer, and if it can't (if the paint event's clip rectangle
20893 is visible in the invalid region) we first fill the image buffer.
20894 So, the image buffer is still a cache, we just fill it lazily.
20896 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
20897 need it any longer.
20899 2006-10-11 Chris Toshok <toshok@ximian.com>
20901 * XplatUIX11.cs (SetWindowPos): we need to update both position as
20902 well as size after calling XMoveResizeWindow. This keeps us from
20903 ignoring future SetWindowPos calls. Fixes the disappearing
20904 DateTimePicker in the ToolBarDockExample from bug #72499.
20906 2006-10-11 Chris Toshok <toshok@ximian.com>
20908 * TextBoxBase.cs: reorder things a bit when it comes to
20909 resizing-causing-recalculation. we were recalculating the
20910 document when our position was changed, which shouldn't happen.
20911 We only care about size changes. Clear up some more redundant
20912 recalculation calls while I'm at it. This makes the toolbar dock
20913 example snappy when you're just dragging toolbars around (since it
20914 causes a relayout whenever you move one.)
20916 2006-10-11 Chris Toshok <toshok@ximian.com>
20918 * ToolBarButton.cs (get_Rectangle): this only returns
20919 Rectangle.Empty if Visible == false, or Parent == null.
20920 Parent.Visible doesn't matter.
20922 2006-10-10 Chris Toshok <toshok@ximian.com>
20924 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
20925 by .net 1.1, so switch to an internal method instead.
20927 2006-10-10 Chris Toshok <toshok@ximian.com>
20929 * Control.cs (WM_PAINT): when a control is double buffered we draw
20930 initially to the ImageBuffer and then copy from there. But when a
20931 parent control which has child controls is double buffered, the
20932 initial drawing doesn't encompass the entire ClientRectangle of
20933 the parent control, so we end up with uninitialized bits (this is
20934 easily seen by dragging the top toolbar in
20935 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
20936 manually set the ClipRectangle of the paint_event (only the one we
20937 use to populate the ImageBuffer) to ClientRectangle. Fixes more
20938 of the nastiness in bug #72499.
20940 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
20941 which we use in Control.cs's WM_PAINT handling.
20943 2006-10-10 Jackson Harper <jackson@ximian.com>
20945 * TextBoxBase.cs: Finish off the autoscrolling stuff.
20947 2006-10-10 Chris Toshok <toshok@ximian.com>
20949 * Cursor.cs: Apply a slightly different patch to the one suggested
20952 2006-10-10 Jackson Harper <jackson@ximian.com>
20954 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
20955 not the parent form.
20956 * TextControl.cs: use difference in old line count vs new count to
20957 calculate how many lines were added, this takes into account soft
20958 line breaks properly.
20960 2006-10-10 Chris Toshok <toshok@ximian.com>
20962 * LinkLabel.cs: don't call MeasureCharacterRanges against a
20963 rectangle located at 0,0 and the size of the text. Use
20964 ClientRectangle instead. This fixes rendering of non-left aligned
20967 2006-10-10 Jackson Harper <jackson@ximian.com>
20969 * TextBoxBase.cs: When we set the selection start position the
20971 * TextControl.cs: Need to update the caret when we decrement it to
20973 - Make sure that the selection_visible flag gets reset to false if
20974 the selection isn't visible. Before this you could get it set to
20975 visible by changing the selection start, then changing the end to
20978 2006-10-09 Jackson Harper <jackson@ximian.com>
20980 * TreeView.cs: Don't update scrollbars when we aren't visible.
20981 * TreeNodeCollection.cs: Only need to update scrollbars if being
20982 added to an expanded visible node or the root node.
20984 2006-10-09 Chris Toshok <toshok@ximian.com>
20986 * XplatUIX11.cs (SendMessage): fix NRE.
20988 2006-10-09 Jackson Harper <jackson@ximian.com>
20990 * TextBoxBase.cs: Implement horizontal autoscrolling.
20991 * TextControl.cs: Add a movement types that allows moving forward
20992 and backwards without wrapping.
20994 2006-10-09 Mike Kestner <mkestner@novell.com>
20996 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
20997 with focus "expansion" of labels. Fixes #79532 and then some.
20998 * ThemeWin32Classic.cs : add LineLimit to ListView label format
21001 2006-10-09 Jackson Harper <jackson@ximian.com>
21003 * TextBoxBase.cs: Set the default max values to MaxValue since
21004 we use the scrollbar for autoscrolling and the default value is
21005 100. If we don't do this the caret won't keep up with typing
21006 after about 18 characters.
21007 * TextControl.cs: Make sure the selection is offset by the
21008 viewport x. This fixes selection when using auto scrolling.
21010 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
21012 * Form.cs: The active control should be selected after the
21013 OnLoad so that any child control initialization that affects
21014 the selection is done. Fixes #79406
21016 2006-10-06 Chris Toshok <toshok@ximian.com>
21018 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
21019 to have no evil effects.
21021 - Stop selecting StructureNotifyMask on non-toplevel windows.
21023 The only way children should be resized is by using the SWF api,
21024 and we already send WM_WINDOWPOSCHANGED messages in those cases.
21025 Toplevel windows can be interacted with via the window manager,
21026 and so we keep the input mask there.
21028 The other event StructureNotifyMask gives us (that we care
21029 about) is DestroyNotify. The code is already structured such
21030 that it assumes we won't be getting a DestroyNotify event for
21031 the window we pass to XDestroyWindow (which is what
21032 StructureNotifyMask is supposed to guarantee.) So, that code
21033 shouldn't be affected by this either.
21035 - Stop selecting VisibilityChangeMask altogether.
21037 We weren't doing anything with the resulting events anyway.
21039 This vastly reduces the number of X requests and events we see
21040 when resizing/laying out a large ui.
21042 2006-10-06 Chris Toshok <toshok@ximian.com>
21044 * ScrollableControl.cs (DisplayRectangle): we need to take into
21045 account the DockPadding regardless of whether or not auto_scroll
21046 == true. rework this slightly to this effect, and fix bug #79606,
21047 and part of #72499 (you can now see the drag handles and drag
21050 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
21052 * ListViewItem.cs: Collections of selected and checked items are now
21053 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
21054 we mark the collection "dirty".
21055 * ListView.cs: Marked collections readonly. Modified UpdateSelection
21056 to only clear SelectedItems when a new item is selected and MultiSelect
21057 is enabled. CheckedItems and SelectedItems now subscribe to Changed
21058 event of ListViewItemCollection, and mark its list dirty whenever
21059 that event is fire. This allows us to return selected/checked items
21060 in the same order as they are in the Items collection. This matches
21063 2006-10-06 Chris Toshok <toshok@ximian.com>
21065 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
21066 right mouse clicks. Fixes bug #79593.
21068 2006-10-06 Chris Toshok <toshok@ximian.com>
21070 * Splitter.cs: doh, fix splitters that don't want to cancel the
21071 movement when you drag them. Also, impose the limits on the
21072 values we send to the SplitterMovingEvent. Fixes #79598.
21074 2006-10-06 Jackson Harper <jackson@ximian.com>
21076 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
21077 since we use this for auto scrolling also.
21079 2006-10-05 Chris Toshok <toshok@ximian.com>
21081 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
21082 beginning to think that most datagrid column types don't need this
21083 method. Fixes bug #79392.
21085 2006-10-05 Chris Toshok <toshok@ximian.com>
21087 * DataGrid.cs: move back to a more lazy scheme for creating the
21088 CurrencyManager, so we aren't updating it every time you set
21089 either DataSource or DataMember. Also, don't call
21090 RecreateDataGridRows if the currency manager hasn't changed.
21092 2006-10-05 Chris Toshok <toshok@ximian.com>
21094 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
21095 emitted, SelectedIndex should already be updated. Fixes bug
21098 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
21100 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
21101 ToolStripTextBox.cs: Initial commit.
21102 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
21104 2006-10-05 Jackson Harper <jackson@ximian.com>
21106 * TabControl.cs: We need to invalidate the tab control area when
21107 new ones are added (duh).
21109 2006-10-03 Chris Toshok <toshok@ximian.com>
21111 * Form.cs (ProcessDialogKey): if the focused control is in this
21112 form and is a button, call its PerformClick method here. Fixes
21115 2006-10-04 Jackson Harper <jackson@ximian.com>
21117 * TabPage.cs: Ignore setting of Visible, and add an internal
21118 method for setting the controls visibility. TabPage's Visible
21119 property is a little strange on MS, this seems to make us
21120 compatible, and fixes cases where people set all the tab pages to
21122 * TabControl.cs: Use the new internal setting on tab pages
21125 2006-10-03 Mike Kestner <mkestner@novell.com>
21127 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
21129 2006-10-03 Mike Kestner <mkestner@novell.com>
21131 * ListView.cs : use is_visible instead of Visible to check if
21132 scrollbars should be placed/sized. Also some max_wrap_width
21133 love for LargeIcon view. [Fixes #79533]
21135 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
21138 Make set_TextAlign() do actually update the align. Fixed #78403.
21140 2006-10-03 Chris Toshok <toshok@ximian.com>
21142 * DataGrid.cs: fix a crash when switching datasources if the
21143 vertical scrollbar is at someplace other than Value = 0. Also,
21144 reduce the number of recalculation passes we do in SetDataSource
21147 2006-10-03 Jackson Harper <jackson@ximian.com>
21149 * TextBoxBase.cs: Move the if value the same bail check up, we
21150 don't want to empty the document if it is already empty, this
21151 seems to severly mess up the caret. TODO: I should probably fix
21152 the empty statement to update teh caret somehow.
21154 2006-10-03 Chris Toshok <toshok@ximian.com>
21156 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
21157 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
21158 reflection, an internal row type, properties on said type, etc.)
21159 will work with our datagrid. Fixes #79531.
21161 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
21163 * FileDialog.cs: Don't crash if a path is not accessible
21164 (System.UnauthorizedAccessException). Fixes #79569.
21165 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21166 a ':' too. Return unknown icon for those paths/files.
21168 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
21170 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
21171 GetContainerControl returns null.
21173 2006-10-02 Chris Toshok <toshok@ximian.com>
21175 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21176 call to XGetWindowAttributes instead of "handle". fixes an X
21177 error using notifyicon after the NotifyIconWindow to Form base
21180 2006-10-02 Chris Toshok <toshok@ximian.com>
21182 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21183 server grab and looping we need to do to get down to the most
21184 deeply nested child window.
21185 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21186 QueryPointer again after the WarpPointer so we can generate a
21187 proper (fake) MotionNotify event to be enqueued in the destination
21189 (GetCursorPos): call QueryPointer.
21193 2006-10-02 Jackson Harper <jackson@ximian.com>
21195 * NotifyIcon.cs: Derive the notify icon from a form, so things
21196 like FindForm work on it.
21197 - Swallow the WM_CONTEXTMENU message, since that is generated on
21198 mouse down, and context menu is a mouse up kinda guy. I believe
21199 the correct fix here is probably to make the notify icon entirely
21200 NC area, but this seems to work fine for anyone not manipulating
21203 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
21205 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
21206 ToolStripItemCollection.cs, ToolStripLabel.cs,
21207 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
21208 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
21209 Initial implementation.
21210 * TextRenderer.cs: Provide padding to MeasureText.
21212 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
21214 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
21215 of ButtonBaseAccessibleObject. Fix bug #79552.
21217 2006-10-02 Jackson Harper <jackson@ximian.com>
21219 * MdiWindowManager.cs: When maximizing use the containers client
21220 rect, not it's bounds, so nc area is accounted correctly.
21221 - Use the parent form's size for the menu position, since the
21222 client isn't always the full form size.
21224 2006-10-01 Chris Toshok <toshok@ximian.com>
21226 * ScrollableControl.cs: make sure neither right_edge or
21227 bottom_edge are < 0, since they're used as LargeChange for the
21228 horiz/vert scrollbars respectively. Fixes #79539.
21230 2006-10-01 Chris Toshok <toshok@ximian.com>
21232 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
21233 the xplatuix11 code can cause us to destroy/recreate our handle.
21237 - this code can be invoked many times for the same Hwnd. Make
21238 sure we only destroy the client window once (the first time this
21239 method is called). This fixes bug #79544.
21240 - Remove the call to the improperly bound XSync. why we had two
21241 bindings to this, I will never know, but this call resulted in
21242 events being discarded from the queue(!).
21243 - correct a misunderstanding of _XEMBED_INFO - the second atom is
21244 not our current state but the state we wish to be in. So, 0 if
21245 we don't want to be mapped. Change it to 1.
21246 (SystrayRemove): The XEMBED spec makes mention of the fact that
21247 gtk doesn't support the reparent of client windows away from the
21248 embedder. Looking at gtksocket-x11.c seems to agree with this.
21249 The only avenue we have for removing systray icons is to destroy
21250 them. We don't want the handle to go away for good, though, so
21251 call InternalRecreateHandle on the NotifyIconWindow. Fixes
21254 2006-10-01 Chris Toshok <toshok@ximian.com>
21256 * Form.cs (WndProc): inline the native_enabled variable usage into
21257 the cases in which it's used. Fixes #79536.
21259 2006-09-29 Mike Kestner <mkestner@novell.com>
21261 * ListView.cs : toggle the selection state for ctrl clicks in
21262 multiselect mode. [Fixes #79417]
21264 2006-09-29 Mike Kestner <mkestner@novell.com>
21266 * ListView.cs : kill CanMultiSelect and refactor the selection
21267 code to support multiselection in the absence of mod keys. Steal
21268 arrow/home/end keys by overriding InternalPreProcessMessage to
21269 restore regressed keynav behavior.
21272 2006-09-29 Jackson Harper <jackson@ximian.com>
21274 * MdiClient.cs: Repaint the titlebars when the active window is
21277 2006-09-29 Chris Toshok <toshok@ximian.com>
21279 * Application.cs: when entering a runloop with a modal, make sure
21280 the hwnd is enabled. Fixes #79480.
21282 2006-09-29 Chris Toshok <toshok@ximian.com>
21284 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
21285 when ListManager.CanAddRows == false, bump us back one.
21287 * DataGridColumnStyle.cs (ParentReadOnly): remove the
21288 listmanager.CanAddRows check. This makes ArrayLists uneditable
21289 using a datagrid, which is not right.
21290 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
21291 is an IEditable, but call property_descriptor.SetValue regardless.
21294 2006-09-29 Chris Toshok <toshok@ximian.com>
21296 * DataGridBoolColumn.cs: we need to test equality in the face of
21297 possible null values (as is the case with the default NullValue).
21298 This patch keeps us from crashing in that case.
21300 2006-09-29 Jackson Harper <jackson@ximian.com>
21302 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
21303 here, since it will get called for every node collection in the
21304 tree. This is now done in the treeview once the sorting is
21306 * TreeView.cs: Recalculate the visible order, and update the
21307 scrollbars after sorting, set the top nope to the root so that the
21308 recalc actually works.
21310 2006-09-29 Chris Toshok <toshok@ximian.com>
21312 * LinkLabel.cs: more handling of the default link collection in
21313 the face of LinkArea manipulation. The default link collection
21314 contains 1 element (start=0,length=-1). If the user sets LinkArea
21315 to anything and the links collection is the default, clear it.
21316 Then only add the link if its nonempty. Fixes #79518.
21318 2006-09-29 Chris Toshok <toshok@ximian.com>
21320 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
21321 piece correctly when we hit a '\n'. Fixes #79517.
21323 2006-09-29 Chris Toshok <toshok@ximian.com>
21325 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
21326 change the binding of gdk_init_check to take two IntPtr's, and
21327 pass IntPtr.Zero for both of them. Fixes #79520.
21329 2006-09-29 Mike Kestner <mkestner@novell.com>
21331 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
21334 2006-09-28 Jackson Harper <jackson@ximian.com>
21336 * XplatUIX11.cs: When translating NC messages make sure we go from
21337 whole window to screen, not client window to screen.
21338 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
21339 method doesn't exist
21340 - Skip over controls that aren't forms when arranging.
21342 2006-09-28 Jackson Harper <jackson@ximian.com>
21344 * XplatUIWin32.cs: Clip the rect to the parent window.
21345 * XplatUIStructs.cs: Add clipping modes struct.
21346 * InternalWindowManager.cs: New private method that factors title
21347 bar heights in when calculating the pos of an NC mouse message.
21348 - Use SendMessage to force a paint when the form's size is changed
21349 instead of painting the decorations immediately.
21350 - Don't let the NC button click messages get to DefWndProc,
21351 because they will attempt to handle windowing themself, and this
21352 messes up z-order (it will put them in front of the scrollbars).
21353 * XplatUIX11.cs: Make sure that we don't reset window managers if
21354 we already have one (ie the window is an MDI window).
21356 2006-09-28 Chris Toshok <toshok@ximian.com>
21358 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
21359 menu code really needs going over.
21361 2006-09-27 Chris Toshok <toshok@ximian.com>
21363 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
21364 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
21365 window is maximizable. So, we need to make sure that even if we
21366 clear the border/wm frame of those functions, they're still
21367 available (basically, we remove the decoration without removing
21368 the function). Half the fix for #79338.
21370 2006-09-27 Chris Toshok <toshok@ximian.com>
21372 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
21375 2006-09-27 Chris Toshok <toshok@ximian.com>
21377 * Splitter.cs: reorder things a bit so that we don't actually
21378 draw/move the splitter until after calling OnSplitterMoving. This
21379 lets users cancel/disallow the movement by explicitly setting
21380 event.SplitX/SplitY. Fixes #79372.
21382 2006-09-27 Jackson Harper <jackson@ximian.com>
21384 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
21385 because it is most likely on a window being destroyed, and that
21386 will give us an X11 error.
21388 2006-09-27 Chris Toshok <toshok@ximian.com>
21390 * PropertyGridView.cs: half of the fix for #78190. Clicking on
21391 the dropdown button now toggles between showing and hiding the
21392 dropdown. Also, get rid of dropdown_form_showing and just use
21393 dropdown_form.Visible. We still don't do a grab, but I'll leave
21394 that part to someone who has handled Capture-fu before.
21396 2006-09-27 Chris Toshok <toshok@ximian.com>
21398 * DataGrid.cs: return false if alt isn't pressed when '0' is
21399 pressed. this keeps the '0' key from being swallowed, and fixes
21402 2006-09-27 Chris Toshok <toshok@ximian.com>
21404 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
21405 Calling Refresh (in response to a scrollbar event) screws up the
21406 scrollbar painting. Fixes bug #78923.
21408 2006-09-27 Chris Toshok <toshok@ximian.com>
21410 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
21411 then insert into hashtable" blocks threadsafe.
21413 2006-09-27 Chris Toshok <toshok@ximian.com>
21415 * MessageBox.cs (CreateParams): the styles should be |'ed with our
21416 baseclass's, since otherwise the
21417 ControlBox/MinimizeBox/MaximizeBox assignments above have no
21418 effect. This gets the close button back in messageboxes.
21420 2006-09-27 Chris Toshok <toshok@ximian.com>
21422 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
21423 flag, not just != 0. this makes flags that are actually multiple
21424 bits (like WS_CAPTION) work. fixes bug #79508.
21426 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
21428 * PageSetupDialog.cs: add support for getting and settings the
21429 paper size, source and orientation.
21431 2006-09-26 Chris Toshok <toshok@ximian.com>
21433 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
21434 and caption == "", we need to remove the resize handles as well as
21437 * Control.cs (set_Text): turns out that setting Text on a form
21438 should change the WM styles on the window, since if ControlBox ==
21439 false, the only way to get a window border is to have a non-""
21440 Text property. check winforms/forms/text.cs for an example. so,
21441 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
21442 update both window styles and title. This fixes a lot of dialogs
21443 (including the preferences dialog in MonoCalendar.)
21445 2006-09-26 Chris Toshok <toshok@ximian.com>
21447 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
21448 control isn't a Form), call Win32ShowWindow to hide the window,
21449 but don't update the control Visible property. When we reparent
21450 back to a parent control, call SetVisible in order for the
21451 window's visibility to be reinstated.
21453 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
21456 * Control.cs (ControlCollection.Remove): remove that value.Hide()
21457 call for good, since it breaks MonoCalendar (and other things I'm
21458 sure.) Also, set all_controls to null *after* the owner calls,
21459 which end up regenerating it.
21460 (ChangeParent): allow new_parent to be == null, passing
21461 IntPtr.Zero down to XplatUI.
21463 this fixes #79294 the right way.
21465 2006-09-26 Mike Kestner <mkestner@novell.com>
21467 * GridEntry.cs : internal SetParent method.
21468 * PropertyGrid.cs : attach to property changed on the proper
21469 target if we have a hierarchical grid with subobjects. Setup
21470 GridItem.Parent for hierarchical items.
21471 * PropertyGridView.cs : Set value on the correct target for
21472 hierarchical grids. [Fixes #78903]
21474 2006-09-26 Chris Toshok <toshok@ximian.com>
21476 * Control.cs (ChildNeedsRecreating): this should return true if
21477 either we're being recreated and the child is in our list, or our
21478 parent is waiting for our recreation.
21480 2006-09-26 Chris Toshok <toshok@ximian.com>
21482 * Control.cs (ControlCollection.Remove): reinstate the
21483 value.Hide() call as suggested in bug #79294.
21485 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
21487 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
21488 coordinates (versus a relative move).
21490 2006-09-26 Chris Toshok <toshok@ximian.com>
21492 * Control.cs: rework child recreation a little bit. It turns out
21493 that we race between the DestroyNotify the WM_DESTROY message. If
21494 the parent gets its DestroyNotify before the child gets the
21495 WM_DESTROY message, the child ends up not recreating (since the
21496 parent finishes its recreation on DestroyNotify, and the child
21497 checks ParentIsRecreating.)
21499 So, instead we store off a list of all the child controls which
21500 need to be recreated when the parent control starts to recreate
21501 itself. Then, when child controls get their WM_DESTROY message we
21502 check to see if they're in the parent's pending recreation list,
21503 and if so, we recreate. This removes all dependency on ordering
21504 from the code and fixes the initial MonoCalendar upgrade dialog.
21506 2006-09-26 Jackson Harper <jackson@ximian.com>
21508 * TextControl.cs: Use the Line to get the length of the line,
21509 since soft line breaks can change the end line.
21511 2006-09-26 Chris Toshok <toshok@ximian.com>
21513 * Control.cs (ControlCollection.AddImplicit): don't add the
21514 control again if it's already in one of our lists. This keeps us
21515 from adding controls over and over again for comboboxes when their
21516 handle gets recreated (as the combobox adds implicit controls in
21517 OnHandleCreated). Fixes the X11 errors in bug #79480.
21519 2006-09-26 Jackson Harper <jackson@ximian.com>
21521 * TextControl.cs: When deleting characters make sure that any
21522 orphaned zero lengthed tags get deleted.
21523 - Fix ToString for zero lengthed tags.
21525 2006-09-25 Jackson Harper <jackson@ximian.com>
21527 * TextControl.cs: When getting a tag at the location there can be
21528 multiple tags at the same spot, these are 0-lengthed tags that
21529 appear when extra formatting has been stuck in a location. We
21530 need to pull out the last of these 0 lengthed tags.
21532 2006-09-25 Jackson Harper <jackson@ximian.com>
21534 * TextControl.cs: Fix print out in debug method.
21535 * TextBoxBase.cs: When text is set bail if we are setting to the
21538 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
21540 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
21541 It is now possible to change the selected index in a FontXXXListBox
21542 with the up and down arrow keys from the FontXXXTextBoxes.
21543 Also, send the FontXXXTextBox mouse wheel event to the corresponding
21544 FontXXXListBoxes to match ms.
21546 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
21548 * SystemInformation.cs: Return a clone of the theme's MenuFont because
21549 anyone can dispose it, anytime. All other properties returns enums,
21550 structs or basic types so they don't need such tricks.
21552 2006-09-22 Jackson Harper <jackson@ximian.com>
21559 * XplatUIDriver.cs: Update interface to add a primary selection
21560 flag, so the driver can use the primary selection buffer if
21562 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
21564 * RichTextBox.cs: We need to supply the data object to paste now
21565 (so we can choose to supply CLIPBOARD or PRIMARY).
21566 * TextBoxBase.cs: Supply data object to paste (see above).
21567 - Middle click uses the primary selection data object.
21569 2006-09-21 Chris Toshok <toshok@ximian.com>
21571 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
21572 of SetWMStyles. It's still a rat's nest and is largely
21573 order-dependent which I dislike immensely. This also fixes the X
21574 button disappearing from toplevel forms.
21576 2006-09-21 Mike Kestner <mkestner@novell.com>
21578 * ListBox.cs: move Jordi's click/dblclick raising code to the
21581 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
21583 * ListBox.cs: Fixes 79450
21585 2006-09-21 Mike Kestner <mkestner@novell.com>
21587 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
21588 to deal with people updating the TreeNodeCollection after the tree
21589 is disposed. "Fixes" 79330.
21591 2006-09-20 Jackson Harper <jackson@ximian.com>
21593 * TextControl.cs: Push the cursor record onto the undo stack
21594 before the delete action. This fixes 78651.
21596 2006-09-20 Jonathan Chambers <joncham@gmail.com>
21598 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
21599 CreateParams. Fixes 79329.
21601 2006-09-19 Chris Toshok <toshok@ximian.com>
21603 * XplatUIX11.cs: a couple of blanket code massage passes to clean
21604 things up a bit. First, get rid of the NetAtoms array (and the NA
21605 enum), and just embed the atoms as static fields. Also, add a
21606 couple of functions (StyleSet and ExStyleSet) to clean up all the
21607 bitmask testing of styles.
21609 * X11Structs.cs: remove the NA enum, not needed anymore.
21611 2006-09-19 Chris Toshok <toshok@ximian.com>
21613 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
21614 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
21615 added cleanup to get MessageBox titles appearing again, which were
21616 broken by my earlier fix for caption-less/ControlBox-less windows.
21618 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
21620 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
21621 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
21622 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
21623 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
21624 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
21625 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
21626 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
21627 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
21628 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
21629 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
21630 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
21632 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
21633 ToolStripButton.cs: Stubs needed for above.
21634 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
21636 2006-09-15 Chris Toshok <toshok@ximian.com>
21639 - make the MessageQueues hashtable Synchronized.
21641 - SendMessage: if the Hwnd is owned by a different thread, use the
21642 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
21643 thread. Fixes bug #79201.
21645 2006-09-15 Chris Toshok <toshok@ximian.com>
21647 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
21648 ControlBox == false, we disallow maximize/minimize/close. If the
21649 form Caption is "" we also disallow move (and get rid of the Title
21650 decoration). Unfortunately, regardless of how things are set,
21651 we're stuck with the Title and WM menu.
21653 2006-09-15 Chris Toshok <toshok@ximian.com>
21655 * Application.cs: add locking around the static message_filters
21656 ArrayList, part of #79196.
21658 2006-09-15 Chris Toshok <toshok@ximian.com>
21660 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
21661 Form.ControlBox == false, the window has no titlebar nor resize
21662 handles. fixes bug #79368.
21664 2006-09-15 Chris Toshok <toshok@ximian.com>
21666 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
21667 >= 0. Fixes bug #79370.
21669 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
21670 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
21672 Add properties: LayoutEngine, Margin, DefaultMargin.
21673 Add method: GetPreferredSize.
21674 Move layout logic from PerformLayout to layout engines.
21676 2006-09-13 Chris Toshok <toshok@ximian.com>
21678 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
21679 fix for #79326 broke #78718, so this change addresses that.
21681 - in SendWMDestroyMessages remove the call to
21682 CleanupCachedWindows, since we might be recreating the control and
21683 need to maintain the references to right Hwnd handles. Also, set
21684 the zombie flag to true for each of the children in the hierarchy
21685 instead of calling hwnd.Dispose. This will cause GetMessage to
21686 ignore all events for the window except for DestroyNotify.
21688 - In GetMessage, ignore messages except for DestroyNotify for
21691 * Control.cs: revert the is_recreating fix from the last
21692 ChangeLog. It's definitely "right", but it breaks switching from
21693 an MDI form to a non-MDI form. Will need to revisit that.
21695 * Hwnd.cs: add a zombie flag, which means "the
21696 client_window/whole_window handles are invalid, but we're waiting
21697 for the DestroyNotify event to come in for them". Set the flag to
21698 false explicitly if setting WholeWindow/ClientWindow, and also
21701 2006-09-13 Chris Toshok <toshok@ximian.com>
21703 * XplatUIX11.cs: rework window destruction slightly.
21705 - when destroying the windows associated with a control, we don't
21706 need 2 separate XDestroyWindow calls. Just the one for the
21707 whole_window (or for client_window if whole_window is somehow
21708 IntPtr.Zero -- can this happen?) is enough.
21710 - reworked SendWMDestroyMessages slightly, so we always dispose
21711 the child control hwnd's after sending the messages.
21713 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
21714 the two places it was used (one was even using hwnd.Handle and the
21715 other hwnd.client_window. ugh), adding another call in
21716 SendWMDestroyMessages. We need this new call because now the
21717 DestroyNotify events in the queue will be ignored for the child
21718 controls (as their hwnd's were disposed, and the window id's
21719 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
21721 - this fixes bug #79326.
21723 2006-09-13 Chris Toshok <toshok@ximian.com>
21725 * Control.cs: don't always set is_recreating to false at the end
21726 of RecreateHandle, since sometimes we're not done (and won't be
21727 until WndProc handles the WM_DESTROY message). Also, set
21728 is_recreating to false in the WM_DESTROY handling code. Part of
21729 the fix for bug #79326.
21731 2006-09-13 Miguel de Icaza <miguel@novell.com>
21733 * X11DesktopColors.cs: Start the droppage of debugging messages.
21735 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
21737 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
21739 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
21741 2006-09-12 Chris Toshok <toshok@ximian.com>
21743 * DataGrid.cs (get_ListManager): if the list_manager is null, try
21744 to create it using SetDataSource. Fixes bug #79151.
21746 2006-09-11 Chris Toshok <toshok@ximian.com>
21748 * XEventQueue.cs: add a DispatchIdle property.
21750 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
21751 either the queue is null, or the queue has DispatchIdle set to
21753 (DoEvents): set queue.DispatchIdle to false around the
21754 peek/translate/dispatch message loop in this method. This keeps
21755 Application.Doevents from emitting idle events. Part of the fix
21758 2006-09-11 Chris Toshok <toshok@ximian.com>
21760 * DataGrid.cs (set_DataSource): make this work for both the
21761 winforms/datagrid test and ReportBuilder. It seems as though when
21762 we've created a ListManager (or maybe it's if we have a
21763 BindingContext?), when we set the DataSource it clears the
21764 DataMember to "". otherwise we reuse the datamember. Fixes bug
21767 2006-09-11 Chris Toshok <toshok@ximian.com>
21769 * XplatUIX11.cs: deal with queue being null, which happens in all
21770 the Clipboard functions. Fixes one of the two problems mentioned
21773 2006-09-11 Chris Toshok <toshok@ximian.com>
21775 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
21776 button on various spots (including outside the menu) works closer
21777 to MS, and doesn't crash. Fixes #79343.
21779 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
21781 * ListView.cs: Do not initialize item_sorter in init. To match MS,
21782 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
21783 and the internal comparer is set. When a new ListViewItemSorter is set,
21784 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
21785 was specified. No further processing is necessary if SortOrder is set
21786 to it's current value. If Sorting is modified to None, and View is
21787 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
21788 (either custom or our internal ItemComparer) to null, on 1.0 profile
21789 only set item_sorter to null if its our internal IComparer. If Sorting
21790 is modified to Ascending or Descending, then use our internal IComparer
21791 if none is set, and if the current IComparer is our internal one then:
21792 on 2.0 profile always replace it with one for new Sorting, and on 1.0
21793 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
21794 Enum.IsDefined to verify whether a valid View value is specified in
21795 its setter. Automatically sort listview items when listview is
21796 created. In Sort, do nothing if ListView is not yet created, or if
21797 no item_sorter is set (no Sorting was set, Sorting was explicitly set
21798 to None or ListViewItemSorter was set to null). Added Sort overload
21799 taking a bool to indicate whether the ListView should be redrawn when
21800 items are sorted (we use this in ListViewItemCollection to avoid double
21801 redraws). Modified our internal IComparer to take the sort order into
21802 account. In Add and AddRange methods of ListViewItemCollection, also
21803 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
21804 view), but use overload with noredraw option to avoid double redraw.
21805 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
21806 true when View is Tile, and do the same when attempting to set View to
21807 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
21808 for selected/checked indices, as it involves overhead when sorting is
21809 done while these collections are not used all that often. Instead
21810 we'll build the indices on demand. Modified IList implementation of
21811 CheckedIndexCollection to use public methods if object is int.
21812 Modified CheckedListViewItemCollection to hide checked items if
21813 ListView.CheckBoxes is false. Removed LAMESPEC remark in
21814 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
21815 IList implementation in SelectedIndexCollection to use public methods
21816 if object is int. Modified SelectedListViewItemCollection to hide
21817 selected items if listview is not yet created.
21818 * ListViewItem.cs: CheckedIndices list no longer needs to be
21819 maintained separately (see ListView changes). Also clone font, fixes
21822 2006-09-11 Mike Kestner <mkestner@novell.com>
21824 * ComboBox.cs: if we are updating the contents of the currently
21825 selected index, refresh the control or the textbox selection.
21828 2006-09-11 Mike Kestner <mkestner@novell.com>
21830 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
21831 the 'specified' logic has been moved there. This seems like a bug
21832 in Control.cs, since our current SetBoundsCore completely ignores
21833 the specified parameter. Peter's commit seems to indicate that is
21834 the way the MS control implementation works. [Fixes #79325]
21836 2006-09-10 Jonathan Chambers <joncham@gmail.com>
21838 * XplatUI.cs: Set default_class_name to be composed
21839 of current domain id. This allows MWF to be loaded in multiple
21842 2006-09-09 Miguel de Icaza <miguel@novell.com>
21844 * X11Keyboard.cs: If we are unable to obtain the input method, do
21845 not call CreateXic to create the input context. Should fix
21848 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
21850 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
21851 Simplified gnome support by adding more pinvokes to get the
21852 icon for a file or mime type.
21854 2006-09-08 Jackson Harper <jackson@ximian.com>
21856 * MenuAPI.cs: Deslect popup context menu items before closing the
21857 window, so that you don't see the previously selected item
21858 selected when you reopen the menu.
21859 * TextControl.cs: Update the cursor position even if we don't have
21860 focus. This fixes typing in things like the ComboBox. I'm not
21861 totally sure we should always set the visibility if we don't have
21862 focus, but couldn't find any corner cases where the cursor showed
21863 up when it shouldn't.
21865 2006-09-08 Chris Toshok <toshok@ximian.com>
21867 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
21868 our arrays are length 256. & 0xff before indexing. Fixes the
21869 crash in bug #78077.
21871 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21873 * ThemeWin32Classic.cs:
21874 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
21875 is true. Handle that check box too.
21877 2006-09-07 Chris Toshok <toshok@ximian.com>
21879 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
21882 2006-09-07 Chris Toshok <toshok@ximian.com>
21884 * Control.cs: in set_BackColor only do the work if
21885 background_color != value.
21887 * XplatUIX11.cs: move the clearing of invalid areas (both client
21888 and nc) to the same block of code where we set (nc_)expose_pending
21889 to false. That is, move it from PaintEventEnd to PaintEventStart,
21890 so things that cause invalidates from within OnPaint will trigger
21891 another call to OnPaint. Fixes bug #79262.
21893 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
21895 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
21896 * FileDialog.cs: Fix typo
21898 2006-09-07 Jackson Harper <jackson@ximian.com>
21900 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
21901 for tab pages if they have any.
21903 2006-09-06 Mike Kestner <mkestner@novell.com>
21905 * Splitter.cs: use the "current" rect when finishing drag handle
21906 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
21908 2006-09-06 Mike Kestner <mkestner@novell.com>
21910 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
21911 support offset splitters. [Fixes #79298]
21913 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
21915 * Mime.cs: Fixed a bug that could override the global mime type
21918 2006-09-05 Jackson Harper <jackson@ximian.com>
21920 * TabControl.cs: Better calculation method for setting the slider
21921 pos. Prevents crashes on really wide tabs.
21922 - Draw Image on tab pages if an image list is used.
21924 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21926 * MonthCalendar.cs: When Font changes, the Size should be
21927 updated to fit the new font's space requirements.
21929 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
21931 * ListBox.cs: If the items are cleared with Items.Clear set
21934 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21936 * MonthCalendar.cs: Handle arrow keys as input keys. Also
21937 fire DateChanged event instead of DateSelected event when
21938 the date was changed by keyboard interaction.
21940 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21942 * DateTimePicker.cs: Handle DateChanged for the associated
21943 month_calendar control, and set month_calendar.Font from
21944 OnFontChanged method, as well as resize the height of the
21945 control when needed. Make PreferredHeight proportional.
21947 2006-09-01 Chris Toshok <toshok@ximian.com>
21949 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
21952 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
21954 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
21956 * FileDialog.cs: Set ClientSize instead of window size, to allow space
21957 for decorations (Fixes #79219)
21959 2006-09-01 Mike Kestner <mkestner@novell.com>
21961 * ComboBox.cs: first stab at sorting plus some selection handling
21962 fixes to bring us more in line with MS behavior. Also switches back
21963 to index based selection. Alternative patches for index-based
21964 selection were provided by Jackson Harper, Carlos Alberto Cortez,
21965 and latency@gmx.de on bug 78848. I assume they were similar to this
21966 code I've had simmering in my tree forever.
21969 2006-09-01 Chris Toshok <toshok@ximian.com>
21971 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
21972 when setting list position guard against ending up with a -1 index
21973 (the other part of the fix for #78812). Should probably make sure
21974 we don't need the analogous fix in the ItemDeleted case.
21977 - in SetDataSource, work around the fact that the way
21978 OnBindingContextChanged is invoked will cause us to re-enter this
21979 method. I'll remove the hack once I investigate
21980 OnBindingContextChanged.
21982 - fix the logic in set_DataSource and set_DataMember (basically
21983 what to do if the other of the two is null.)
21985 - in OnListManagerItemChanged, we need to take into account the
21986 edit row when deciding whether or not to call RecreateDataGridRows
21987 (part of the fix for #78812).
21989 2006-09-01 Jackson Harper <jackson@ximian.com>
21991 * Splitter.cs: Don't do anything if there is no control to affect
21992 (prevents us from crashing in weird tet cases).
21993 * TreeView.cs: Bounding box for the mouse movement reverting
21994 focus/selection back to previously selected node. This matches
21995 MS, and makes the tree a lot more useable.
21996 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
21997 use clipping so they are not drawn. This fixes when the control
21998 is set to have a transparent background, or if it was over an
22001 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
22003 * MimeIcon.cs: Improved handling for reading default icons when
22004 using gnome (2.16 made it necessary). Check and read svg icons
22005 first, then 48x48 and then 32x32 icons.
22007 2006-08-31 Chris Toshok <toshok@ximian.com>
22009 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
22012 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
22013 ProcessKeyPreview. Fixes part of #77806.
22015 * DataGrid.cs: big patch.
22017 - revert the queueing up of DataSource/DataMember if inside
22018 BeginInit/EndInit calls. That's not the way the datagrid achieves
22019 its delayed databinding. Instead, call SetDataSource in
22020 OnBindingContextChanged. This mimic's MS's behavior, and fixes
22023 - Also, it wasn't mentioned in #78811, but the test case exhibits
22024 behavior that was lacking in our datagrid implementation - Columns
22025 that have mapping names that don't exist in the datasource's
22026 properties aren't shown. Yuck. To fix this I added the bound
22027 field to the column style, and basically any calculation to figure
22028 out anything about columns uses a loop to find the bound columns.
22029 still need to investigate if I can cache an array of the bound
22030 columns or if the indices must be the same.
22032 - When setting CurrentCell, we no longer abort if the cell being
22033 edited was in the add row. This fixes the other part of #77806.
22035 - The new code also fixes #78807.
22037 * ThemeWin32Classic.cs: perpetrate the same disgusting
22038 column.bound field hack, and only render bound fields.
22040 2006-08-31 Chris Toshok <toshok@ximian.com>
22042 * DataGridColumnStyle.cs: add bound field. this field is true if
22043 the datasource has a property corresponding to the mapping name.
22045 * DataGridTableStyle.cs: set the bound field on the column styles
22046 depending on whether or not we have a column for that property.
22048 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
22050 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
22051 splitter control (fixes #79228)
22053 2006-08-31 Chris Toshok <toshok@ximian.com>
22055 * DataGridColumnStyle.cs: we need to delay the assignment of
22056 property descriptor until the last possible moment due to the lazy
22057 databinding stuff in the datagrid. Also, fix the exceptions
22058 thrown by CheckValidDataSource to match MS.
22060 2006-08-31 Jackson Harper <jackson@ximian.com>
22062 * Form.cs: When activated select the active control, if there is
22063 no active control, we select the first control.
22064 * XplatUIX11.cs: If there is no focus control when we get a
22065 FocusIn event, find the toplevel form and activate it. This
22066 occurs when you popup a window, it becomes the focus window, then
22067 you close that window, giving focus back to the main window.
22069 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22071 * MonthCalendar.cs:
22072 * ThemeWin32Classic.cs: Cache Font in bold style, as well
22073 as StringFormat with Center alignments in MonthCalendar,
22074 instead of creating new ones when drawing the control.
22075 Also, draw the month name in bold style.
22077 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
22080 - PerformLayout(): It would seem MS performs the fill even if the
22081 control is not visible (part of #79218 fix)
22082 - ResetBackColor(): Use the setter to reset the color, to allow
22083 overriders to catch the change.
22085 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
22086 - CreateHandle(): dito (part of $79218 fix)
22087 - Don't set an icon if we have a dialog
22088 * ScrollableControl.cs:
22089 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
22090 - ScrollIntoView(): No need to scroll if control is already visible
22091 (resolves fixme and fixes #79218)
22093 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22095 * MonthCalendar.cs: Change proportions in SingleMonthSize
22096 to match the aspect of the original control.
22098 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
22100 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
22101 get updated when they get maximized.
22103 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
22105 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
22107 2006-08-29 Chris Toshok <toshok@ximian.com>
22109 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
22111 2006-08-29 Jackson Harper <jackson@ximian.com>
22113 * TreeView.cs: Need to track selected node and highlighted node,
22114 they aren't always the same thing, when the mouse is down on a
22115 node it is hilighted, but not selected yet.
22116 - Do the HideSelection stuff right
22117 - Need to focus on rbutton mouse down. And redraw selection when
22118 right click is mouse upped.
22120 2006-08-29 Mike Kestner <mkestner@novell.com>
22122 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
22123 when SubItems.Count < Columns.Count. [Fixes #79167]
22125 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
22127 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
22129 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
22131 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
22132 from X. Only send based on ConfigureNotify if we don't have the
22133 correct location in hwnd (if the window manager moved us)
22135 2006-08-28 Mike Kestner <mkestner@novell.com>
22137 * ListView.cs: remove a TODO.
22138 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
22139 [Fixes ListView part of #79166]
22141 2006-08-28 Mike Kestner <mkestner@novell.com>
22143 * ListView.cs: move wheel handler to parent since it is focused
22144 instead of the item_control now. [Fixes #79177]
22146 2006-08-28 Mike Kestner <mkestner@novell.com>
22148 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
22149 when the control is focused. [Fixes #79171]
22151 2006-08-28 Mike Kestner <mkestner@novell.com>
22153 * ListView.cs: size the item and header controls for empty and
22154 unscrollable views.
22155 * ThemeWin32Classic.cs: draw disabled backgrounds.
22158 2006-08-28 Chris Toshok <toshok@ximian.com>
22160 * Form.cs: remove unused "active_form" static field.
22162 * Hwnd.cs: lock around accesses to static windows collection.
22164 * Application.cs: lock threads in Exit ().
22166 2006-08-28 Chris Toshok <toshok@ximian.com>
22168 * NativeWindow.cs: lock around accesses to window_collection.
22170 2006-08-28 Chris Toshok <toshok@ximian.com>
22172 * Control.cs: err, fix this the right way, by locking on controls
22173 when using it. not by making it synchronized.
22175 2006-08-28 Chris Toshok <toshok@ximian.com>
22177 * Control.cs: make the static "controls" field synchronized, as it
22178 gets updated from multiple threads.
22180 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22182 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22183 Prevent other threads from exiting when calling thread sets quit state.
22184 * XEventQueue.cs: Added PostQuitState property
22186 2006-08-27 Chris Toshok <toshok@ximian.com>
22188 * AsyncMethodData.cs: add a slot for the window handle.
22190 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22191 window (the destination control's window, not the foster window).
22193 * Control.cs (BeginInvokeInternal): store the window's handle in
22194 the AsyncMethodData.
22197 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22200 - PostQuitMessage: Removed resetting S.D display handle, we might have
22201 another loop started after calling PostQuitMessage (Fixes #79119)
22202 - Created destructor to reset S.D handle
22204 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22206 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
22208 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22210 * TextControl.cs (Insert): Update the caret position even if we don't
22211 have a handle yet, just don't call the driver in that case.
22212 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
22213 to the end of the new selection text (Fixes #79184)
22215 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22217 * Form.cs (Activate): Only activate if the handle is created)
22219 - Mark window as invisible when it's disposed
22220 - Check if window handle is created when setting window visible,
22221 instead of relying just on the is_created variable
22222 - Check if object is disposed when creating the control (Fixes #79155)
22224 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22226 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
22227 when allowing layout again. Otherwise we re-generate the anchoring
22228 distance to the border again and actually alter what the user wanted
22229 This is ugly, it'd be better if we used DisplayRectangle instead of
22230 ClientRectangle for Control.UpdateDistances, but that causes us to
22231 have other problems (initial anchoring positons would be wrong)
22234 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22237 - The size and location setters shouldn't go directly to
22238 SetBoundsCore, but to SetBounds, which triggers layout on the
22239 parent, then calls SetBoundsCore. (Related to fix for #78835)
22240 - SetBounds: Moved actual location update code into this function
22241 from SetBoundsCore, to match MS. Added call to PerformLayout if
22242 we have a parent (to trigger resizing of anchored parents if the
22243 child size has changed (see testcase for #78835)
22244 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
22246 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
22248 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22250 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
22251 System.Drawing when a toplevel window gets closed; there might
22252 be other toplevel windows belonging to the same app (Fixes #78052)
22254 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
22256 * FileDialog.cs: After reading FileDialog settings from mwf_config
22257 use Desktop prefix only if a real folder doesn't exist anymore.
22258 * FontDialog.cs: Added char sets.
22259 It is now possible to select the font, size or style with the
22262 2006-08-25 KornĂ©l PĂ¡l <kornelpal@gmail.com>
22264 * PrintPreviewDialog.cs: Use assembly name constants.
22266 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22268 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
22269 scrollbar from whacking it's buttons)
22271 2006-08-24 Chris Toshok <toshok@ximian.com>
22273 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
22274 in this patch (aggregating setting Left/Top/Width/Height to
22275 setting Bounds on the scrollbars), but the crux of the fix is in
22276 Recalculate, where we scroll by the remaining scroll_position if
22277 we're hiding a scrollbar. The 2*$5 reward in the comment is
22280 2006-08-24 Jackson Harper <jackson@ximian.com>
22283 * MdiWindowManager.cs: If the form is made a non-mdi window we
22284 need to remove the form closed event so that closing forms works
22287 2006-08-24 Jackson Harper <jackson@ximian.com>
22289 * Control.cs: Make IsRecreating internal so that the driver can
22291 - Temporarily remove the Hide when controls are removed, its
22292 making a whole bunch of things not work because visibility isn't
22293 getting reset elsewhere correctly
22294 * Form.cs: Need to do a full handle recreation when the mdi parent
22296 * XplatUIX11.cs: If we are recreating handles don't dispose the
22297 HWNDs. What was happening is the handles were being recreated in
22298 SendWMDestroyMessages, but then flow continued on in that method
22299 and destroyed the new handles.
22301 2006-08-23 Jackson Harper <jackson@ximian.com>
22303 * Form.cs: MdiClient is always at the back of the bus
22304 * Control.cs: When the order of items in the collection is changed
22305 we need to reset the all_controls array
22306 - do the same sorta setup thats done when adding a control when a
22307 control is set on the collection.
22309 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22311 * TextBoxBase.cs (get_Text): Return an empty array if our document
22312 is empty (fixes #79052)
22314 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22316 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
22317 on WM_SYSCHAR messages (fixes #79053)
22319 2006-08-23 Chris Toshok <toshok@ximian.com>
22321 * DataGrid.cs: fix flickering when scrolling vertically.
22323 2006-08-23 Chris Toshok <toshok@ximian.com>
22325 * DataGrid.cs (EndEdit): only invalidate the row header when we
22328 2006-08-23 Chris Toshok <toshok@ximian.com>
22330 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
22331 methods. fixes the flicker when scrolling around.
22333 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22335 * FileDialog.cs: Making sure the control is created before we get a
22336 chance to use it with BeginInvoke (Fixes #79096)
22338 2006-08-23 Chris Toshok <toshok@ximian.com>
22340 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
22341 width to use when painting the rows.
22343 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22346 - Throw ArgumentException if a negative value is passed to SelectionLength
22347 - Update the selection end if start is moved. end needs to be always
22348 after start. (Fixes #79095)
22349 - Track selection length; MS keeps the selection length even if start
22350 is changed; reset on all other operations affection selection
22352 2006-08-22 Jackson Harper <jackson@ximian.com>
22354 * TreeView.cs: Make sure both scrollbars get displayed and sized
22355 correctly when the other bar is visible.
22356 - Use the original clip rectangle for checking if the area between
22357 the two scrollbars is visible, not the viewport adjusted clipping
22360 2006-08-22 Jackson Harper <jackson@ximian.com>
22362 * Binding.cs: We don't use IsBinding because it requires the
22363 control to be created, which really shouldn't be necessary just to
22364 set a property on the control.
22366 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22368 * ComboBox.cs: Some CB.ObjectCollection methods must throw
22369 ArgumentNullReferenceException when the argument is null.
22371 2006-08-21 Jackson Harper <jackson@ximian.com>
22373 * Timer.cs: Track the thread that the timer is started in (NOT
22374 CREATED), this way messages for it will only be triggered on its
22376 * XEventQueue.cs: Track the timers here, this makes timers per
22378 * XplatUIX11.cs: The timers are moved to the XEventQueue.
22380 2006-08-19 Chris Toshok <toshok@ximian.com>
22382 * XplatUIX11.cs: after further communication with pdb, we get the
22383 best of both worlds. SetZOrder working for un-Mapped windows, and
22384 no X errors for un-mapped windows.
22386 2006-08-19 Chris Toshok <toshok@ximian.com>
22388 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
22389 as it was causing pdn toolbars to not have the correct stacking.
22391 2006-08-18 Mike Kestner <mkestner@novell.com>
22393 * ListView.cs : guard against negative ClientArea.Width in scrollbar
22394 calculation. Not sure why control should ever be setting a negative
22395 width though. Fixes #78931.
22397 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22399 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
22400 null items in ObjectCollection class.
22401 * ListBox.cs.: Likewise.
22403 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
22405 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
22406 as the base method in ThemeWin32Classic should work fine.
22409 2006-08-18 Jackson Harper <jackson@ximian.com>
22411 * Binding.cs: When validating if the value entered doesn't convert
22412 properly reset to the old value.
22413 * RadioButton.cs: Don't fire click when we get focus.
22415 2006-08-18 Jackson Harper <jackson@ximian.com>
22417 * FileDialog.cs: Paint the selection on the directory combobox the
22420 2006-08-17 Jackson Harper <jackson@ximian.com>
22422 * ErrorProvider.cs: Don't allow the error control to be selected.
22423 * Control.cs: Don't send the SetFocus messages, the control
22424 activation will do this, and if we do it blindly here validation
22427 2006-08-17 Jackson Harper <jackson@ximian.com>
22430 * ContainerControl.cs: Make validation events fire in the correct
22431 order. TODO: For some reason the first validation event is not
22434 2006-08-17 Mike Kestner <mkestner@novell.com>
22436 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
22438 2006-08-17 Mike Kestner <mkestner@novell.com>
22440 * ComboBox.cs : implement scroll wheel support for popped-down
22441 state. Fixes #78945.
22443 2006-08-17 Jackson Harper <jackson@ximian.com>
22445 * TreeView.cs: Specify treeview actions (old patch that didn't get
22446 committed for some reason).
22447 - Don't let the mouse wheel scroll us too far. Just want to make
22448 the bottom node visible, not scroll it all the ways to the top.
22450 2006-08-17 Jackson Harper <jackson@ximian.com>
22452 * XplatUIX11.cs: Mouse wheel events go to the focused window.
22454 2006-08-17 Mike Kestner <mkestner@novell.com>
22456 * ComboBox.cs : don't do mouseover selection in simple mode.
22458 2006-08-16 Jackson Harper <jackson@ximian.com>
22460 * Form.cs: Fire the closing events for all the mdi child windows
22461 when a window is closed. If the cancel args are set to true, the
22462 main window still gets the event fired, but it doesn't not close.
22463 * MdiWindowManager.cs: Do this closing cleanup in a Closed
22464 handler, instead of when the button is clicked, so cancelling the
22465 close works correctly.
22466 * ComboBox.cs: Send the mouse down to the scrollbar.
22468 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22470 * ListBox.cs: When passing 'null' to SelectedItem,
22471 set SelectedIndex to -1, to unselect items. This is the
22472 observed behaviour in .Net.
22474 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
22476 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
22477 MS flags saying there won't be any. (fixes #78800)
22478 * Control.cs (HandleClick): Made virtual
22480 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
22482 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
22483 cultures. Fixed bug #78399.
22485 2006-08-16 Jackson Harper <jackson@ximian.com>
22487 * Form.cs: Use the MdiClients MdiChildren property to access
22488 MdiChildren instead of creating the array from the child controls.
22489 * MdiClient.cs: Maintain a separate array of the mdi children, so
22490 that insertion order is maintained when the Z-order is changed.
22492 2006-08-16 Mike Kestner <mkestner@novell.com>
22494 * ListView.cs : add an ItemComparer and default to it for sorting.
22495 Fixes #79076, but sorting needs a complete overhaul to be compat with
22498 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22500 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
22502 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22504 * Hwnd.cs (Mapped): Properly traverse the tree
22506 2006-08-15 Chris Toshok <toshok@ximian.com>
22508 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
22509 pass manager.Current.GetType() to ParseData. It has to be the
22510 property type. So, hold off doing the ParseData until we're in
22511 SetPropertyValue where we know the type. This fixes the crash in
22512 #78821 but the textbox is still empty.
22514 2006-08-15 Chris Toshok <toshok@ximian.com>
22517 - when we're scrolling, only call Edit() again if the
22518 current cell is still unobscured. Fixes bug #78927.
22519 - when handling mousedown on a cell, ensure the cell is visible
22520 before calling Edit.
22521 - remove the properties from DataGridRow, and remove the
22522 DataGridParentRow class altogether.
22525 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22527 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
22528 fire OnTextChanged by ourselves. There's no point calling base,
22529 we don't set the base value anywhere else. Fixes #78773.
22531 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22533 * ListBox.cs: Call CollectionChanged when modifying
22534 an item from Items indexer, to update the actual items
22537 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22539 * PrintDialog.cs: Small fixes for focus and a pair of checks,
22540 to match .Net behaviour.
22542 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22544 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
22546 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22548 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
22550 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22552 * MessageBox.cs: Prevent potential NRE exception.
22553 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
22555 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22557 * MessageBox.cs: Calculate the owner of a messagebox, also make
22558 it topmost. Fixes #78753
22560 2006-08-14 Chris Toshok <toshok@ximian.com>
22562 * XplatUIX11.cs: A couple of fixes so that metacity will let us
22563 programmatically move windows. first, set the PPosition hint as
22564 well as the USPosition hint. Second include some code from pdb
22565 that sets the window type to NORMAL when we set the transient for
22566 hint. This is because, in the absence of a window type, metacity
22567 thinks any window with TransientFor set is a dialog, and refuses
22568 to let us move it programmatically. fascists.
22570 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22572 * XplatUIX11.cs: When setting normal hints, take into consideration
22573 an different hints previously set so we don't delete them (fixes #78866)
22575 2006-08-12 Chris Toshok <toshok@ximian.com>
22577 * ToolBarButton.cs: make Layout return a boolean, if something to
22578 do with the button's layout changed.
22581 - add another parameter to Redraw, @force, which all existing
22583 - make the Layout function return a boolean which is true if the
22584 layout has actually changed. Redraw now uses this (and @force)
22585 to determine when to invalidate. At present the only place
22586 where @force can be false is the call from OnResize, when
22587 background_image == null. So, resizing a toolbar when the
22588 layout doesn't change results in no drawing.
22590 2006-08-12 Chris Toshok <toshok@ximian.com>
22592 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
22593 the VScrollBar and HScrollbar reversed. oops.
22595 * DataGrid.cs: fix the logic that assigns sizes to the implicit
22596 scrollbars. we were assigning them twice (once in
22597 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
22598 therefore causing two scrollbar resizes (and redraws?) to happen
22601 2006-08-12 Chris Toshok <toshok@ximian.com>
22603 * ToolBarButton.cs: redraw the entire button if the theme tells us
22606 * Theme.cs: add ToolBarInvalidateEntireButton.
22608 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
22609 buttons, just the border.
22611 * ThemeNice.cs: redraw the entire toolbar button since we need to
22612 draw the highlight image.
22614 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
22615 we need to redraw the entire button (not just the border).
22617 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22619 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
22620 for vertical bars. Fixes the mismatches shown by #78513
22622 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
22624 * FileDialog.cs: If a saved/remembered path doesn't exist
22625 anymore, fall back to "Desktop".
22627 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22629 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
22630 parent. It's apparently legal to not have one
22632 - SetZOrder: Don't try to set Z-Order on an unmapped window
22633 - CreateWindow: 0,0 are legal coordinates for a window. don't move
22634 it unless the coordinates are negative
22636 2006-08-10 Mike Kestner <mkestner@novell.com>
22638 * ListControl.cs: allow null for DataSource. Clear DisplayMember
22639 when setting to null per msdn docs. Fixes #78854.
22641 2006-08-10 Chris Toshok <toshok@ximian.com>
22643 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
22644 flickering by setting a clip rectangle on the Graphics when we
22645 need to redraw just a particular menuitem. Also, rename "OnClick"
22646 to "OnMouseDown" to reflect what it actually is.
22648 * Form.cs: track the OnMouseDown change.
22650 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
22652 * CommonDialog.cs: Properly inherit the CreateParams from the form
22653 and only change what we need. Fixes #78865
22655 2006-08-10 Chris Toshok <toshok@ximian.com>
22657 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
22658 flickering in flat mode (and most of the flickering in general) by
22659 only invalidating the button border (and not the entire rectangle)
22660 when the state changes. A couple of cases still flicker:
22661 ToggleButtons, and the dropdown arrow case when the user mouse
22664 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
22666 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
22667 for german keyboards. Numlock state shouldn't affect the behaviour
22668 of the Del key. Fixes bug #78291.
22670 2006-08-10 Chris Toshok <toshok@ximian.com>
22672 * ListControl.cs: remove the items.Clear line from BindDataItems,
22673 as this is the first thing done by both subclasses in their
22674 SetItemsCore overrides. Also, add a ItemChanged handler, and when
22675 passed -1, refresh the list. This gets databinding working when
22676 the datasource is set on the list before the datasource is
22677 populated (as in wf-apps/ReportBuilder.)
22679 * ComboBox.cs: remove the argument to BindDataItems. This call
22680 should really go away, and be initiated by the ListControl code.
22682 * ListBox.cs: same.
22684 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22686 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
22687 if no data is in the document when the control is displayed
22689 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22691 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
22694 - PositionCaret: Allow positioning of caret but don't call methods
22695 requiring a handle if the window isn't created yet
22696 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
22697 - owner_HandleCreated: Don't position the caret, just update it's
22698 location. User might have already set a different position
22700 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22702 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
22703 windows. Screws up the returned coordinates for child windows.
22704 Fixes #78825. I'm hoping this doesn't break something, since the
22705 code was explicitly put in 8 months ago, but no bug was attached.
22706 Menus still seem to work properly.
22708 2006-08-08 Chris Toshok <toshok@ximian.com>
22710 * DataGrid.cs: make BeginInit/EndInit actually do what they're
22711 supposed to do - delay data binding until the EndInit call. Also,
22712 make the table style collection's CollectionChangeAction.Refresh
22715 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
22716 (with action = Refresh) when a consituent table's MappingName is
22719 2006-08-08 Chris Toshok <toshok@ximian.com>
22721 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
22722 Invalidate, since changing the text can change the size of the all
22725 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22727 * Form.cs (AddOwnedForm): Still need to add the form to our listif
22728 we don't have it yet
22730 2006-08-08 Chris Toshok <toshok@ximian.com>
22732 * PrintControllerWithStatusDialog.cs: don't .Close() the status
22733 dialog, as this causes X errors later on, since we actually
22734 destroy the window. Instead, .Hide() it.
22736 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22738 * ComboBox.cs: Added focus reflection for popup window
22740 - Removed transient setting for non-app windows for now, not sure it
22742 - Fixed logic checking if we have captions when deciding
22743 override_redirect, WS_CAPTION is two bits and a 0 check was not
22745 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
22748 - AddOwnedForm: Don't just add the form to the list, call the property
22749 to ensure the driver is informed about the ownership as well
22750 - CreateHandle: Set the TopMost status in the driver if we have an owner
22751 * XplatUI.cs: Fixed debug statement
22753 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
22754 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22755 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
22756 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
22757 TrackBarRenderer.cs: Make constructor private.
22758 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
22759 * ProfessionalColorTable.cs: Make properties virtual.
22761 2006-08-06 Duncan Mak <duncan@novell.com>
22763 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
22766 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22767 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22768 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
22769 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
22770 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
22771 Initial import of new 2.0 classes.
22773 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22774 * Application.cs: Add 2.0 VisualStyles properties.
22776 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22777 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22778 XplatUIX11.cs: Create property to allow access to existing private
22779 variable "themes_enabled"
22781 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22783 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
22784 file size, as otherwise our class libraries fail using windows. Fixes
22787 2006-08-04 Jackson Harper <jackson@ximian.com>
22790 * XplatUIX11.cs: Move the toolwindow window manager creation into
22791 the X11 driver, this way on win32 we can let windows create/handle
22794 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22796 * PrintDialog.cs: Remove some redundant checks, add some others,
22797 clean some code, and move the focus to the text boxes when the
22798 values are incorrect.
22800 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
22802 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
22804 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22806 * NumericUpDown.cs: Setting the Minimum and Maximum is now
22807 handled correctly. Fixes bug #79001.
22809 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22811 * PrintDialog.cs: The "Copies" numeric up down must have
22812 set the Minimum property to 1; only if the value is bigger
22813 than 1, activate "Collate" check box. This is the behaviour of .Net.
22814 Also modify the Document elements only if it is not null.
22816 2006-08-03 Jackson Harper <jackson@ximian.com>
22818 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
22819 length. (We have a larger array then actual node count).
22821 2006-08-03 Jackson Harper <jackson@ximian.com>
22823 * ComboBox.cs: Don't show selection by default.
22824 - The SelectAll isn't needed here, since the focus code should do
22826 - DDL style lists to manual selection drawing, so when they
22827 get/lose focus they have to invalidate.
22829 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
22831 * TextBoxBase.cs: Don't always show all selections by default.
22833 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
22834 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
22835 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
22836 Fixed various typos.
22838 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22840 * Control.cs: Removing the controls in a ControlCollection with
22841 Clear now hides the controls as expected. Fixes bug #78804.
22843 2006-08-03 Jackson Harper <jackson@ximian.com>
22845 * Control.cs: Revert previous focus patch, it breaks reflector.
22847 2006-08-03 Jackson Harper <jackson@ximian.com>
22849 * ComboBox.cs: Cleanup selection and focus with the combobox.
22850 This also eliminates some duplicated keyboard code, since now
22851 everything is handled by the main class.
22852 - Make list selection work on mouse up instead of down, to match
22855 2006-08-02 Jackson Harper <jackson@ximian.com>
22857 * Control.cs: Setting focus needs to go through the whole
22858 selection mechanism.
22860 2006-08-02 Chris Toshok <toshok@ximian.com>
22862 * PrintPreviewDialog.cs: change MinimumSize to use
22863 base.MinimumSize so it works.
22865 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
22868 - UpdateCaret: Added sanity check in case caret isn't defined yet
22869 - Line.Delete: Now updating selection and caret markers if we're
22870 transfering a node (Properly fixes #78323)
22871 - SetSelectionEnd: Added sanity check
22872 * TextBoxBase.cs: Removed broken attempt to fix #78323
22874 2006-08-01 Chris Toshok <toshok@ximian.com>
22876 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
22877 Close() call is handled in Form, not here.
22879 2006-08-01 Chris Toshok <toshok@ximian.com>
22881 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
22884 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
22885 for sizes < 100% zoom. The code now aggressively attempts to keep
22886 from calling document.Print (), and tries not to use the scaling
22887 g.DrawImage whenever possible (it still does if you scale to >
22888 100%, since usually that involves huge images).
22890 * PrintPreviewControl.cs: hook up the close button.
22892 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
22893 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
22894 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
22895 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
22896 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
22897 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
22898 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
22899 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
22900 Removed [Serializable] for 2.0 Event Handlers.
22902 2006-07-31 Jackson Harper <jackson@ximian.com>
22904 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
22905 * TextControl.cs: Uncomment out the body of this method.
22907 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
22909 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
22912 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22914 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
22915 that embed TextBox and need selections visible even if textbox is not
22916 focused to enforce that behaviour.
22917 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
22920 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22923 - Added new SetSelectionStart/SetSelectionEnd overloads
22924 - Fixed viewport width assignment to be accurate
22925 - Adjusted alignment line shift calculations to allow cursor on right
22926 aligned lines to be always visible at the right border (like MS)
22928 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
22929 - TextBoxBase_SizeChanged: recalculating canvas on size changes
22930 - CalculateScrollBars: Use ViewPort size instead of window size, to
22931 properly consider space occupied by the border and scrollbars
22933 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
22934 calculations; no longer leaves artifacts
22935 - CaretMoved: Adjusted window scrolling to match MS and fixed several
22936 calculation bugs (Still missing right/center align calculations)
22938 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22940 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
22941 use of both scroll rect and clip rect, as they do the same.
22943 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22945 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
22946 in the event handler (fixes #78912)
22948 2006-07-31 Chris Toshok <toshok@ximian.com>
22950 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
22951 grid.ListManager.Count, since grid.ListManager might be null.
22952 This of course begs the question "why are we drawing rows for a
22953 grid with no list manager (and therefor no rows)?" Fixes the
22954 crash in bug #78929.
22956 2006-07-31 Chris Toshok <toshok@ximian.com>
22958 * RelatedPropertyManager.cs: Don't always chain up to the parent
22959 ctor. instead, call SetDataSource if the parent's position is !=
22960 -1. Fixes the crash in #78822.
22962 2006-07-31 Chris Toshok <toshok@ximian.com>
22964 * DataGrid.cs (get_ListManager): use field instead of property
22965 accessors for datasource and datamember.
22966 (RowsCount): make internal again.
22967 (OnMouseDown): end edits before resizing columns/rows.
22968 (OnMouseUp): restart edits after resizing columns/rows.
22970 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
22972 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
22973 This fixes the situation where the last set cursor is displayed
22974 whenever the mouse is over scrollbars.
22976 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22978 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
22979 Document properties, as well as initial values.
22981 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
22983 * XplatUIWin32.cs (SetBorderStyle): Setting both border
22984 and ClientEdge results in a 3-pixel border, which is
22987 2006-07-28 Jackson Harper <jackson@ximian.com>
22989 * TreeNodeCollection.cs: Fix the clear method.
22990 - Fix the Shrink also
22992 2006-07-27 Jackson Harper <jackson@ximian.com>
22994 * TreeView.cs: Make sure the visible order is computed when we
22995 attempt to size the scrollbars (for trees that mess with the
22996 scrolling when they shouldn't.
22997 - Make sure to give the scrollbars valid values.
22999 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
23001 * XplatUIX11.cs: Move motion compression code to where it
23002 has less performance impact
23004 2006-07-26 Jackson Harper <jackson@ximian.com>
23006 * UpDownBase.cs: When the control is selected make the child
23007 controls non selectable, so that a click on them won't do a
23008 focus/unfocus cycle.
23009 - Don't give focus to the text box when the spinner is selected.
23010 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
23012 2006-07-26 Chris Toshok <toshok@ximian.com>
23014 * ThemeWin32Classic.cs: add print preview rendering. I'm not
23015 satisfied with this solution. If the bitmaps are small, we should
23016 just cache them in the PrintPreviewDialog and draw them here.
23017 Also, the layout is broken for the 2-up and 3-up cases.
23019 * Theme.cs: add PrintPReviewControlPaint.
23021 * PrintPreviewDialog.cs: first pass implementation.
23023 * PrintPreviewControl.cs: first pass implementation. No
23026 * PrintDialog.cs: only validate fields if that particular portion
23027 of the UI is enabled. Also, set the document's controller to a
23028 PrintControllerWithStatusDialog wrapping the document's print
23031 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
23032 bring up a SaveFileDialog (i hope we don't want to match the
23033 behavior of the crappy windows file entry) and set the
23034 PrinterSettings.PrintFileName accordingly.
23036 2006-07-26 Jackson Harper <jackson@ximian.com>
23038 * ContainerControl.cs: Add a field that disables auto selecting
23039 the next control in a container when the container is activated.
23040 * UpDownBase.cs: Don't select the text box when the up down is
23043 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
23045 * XEventQueue.cs: Added methods for peeking (used for compression
23046 of successive events)
23047 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
23048 mouse move events (fixes #78732)
23050 2006-07-25 Jackson Harper <jackson@ximian.com>
23052 * UpDownBase.cs: Use an internal class for the textbox so that we
23053 can control focus. the updown control should always have focus,
23054 if either the text area or the buttons are clicked.
23055 - Send the key messages to the textbox, since it never actually
23057 - Activate and decativate the textbox caret.
23059 2006-07-24 Jackson Harper <jackson@ximian.com>
23061 * Control.cs: Use the directed select when selecting a control,
23062 this way the container controls override will get called and the
23063 whole ActiveControl chain will get triggered. TODO: probably need
23064 to make sure this gets done everywhere instead of the old
23066 * ContainerControl.cs: Implement the directed Select method to
23067 find and activate the correct child control.
23069 2006-07-22 Mike Kestner <mkestner@novell.com>
23071 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
23072 menu handling code so that clicks without a grab work too.
23075 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
23077 * FileDialog.cs: Enable the BackButton when dirstack has one element.
23078 Added some small optimizations.
23080 2006-07-21 Matt Hargett <matt@use.net>
23082 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
23084 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
23086 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
23087 tests pass and match MS in some strange border cases.
23089 2006-07-21 Chris Toshok <toshok@ximian.com>
23091 * ThemeWin32Classic.cs: handle drawing of the relation links and
23092 parent row buttons.
23094 * Theme.cs: change args to DataGridPaintParentRow.
23096 * DataGrid.cs: Don't use controls for the relation links and
23097 parent buttons, so we have to handle all their interactions in
23098 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
23099 when we're navigating through child tables, so we can reinstate
23100 selection, expanded state, current cell, etc.
23102 2006-07-20 Chris Toshok <toshok@ximian.com>
23104 * ToolBar.cs: When we redraw a button, for whatever reason,
23105 there's no reason to redraw the entire toolbar. Also, don't call
23106 Control.Refresh from within Redraw, as it's much heavier than
23107 Invalidate (which is really what we want).
23109 2006-07-20 Chris Toshok <toshok@ximian.com>
23111 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
23112 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
23113 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
23114 traces from within a debug IBindingList datasource
23115 (in mono/winforms/datagrid) for *days*, I've finally gotten things
23116 to work in a similar fashion.
23118 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23120 * ListBox.cs: Don't call Sort () when setting
23121 the Sorted property to false (avoid an unnecessary sort).
23123 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23125 * ListControl.cs: DataSource should throw an ArgumentException
23126 instead of a normal exception when the argument is not of the
23129 2006-07-20 Mike Kestner <mkestner@novell.com>
23131 * Control.cs: add InternalPreProcessMessage to allow us to steal
23132 key events before MWF gets its paws on them. Adapted from a
23134 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
23135 up/down/left/right navigation. Override the new internal control
23136 method to steal the events since they never make it to WndProc.
23137 * ToolBarButton.cs: don't worry about pushed when setting hilight
23138 since the drawing code prefers pushed to hilight. Invalidate on
23139 Hilight changes. Fixes #78547 and #78525.
23141 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23143 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
23144 the canvas size. Fixes #78868
23146 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23148 * Splitter.cs: Track requested split position until first layout
23149 is performed. Fixes #78871
23151 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23153 * Application.cs: Removed code that forces 1.x for the version
23154 number if the version started with 0. Not sure why that code was
23155 there and I couldn't find any bugs that indicated we needed it.
23158 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
23160 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
23161 ResetDefaults(), just write some output to the console until it's
23162 implemented. Fixes bug #78907 for now. Eliminated two warnings.
23164 2006-07-19 Jonathan Chambers <joncham@gmail.com>
23166 * PropertyGridView.cs: set StartPosition of drop down forms
23167 so they appear in correct initial spot. Fixes #78190.
23169 2006-07-19 Mike Kestner <mkestner@novell.com>
23171 * ThemeWin32Classic.cs: use parent background color when drawing
23172 flat toolbars. Restructure the conditionals to make sure non-flat
23173 non-Divider toolbars are filled too. Fixes #78837.
23175 2006-07-19 Mike Kestner <mkestner@novell.com>
23177 * ListBox.cs: Sort on collection changes even if the handle
23178 isn't created yet. Fixes #78813.
23180 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23182 * ListControl.cs: DisplayMember should never be null,
23183 and now we assign String.Empty when null is passed to it (this
23186 2006-07-17 Mike Kestner <mkestner@novell.com>
23188 * ListViewItem.cs: restructure Font and subitem Font handling
23189 to hold a specific font and refer back to owner on null.
23192 2006-07-17 Mike Kestner <mkestner@novell.com>
23194 * ToolBar.cs: bandaid for side-effect of previous patch which was
23195 discarding explicit heights for non-AutoSize toolbars. Need to
23196 extend my format tester to deal with AutoSize=false. Fixes #78864.
23198 2006-07-15 Jackson Harper <jackson@ximian.com>
23200 * LabelEditTextBox.cs:
23201 * TreeView.cs: Use a new LabelEdit class for node editing, this
23202 class automatically 'closes' itself when it gets the enter key or
23204 - Use the client rectangle when setting the trees scrollbars, so
23205 border style is taken into account.
23207 2006-07-14 Jackson Harper <jackson@ximian.com>
23210 * TreeView.cs: Make the editing work similar to MSs, firing the
23211 events correctly and ending edits correctly.
23213 2006-07-14 Mike Kestner <mkestner@novell.com>
23215 * ToolBarButton.cs:
23216 * ToolBar.cs: layout restructuring and redraw enhancements to support
23217 formatting changes gracefully, like setting TextAlign, ImageList,
23218 ButtonSize, and Appearance. Handles explicit button sizing quirks
23219 of the MS controls. Things like flat toolbars ignoring button size
23220 but becoming constant sized at the largest button's size. Normal
23221 toolbars with an image set cannot be shrunk smaller than the image,
23222 but text can be clipped/ignored.
23223 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
23224 is zero. Seems like DrawString should be smart enough to not put
23225 anything on screen though. Also trim labels and ellipsize at the char
23226 boundary, not word.
23227 Fixes #78711 and #78483.
23229 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23231 * FolderBrowserDialog.cs: Disable "New Folder" button and
23232 "New Folder" contextmenu menuitem if a folder like "My Computer"
23235 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23237 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
23238 * FolderBrowserDialog.cs:
23239 - Use MWFConfig to store and read size and position settings
23240 - Added code to create a new folder (button or context menu).
23241 Use TreeView labeledit to change the name of the new folder.
23243 2006-07-14 Jackson Harper <jackson@ximian.com>
23245 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
23246 when the tree is scrolled we end editing.
23248 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23250 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
23253 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23255 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
23256 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
23257 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
23258 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
23259 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
23260 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
23261 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
23262 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
23263 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
23264 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
23265 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
23266 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
23267 ListViewItemSelectionChangedEventHandler.cs,
23268 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
23269 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23270 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
23271 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
23272 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
23273 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
23274 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
23275 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
23276 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
23277 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
23278 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
23279 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
23280 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
23281 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
23282 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
23283 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
23284 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
23285 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
23286 WebBrowserNavigatingEventHandler.cs,
23287 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
23289 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23291 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
23292 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
23293 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
23294 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
23295 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
23296 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
23297 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
23298 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
23299 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
23300 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
23301 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
23302 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
23303 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
23304 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
23305 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
23306 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
23307 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
23308 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
23309 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
23310 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
23311 ListViewItemStates.cs, MaskFormat.cs: Added
23313 2006-07-13 Jonathan Chambers <joncham@gmail.com>
23315 * PropertyGridView.cs: Fix keyboard navigation of drop down.
23316 Patch from eno for bug 78558.
23318 2006-07-13 Jackson Harper <jackson@ximian.com>
23320 * TreeView.cs: When an edit is finished make sure that the
23321 selected node is visible.
23322 - When setting the top/bottom use the scrollbars is_visible, so
23323 everything will be set correctly even if the tree isn't visible
23326 2006-07-13 Jackson Harper <jackson@ximian.com>
23328 * ComboBox.cs: Revert the item->index part of my previous patch.
23329 * TreeView.cs: Use LostFocus instead of Leave for detecting when
23330 the edit box has lost focus (duh).
23331 - Just make the edit box not visible when we get return, that will
23332 take the focus, which will call EndEdit
23333 * TreeNode.cs When we start editing, notify the treeview.
23335 2006-07-12 Jackson Harper <jackson@ximian.com>
23337 * ComboBox.cs: Clear out old items before setting the item list.
23338 This prevents databound controls from having their items added
23340 - Switch the combobox to use indices whereever possible instead of
23341 using Item's. This allows usto navigate through lists that have
23342 more then one item with the same string value (ie a, b, b, a).
23343 - Scroll the listboxes scrollbar when a non visible item is
23345 - Allow keypress to cycle through all the possible values. For
23346 example if you have b1, b2, b3 and hold down the B key all the
23347 values will be cycled through.
23349 2006-07-12 Jackson Harper <jackson@ximian.com>
23352 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
23353 this using the internal methods.
23354 * Control.cs: Add OnGotFocusInternal. A new method that allows
23355 controls to "override" OnGotFocus and change focus behavior if
23357 - Same thing for LostFocus
23358 * ComboBox.cs: Pass off focus to the text control properly.
23360 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
23362 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
23363 * FolderBrowserDialog.cs: Almost a complete rewrite.
23364 - Better support for Environment.Specialfolders
23365 - Added support for MWFVFS
23366 - Made setting SelectedPath work
23368 2006-07-12 Jackson Harper <jackson@ximian.com>
23370 * Control.cs: Optimze getting all the controls.
23372 2006-07-11 Jackson Harper <jackson@ximian.com>
23374 * ContainerControl.cs: Override SETFOCUS in the container control,
23375 so that it is not selected on mouse click.
23377 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23379 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
23380 Hopefully we will have a better way once all of focus is complete.
23382 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23384 * ThemeWin32Classic.cs: Commented out some debug code and fixed
23385 a compile error with csc.
23387 2006-07-11 Jackson Harper <jackson@ximian.com>
23389 * Control.cs: When hiding a control only select the next control
23390 if the current control was focused.
23391 - Don't handle enter/leave when setting/killing focus, this is
23392 done by the container control.
23393 - Remove is_selected, it's not needed anymore.
23394 - Add utility methods for selecting a child control, and for
23395 firing the Enter/Leave events.
23396 * ContainerControl.cs: When a control is activated fire the
23397 enter/leave events.
23398 - Don't wrap when processing the tab key, so that focus can be
23399 moved outside of the container.
23400 - Use the correct active control
23402 2006-07-11 Jackson Harper <jackson@ximian.com>
23404 * ComboBox.cs: Remove some debug code that was blinding me.
23405 * UpDownBase.cs: These controls actually aren't implicit, they are
23406 visible to the user.
23408 2006-07-10 Chris Toshok <toshok@ximian.com>
23410 * DataGrid.cs: move back to the is_adding boolean field. god i
23411 hate this is_editing/is_adding/is_changing stuff.
23413 2006-07-10 Chris Toshok <toshok@ximian.com>
23415 * DataGridTableStyle.cs: just check if the property type is bool.
23416 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
23417 Don't use CanRenderType.
23419 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
23420 if our text == NullText. Remove CanRenderType.
23422 * DataGridBoolColumn.cs: nuke CanRenderType.
23424 * DataGrid.cs: reenable some code to end the current edit inside
23425 of set_CurrentCell. This fixes the other 1.1.16 regression.
23426 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
23427 Also, remove the visible_row_count arg from CalcRowHeaders, since
23428 we don't need to worry about the actual height of the area.
23430 2006-07-10 Chris Toshok <toshok@ximian.com>
23432 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
23435 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
23436 the real sense of the IsInEditOrNavigateMode property (true =
23437 navigate, false = edit). Also, update OnKeyPress to reflect this.
23439 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
23440 column style exists, we still need to set its property descriptor
23441 to match up with our list manager.
23443 2006-07-10 Chris Toshok <toshok@ximian.com>
23445 * ThemeWin32Classic.cs: implement the new row/header painting
23446 approach. The parent row painting will likely go away and
23447 replaced with label controls, but the rest seems to work ok (and
23450 * Theme.cs: change the way we draw datagrid rows. we don't draw
23451 the row headers as a block now. Instead we draw them in the
23452 normal draw-row loop. Add some calls for drawing parent rows and
23455 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
23456 a default table style. Set the defaults from ThemeEngine.Current,
23457 not SystemColors. Fix lots of misc issues with property setters.
23459 * DataGrid.cs: move loads of style information out of this class
23460 as it's being duplicated with DataGridTableStyle. keep track of a
23461 special DataGridTableStyle for the properties we used to mirror
23462 here. Switch all the style properties to access this table style
23463 instead of instance fields of this class. Also add a internal
23464 class to represent parent rows (more needs to be stored here, like
23465 the selection state from the parent table, as well as the
23466 expansion state.) Also, for datasources with relations, do the
23467 right thing for collapse/expand, and add support for the
23468 navigation/parent row buttons.
23470 Lastly, fix the crash in the 1.1.16 build.
23472 * GridTableStylesCollection.cs: make the explicit interface
23473 implementations call the class's methods as opposed to duplicating
23476 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
23477 0 so the text doesn't jump around when we move the cursor.
23479 2006-07-10 Jackson Harper <jackson@ximian.com>
23482 * ListBox.cs: Match MS's ToString (this makes debugging focus
23483 stuff infinitely easier).
23485 2006-07-10 Jackson Harper <jackson@ximian.com>
23487 * Control.cs (SelectNextControl): When checking the control's
23488 parent use this instead of ctrl.parent so that null can be passed
23489 to SelectNextControl. (I have unit tests for this).
23490 - Remove unused var.
23492 2006-07-10 Chris Toshok <toshok@ximian.com>
23494 * CurrencyManager.cs: correct one regression, the removal of the
23495 finalType field. Also, add a MonoTODO on CanAddRows, implement
23496 Refresh() correctly, and fix some event emission in
23497 ListChangedHandler.
23499 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23501 * FileDialog.cs: Don't use brackets for new folders if they exist
23502 under *nix. Instead use -(number of existing folders +1).
23504 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23507 - Fixed really nasty bug #78771
23508 - Don't block the whole GUI when reading directories with a lot of
23509 entries. Use an other thread instead and call BeginInvoke to
23510 update the ListView in MWFFileView
23512 2006-07-07 Chris Toshok <toshok@ximian.com>
23514 * Control.cs (Dispose): release any Capture when disposing.
23516 2006-07-07 Chris Toshok <toshok@ximian.com>
23518 * LinkLabel.cs (Select): if we chain up to the parent, set
23519 focused_index to -1 so we'll search for the first available link
23520 the next time the user tabs into us. Also, if the direction is
23521 backward and focused_index == -1, start the search from the last
23524 2006-07-07 Chris Toshok <toshok@ximian.com>
23526 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
23527 is beyond the end of the text, don't do anything.
23528 (CreateLinkPieces): set our ControlStyles.Selectable based on
23529 whether or not we have any links.
23530 (Link.Invalidate): use a loop instead of foreach.
23531 (Link.set_Start): null out owner.sorted_links so it'll be
23532 recreated by CreateLinkPieces.
23534 2006-07-06 Chris Toshok <toshok@ximian.com>
23536 * LinkLabel.cs: revert the SetStyle change.
23538 2006-07-06 Chris Toshok <toshok@ximian.com>
23540 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
23541 (OnEnableChanged): s/Refresh/Invalidate
23542 (OnGotFocus): if we have a focused index already, refocus it (so
23543 if we mouse out/in to the window it'll focus the right link).
23544 (OnKeyDown): move the tab handling out of here.
23545 (OnLostFocus): don't set focused_index to -1, so we can refocus it
23546 when we lose focus.
23547 (OnMouseDown): don't Capture here - Control handles it. Also,
23548 focus the active link.
23549 (OnMouseUp): don't deal with Capture.
23550 (OnPaintBackgroundInternal): remove.
23551 (OnTextAlignChanged): CreateLinkPieces before calling the
23552 superclass's method.
23553 (OnTextChanged): call CreateLinkPieces before calling superclass's
23555 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
23557 (Select): implement this, moving the selection between different
23558 links, and call parent.SelectNextControl if we don't have another
23559 link to focus in the given direction.
23560 (CreateLinkPieces): call Invalidate instead of Refresh.
23562 2006-07-06 Chris Toshok <toshok@ximian.com>
23564 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
23565 new LinkLabel internals.
23567 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
23568 over pieces looking for active/focused/etc links. also, deal with
23569 runs of text (and links) with embedded \n's in them, and use
23570 MeasureCharacterRanges instead of MeasureString to figure out the
23571 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
23574 2006-07-04 Jackson Harper <jackson@ximian.com>
23576 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
23577 XKB or key auto repeat, do it manually. Without key auto repeat,
23578 when a key is held down we get key press, key release, key press,
23579 key release, ... with auto repeat we get key press, key press, key
23580 press ..., and then a release when the key is actually released.
23582 2006-07-03 Jackson Harper <jackson@ximian.com>
23585 * ThemeWin32Classic.cs: Tabs do not obey normal background color
23586 rules, they are always control color regardless of the background
23589 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
23591 * FileDialog.cs: Added internal class MWFConfig.
23592 Removed Registry support and replaced it with support for the new
23593 MWFConfig class. See MWFConfig comments for more information.
23595 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
23597 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
23598 rectangle. Added some patches from eno from bug #78490 and fixed
23599 the arrow position for small up and down CPDrawScrollButtons.
23601 2006-06-30 Jackson Harper <jackson@ximian.com>
23603 * InternalWindowManager.cs: Remove some debug code.
23604 * Form.cs: When an MdiParent is set to null, the window is
23605 "detatched" and becomes a normal window.
23606 * MdiClient.cs: Don't bring the new child form to the front until
23607 it is activated (setting it as active does this), this makes the
23608 previously active forms titlebar get redrawn as inactive.
23610 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
23612 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
23613 with later controls
23615 2006-06-29 Mike Kestner <mkestner@novell.com>
23617 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
23618 arrow in keynav state. Fixes #78682.
23620 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23622 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
23623 order (fixes #78393)
23625 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
23627 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
23628 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
23629 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
23630 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
23631 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
23632 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
23633 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
23634 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
23635 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
23636 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
23637 enumerations (FlagsAttribute, SerializableAttribute, added/removed
23640 2006-06-28 Mike Kestner <mkestner@novell.com>
23642 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
23644 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23647 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
23648 item lines from other area (It also makes BackColor consistent and
23649 compatible with .NET). Fixed bug #78564.
23651 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
23653 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
23654 Patch from Eno for #78555.
23656 2006-06-27 Chris Toshok <toshok@ximian.com>
23658 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
23660 * DataGridColumnStyle.cs: same.
23662 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
23664 * DataGridDrawingLogic.cs: nuke.
23666 2006-06-27 Chris Toshok <toshok@ximian.com>
23668 * DataGridTableStyle.cs: clean up the constructors, and build the
23669 list of child relations for this table. I have no idea if this is
23670 where we should be doing it (it probably isn't), but since we're
23671 already iterating over the properties..
23673 * DataGrid.cs: add row resizing. for now we add a DataGridRow
23674 struct and array for keeping track of row information, similar to
23675 what's shown in a hack on
23676 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
23678 * Theme.cs: be consistent about the naming of DataGrid methods,
23679 prefering ColumnWidths and RowHeights over columnsWidths and
23682 * ThemeWin32Classic.cs: same, and also add support for variable
23683 sized rows (and the +/- expansion icons for related rows).
23685 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23687 * TextBoxBase.cs: Applied Eno's patch from #78660
23689 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23691 * Form.cs (ScaleCore): We don't want to scale our form if it's
23692 state is minimized or maximized, but we still need to scale our
23693 child windows. Also, added try/finally block to ensure layout
23694 gets reset (Fixes #78697)
23696 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23698 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
23700 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23702 * Form.cs: Fixed c+p error and added check to resize form if minimum
23703 size is bigger than current size (Fixes #78709)
23705 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
23707 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
23709 2006-06-26 Mike Kestner <mkestner@novell.com>
23711 * ComboBox.cs: only do Keypress handling in the combo when there
23712 are items in the collection. Fixes #78710.
23714 2006-06-26 Chris Toshok <toshok@ximian.com>
23716 * Binding.cs: make this work bi-directionally. also, clear up
23717 other mixups between Push/Pull Data (e.g. we're supposed to pull
23718 data when validating).
23720 * BindingManagerBase.cs: trim some fully qualified collection
23723 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
23725 2006-06-23 Chris Toshok <toshok@ximian.com>
23727 * PropertyManager.cs: It appears (according to the unit tests)
23728 that PropertyManager doesn't use
23729 PropertyDescriptor.AddValueChanged to track propery value changes
23730 in its datasource, but uses the same scheme as Binding, where it
23731 looks for a <Property>Changed event and binds to it.
23733 Also, according to the docs, IsSuspended always returns false for
23734 a property manager with a non-null datasource.
23736 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23738 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
23739 need to update the actual DialogResult. (Fixes #78613)
23741 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23743 * Form.cs (ShowDialog): Release any captures before running the
23744 new message pump (fixes #78680)
23746 2006-06-22 Mike Kestner <mkestner@novell.com>
23748 * ListView.cs: Layout column widths properly in details mode even
23749 if HeaderStyle.None is set. Fixes #78691.
23751 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23753 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
23755 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23757 * Control.cs (ContainsFocus): Using new driver method to get focused
23758 window, instead of trying to use internal tracking var, which can
23759 recursion issues (Fixes #78685)
23760 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
23761 XplatUIWin32.cs: Added GetFocus method to return focused window
23763 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23765 * ColorDialog.cs: when the mouse button is pressed inside the color
23766 matrix, don't let the cursor move out of it until the button is
23767 released, which is the behavior on windows. Changed 'colours' by
23768 'colors' to use the same word consistently.
23770 2006-06-21 Chris Toshok <toshok@ximian.com>
23772 * DataGrid.cs: add in some basic navigation stuff (navigating to a
23773 child relation and back, using a stack). Also, remove
23774 GetDataSource and the code that calls it - it's not needed. Also,
23775 track CurrencyManager.ListName's removal.
23777 2006-06-21 Chris Toshok <toshok@ximian.com>
23779 * CurrencyManager.cs: push some of the original type checking from
23780 BindingContext.CreateBindingManager to here, and remove some of
23781 the finalType stuff. Need more tests to make sure I've got the
23782 ListName part right, and we might need more in SetDataSource.
23784 * PropertyManager.cs: add a ctor that takes just the datasource,
23785 and no property name. Make SetDataSource work with a null
23786 property_name, and make Current return the data_source if the
23787 property descriptor is null. this makes 'string foo = "hi";
23788 BindingContext[foo].Current' return "hi" as it should.
23790 * RelatedCurrencyManager.cs: make this code more generic - there's
23791 no reason the parent manager has to be CurrencyManager, and
23792 there's no reason to pass the DataRelation. It suffices to use a
23793 BindingManagerBase and PropetyDescriptor.
23795 * RelatedPropertyManager.cs: make a similar change here.
23797 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
23798 flower I knew it could be.
23800 2006-06-20 Chris Toshok <toshok@ximian.com>
23802 * PropertyManager.cs: the PropertyChangedHandler is invoked when
23803 data in the source has changed and we need to update the control,
23804 so s/PullData/PushData.
23806 * CurrencyManager.cs: Refresh is meant to update the control from
23807 data in the datasource. So, s/PullData/PushData.
23809 * BindingContext.cs: add more ugliness (we weren't handling the
23810 case where data_source = DataTable and data_member = column_name).
23812 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
23813 from the perspective of the datasource. PullData pulls from the
23814 control, PushData pushes to the control.
23816 2006-06-20 Chris Toshok <toshok@ximian.com>
23818 * BindingContext.cs: rewrite the CreateBindingManager code to
23819 handle navigation paths more or less properly. This could
23820 definitely stand some more work, in particular to push the
23821 recursion up to the toplevel. But that relies on fixes in other
23822 places (System.Data comes to mind).
23824 Also, move to a flat hashtable (and encode the twolevel nature of
23825 the dictionary into the hash key). This lets us implement the
23826 IEnumerable.GetEnumerator method.
23828 * RelatedCurrencyManager.cs: new class. Update our view based on
23829 our relation and our parent CurrencyManager's position.
23831 * CurrencyManager.cs: split out some logic from the ctor into
23832 SetView, so it can be called from the new RelatedCurrencyManager
23835 * RelatedPropertyManager.cs: new class. Update our datasource
23836 based on the position of our parent CurrencyManager.
23838 * PropertyManager.cs: split out some logic from the ctor into
23839 SetDataSource, so it can be called from the new RelatedDataSource
23840 subclass. Also, make the Current getter return the value
23841 of the PropertyDescriptor, not the data_source.
23843 * Binding.cs: no need to duplicate the string splitting code here.
23845 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23848 - set_Enabled: OnEnabledChanged is not called if the inherited state
23849 of the control is not altered, even though we might be changing the
23850 internal state of the control (#78458)
23851 - set_Enabled: (Re)Moved the enabling/disabling of the window to
23852 OnEnabledChanged, to allow easy altering of any child window state
23853 - OnEnabledChanged: Added code to enable/disable driver window state
23854 - OnParentEnabledChanged: Instead of firing the event, call
23855 OnEnabledChanged, which will fire the event and also a) set driver
23856 window state and pass the enabled state to any grandchildren (#78458)
23858 2006-06-19 Jackson Harper <jackson@ximian.com>
23860 * InternalWindowManager.cs: We don't set the cursor explicitly
23861 thats done via the response to NCHITTESTs.
23862 - Don't need to adjust for titlebar heights anymore, the
23863 coordinates are coming in the correct coordinates now (see peters
23867 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23869 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
23870 being translated relative to whole window, instead of client window.
23871 That caused broken offsets on mouseclick (and caused gas for our
23872 InternalWindowManager)
23874 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23877 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
23878 - Undo(): Added replay of cursor move on DeleteChars action; added
23879 calling Undo() again if a recorded cursor move is invalid (to
23880 ensure that some action is performed on Undo)
23881 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
23883 2006-06-16 Jackson Harper <jackson@ximian.com>
23885 * MdiClient.cs: Instead of just sizing maximized windows when
23886 there is a resize we also have to adjust the Y of minimized
23887 windows, so they stay pinned to the bottom of the mdi container.
23888 - Eliminate separate tracking of the active control, we can just
23889 get this from the controls collection.
23890 - Paint the decorations for the newly activated titlebar so we get
23892 * InternalWindowManager.cs:
23893 * ThemeWin32Classic.cs: Minimized windows get all three buttons
23894 even if they are a tool window.
23896 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23898 * TextControl.cs (Undo): Handle non-existent cursor locations in the
23899 undo buffer, these can happen when text was deleted and the cursor
23900 was recorded first. Since we will also have a recorded cursor
23901 after the delete this is not an issue. (Fixes #78651)
23903 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
23905 * AccessibleObject.cs: Remove dependence on Control.is_selected;
23906 instead properly track control states internally (allows us to
23907 remove is_selected from Control)
23909 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23911 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
23912 whose width is not a multiple of 8.
23914 2006-06-13 Jackson Harper <jackson@ximian.com>
23916 * MdiClient.cs: Only maximize the next child if the current one
23919 2006-06-13 Chris Toshok <toshok@ximian.com>
23921 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
23922 modified. Also, guard against grid or grid_drawing being null in
23925 * DataGrid.cs: Reformat tons of getters/setters. In the
23926 DataMember setter, just call SetNewDataSource instead of
23927 duplicating some of its functionality. In SetNewDataSource, don't
23928 check ListManager for null, since the property getter creates the
23931 * DataGridTableStyle.cs: don't set TableStyle or call
23932 SetDataGridInternal on the column here, it's done in
23933 GridColumnStylesCollection.Add.
23935 * GridColumnStylesCollection.cs: fix all the explicit interface
23936 implementations to just call our methods. Nuke AddInternal() and
23937 move the body of it to Add(). Also, add a call to
23938 column.SetDataGridInternal to Add().
23940 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
23941 base()+duplicate code. Also, use the Format property instead of
23942 format to generate an Invalidate ala MS. Lastly, create the
23943 textbox here, unconditionally.
23944 (set_Format): call Invalidate.
23945 (get_TextBox): no need to call EnsureTextBox.
23946 (Commit): remove the message box.
23947 (Edit) remove the call to EnsureTextBox.
23948 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
23949 (EnterNullValue): no need to check textbox for null.
23950 (HideEditBox): no need to check textbox for null.
23951 (SetDataGridInColumn): add the textbox to the grid's controls.
23952 (EnsureTextBox): nuke.
23954 2006-06-13 Jackson Harper <jackson@ximian.com>
23956 * MdiWindowManager.cs: Hook up to the maximized menus paint event
23957 and redraw the buttons when needed. Unhook when the window is
23959 * MainMenu.cs: Add an internal Paint event, the mdi window manager
23960 needs this so that it can redraw its buttons when the menu is
23962 * InternalWindowManager.cs:
23963 * Form.cs: The method order has changed for DrawMaximizedButtons,
23964 so that it can be a PaintEventHandler.
23966 2006-06-13 Jackson Harper <jackson@ximian.com>
23968 * MdiClient.cs: When we close a maximized mdi window, the next mdi
23969 window is activated and maximized, even if it wasn't before.
23970 - When a new window is activated repaint the decorations of the
23971 old one, so that it no longer has the Active "look" (the blue
23973 * InternalWindowManager.cs: Open up CreateButtons to base classes
23974 so they can recreate the buttons on state changes.
23975 - If a window is maximized give it all three buttons
23976 * MdiWindowManager.cs: Create the titlebar buttons when the state
23977 is changed, this is needed because a toolwindow will not have all
23978 three buttons until it is maximized.
23980 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
23982 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
23985 2006-06-12 Jackson Harper <jackson@ximian.com>
23987 * KeysConverter.cs: Make sure we handle the Ctrl special case
23988 if its the only key.
23990 2006-06-12 Jackson Harper <jackson@ximian.com>
23992 * Theme.cs: Add a method to get the size of a managed window
23994 * InternalWindowManager.cs: Remove the ButtonSize property, this
23995 should be retrieved from the theme.
23996 * MdiWindowManager.cs: Get the button size from the theme
23997 * ThemeWin32Classic.cs: Make the method to get the managed window
23998 titlebar button size public.
23999 - Handle the different button sizes of maximized toolwindows
24000 (should match any maximized window).
24001 - Get the titlebar height from the theme, not the WM (which gets
24002 it from the theme).
24004 2006-06-12 Jackson Harper <jackson@ximian.com>
24006 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
24007 event down to the mdi window manager.
24008 - Expose some extra stuff to base classes
24009 - Make sure to end the Capture on an NC Mouse up, so that we can
24010 get double clicks properly, and the sizing doens't stick.
24011 - When doing PointToClient contain it in the workable desktop
24012 area, this prevents windows from changing size when the cursor is
24013 pulled outside of the working area while sizing.
24014 * MdiWindowManager.cs: When we get a double click maximize the
24016 - Reset the cursor after handling mode changes.
24018 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
24020 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
24021 current desktop, instead of just assuming a 0, 0 origin. This
24022 is needed for our internal window manager, to know the top
24023 margin of the desktop
24025 2006-06-12 Chris Toshok <toshok@ximian.com>
24027 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
24028 we need this to get rid of the selected background in the bool
24030 (CancelEditing): move the ConcedeFocus call to above the Abort
24031 call. Also, set is_changing to false and invalidate the row
24032 header if we were changing before.
24033 (ProcessKeyPreviewInternal): remove, since noone outside this
24034 class calls it anymore. Roll the code into ProcessKeyPreview.
24035 (EndEdit): remove the internal version.
24036 (InvalidateCurrentRowHeader): make private.
24038 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
24039 Keys.Escape handling (and with it the last call to
24040 DataGrid.EndEdit from outside the class.)
24043 2006-06-12 Chris Toshok <toshok@ximian.com>
24045 * DataGridTextBox.cs (.ctor): isedit defaults to false.
24046 (OnKeyPress): set isedit to true.
24047 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
24048 already handled by the grid.
24050 * DataGrid.cs (set_CurrentCell): more work here. it's still not
24052 (set_DataSource): SetDataSource always returns true, so stop
24053 putting it in an if statement.
24054 (EndEdit): get rid of some {}'s
24055 (ProcessGridKey): return true in case Keys.Escape.
24056 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
24057 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
24058 PositionChanged, stopped connecting to CurrentChanged.
24059 (GetDataSource): simplify this a bunch.
24060 (SetDataSource): change return type from bool to void.
24061 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
24062 to this, and make sure we don't set ListManager.Position inside
24064 (OnListManagerItemChanged): if we're passed an actual index,
24067 * CurrencyManager.cs (set_Position): don't call PullData here.
24069 2006-06-09 Jackson Harper <jackson@ximian.com>
24071 * TreeNode.cs: Recalculate the visible order before doing the
24072 Expand/Collapse Below calls, because those calls generate an
24074 - Reduce calls to the TreeView property, which is mildly expensive
24075 by using a local var.
24076 * Form.cs: Layout the MDI child windows when creating the parent
24078 - Don't use the internal constructor anymore
24079 * MdiClient.cs: use the parent form width/height (if available)
24080 when laying out the child windows, we do this because the
24081 mdiclient isn't docked yet when the initial layout is done.
24082 - Don't need an internal constructor anymore.
24084 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24086 * FileDialog.cs: handle access errors when trying to create a folder
24087 or changing to a directory. No need to initialize out parameters.
24089 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24091 * FileDialog.cs: Append a number when creating a new folder if the
24092 folder already exists (use parenthesis instead of square brackets)
24094 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24097 - Disabled registry support for windows and added better registry
24098 error checking for other systems (need to investigate why it
24099 works perfectly on my system)
24100 - If a folder already exist show an error MessageBox instead of
24101 trying to create an indexed name.
24102 - Fixed a non intentional typo.
24104 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24106 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
24108 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24110 * FileDialog.cs: When creating a new folder don't crash if the
24111 folder already exists.
24113 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24115 * FileDialog.cs: Allmost a complete rewrite.
24116 - added a "virtual" file system that handles the differences
24117 between unix and windows file systems (especially the directory
24118 structure). Moved most of the directory and file handling code
24120 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
24121 UnixFileSystem and FSEntry.
24122 - Recently used folder/directory, size, location and used file names
24123 (file name ComboBox) are now stored in the registry and get read
24124 before the dialog shows up (fixes part 6 of bug #78446).
24125 - Creation of new folders/directories is now possible (context menu
24126 or ToolBar). Added TextEntryDialog for this that fills in the gap
24127 until ListView.LabelEdit works.
24128 - Fixed cursor handling (bug #78527) and focus handling for
24130 - Various "Search in" ComboBox enhancements. The content of the
24131 dropdown listbox now almost matches ms.
24132 - Changed the behaviour when the user switches to SpecialFolder
24133 Recent to show the ListView in View.Details.
24134 - Beside using the ToolBar to change the View property of the
24135 file ListView it is now possible to use the context menu too.
24137 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24139 * ComboBox.cs: Don't create a new ObjectCollection when an item
24140 gets inserted. Just insert the item in the existing object_items
24143 2006-06-08 Jackson Harper <jackson@ximian.com>
24145 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
24146 that the treeview and root node checks are done also, this fixes a
24147 regression i caused in the unit tests.
24149 2006-06-07 Wade Berrier <wberrier@novell.com>
24151 * RichTextBox.cs: More ISO8859-1 -> unicode
24153 2006-06-07 Mike Kestner <mkestner@novell.com>
24155 * ComboBox.cs : use items to hold highlight/selection so that
24156 collection insertions don't require synchronization.
24158 2006-06-07 Jackson Harper <jackson@ximian.com>
24160 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
24161 routine. We now always keep the sized edge at the cursor instead
24162 of computing movement and adjusting rects. There is one buglet
24163 with this method though when the cursor is moved over area that
24164 the window can not expand too (such as the toolbars on the desktop).
24166 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24168 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24169 here. Fixes crash on startup in AlbumSurfer.
24171 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
24173 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24176 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24178 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24179 statement to avoid calling XNextEvent which will block if another thread
24180 took the event that we were expecting. Fixes bug #78605.
24182 2006-06-07 Mike Kestner <mkestner@novell.com>
24184 * ListView.cs : isolated checkbox clicking from the selection logic.
24185 Toggle check state on item doubleclicks. Really fixes #78454 part2.
24187 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24189 * Form.cs: Check that the value passed to Form.DialogResult
24190 is a valid enum value.
24192 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24194 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24195 Computer'. Clicking it in the network view goes to 'My Computer'.
24196 Added CIFS filesystem type. Display the mount point of filesystems.
24197 Avoid duplicate mount points (happens for me with CIFS);
24199 2006-06-06 Jackson Harper <jackson@ximian.com>
24201 * InternalWindowManager.cs: Draw the maximized windows buttons
24204 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24206 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
24207 all other dialogs. Fixes bug #78585.
24209 2006-06-06 Mike Kestner <mkestner@novell.com>
24211 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
24212 Only invalidate checkbox on checkstate changes to avoid flicker.
24213 * ListBox.cs : avoid unselect/select when clicking selected item.
24214 avoid reselection flicker for already multiselected items.
24217 2006-06-06 Jackson Harper <jackson@ximian.com>
24219 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
24220 the parent form so that the menu is removed if needed.
24222 2006-06-06 Mike Kestner <mkestner@novell.com>
24224 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
24225 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
24227 2006-06-06 Mike Kestner <mkestner@novell.com>
24229 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
24232 2006-06-06 Jackson Harper <jackson@ximian.com>
24234 * Control.cs: Use the property (instead of the field) to get the
24235 default cursor so it is instantiated correctly.
24236 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
24237 resizes so we need to manually repaint the window decorations here.
24238 - Set the titlebar button locations as soon as they are created,
24239 otherwise they are not set correctly on win32.
24241 2006-06-06 Chris Toshok <toshok@ximian.com>
24243 * CurrencyManager.cs (set_Position): call PullData before
24245 (AddNew): after calling IBindingList.AddNew, update our
24246 listposition, and call OnCurrentChanged/OnPositionChanged (without
24248 (OnCurrentChanged): remove the call to PullData from here.
24249 (OnItemChanged): remove the call to PushData from here.
24250 (OnPositionChanged): change the test from == null to != null to
24251 match the other methods.
24252 (ListChangedHandler): the grossest part of the patch. Implement
24253 this such that it passes the unit tests in CurrencyManagerTest and
24254 the output more or less matches that of MS's implementation.
24256 2006-06-06 Mike Kestner <mkestner@novell.com>
24258 * ListView.cs : only update check state on single click.
24259 * ThemeWin32Classic.cs : fix focus drawing for details view without
24260 fullrowselect. Fixes #78454.
24261 * XplatUIX11.cs : fix for double click emission.
24263 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
24265 * PropertyGridView.cs : Applied Atsushi's patch to fix
24266 font dialog bug (#78197).
24268 2006-06-05 Jackson Harper <jackson@ximian.com>
24270 * TreeNode.cs: Compute the next node for expanding/collapsing
24271 correctly. We now factor in nodes without a NextNode
24272 correctly. (Fixes somes cases in nunit-gui).
24273 * InternalWindowManager.cs: Set the bounds when updating the
24274 virtual position of a tool window.
24276 2006-06-05 Chris Toshok <toshok@ximian.com>
24278 * DataGrid.cs: rename cached_currencymgr to list_manager.
24279 (set_CurrentCell): move SetCurrentCell code here, and clean it up
24281 (CurrentRow, CurrentColumn): single accessors so we can make the
24282 cursor movement code a lot easier to understand.
24283 (CurrentRowIndex): implement this in terms of CurrentRow.
24284 (BeginEdit): clean this up a bit.
24285 (CancelEditing): sort out the is_editing/is_changing/is_adding
24287 (EndEdit): minor changes.
24288 (OnKeyDown): add a comment about a (most likely) unnecessary
24290 (OnMouseDown): cancel editing when we click on a row header. And
24291 use the CurrentRow setter, not CurrentCell.
24292 (ProcessDialogKey): directly call ProcessGridKey.
24293 (UpdateSelectionAfterCursorMove): factor out this common block of
24294 code (it's used everywhere that we move the cursor by updating row
24296 (ProcessGridKey): pretty substantial overhaul. Use the
24297 CurrentRow/CurrentColumn properties to make the code a lot more
24298 readable. Only use the CurrentCell property when we have to
24299 modify both row and column at once. Tab behavior is still broken,
24300 and Delete is untested.
24301 (Select): if we have no selected rows, set selection_start to
24303 (EditCurrentCell): rename EditCell this. It was only ever invoked
24304 with CurrentCell as the arg, so drop the arg and rename it.
24306 * DataGridColumnStyle.cs: clean up the constructors a little, and
24307 drop CommonConstructor().
24309 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
24310 actually get notified when the user hits it.
24311 (ProcessKeyMessage): *substantially* simplify this method.
24312 There's no reason (that I can see) for the textbox to be making
24313 calls into the datagrid at all. Remove all of them but the ones
24314 for Enter handling. those will take some more work.
24316 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
24317 calling HideEditBox.
24318 (HideEditBox): if we have an active textbox, render it invisible
24319 without causing a re-layout of the datagrid.
24321 2006-06-05 Mike Kestner <mkestner@novell.com>
24323 * ListView.cs : fix NRE crasher when focuseditem is cleared by
24324 collection changes by resetting it to Items[0]. Fixes #78587.
24326 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24328 * MessageBox.cs: if the height of the text is larger than the icon_size,
24329 use that. Fixes bug #78575.
24331 2006-06-05 Jackson Harper <jackson@ximian.com>
24333 * TreeView.cs: Fix line drawing when scrolling. To do this each
24334 node is basically responsible for drawing its entire horizontal
24335 area. When drawing a node it draws its parent node lines if
24337 - Adjust the clip area to the viewport rectangle
24338 - Fix Left/Right key handling to match MS. (It expand/collapses
24339 and moves to parents/first child but does not move selection to
24341 - Fix SetTop to work with new bound calculation code
24342 - When scrollbars are no longer needed we need to reset scrolling
24343 vars and recalculate the visible order so the redraw is correct
24344 * TreeNode.cs: We can't expand/collapse nodes with no children.
24346 2006-06-03 John Luke <john.luke@gmail.com>
24348 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
24349 so the colors work without dev packages
24351 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
24354 - Select: Implemented to just use activate. Seems to match MS
24355 behaviour closest. Documented to only do actual control walking
24356 based on it's parameters if in a container control so I moved
24358 - Removed selection check logic from our internal Select() method
24359 * ContainerControl.cs:
24360 - Select: Moved selection logic from Control here, since MS documents
24361 that containers obey the bool arguments. No longer calling base
24363 2006-06-02 Jackson Harper <jackson@ximian.com>
24365 * TreeView.cs: If the selected node isn't changed when we get
24366 focus update the previously selected node so that we see the
24369 2006-06-02 Mike Kestner <mkestner@novell.com>
24371 * ComboBox.cs: restructure grab and general mouse event handling.
24372 Make the composite control raise mouse events like it was a single
24373 control for leaves/enters/motion/up/down events. fix dropdown list
24374 coordinate mangling and refactor it into the scrollbar subclass to
24375 reduce code duplication. Fixes #78282 #78361 and #78457.
24377 2006-06-02 Mike Kestner <mkestner@novell.com>
24379 * ScrollBar.cs: remove Capture setting/clearing, as it happens
24380 automatically in the Control.WndProc.
24382 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24384 * FileDialog.cs: fix crash when running SharpChess, which sets the
24385 FilterIndex to 2 with only one Filter.
24387 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24389 * ToolBar.cs: add SizeSpecified property.
24390 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
24391 try to figure out our real size, otherwise fallback to what the
24394 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24396 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
24397 * Control.cs (WndProc): MS always calls the DefWndProc to pass
24400 2006-06-01 Mike Kestner <mkestner@novell.com>
24402 * ListView.cs: revamp the focus management in ListView. It still
24403 causes churn of LostFocus/GotFocus emissions on clicks, but it's
24404 better than not handling focus at all. Will revisit when pdb feels
24405 the general focus handling is solid. Fixes #78526.
24407 2006-06-01 Jackson Harper <jackson@ximian.com>
24409 * TreeView.cs: Set the default border style in the constructor.
24410 - Move painting to use OnPaintInternal instead of capturing
24411 WM_PAINT, this is the correct way of doing things
24412 - UpdateBelow shouldn't invalidate the scrollbar area
24413 - Cap the top on update below in case the node was above the top
24414 of the viewport rectangle.
24415 - ExpandBelow and Collapse below need to obey Begin/End Update.
24416 * TreeNode.cs: Make is_expanded internal so the treenode
24417 collection can change it without firing the whole event chain.
24418 * TreeNodeCollection.cs: When clearing all the child nodes make
24419 sure to recalc the visible order.
24420 - Improve algo for remove the top node
24422 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24424 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
24425 SendMessage directly calling window procedures, which in turn might
24428 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24430 * Control.cs: Don't handle WM_SETFOCUS if the same window already
24431 has focus (works around X11 sending a FocusIn after our SetFocus)
24432 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
24434 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
24436 * Mime.cs: Fix for the NET_2_0 build.
24437 NameValueCollection needs StringComparer now.
24439 2006-05-31 Chris Toshok <toshok@ximian.com>
24441 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
24442 return (via an out parameter) the starting X of the column.
24443 (UpdateVisibleColumn): track change to FromPixelToColumn.
24444 (HitTest): add a ColumnResize case here.
24445 (DrawResizeLine): new function, probably poorly named.
24447 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
24448 only need to keep one reference.
24449 (set_ListManager): same.
24450 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
24451 Also, add support for HitTestType.ColumnResize.
24452 (OnMouseMove): add column resize behavior here, and change the
24453 cursor to the correct one as we move around the datagrid.
24454 (OnMouseUp): terminate the column resize if we're resizing.
24455 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
24456 for the current cell.
24457 (ConnectListManagerEvents): use cached_currencymgr.
24458 (DisconnectListManagerEvents): fill this in, using
24459 cached_currencymgr.
24460 (SetCurrentCell): remove cached_currencymgr_events handling.
24461 (SetDataMember): only call DisconnectListManagerEvents if
24462 cached_currencymgr is != null.
24463 (SetDataSource): same.
24464 (OnListManagerCurrentChanged): cached_currencymgr_events ->
24465 cached_currencymgr.
24467 2006-05-31 Jackson Harper <jackson@ximian.com>
24469 * BindingManagerBase.cs: Remove somedebug code that creeped into
24471 * TreeNode.cs: We get the indent level dynamically right now, so
24472 don't track it as a member.
24473 * TreeNodeCollection.cs: Make sure all nodes added to the list
24474 have parents, treeviews/topnodes setup properly.
24475 - Don't attempt to track indent level.
24477 2006-05-30 Jackson Harper <jackson@ximian.com>
24479 * BindingContext.cs: Create the currency manager tables here.
24480 This allows us to more easily create null tables (when bad data
24481 members are used), and more easily create related currency
24483 * CurrencyManager.cs: All the table creation stuff is done by the
24484 binding context now.
24485 - Current should throw an exception if listposition is -1.
24486 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
24489 2006-05-30 Mike Kestner <mkestner@novell.com>
24491 * ListView.cs: allow reexpansion of zero-width column headers.
24494 2006-05-28 Chris Toshok <toshok@ximian.com>
24496 * CurrencyManager.cs (get_Current): after the late binding
24497 listposition = -1 fix, we need to guard against it here and return
24498 null, otherwise we raise an exception (which is swallowed
24499 elsewhere, and breaks datagrid databinding.)
24501 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24503 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
24504 than WM_SYSKEY, don't throw if get something unexpected (#78507)
24506 2006-05-26 Jackson Harper <jackson@ximian.com>
24509 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
24510 values, it's faster and it's all we care about (we don't care if
24511 the names aren't equal).
24512 * KeyboardLayouts.cs: Eliminate some dead code.
24514 * X11Keyboard.cs: Lazy init keyboard detection.
24515 - Cleanup access modifiers a little.
24517 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24519 * XplatUIX11.cs: Once again, attempting to get layout just right.
24521 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24523 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
24524 the sizes of each link section, that will result in sizes that
24525 match DrawString's layout (Fixes #78391)
24527 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
24529 * FileDialog.cs: If AddExtension property is true autocomplete the
24530 extensions in SaveFileDialog correctly. Fixes bug #78453.
24531 Set MyNetwork and MyComputer to "C:\" for windows. This should
24532 fix part 8 of bug #78446 for now.
24534 2006-05-26 Chris Toshok <toshok@ximian.com>
24536 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
24537 invalidate the current row header if we need to, but presumably
24538 we'll invalidate the row corrsponding to the bounds or
24540 (GridHScrolled): switch back to this method, as it's part of the
24541 public api. *sigh*.
24542 (GridVScrolled): same.
24543 (OnMouseWheel): hack up something that more or less works. Call
24544 GridHScrolled/GridVScrolled directly, instead of duplicating much
24545 of their code here.
24546 (EnsureCellVisibility): reinstate a bunch of this code, since we
24547 can't just set the scrollbar Value and expect to do all the work
24548 in the ValueChanged handler. Also, Call Update() after scrolling
24549 in one direction so the other XplatX11.ScrollWindow call has the
24550 proper stuff in the proper places.
24551 (EditCell): set is_editing to true before calling .Edit.
24553 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
24554 don't bother comparing first.
24555 (OnKeyPress): call grid.ColumnStartedEditing before calling
24556 base.OnKeyPress. this will set is_changing and invalidate the row
24557 header if necessary.
24558 (ProcessKeyMessage): for WM_CHAR messages, call
24559 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
24562 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
24563 it's done in the DataGrid.
24564 (NextState): call grid.ColumnStartedEditing, which takes care of
24565 invalidating the row header (and setting is_changing).
24567 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
24568 here. it's done in the DataGrid.
24570 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24572 * Control.cs: allow changing the cursor when the mouse position is
24573 out of bounds but Capture is set.
24574 * LinkLabel.cs: handle the case when the mouse button is pressed on the
24575 linklabel but released somewhere else.
24577 2006-05-25 Jackson Harper <jackson@ximian.com>
24579 * TreeView.cs: When we get focus if there is no selected node make
24581 - Remove some uneeded setup code from Draw.
24582 * TreeNodeCollection.cs: If the tree doesn't have a top node when
24583 a new node is inserted make the new node the top.
24585 * Timer.cs: Use Utc time so that no local time zone stuff needs to
24586 be used (should be faster).
24588 2006-05-25 Chris Toshok <toshok@ximian.com>
24590 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
24591 problem with the last commit.
24593 2006-05-25 Chris Toshok <toshok@ximian.com>
24595 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
24596 need the invalidate call here, while scrolling right-to-left via
24597 the left arrow key (i.e. moving the editing cell while scrolling).
24599 * DataGrid.cs (.ctor): remove the initialization of
24600 ctrl_pressed/shift_pressed. We no longer track them using key
24601 up/down handlers, but by using Control.ModifierKeys. Also, switch
24602 to using ValueChanged handlers on the scrollbars instead of
24603 Scrolled event handlers. This simplifies a bunch of the scrolling
24605 (GridHValueChanged): rename from GridHScrolled, and change it to
24606 work with the new event args.
24607 (GridVValueChanged): same.
24608 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
24609 (OnMouseWheel): actually scroll the datagrid. Don't change the
24611 (ProcessGridKey): correct all the keyboard navigation stuff I
24612 could find. Ctrl up/down/left/right/home/end work now.
24613 (EnsureCellVisibility): correct method name spelling. Also,
24614 simplify this a touch by not explicitly calling the
24615 ScrollToRow/ScrollToColumnInPixels methods. We just set the
24617 (OnKeyUpDG): no need for this method now.
24619 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24621 * LinkLabel.cs: display the OverrideCursor when hovering the label.
24624 2006-05-25 Chris Toshok <toshok@ximian.com>
24626 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
24629 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24631 * Application.cs: Moved setting of is_modal and closing to before
24632 we create the control, to allow the event handlers called as a
24633 result of creation affect closing. Also removed Gonzalo's previous
24634 change to setting DialogResult, the behaviour has been moved to
24637 - ShowDialog(): Removed explicit creation of the form, let RunLoop
24639 - ShowDialog(): If no dialog result is set, we need to return Cancel
24640 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
24641 the close is cancelled
24643 2006-05-25 Jackson Harper <jackson@ximian.com>
24645 * StatusBar.cs: We only need to update the sizes of the other
24646 panels when we have auto size contents. Also we are only updating
24647 the contents of the panel, not the borders, so compensate for the
24648 border width (TODO: get this width from the theme somehow).
24649 * TreeView.cs: Scrollable is true by default
24650 - Use invalidate instead of refresh where needed
24651 - Factor the scrollable value into scrollbar updating
24652 - Update the scrollbars if the Scrollable property is altered
24653 - Update the selected node if its ImageIndex is changed
24654 - Handle null nodes in UpdateNode (mainly so we don't have to
24655 check if selected is null when updating it
24656 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
24657 are factored into the visible count
24658 - Use VisibleCount for clarity in the code
24659 - When the font is changed we need to recurse through all the
24660 nodes and invalidate their sizes
24662 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24664 * Application.cs: set the DialogResult to fixed when the main form is
24665 hidden or destroyed while being modal.
24667 2006-05-25 Miguel de Icaza <miguel@novell.com>
24669 * Theme.cs: Use Tangoified messagebox icons.
24671 (GetSizedResourceImage): Also cope with width = 0 and do not
24672 trigger a warning in that case (0 means "give me your icon from
24673 the resouce, no special size needed).
24675 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24677 * Application.cs: Leave runloop if the the main modal form is
24678 hidden (fixes #78484)
24680 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
24682 * BindingContext.cs : reject null datasource in Contains() and
24684 * CurrencyManager.cs : check data_member validity when data_source
24685 is dataset. When it is late binding, the initial position is -1.
24687 2006-05-24 Jackson Harper <jackson@ximian.com>
24689 * TreeNodeCollection.cs: Dont't recalculate the visible order on
24690 inserted nodes that aren't visible. This changes the
24691 max_visible_order which confuses scrollbar settings.
24692 - Use the enumerator to get the prev node instead of duplicating
24694 * TreeView.cs: Use new method for setting scrollbar values
24695 - Don't set the bounds every time the scrollbar is updated
24696 - When updating below the root node use an invalidate instead of a
24697 refresh to prevent the child controls (scrollbars) from being
24698 refreshed. (UpdateBelow still needs to be reworked anyways).
24699 - Reenable SetBottom now that visible orders are set correctly,
24700 added some debug code incase we ever get bad values there again.
24701 - Set the scrollbar max to 2 less then the max value, this
24702 compensates for the max value being one above the node count, and
24703 for scrollbars adding one extra "notch".
24704 - When drawing image nodes if there is an imagelist we draw the
24705 first image in the list if the supplied image index is out of the
24706 image list's bounds.
24708 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24710 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
24711 we receive a size change from the WM (Fixes #78503)
24713 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24715 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
24716 rectangle (Fixes #78501)
24718 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24721 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
24723 - Fixed MouseMove to no longer switch pressed state unless the left
24724 mouse button is pressed. Atsushi provided the original patch (#78485)
24726 2006-05-24 Jackson Harper <jackson@ximian.com>
24728 * ScrollBar.cs: New internal methods that allow us to change a
24729 couple values on the scrollbar (the most common case is maximum
24730 and large change) without getting multiple invalidates.
24732 2006-05-24 Chris Toshok <toshok@ximian.com>
24734 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
24735 (Edit): save off the original state in oldState, and set
24736 grid.is_editing to true.
24737 (OnKeyDown): abort editing if escape is pressed. also, call
24738 NextState if space is pressed.
24739 (OnMouseDown): call NextState.
24740 (NextState): factor out shared code from OnKeyDown and OnMouseDown
24741 here. Also, only invalidate the row header once (on the initial
24742 is_changing switch) to save on redraws.
24744 2006-05-24 Chris Toshok <toshok@ximian.com>
24746 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
24747 if the value in the cell is different than it was before. This
24748 keeps us from triggering a layout when we move around a datarid
24749 with a highlighted cell.
24750 (Edit): suspend layout when creating/positining the text box, and
24751 resume passing false so we don't ever actually re-layout.
24752 (ReleaseHostedControl): same.
24753 (EnsureTextBox): reformat slightly, and set WordWrap to false.
24755 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
24756 control-key sequences should go to the datagrid - remove that
24757 lock. Also, modify the conditions under which we move between
24758 cells when moving the cursor within a cell, and remove the "this"
24759 and "base" from field accesses. We weren't even consistent, given
24760 they all were in the base class.
24762 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
24764 * Binding.cs : (.ctor)
24765 An obvious NRE fix for BindingTest.CtorNullTest().
24767 2006-05-23 Chris Toshok <toshok@ximian.com>
24769 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
24770 them between lines. This fixes some quirks editing cells in the
24773 2006-05-23 Jackson Harper <jackson@ximian.com>
24775 * TreeView.cs: Use begin/end update when doing expand/collapse all
24776 so that we don't get flicker on the scrollbar.
24778 2006-05-23 Jackson Harper <jackson@ximian.com>
24780 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
24781 treenode calculations to be independant of the painting code. To
24782 do this nodes track a visible order which is calculated by the
24784 - Call new methods for expanding/collapsing nodes. These methods
24785 use scrollwindow so we don't have to update everything below the
24787 * TreeView.cs: Refactored drawing and scrolling code. We don't
24788 need to update nodes when drawing anymore or calculate scrollbar
24790 - Added new methods for expanding/collapsing nodes. These methods
24791 use ScrollWindow so as to not have to redraw all the nodes below.
24792 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
24793 we add/remove nodes or sort.
24794 - Handle removing the selected and the top node properly.
24796 2006-05-23 Chris Toshok <toshok@ximian.com>
24798 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
24799 maybe this should actually happen in the datagrid code?
24800 (EndEdit): no need to invalidate anything, given that
24801 ReleaseHostedControl causes the datagrid to relayout, which
24802 invalidates everything anyway.
24804 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
24805 in SetCurrentCell).
24806 (set_SelectionBackColor): call InvalidateSelection instead of
24808 (set_SelectionForeColor): same.
24809 (BeginEdit): Flesh this out a bit.
24810 (CancelEditing): only do any of this if we're editing/adding.
24812 (OnMouseDown): there's no need to cancel editing here, it's done
24814 (SetCurrentCell): only invalidate the current row header if it's a
24815 different row than the new one.
24816 (ShiftSelection): fix this to work like MS does.
24817 (ResetSelection): factor out the invalidation of selected_rows to
24818 InvalidateSelection.
24819 (SetDataSource): cancel any editing that's going on.
24821 * DataGridColumnStyle.cs
24822 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
24823 call the non-interface version.
24825 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
24826 header rectangle with the clip rectangle so we don't redraw the
24827 entire header for just a small area. Gets rid of the last flicker
24828 when horizontally scrolling.
24829 (DataGridPaintRow): same.
24831 2006-05-23 Mike Kestner <mkestner@novell.com>
24833 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
24834 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
24835 poorly placed checkbox on the MS control. Fixes Alex's unfiled
24836 Critical bug report.
24838 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24840 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
24841 and this fixes #78493
24843 2006-05-23 Miguel de Icaza <miguel@novell.com>
24845 * Theme.cs (GetSizedResourceImage): Scale images if the proper
24848 * FileDialog.cs: Do not change the background for the side bar as
24849 it wont work nicely with the theme, and also reduces the artifacts
24850 in rendering the icons (which I want to fix too).
24852 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
24853 resources, not resgen resources.
24855 (PlatformDefaultHandler): Pull images using the new API.
24857 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24859 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
24860 a reference to the hwnd and will not remove it unless there are
24861 no pending exposures (fixes #78341)
24862 * XplatUI.cs: Improved debug
24864 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
24866 * MenuAPI.cs : don't handle OnClick event when it was not the left
24867 button. Fixed bug #78487.
24869 2006-05-23 Mike Kestner <mkestner@novell.com>
24871 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
24872 prefer submenus to the top menu for item lookup, to avoid popping down
24875 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
24877 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
24878 Graphics.FillRectangle as the visual results are really bad (even
24879 on win). We now draw perfect arrows (and perfect shadows when the
24880 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
24881 Pen.DashPattern to draw the dots of each line.
24883 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
24885 * FileDialog.cs: Update the filename combobox when navigating through
24886 the ListView with the cursor keys. Fixes part 7 of bug #78446.
24888 2006-05-22 Mike Kestner <mkestner@novell.com>
24890 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
24893 2006-05-22 Mike Kestner <mkestner@novell.com>
24895 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
24896 requests. Fix a misspelled parameter and a copy paste exception error
24899 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
24901 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
24902 to get the same width/height (5/13) on X11 as the default font has on
24903 win32. This means that our DefaultFont emSize is smaller than the
24904 the MS SWF equivalent (even thought the width/height stays the same)
24906 2006-05-20 Jackson Harper <jackson@ximian.com>
24909 * MdiWindowManager.cs:
24910 * InternalWindowManager.cs: Make sure to use the border width from
24913 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
24915 * PrintDialog.cs: Implements printer details
24917 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
24919 * FileDialog.cs: Added focus handling for PopupButtonPanel.
24920 Fixes part 1 and 2 of bug #78446
24922 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
24924 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
24925 instead of sticking to the first ever calculated value
24927 2006-05-19 Mike Kestner <mkestner@novell.com>
24929 * ComboBox.cs: fix mouse motion selection to use MousePosition and
24930 PointToClient, since Capture is set. Fixes #78344.
24932 2006-05-19 Mike Kestner <mkestner@novell.com>
24934 * ListView.cs: match MS behavior in Details view where items are not
24935 drawn if Columns.Count == 0.
24936 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
24937 Use a separate pen to draw the check, since changing the width affects
24938 the box as well. Fixes #78454.
24940 2006-05-18 Miguel de Icaza <miguel@novell.com>
24942 * ListView.cs: ArgumentOutOfRangeException, single versions of the
24943 exception should throw the name of the invalid argument.
24945 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
24946 there are no files listed.
24948 2006-05-18 Jackson Harper <jackson@ximian.com>
24950 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
24953 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24955 * Control.cs: Brought back our old UpdateZOrder method as a private
24956 function and switched our calls from UpdateZOrder to the new one.
24957 This fixes the Paint.Net canvas disappearing bug.
24959 2006-05-18 Jackson Harper <jackson@ximian.com>
24962 * ThemeWin32Classic.cs:
24963 * InternalWindowManager.cs: Move the drawing into the theme,
24964 expose everything the theme should need from the window manager.
24966 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24968 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
24969 from the call to NativeWindow to avoid walking up the parent chain
24970 further than needed (speeds up setting cursors and avoids setting
24971 the wrong cursor if a parent has another cursor defined)
24972 * Cursor.cs: When loading an icon as cursor, MS uses the center of
24973 the icon as hotspot, not what's contained as hotspot in the icon
24974 file. This fixes the perceived drawing offset seen with Paint.Net
24976 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24979 - Store the calculated rectangle in Hwnd object and use it when
24980 setting the client size
24981 - Force Toolwindows to always be type Dock, to ensure they're on top
24983 2006-05-18 Mike Kestner <mkestner@novell.com>
24985 * ComboBox.cs: first pass at ComboBox rework. Layout is more
24986 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
24987 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
24988 Substantial refactoring to remove confusing nested classes. Coding
24989 standard and Get+Set->property refactorings. Shift to index based
24990 highlighting in ComboListBox instead of constantly using IndexOf and
24991 Items[]. Add invalidations on resize for DropDownList to fix ugliness
24992 in FileDialog growth. Draw borders manually since Simple mode needs
24993 to look like two independent controls. Make listbox border
24994 conditional to DropDownStyle. Improved OwnerDraw support.
24996 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
24998 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
24999 Don't set the disposed graphics to null, so we can throw the "right"
25000 exception if the graphics is reused later (added a flag to avoid
25001 double disposing). Some behaviours are different under 2.0 and are
25002 filled under bug #78448.
25004 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25006 * Control.cs: When double-buffering is enabled, we need to reset
25007 our graphics context between paint calls. Otherwise, any
25008 transformations and other alterations on the context will
25009 become cumulative (#77734)
25011 2006-05-18 Mike Kestner <mkestner@novell.com>
25013 * ListView.cs: do focused item selection like MS on clicks.
25014 Rework focus handling for ItemControl so LostFocus invalidates as
25016 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
25017 the ListView ItemControl has focus.
25019 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
25021 * XplatUIX11.cs: If client_window ends up being width or height zero
25022 due to border settings, move it off window inside whole_window (#78433)
25024 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
25026 * Mime.cs: Shrink the mime file cache correctly.
25028 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
25030 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
25032 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25034 * XplatUIX11.cs (AddExpose): More sanity checks
25036 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25039 - AddExpose: Don't add expose ranges outside the size of our
25041 - Cast opacity values to Int32 to avoid crashes with certain
25043 - Added disabled code paths that protect against illegal cross-
25044 thread painting (Developers.exe)
25046 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25048 * ProgressBar.cs: Invalidate the control when it's resized
25049 since block size is based on control size. (#78388)
25051 2006-05-16 Miguel de Icaza <miguel@novell.com>
25053 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
25054 of setting the incoming argument to the "reset" value, we set the
25055 this.datamember to string.empty (before we were invalidating the
25060 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25062 * Form.cs: Only apply transparency settings after the form
25063 is created. (Fixes #77800)
25065 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25067 * ApplicationContext.cs: Grab the HandleDestroyed event so
25068 we know when to fire OnMainFormClosed
25070 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25072 * Application.cs: Introduced sub-class to allow tracking of
25073 threads and centralized triggering of the event mess for
25074 ThreadExit, AppExit, etc.. (#76156)
25076 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
25079 - Do not return a null icon index value for a mime subclass.
25080 Instead try the main mime type class too.
25081 - Seems that some newer distributions don't have a link to some
25082 gnome default icons anymore. So check the default gnome dir too.
25085 2006-05-16 Jackson Harper <jackson@ximian.com>
25087 * MdiClient.cs: Don't paint the parent background image if we have
25088 our own background image.
25090 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25093 - PerformLayout: Do not shrink space filled by DockStyle.Fill
25094 controls, all filled controls are supposed to overlap (#78080)
25095 - UpdateZOrder is supposed to update the control's z-order in the
25096 parent's z-order chain. Fixed to behave like that
25097 - BringToFront: Removed obsolete code
25098 - SendToBack: Simplyfied
25099 - SetChildIndex: Trigger layout calculations when Z-order changes
25100 since layout is done by z-order
25102 2006-05-16 Chris Toshok <toshok@ximian.com>
25104 [ fixes bug #78410 ]
25105 * DataGrid.cs (set_AlternatingBackColor): use
25106 grid_drawing.InvalidateCells instead of Refresh().
25107 (set_BackColor): call grid_drawing.InvalidateCells.
25108 (set_BackgroundColor): use Invalidate instead of Refresh.
25110 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
25111 invalidate the cell area.
25113 2006-05-15 Chris Toshok <toshok@ximian.com>
25115 [ fixes bug #78011 ]
25116 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
25117 on to DataGridPaintRow.
25118 (DataGridPaintRow): take a clip argument, and only draw the cells
25119 which intersect it. same with the not_usedarea.
25121 * Theme.cs (DataGridPaintRow) add @clip parameter.
25123 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
25124 XplatUI.ScrollWindow.
25125 (ScrollToRow): same.
25127 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
25128 with last column which was causing a gray swath to appear with the
25129 XplatUI.ScrollWindow code.
25131 2006-05-15 Chris Toshok <toshok@ximian.com>
25133 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
25134 use XplatUI.ScrollWindow.
25135 (VerticalScrollEvent): use XplatUI.ScrollWindow.
25137 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25139 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
25141 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25143 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
25144 file since there are no equivalent X11 cursors
25146 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25148 * MonthCalendar.cs : DateTimePicker should reflect selected date
25149 on mouse*up*, not mouse*down*. Fixed originally reported part of
25152 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25154 * TabControl.cs : When argument index is equal or more than tab
25155 count, just ignore. Fixed bug #78395.
25157 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25159 * Control.cs: Dispose all child controls when control is diposed (#78394)
25161 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25163 * ColorDialog.cs: Finally it is possible to select the color with
25166 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25168 * PrintDialog.cs: Fix typo
25170 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25172 * PrintDialog.cs: PrintDialog is not resizable
25173 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25174 color. Made some ToolBar drawing methods protected virtual.
25176 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
25178 * PrintDialog.cs: Implementation of the PrintDialog
25180 2006-05-12 Chris Toshok <toshok@ximian.com>
25182 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25183 thumb, instead use MoveThumb. This has the side effect of making
25184 most of the other thumb moving machinery use MoveThumb as well.
25185 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25186 need to actually invalidate the rectangle where the new thumb will
25188 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25189 We force an Update() after, so it's not as fast as it could be,
25190 but at least there's zero flicker and no droppings.
25191 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25192 (UpdateThumbPos): add another argument (dirty), which says whether
25193 or not to calculate/add dirty regions which we later invalidate.
25194 For cases where we know we're going to use MoveThumb, we pass
25195 false for this. Otherwise, pass true.
25197 2006-05-12 Jackson Harper <jackson@ximian.com>
25199 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
25202 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
25204 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
25205 and GetClipRegion methods and UserClipWontExposeParent property.
25206 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
25207 overriding UserClipWontExposeParent property, setting to false, since
25208 Win32 handles the required expose messages to draw our clipped parent
25210 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
25211 PaintEventStart to set the user clip region if set.
25213 - Now internally tracking the Region for the control since we need to
25214 store it if the handle is not yet created and only set it when it
25215 becomes created. Before setting the region forced handle creation
25216 - Added code to draw the parents underneath a user-clipped region
25217 * Hwnd.cs: Added UserClip property
25219 2006-05-12 Chris Toshok <toshok@ximian.com>
25221 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
25222 (set_Maximum): same.
25223 (set_Minimum): same.
25224 (set_SmallChange): same.
25225 (OnMouseUpSB): remove the call to refresh when releasing the
25226 thumb. We shouldn't need it.
25228 2006-05-12 Miguel de Icaza <miguel@novell.com>
25230 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
25231 AutoSize set to None, we do not need to relayout everything, we
25232 just need to invalidate the current region.
25234 (Draw): Do not draw the entire ClientArea, just redraw the
25235 clip area being passed.
25237 * MdiClient.cs: Make MdiClient constructor with the Form argument
25240 2006-05-12 Jackson Harper <jackson@ximian.com>
25242 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
25243 parents background image, but strangely not their own.
25244 - (DrawStatusBarPanel): Take into account horizontal alignment
25245 when drawing the strings and icons.
25247 2006-05-12 Mike Kestner <mkestner@novell.com>
25249 * ListBox.cs: avoid invalidations for focus when the collection is
25252 2006-05-12 Chris Toshok <toshok@ximian.com>
25254 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
25255 invalidate the entire thumb area. Call InvalidateDirty which
25256 limits the redraw to the thumb itself and surrounding pixels.
25258 * XplatUIX11.cs (ScrollWindow): optimize copying.
25260 2006-05-12 Chris Toshok <toshok@ximian.com>
25262 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
25263 Figure out the positioning/layout in a single pass instead of
25264 multiple recursive invocations. Speeds up the initial display of
25265 the data grid. Also, make many things private that were
25266 originally public but unused outside this class.
25268 2006-05-11 Jackson Harper <jackson@ximian.com>
25270 * MdiClient.cs: Improved layout code.
25272 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
25274 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
25275 not SelectedObject.
25277 2006-05-11 Chris Toshok <toshok@ximian.com>
25279 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
25280 union of that will always be {0,0,width,height}.
25282 2006-05-11 Jackson Harper <jackson@ximian.com>
25284 * Form.cs: Match MS's DefaultSize for forms (they must have
25285 changed the size in sp2).
25287 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25289 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
25291 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25293 * TextControl.cs : Fixed bug #78109. This incorrect position
25294 comparison caused crash on automatic line split.
25295 * TextBoxBase.cs : reduce duplicate code.
25297 2006-05-10 Jackson Harper <jackson@ximian.com>
25299 * MdiClient.cs: Active form is only sent to the back when using
25300 the Next form functionality, when a form is clicked the current
25301 active shouldn't be sent to the back.
25302 - Layout the mdi windows when the container is first made visible.
25303 * Form.cs: Give the MdiClient a ref to the containing form when we
25306 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25308 * LinkLabel.cs : link_font could be uninitialized, so populate one
25309 before actual use. Fixed bug #78340.
25311 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25313 * XplatUIX11.cs : clipboard format native value is IntPtr.
25316 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25319 - Instead of showing context menus directly we send WM_CONTEXTMENU,
25320 which is passed up the parent chain by DefWndProc
25321 - We now handle WM_CONTEXTMENU to display any menu, or pass it
25322 to DefWndProc (#77956)
25323 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
25325 2006-05-10 Jackson Harper <jackson@ximian.com>
25327 * MdiClient.cs: We need to remove the controls from the mdi
25328 collection, when we close the window.
25329 * MdiWindowManager.cs: Special handling of closing mdi windows.
25330 * InternalWindowManager.cs: Make the close method virtual so the
25331 mdi window manager can handle it specially.
25333 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
25336 - Recalculate grid when the data source has changed
25337 - Matches styles provided by user from all data sources types
25338 * DataGridTableStyle.cs: For columns that provided by the user set the
25339 with the preferred value is there was unassigned.
25340 * CurrencyManager.cs: throw OnItemChanged event
25342 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25344 * PictureBox.cs: Don't animate until handle is created. Start animation
25345 when handle is created.
25347 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25349 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
25351 * XEventQueue.cs: We don't need to provide the extra info
25353 2006-05-10 Jackson Harper <jackson@ximian.com>
25355 * MdiClient.cs: If the mdi clients parent form has a background
25356 image set, we draw that background image for the mdi area's
25359 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25361 * TextBoxBase.cs: Set IBeam cursor (#78347)
25363 2006-05-10 Mike Kestner <mkestner@novell.com>
25365 * ToolBar.cs: fix some text padding issues with ButtonSize
25366 calculation. Update the default size to match MS documentation.
25367 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
25368 button size. Fixes #78296.
25370 2006-05-10 Mike Kestner <mkestner@novell.com>
25372 * ListBox.cs: use is_visible for scrollbar positioning in case the
25373 control isn't on screen yet. Fix off by one with Right vs Width
25374 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
25376 2006-05-10 Jackson Harper <jackson@ximian.com>
25378 * X11Dnd.cs: Drop to a control with another control on top of it.
25379 * ToolBar.cs: Work on a copy of the buttons list, so that it can
25380 be modified in click handlers. TODO: Look for similar problems in
25383 2006-05-09 Jackson Harper <jackson@ximian.com>
25385 * Form.cs: Window managers need the old window state when setting
25387 * InternalWindowManager.cs: Allow the base mdi window manager to
25388 handle more of the MDI only stuff (like maximize buttons).
25389 * MdiWindowManager.cs: Fix some snafus in changing the window
25390 state. Add all the menu functionality, for both popup and
25392 * MdiClient.cs: When a new form is selected the currently
25393 activated form is sent to the back, this matches MS.
25394 - Implement a new method to activate the next mdi child window.
25396 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25399 - Added new InternalCapture method to allow controls to prevent
25400 the capture behaviour on the click handlers
25401 - Switched to use InternalCapture
25403 - Using InternalCapture to prevent mouse captures from being released
25404 on mouse button release (Fixes #78100)
25405 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
25406 returns Form borders if a caption is present. (Fixes #78310)
25408 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25410 * TreeNode.cs: Changed serialization .ctor to not require every field
25411 to be present. (#78265)
25412 * OwnerDrawPropertyBag.cs: Added serialization .ctor
25414 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
25416 * MimeIcon.cs: for is faster than foreach for strings.
25418 2006-05-05 Mike Kestner <mkestner@novell.com>
25420 * CheckedListBox.cs: update check handling code to not use selected.
25421 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
25422 behavior for visual feedback, motion response, shift/ctrl handling,
25423 and properly deal with all 4 selection modes. Updates to bounds
25424 handling logic. Add scroll wheel support. [Fixes #77842]
25426 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25429 - Moved adding of Implicit controls into .ctor. That way, subsequent
25430 creation of the controls will not cause them to think they are
25431 toplevel windows (fixes #78200 header problem)
25432 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
25433 - Switched visibility setting of header control to use internal field
25434 to avoid triggering handle creation
25435 - Now checking if handle is created before causing a refresh when items
25436 are added (This makes us now match handle creation time with MS)
25437 * Splitter.cs: Removed loading of private splitter cursor, switched to
25438 Cursors version now that that is loading the right ones
25439 * Cursors.cs: Load proper splitter cursors from resources
25440 * Cursor.cs: Added second method of loading resource cursors for the
25441 VS.Net users amongst us
25443 2006-05-05 Mike Kestner <mkestner@novell.com>
25445 * ListView.cs: give header_control a minimum size based on the
25448 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25450 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
25451 window seems to do that with metacity, so set that type. (#78120)
25453 2006-05-05 Mike Kestner <mkestner@novell.com>
25455 * ListViewItem.cs: fix Details mode checkbox layout bug.
25456 * ThemeWin32Classic.cs: draw a ListView column header for unused space
25457 at the end of the header, if it exists. [Fixes for #78200]
25459 2006-05-04 Jackson Harper <jackson@ximian.com>
25461 * MdiClient.cs: Add a helper property to get the container form.
25462 * MdiWindowManager.cs: We have to make sure to use the menu origin
25463 when drawing the icons and buttons, this fixes maximized window
25464 icons/buttons on win32.
25465 * InternalWindowManager.cs: Reset the restore captions when a
25466 window goes from Maximized to Minimized and vice versa. Move the
25467 DrawMaximizedButtons into the MdiWindowManager source, tool
25468 windows can't be maximized. NOTE: This could use a little
25469 refactoring if time ever permits.
25471 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25473 * TextBox.cs: Add MWFCategoryAttributes
25474 * TextBoxBase.cs: Add MWFCategoryAttributes
25475 * Form.cs: Add MWFCategoryAttributes
25477 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25479 * Control.cs: Add MWFCategoryAttributes
25480 * ScrollableControl.cs: Add MWFCategoryAttributes
25482 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
25484 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
25485 Divider is true. Fix a little glitch in PropertyToolBar
25488 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
25491 - Dispose: Call base.Dispose, this causes the disposed event
25492 to be fired (and probably other, more important stuff)
25493 - SetVisibleCore: Set is_visible to true after creating the
25494 window so that the window still gets created invisible (if
25495 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
25496 to generate a WM_ACTIVE message
25497 * Form.cs: Call Dispose when we want to destroy the window, instead of
25498 just destroying the handle (Dispose will do that for us)
25500 - RootWindow also needs a queue, so we can properly process the
25501 property change events from RootWindow (like Activate)
25502 - Generatic synthetic WM_ACTIVE message when the active window is
25505 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25507 * LinkLabel.cs: Trigger a recalc of our label dimensions when
25510 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25512 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
25513 for determining width and height (image might not be assigned if
25514 we're drawing an imagelist)
25516 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25518 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
25519 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
25521 * Theme.cs: No longer returns hardcoded menu height, instead calls
25523 * Form.cs (OnLoad): Scaling happens before triggering Load events
25526 2006-05-01 Mike Kestner <mkestner@novell.com>
25528 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
25530 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25532 * TextBoxBase.cs: Removed Fixme
25533 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
25535 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25538 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
25539 the rectangle relative to the parent, considering borders. We
25540 don't really want that.
25541 - ScrollWindow: Fixed warning to be more understandable
25542 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
25543 scrollbars and scroll only the visible area
25544 * RichTextBox.cs: Removed debug output
25546 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25548 * NumericUpDown.cs (Text): Just use base
25549 * UpDownBase.cs: Ensure txtView is created before using it
25551 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25553 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
25554 casting to IntPtr to avoid 64bit overflow errors
25556 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25559 - AllowDrop: Don't force handle creation.
25560 - CreateHandle: Added call to tell driver if we're allowed to drop
25562 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25564 * FileDialog.cs: Remember the last directory not only for the
25565 current instance but also for new FileDialog instances.
25567 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25569 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
25570 broke sending async messages
25572 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25575 - ScrollWindow: Fixed method. We finally generate expose events again
25576 for scrolled areas. This was causing 'garbage' when scrolling
25577 textbox and other controls that used ScrollWindow
25578 - Switched from using the regular queue for paint events to the MS
25579 model of 'generating' paint events when the queue is empty.
25580 We use the new XQueueEvent.Paint subclass to store which windows
25582 - AddExpose now takes the x/y/width/height of the exposed area
25583 and inserts the window into the paint queue if not already there
25584 - InvalidateWholeWindow: Switched to use new AddExpose method
25585 - UpdateMessageQueue: Added which queue to monitor for paint events
25586 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
25587 the unlikely case nothing above handles it. We reset the expose
25588 pending states to get them off the queue.
25589 - GetMessage: Now pulls a paint event if no other events are in the
25591 - Invalidate: Switched to new AddExpose method
25592 - PeekMessage: Updated to understand pending paint events
25593 - UpdateWindow: Fixed logic bug. We were only updating if the window
25594 didn't need updating. Also switched to sending WM_PAINT directly,
25596 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
25597 and random access Remove(). The random access is needed to handle
25598 UpdateWindow() where a WM_PAINT is sent directly without accessing
25600 * ScrollBar.cs: Added Update() calls to cause immediate updates to
25601 allow for better feedback when scrolling. Scrollbars are small and
25602 the immediate update should make it 'feel' more responsive without
25603 slowing things down. ScrollBar still needs it's invaliate logic
25604 updated to not always invalidate the whole bar on certain changes.
25606 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25609 (BackColor): if the control does not support a transparent background,
25610 return the default backcolor when the parent backcolor is transparent.
25612 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
25614 * Application.cs: Updated to new StartLoop/GetMessage API
25615 * RichTextBox.cs: Provide some output on RTF parsing errors
25616 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
25617 new queue_id argument to GetMessage and PeekMessage to allow faster
25618 handling of per-thread queues in drivers.
25619 * Hwnd.cs: Added Queue tracking and property
25620 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
25621 * XEventQueue.cs: Added thread trackingA
25622 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
25624 - Implemented new per-thread queue
25625 - GetMessage: Fixed return/break behaviour on several cases. We were
25626 returning stale messages in some cases, instead of just processing
25629 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25631 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
25633 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
25635 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
25636 fixed off-by-one comparisons between Width/Height and Right/Bottom.
25638 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25640 * PropertyGridView.cs: Fix drop down width.
25642 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25644 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
25645 a mess in DrawToolBar, so I removed one of them.
25647 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25649 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
25650 needed (clip). Otherwise we get artifacts.
25652 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25654 * FixedSizeTextBox.cs: Added constructor to allow specifying which
25656 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
25657 and switched FixedSizeTextBox to only be fixed vertical (#78116)
25658 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
25659 if it matches the scale base font (avoids unneeded scaling)
25661 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25663 * X11DesktopColors.cs: One gtk_init_check should be enough
25665 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25667 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
25670 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25673 - Generate OnTextChanged for Backspace even if we're only deleting
25674 the current selection
25675 - When setting the Text property, only select all text if the
25676 control does not have focus when it is being set. Otherwise
25677 just place the cursor at the beginning of the control
25679 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25681 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
25682 Added a little helper to draw PropertyGrid ToolBar with a different
25683 border and a different BackColor.
25684 * PropertyGrid.cs: Some background parts didn't get painted with the
25685 correct background color. Added a class that helps us to draw the
25686 correct border for PropertyGridView and a class that helps us to
25687 draw ToolBars with a different backcolor
25688 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
25690 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
25692 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
25693 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
25695 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25697 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
25698 into the palette entries. Also, since we're working on a copy
25699 we needed to copy the palette back onto the bitmap.
25700 * Cursor.cs: Same fix as XplatUIWin32.cs.
25702 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25704 * ImageListStreamer.cs: Need to read the var (or we're off)
25706 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25708 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
25709 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
25710 TextBoxBase.cs: Unused var fixes
25711 * AxHost.cs: Small 2.0 fix
25712 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
25713 as it seems that is what at least Metacity expects. This will make
25714 icons show up on 64bit platforms. We still have some 64bit size
25715 issues, though, since the startup app window size still won't match.
25717 2006-04-25 Mike Kestner <mkestner@novell.com>
25719 * *.cs: cleanup newly reported exception var unused warnings.
25721 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25723 * ThemeWin32Classic.cs: Button image alignment now matches exactly
25726 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25728 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
25729 image. The image position is always the same, no matter if the
25730 button is pressed or not.
25732 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25734 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
25735 selection and set the correct filename for SaveFileDialog.
25736 Patch by Emery Conrad.
25738 2006-04-24 Mike Kestner <mkestner@novell.com>
25740 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
25741 check for item.X outside the ClientRect instead of item.Y. Fixes
25744 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25746 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
25747 trust that value blindly and do some sanity check. Fixes bug #77814.
25749 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25751 * ImageListStreamer.cs: save the mask as a 1bpp image.
25753 2006-04-21 Mike Kestner <mkestner@novell.com>
25755 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
25756 pass Checked and Indeterminate to the Theme Engine. Improve
25757 encapsulation with ListBox.
25758 * ListBox.cs: Keep a StringFormat instead of calculating it every item
25759 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
25760 nested types. Move all CheckState functionality to CheckedListBox.
25761 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
25762 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
25763 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
25764 single base list. Fix scrollbar sizing and placement to mirror MS.
25765 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
25767 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
25768 for CheckedListBox by using new DrawItemState info. Center the
25769 checkboxes on the items. Use new StringFormat property.
25771 2006-04-18 Jackson Harper <jackson@ximian.com>
25773 * Form.cs: MdiChildren don't do default locations the same way as
25774 regular forms. This prevents a crash when trying to position the
25777 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
25779 * PropertyGridTextBox.cs: Formatting, copyright
25780 * PropertiesTab.cs: Formatting
25781 * PropertyGrid.cs: Formatting
25782 * PropertyGridView.cs: Formatting, fix drop down, enabled double
25783 click toggling of values
25785 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
25787 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
25788 * Control.cs (.ctor): verify_thread_handle is static, don't reset
25789 every time a control is created
25790 * Application.cs: Removed obsolete EnableRTLMirroring method
25792 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
25794 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
25795 SelectedIndex to -1. Fixes bug #78121.
25797 2006-04-17 Jackson Harper <jackson@ximian.com>
25799 * Binding.cs: Handle null values for Current and BindingContext.
25800 This occurs when binding is a little delayed.
25801 * CurrencyManager.cs: return null for Current when there are no
25803 - Hookup to the listchanged event on the DataView and update
25804 bindings when the list is changed. This fixes late binding of
25807 2006-04-17 Jackson Harper <jackson@ximian.com>
25810 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
25813 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
25815 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
25817 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
25818 with the correct ButtonState
25820 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
25822 * XplatUIX11.cs: Improved distinguishing between window types to
25823 tell the WM a type closer to what the app wants (Fixes #78107)
25825 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25827 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
25830 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25832 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
25833 drawing code to reflect the size grip changes
25835 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25837 * ImageListStreamer.cs: fix handling of the mask that follows the main
25838 bitmap when deserializing and serialize it properly. The generated mask
25839 should better be a 1bpp image, but I'll do that later.
25841 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25843 * FileDialog.cs: Show something in the DirComboBox on *nix if the
25844 path doesn't fit into some of our Current.Places
25846 2006-04-13 Jackson Harper <jackson@ximian.com>
25848 * ComboBox.cs: Use borders instead of drawing our own decorations,
25849 try to obey correct rules for heights.
25852 * ThemeClearLooks.cs:
25853 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
25854 this is now handled by borders.
25855 - Remove unused DrawListBoxDecorationSize method.
25857 2006-04-13 Mike Kestner <mkestner@novell.com>
25859 * MenuAPI.cs: null guarding for the disbled click check fixes crash
25862 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25864 * ThemeWin32Classic.cs:
25865 - Fixed CPDrawStringDisabled
25866 - Corrected drawing of disabled menu items
25867 - Fixed drawing of disabled radio buttons (bug #78095)
25868 - Draw check in a disabled CheckBox with color ControlDark
25870 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25872 * Form.cs: Use the provided width when calculating the menu size;
25873 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
25874 and ClientSize.Width won't be updated yet
25875 * Application.cs: Use Visible instead of Show() to make form visible,
25876 this way we create the handle later and menusize is considered
25878 2006-04-12 Mike Kestner <mkestner@novell.com>
25880 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
25883 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25885 * TextBox.cs: Implemented context menu
25887 2006-04-12 Mike Kestner <mkestner@novell.com>
25889 * ListView.cs: implement box selection. fixes #77838.
25890 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
25892 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25894 * XplatUIX11.cs: Added setting of window type when transient window
25895 is created (metacity would move it otherwise)
25896 * X11Structs.cs: Added WINDOW_TYPE atoms
25897 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
25898 background (the control is Opaque but still wants transparent
25901 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25903 * Control.cs: Added OnPaintBackgroundInternal to allow controls
25904 that set Opaque but don't mean it (like all ButtonBase-derived
25905 controls) to still draw their background
25906 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
25909 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25911 * Control.cs (PaintControlBackground): Set the graphics object
25912 on our PaintEvent to null to prevent it from being disposed
25913 when the PaintEvent gets disposed
25915 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
25917 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
25918 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
25920 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25923 - Added transparency check to BackColor property. Transparent
25924 backgrounds are only allowed if the control styles permit it
25925 - Added recursive painting of parent control background and
25926 foreground if a control with a transparent backcolor is drawn
25927 (Thanks to Tim Ringenback for providing his 'hack' as a base
25928 for this patch) Fixes #77985 and #78026.
25929 - Added Opaque style check before calling OnPaintBackground, no
25930 need to draw the background if the control is opaque
25931 - Removed ControlAccessibleObject owner variable (inherited from
25932 base, no need to define again)
25933 - Added some documentation links explaining the drawing events
25936 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25938 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
25939 that the affected control is the located at the left border of our
25940 parent (Fixes #77936)
25942 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25944 * TextBoxBase.cs: When rendering disabled or readonly controls,
25945 draw the background with 'Control' instead of 'Window' color as
25946 long as the user hasn't specifically set a color
25948 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25950 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
25951 since that won't be updated if the user types text (only if it's
25952 programatically set)
25954 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25956 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
25957 layout changes do to app-triggered resizes will have the proper
25958 display rectangle for layout
25960 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
25962 * ThemeWin32Classic.cs:
25963 - Make use of the SystemBrushes and SystemPens wherever possible
25964 - Corrected some highlight colors
25965 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
25967 * Theme.cs: Added Empty field to CPColor struct
25969 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25971 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
25972 is displayed when calculating the display rectangle. Thanks to Mike
25973 for teaching me the err of my ways.
25975 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
25977 * ScrollableControl.cs:
25978 - Rewrote DisplayRectangle code, now returning the proper x/y coords
25979 (instead of 0,0) and we now return the real width/height instead of
25980 just the clientrectangle, adjusted for padding. The rectangle is
25981 now cached and created by the new CalculateDisplayRectangle method.
25982 - Created new CalculateDisplayRectange method, which basically does
25983 what get_DisplayRectangle() did originally, but now using the
25984 right edge instead of DisplayRectangle to determine the size of
25986 - get_Canvas(): Fixed it to properly calculate canvas for
25987 right/bottom controls which seem to be placed to the right/bottom
25988 of any controls that have a fixed location
25989 - Removed TODO that's taken care of
25990 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
25991 and SetDisplayRectLocation according to new MSDN2 docs
25992 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
25993 event when that is called, this is added for compatibility
25994 - ScrollControlIntoView(): Implemented.
25995 - Switched scrollbars to be implicit, they shouldn't be selectable
25996 * ContainerControl: Now that ScrollControlIntoView is implemented, we
25997 call it when the active control is set/changed
25998 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
25999 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
26000 implicit_control variable (used for native Win32 message generation)
26001 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
26002 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
26003 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
26004 * XplatUIStructs.cs: Added ScrollBarCommands enum
26006 2006-04-10 Jackson Harper <jackson@ximian.com>
26009 * CheckedListBox.cs:
26016 * PrintPreviewControl.cs:
26022 * UpDownBase.cs: Fixup base event overrides.
26024 2006-04-06 Mike Kestner <mkestner@novell.com>
26026 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
26027 all user-initiated value changes to min <= value <= max-thumbsz+1.
26028 (set_Value): check for vert/horiz when calculating new thumb position.
26029 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
26031 (OnMouseMoveSB): refactor the thumb dragging code and refine
26032 invalidation logic to reduce flicker.
26033 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
26034 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
26035 (UpdateThumbPosition): small code readability cleanup
26037 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
26039 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
26042 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
26044 * ThemeNice.cs: Use a better graphics effect when a button is pressed
26046 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
26048 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
26049 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
26050 This dramatically reduces the number of Pen.Dispose calls.
26051 Where possible call ResPool methods only once instead of calling it
26052 over and over again (for example for the same color).
26054 2006-04-06 Mike Kestner <mkestner@novell.com>
26056 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
26057 Also remove an unused private field on the collection. Fixes #77972.
26059 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
26061 * ThemeNice.cs: Added ToolBar drawing code
26063 2006-04-06 Mike Kestner <mkestner@novell.com>
26065 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
26066 I'm assuming that means we need to look up the toplevel for the
26067 provided control. Fixes the crash trace in #77911 but exposes another
26068 crash in some strange reflection usage in NDocGui.
26070 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
26072 * ThemeNice.cs: Gave it a little silver touch and added Images
26074 * FontDialog.cs: FontDialog is not resizable
26075 * FileDialg.cs: Added SizeGripStyle.Show
26077 2006-04-05 Jackson Harper <jackson@ximian.com>
26079 * KeyboardLayouts.cs: Remove warning.
26081 2006-04-05 Jackson Harper <jackson@ximian.com>
26083 * Control.cs: Enable OnPaintInternal so we can use it for drawing
26084 all of our controls instead of Paint +=.
26099 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
26100 use OnPaintInternal. Remove Width/Height and Visible checks in
26101 paint handler, this is done at a higher level now.
26102 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
26103 * PaintEventArgs.cs: Add a handled flag so controls that don't
26104 want anymore painting after OnPaintInternal can make sure OnPaint
26107 2006-04-05 Mike Kestner <mkestner@novell.com>
26109 * Form.cs: fix the menu WndProc hacks to respect the native enabled
26110 state of the form, so that we don't process events when Modal dialogs
26111 are up. Fixes #77922.
26113 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
26115 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
26118 2006-04-05 Mike Kestner <mkestner@novell.com>
26120 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
26122 2006-04-05 Mike Kestner <mkestner@novell.com>
26124 * ListView.cs (HeaderMouseMove): null guarding for the over column
26125 when setting up the drag_to_index. Fixes #78015.
26127 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
26129 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
26130 in the taskbar. Transient windows seem to accomplish that.
26132 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
26135 - Re-enabled CreateParams.X/Y code for FormStartPosition
26136 - Added code for manual placement when creating the Control
26137 - Incomplete patch to treat MDI forms differently when
26138 setting the ClientSizeCore. (Still need to figure out handling
26141 - When we're explicitly setting the X/Y position of a non-Child
26142 window, let the WM know. Metacity really wants this.
26144 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26146 * ThemeNice.cs: Added CPDrawButton
26148 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26150 * ThemeNice.cs: Changed the color for focused buttons and activated
26151 the arrows for small scroll buttons.
26153 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26155 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
26156 anymore. Changed some method modifiers to protected (virtual)
26157 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
26159 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
26160 Updated drawing of menus, buttons and progressbars; added
26163 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26165 * ImageListStreamer.cs: implemented serialization/deserialization
26168 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
26170 * ThemeWin32Classic.cs:
26171 - Removed all the DrawFrameControl stuff; CPDrawButton,
26172 CPDrawCheckBox and CPDrawRadioButton are now handled directly
26174 - Updated and corrected the drawing code of CPDrawButton,
26175 CPDrawCheckBox and CPDrawRadioButton to better match ms
26176 - Updated theme checkbox and radiobutton code to use the CP*
26179 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26181 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26184 2006-03-31 Jackson Harper <jackson@ximian.com>
26186 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26188 * UpDownBase.cs: Don't CreateGraphics manually, use a
26189 Refresh. Ideally we would invalidate the correct areas here.
26191 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26194 - We now track the mapping state of windows. If a window (or
26195 one of it's parents) is not mapped we no longer permit
26196 WM_PAINT messages to be generated since we'd otherwise get
26197 lots of BadMatch X errors. Jackson did all the work figuring
26199 - Destroying the caret if the window it's contained in is
26200 destroyed. Can't use regular DestroyCaret method since it
26201 might fall into a drawing function (trying to remove the
26202 caret) and with that generate new BadMatch errors. Again,
26203 Jackson tracked this down.
26204 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
26205 make sure we send the messages to all windows. (The old code
26206 would send the WM_DESTROY to the window, and then all child
26207 windows would be 'gone' because the WM_DESTROY handle lookup
26208 would no longer find the destroyed window)
26209 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
26210 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
26212 2006-03-31 Jackson Harper <jackson@ximian.com>
26214 * ScrollableControl.cs: Dont recalc if we are not visible.
26216 2006-03-31 Mike Kestner <mkestner@novell.com>
26218 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
26219 the visibility branch.
26221 2006-03-31 Jackson Harper <jackson@ximian.com>
26223 * ScrollBar.cs: Cap values when incrementing/decrementing.
26225 2006-03-31 Mike Kestner <mkestner@novell.com>
26227 * MenuAPI.cs: setup menu.tracker for popup/context menus.
26228 * ToolTip.cs: guard against timer expirations with no active control.
26229 Not sure why it happened.
26231 2006-03-31 Mike Kestner <mkestner@novell.com>
26233 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
26235 * ToolTip.cs: Position the tooltip based on where the cursor is at
26236 popup time, not at MouseEnter time. Add a Down state so that we don't
26237 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
26238 positioning offset. Lookup DisplaySize at positioning time, since it
26239 can theoretically change during invocation.
26240 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
26241 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
26243 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26245 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
26246 Fixes behaviour when the Text property of the box is String.Empty
26248 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26250 * XplatUIX11.cs: Only send mouseleave for our client windows, not
26251 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
26254 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26256 * FileDialog.cs: Visual enhancement for the popup buttons in
26259 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26261 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
26264 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
26266 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
26267 highlighted menu items to match ms
26269 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
26271 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
26273 2006-03-30 Mike Kestner <mkestner@novell.com>
26275 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
26276 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
26277 go active to account for HotLight to Selected transition.
26278 * MenuItem.cs: add internal Selected prop. Fill out the Status
26279 property by calculating it from item info. Add HotLight,
26280 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
26282 2006-03-30 Mike Kestner <mkestner@novell.com>
26284 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
26286 2006-03-29 Jackson Harper <jackson@ximian.com>
26288 * Form.cs: Implement TODO.
26290 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26292 * PrintPreviewDialog.cs: Implemented missing methods and events; still
26293 missing proper dialog setup in the constructor
26295 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26297 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
26299 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
26300 - Fixed ResetBindings and removed TODO
26301 - Added check for cross-thread calls to get_Handle()
26302 - Added Marshaller attribute for set_Font to satisfy class status
26303 * FontDialog.cs: Removed TODOs that seemed implemented
26304 * UpDownBase.cs: Removed unneeded TODO and Fixme
26305 * MessageBox.cs: Implemented support for Default button and removed TODO
26306 * FileDialog.cs: Removed obsolete TODO
26307 * DomainUpDown.cs: Removed obsolete TODO
26308 * ButtonBase.cs: Removed obsolete TODO
26309 * XplatUIWin32.cs: Removed obsolete TODO
26311 - Removed obsolete TODO
26312 - Calling CheckAcceptButton when the acceptbutton is changed to allow
26313 internal status updates
26314 - Making sure the active control is selected when the control is created
26315 * CurrencyManager.cs: Removed obsolete TODO
26317 2006-03-29 Mike Kestner <mkestner@novell.com>
26319 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
26320 of PrintPreviewDialog and RichTextBox.
26322 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26324 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
26325 DarkDark, Light and LightLight colors for a specific color
26326 * ThemeWin32Classic.cs:
26327 - Use Button drawing code to draw RadioButtons and CheckBoxes with
26328 Appearance = Button
26329 - Make use of the new ResPool helper CPColor
26330 - Draw ProgressBar and StatusBar with correct 3D borders
26332 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26334 * ColorDialog.cs: Return selected color. Fixes bug #77940.
26336 2006-03-28 Mike Kestner <mkestner@novell.com>
26338 * ListView.cs: fix Icon layout to plan for scrollbar widths when
26339 calculating col/row counts.
26341 2006-03-28 Mike Kestner <mkestner@novell.com>
26347 switch to explicit interface method implementation for some methods
26348 corcompare identifies as inconsistent with MS.
26350 2006-03-28 Mike Kestner <mkestner@novell.com>
26354 add a few missing methods from the class status output.
26356 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
26358 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
26361 2006-03-28 Mike Kestner <mkestner@novell.com>
26363 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
26365 2006-03-27 Mike Kestner <mkestner@novell.com>
26367 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
26368 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
26370 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
26372 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
26374 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26376 * ThemeWin32Classic.cs:
26377 - GroupBox: Inserted a little gap between the text and the lines
26379 - Made the code in CPDrawBorder3D more readable
26380 - Corrected the drawing location of the up and down arrows in
26383 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26385 * ControlPaint.cs: Corrected line widths in DrawBorder for
26386 ButtonBorderStyle Inset and Outset
26388 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26390 * ThemeWin32Classic.cs:
26391 - Rewrote the totally broken CPDrawBorder3D method. That was
26392 one of the main problems for the terrific ThemeWin32Classic
26394 - Updated and corrected Button drawing
26395 - Correct the dimensions of the SizeGrip to match ms ones
26396 - Removed a small drawing glitch in DrawComboBoxEditDecorations
26397 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
26398 Border3DStyle.Sunken to match ms.
26400 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26402 * ThemeWin32Classic.cs: First small part of the "de-uglify
26403 ThemeWin32Classic" effort, SizeGrip
26405 2006-03-24 Jackson Harper <jackson@ximian.com>
26407 * XplatUIX11.cs: Give a max idle time of one second, this matches
26408 MS and forces an Idle event every second when there are no other
26409 events in the queue.
26411 2006-03-24 Mike Kestner <mkestner@novell.com>
26413 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
26414 * ListView.Item.cs: fix layout issues with null image lists and images
26415 smaller than checkbox size.
26416 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
26417 mode like MS does. It's weird, but consistent. ;-)
26420 2006-03-24 Mike Kestner <mkestner@novell.com>
26422 * ListView.cs: Scroll wheel support for the item control. Fixes
26425 2006-03-23 Jackson Harper <jackson@ximian.com>
26427 * ScrollableControl.cs: Special case negative sized areas, not
26429 * MonthCalendar.cs: Save the rect of the clicked date so we can
26430 use it for invalidation.
26431 - Try to cut down on the number of invalidates
26432 - Invalidate the rect the mouse is over and was over when moving
26433 the mouse, so we get the focus box following the cursor.
26435 2006-03-23 Mike Kestner <mkestner@novell.com>
26437 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
26438 focus rectangle drawing. Fixes #77835.
26440 2006-03-23 Mike Kestner <mkestner@novell.com>
26442 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
26443 the if and else if and reverting back to the original == check on the
26446 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26448 * FontDialog.cs: Update the example panel if the selected index of
26449 the fontListBox changes.
26451 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26453 * FileDialog.cs: Make FileDialog remember which directory it was in
26454 last in the same execution.
26456 2006-03-22 Mike Kestner <mkestner@novell.com>
26458 * FileDialog.cs: make the DropDownMenu on the toolbar display
26459 RadioChecks since they are mutually exclusive and that's what MS does.
26461 2006-03-22 Mike Kestner <mkestner@novell.com>
26463 * Theme.cs: add Color param to CPDrawMenuGlyph.
26464 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
26465 checks and radio marks and arrows are visible on highlighted items.
26466 * ControlPaint.cs: update to use new Theme signature.
26468 2006-03-22 Mike Kestner <mkestner@novell.com>
26470 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
26471 is active. Fixes #77870.
26473 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26475 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
26476 to be focused/selected after startup
26478 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26481 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
26482 CustomColors and ShowHelp properties
26483 - Some internal rewrites to get better results when using the
26486 2006-03-22 Mike Kestner <mkestner@novell.com>
26488 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
26489 HoverSelection. Fixes #77836.
26491 2006-03-22 Mike Kestner <mkestner@novell.com>
26493 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
26494 ToggleButtons. (De)Sensitize the Back button around a stack count of
26495 1, not 0. Update ButtonSize based on a pixel count of the win32
26496 control. Adjust the toolbar size/location for new button size.
26498 2006-03-22 Jackson Harper <jackson@ximian.com>
26500 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
26502 * ScrollBar.cs: When doing increments and decrements we need to
26503 set the Value property so that ValueChanged gets raised. A
26504 possible optimization here would be to make an internal SetValue
26505 that doesn't invalidate immediately.
26506 * ToolTip.cs: Tooltips get added to their container (when
26507 supplied) so they get disposed when the container is disposed.
26508 - Don't create tooltips for String.Empty. This prevents all these
26509 little 2-3 pixel windows from showing up when running nunit-gui
26510 and driving me mad.
26511 * Form.cs: Don't set topmost when setting the owner if the handles
26512 haven't been created yet. The topmost set will happen when the
26513 handles are created.
26515 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
26518 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
26519 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
26520 visible (to allow them to recalculate their sizes)
26522 2006-03-21 Mike Kestner <mkestner@novell.com>
26524 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
26525 methods. Removed a ton of redundant code. Still not really happy with
26526 the border rendering, but I think that's mainly because of the
26527 ControlDarkDark being black instead of a dark grey. Depending on how
26528 close we want to be, we might want to revisit those color choices.
26529 Among the new features added during the refactor were DropDownArrow
26530 pressed rendering, Disabled image rendering. Proper flat appearance
26531 boundary rendering. Removed the Divider and Wrapping dividers since I
26532 can't figure out any combination of themes and conditions to make the
26533 MS control draw a horizontal line on a toolbar despite what the
26534 Divider property docs indicate.
26535 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
26536 conditions and incorrect layout. Updated to coding standard.
26537 * ToolBarButton.cs: refactored layout and positioning code from
26538 ToolBar to here. Invalidate wherever possible instead of forcing
26539 redraws of the whole toolbar.
26540 (Known remaining issues: explicit ButtonSize smaller than provided
26543 2006-03-21 Mike Kestner <mkestner@novell.com>
26545 * ContextMenu.cs (Show): use the position parameter instead of just
26546 showing at the MousePosition.
26548 2006-03-21 Jackson Harper <jackson@ximian.com>
26550 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
26551 control handle this.
26552 * TreeNodeCollection.cs: If we are clearing the root node we need
26553 to reset top_node so calcs can still happen.
26554 * ThemeWin32Classic.cs: This is a Flags so we need to check
26557 2006-03-21 Jackson Harper <jackson@ximian.com>
26559 * DataGrid.cs: Create columns when the binding context has been
26561 * X11Structs.cs: Keysyms are uints.
26562 - Add size to fix build.
26564 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
26566 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26568 - Added ResetMouseHover method to allow controls to retrigger
26569 hovering if they need it more than once
26570 - Implemented MouseHoverTime and MouseHoverSize properties
26571 * Timer.cs: Start() must reset the interval
26572 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
26575 2006-03-21 Jackson Harper <jackson@ximian.com>
26577 * X11Keyboard.cs: improved layout detection. Move the nonchar
26578 tables into this file.
26579 * KeyboardLayouts.cs: Move the tables into resource files.
26581 2006-03-21 Mike Kestner <mkestner@novell.com>
26583 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
26585 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
26587 * Mime.cs: Various speed optimizations. Looking up mime types
26588 is now 2 times faster than before
26590 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26592 * CreateParams.cs: Added internal menu field
26594 - Switched call order for UpdateBounds; now we always call
26595 the one that also takes ClientSize, and we're calculating the
26596 client size via driver method in the others. The previous
26597 method of tracking client size by difference wasn't working
26598 for forms where even the starting client size wouldn't match
26599 the overall form size (due to borders) (Part of fix for #77729)
26600 - CreateParams(): Do not use parent.Handle unless the handle is
26601 already created. Causes havoc with Nexxia and throws off our
26602 creation of controls
26604 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
26605 - Switched handling of ConfigureNotify over to new PerformNCCalc
26606 method (consolidates code)
26607 - Changed RequestNCRecalc to use new PerformNCCalc method
26608 - Added calls to RequestNCRecalc when menus and borders are changed
26609 to allow app to set NC size. (Part of fix for #77729) This matches
26610 when MS send a WM_NCRECALC on Win32 windows.
26611 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
26612 (Part of fix for #77729). This matches what MS does, they also
26613 send that message when the form is made visible.
26614 - XException.GetMessage: Improved usability of X errors by including
26615 a translation of the window into Hwnd and Control class
26616 - Improved debug info for window creation, reparenting and destruction
26617 - Created helper method WindowIsMapped() [Currently not used]
26618 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
26620 - CreateParams: Now setting our menu on the new internal menu field
26621 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
26622 avoid calculating the same property twice
26624 - Improved usability of ToString() for debugging purposes
26625 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
26626 determine the height of the menu, instead of just the font. This
26627 required to also create a graphics context and to keep a bmp
26628 around (for performance reasons)
26630 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26632 * MenuAPI.cs: Added OnMouseUp method
26634 - Now remembering the requested client size, avoids size errors
26635 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
26636 instead of base if the menu is active. This is required due to
26637 control now capturing and releasing on down/up and it would
26638 prematurely release our menu capture
26640 2006-03-17 Jackson Harper <jackson@ximian.com>
26642 * KeyboardLayouts.cs: Add the czech layouts.
26644 2006-03-16 Jackson Harper <jackson@ximian.com>
26646 * Control.cs: Use the viewport space when sizing not the controls
26647 client size, so things like ScrollableControl that effect the
26648 viewport size (when scrollbars are added) are computed correctly.
26649 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
26651 - Handle creating BindingManagers for null data sources.
26652 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
26653 source, otherwise when rows are added they are added to the 'fake'
26654 datasource and we will crash when trying to set the position in
26656 - Use Implicit scrollbars on the datagrid so they arent
26659 2006-03-16 Jackson Harper <jackson@ximian.com>
26662 * InternalWindowManager.cs:
26663 * MdiWindowManager.cs:
26664 * X11Keyboard.cs: I really want Mike to love me again (fix
26665 compiler warnings).
26667 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26670 - OnMouseDown: Switch to editing mode when clicking on the cell
26671 even if we're clicking on the cell that's currently
26673 - ProcessGridKey: Left/Right now wrap like MS.Net does
26674 - ProcessGridKey: Tab now knows to add a new row when tab is
26675 pressed in the cell of the last column of the
26677 - ProcessGridKey: Enter now adds another row if pressed in the last
26678 row and selectes the new row, same column cell
26679 - ProcessGridKey: Home/End navigate columns, not rows, like
26680 originally implemented
26681 - Broke ProcessKeyPreview code out into an extra Internal method
26682 so it can be called from the edit code
26683 * DataGridTextBox.cs (ProcessKeyMessage):
26684 - Switched to accept Tab keypresses
26685 - Added F2 handling to allow jumping to the end of the edited cell
26686 - Added logic to allow moving caret left/right inside edited cell
26687 and making the edited cell jump when the caret hits cell borders
26688 - Tab and Enter are now passed to the datagrid after being handled
26690 - Removed capture code now that Control handles it
26691 - set_SelectionStart now ensures caret is visible
26693 2006-03-16 Jackson Harper <jackson@ximian.com>
26695 * TrackBar.cs: Debackwards the increment/decrement for handling
26696 mouse clicks on the bar with vertical trackbars.
26697 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
26698 bottom to match MS.
26700 2006-03-16 Mike Kestner <mkestner@novell.com>
26702 * ListView.cs: make shift/ctrl keyboard and mouse selection
26703 consistent with the MS control. Fix a bug in
26704 SelectedListViewItemCollection.Clear that was pissing me off for the
26705 better part of a day because the collection was being altered
26706 underneath us as we walked the list.
26708 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26710 * Control.cs: Not sure how we could miss this so long, but it seems
26711 that MS.Net has Capture set all the way from before calling
26712 OnMouseDown through sending the mouse events until after
26713 OnMouseUp. This will fix DataGrid's selection being set to end
26714 at the location of the MouseUp.
26716 2006-03-15 Jackson Harper <jackson@ximian.com>
26718 * BindingContext.cs: Check the binding after its added so that it
26719 can initialize the binding managers and hookup to events.
26720 * Binding.cs: Data members seem to sometimes include rows/cols in
26721 the format Row.Column we now take this into account.
26722 - Hookup to the position changed event so we can update the
26723 control when the position has changed in the data set.
26724 * CurrencyManager.cs: Take into account the row/col naming
26725 convention when creating dataset tables.
26726 * BindingContext.cs: Using a newer better way of storing
26727 datasource/datamember pairs. Hopefully this better matches MS for
26728 looking up binding managers.
26731 2006-03-15 Jackson Harper <jackson@ximian.com>
26733 * BindingContext.cs: The currency manager needs the data member
26734 name, if the member is a data set we use the name to find the
26736 * CurrencyManager.cs: When creating the list prefer an IList over
26738 - Attempt to create a DataTable from a DataSet (TODO: might need
26739 some better error checking here, although MS doesn't seem to have much)
26740 - If we have a DataTable create a view and use it as our list.
26742 2006-03-15 Mike Kestner <mkestner@novell.com>
26744 * ListView.cs: keep a matrix of the icon mode layout to facilitate
26745 keyboard navigation. Support Up/Down/Left/Right selection correctly
26746 for all 4 View modes.
26747 * ListViewItem.cs: add internal row/col fields for icon layouts.
26749 2006-03-15 Jackson Harper <jackson@ximian.com>
26751 * TabControl.cs: Redraw the tabs when we resize so their newly
26752 calculated sizes are drawn on screen.
26753 * X11Keyboard.cs: Begginnings of XIM support. We also now support
26754 composite characters.
26755 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
26756 - filter events so that composite characters can be created
26758 * X11Structs.cs: Add XIMProperties enum.
26760 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26762 * Control.cs (BringToFront, SendToBack): Don't use window or handle
26763 unless it's created
26765 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26767 * Control.cs (PerformLayout): We don't need to consider visiblity
26768 for anchoring, only for docking. This fixes 'whacky' alignment
26769 in listbox and other controls that use implicit scrollbars after
26770 the previous PerformLayout patch
26771 * ListBox.cs: Switched to use implicit scrollbars
26773 2006-03-14 Mike Kestner <mkestner@novell.com>
26777 - chain up the "new event" overrides to base and use
26778 OnEvent to raise them. Part of fix for bug #76509.
26780 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
26782 * FileDialog.cs: Do not select an item in the parent directory
26785 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26787 * Control.cs (PerformLayout): It would seem that we considered
26788 invisible windows for our layout. Not quite the right thing
26789 to do. Now we don't any longer, thereby fixing bug #76889.
26791 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26793 * Control.cs (CanFocus): I goofed. A control can have focus
26794 even though it's not selectable. Made it match MS docs.
26796 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26798 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
26799 center by default (fixes #76895)
26800 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
26801 all uses of Border3DSides.All with the explicit ORd together
26802 Left|Right|Top|Bottom because I assume that nobody was aware
26803 that All also implies a center fill. Most places I checked had
26804 a fill right above.
26805 * ProgressBarStyle.cs: Added
26807 2006-03-13 Mike Kestner <mkestner@novell.com>
26809 * ListView.cs: fix breakage in drag shadow header positioning
26810 from Peter's csc compilation fix.
26812 2006-03-13 Mike Kestner <mkestner@novell.com>
26814 * ListView.cs: fix NRE produced by backspacing twice in a focused
26817 2006-03-13 Mike Kestner <mkestner@novell.com>
26819 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
26821 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26823 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
26825 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
26826 the allowed size before making programmatic size changes
26828 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26830 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
26831 set, metacity is broken and will still use the emty sizes in
26832 the struct. (Fix for #77089)
26834 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26836 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
26837 WindowExStyles and marked both enums as Flags
26838 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
26839 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
26840 to match WindowStyles split
26842 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
26843 - Updated to match WindowStyles split
26845 - Fixed FosterParent creation, was using ExStyle on the Style field
26846 (This should help with Popup focus issues)
26847 - Updated to match WindowStyles split
26849 2006-03-13 Jackson Harper <jackson@ximian.com>
26851 * MdiWindowManager.cs: Use the system menu height. Fixes some
26852 strange sizing issues.
26854 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26856 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
26858 - Scroll to caret after inserting text (#77672)
26859 - Make scroll range one pixel higher, fixes off-by-one error (and
26860 makes underlines visible on the last line)
26862 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26864 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
26865 the keyboard state from being stuck with keys in 'pressed' state when
26866 focus is switched away via keyboard
26867 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
26868 reset the keyboard if no X11 KeyUp events are expected to come
26869 * X11Structs.cs: Switched type of Visible to bool to match driver
26871 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26874 - Switched caret to be just 1 pixel wide, matches MS and looks less
26876 - Moved caret display 1 pixel down from the top of the control
26878 - InsertCharAtCharet: Update the selection start if moving the caret
26879 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
26880 - No longer always creating the caret when the caret methods are
26881 called. Only the actual ShowCaret/HideCaret will do that now
26882 - Only setting caret visible if the owner control has focus
26883 - UpdateView: Added invalidation-shortcut logic for center and right
26884 aligned text. Previously we'd update all according to the left
26885 logic which caused drawing errors. Also fixed height of invalidated
26886 areas, now properly invalidating the whole area (was off-by-one)
26887 - owner_HandleCreated: Always generate the document when the
26888 handle is created; this ensures that
26890 - Fixed situation where caret would disappear under the right
26891 window border, also improved scrolling behaviour on left-
26893 - Fixed right-aligned textboxes to have a border to the
26894 right instead of the caret being under the right border
26896 - Switched from 'nested' to simple visible/not visible tracking
26897 for caret (part of fix for #77671)
26898 - No longer passing through translated FocusIn/FocusOut messages
26899 since we were notifying too often and the wrong windows. Instead
26900 we just notify our focussed window of receiving or loosing focus
26901 * XplatUIWin32.cs: Switched from 'nested' show/hide
26902 counting for caret to simple visible yes/no behaviour (part of
26905 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26907 * Mime.cs: Remove debug code...
26909 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26911 * MimeGenerated.cs: Removed
26912 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
26913 and subclasses) from /usr/(local/)share/mime and
26914 $HOME/.local/share/mime.
26916 2006-03-10 Jackson Harper <jackson@ximian.com>
26918 * MdiWindowManager.cs: Recalc the NC area when a window is
26919 maximized/restored so that the menu area is drawn on forms that
26922 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26924 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
26925 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
26926 us to force a WM_NCCALCRESIZE message being sent. This is needed
26927 for MDI maximizing.
26929 2006-03-10 Jackson Harper <jackson@ximian.com>
26931 * Form.cs: We need to use the ActiveMenu when calculating menu
26933 - Fix nullref when the window manager hasn't been created yet.
26934 * Control.cs: Fix nullref when we try to bring a control to the
26935 front that has no parent.
26936 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
26938 - Add a dummy item to the maximized menu so it always has the
26939 correct height. Otherwise when there are no menus we don't get our
26943 2006-03-10 Jackson Harper <jackson@ximian.com>
26945 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
26947 * Form.cs: Make the window_state internal so the window managers
26949 - When an MDI child is maximized let its window manager create the
26950 main menu (so it can add its icon).
26951 - Notify the window managers of state changes
26952 - Let the window manager paint its buttons and handle button
26953 clicks on the menu when it is maximized.
26954 * InternalWindowManager.cs: Move the prev_bounds into the mdi
26955 window manager, since tool windows don't use it, only mdi windows.
26956 - Tell the main form that we don't want it to handle NCPAINT
26957 itself to avoid extra painting.
26958 - Handle clicks on a maximized windows menu.
26959 - Handle window state changes
26960 - Handle minimize/maximize clicks correctly by setting the window state.
26961 * MdiWindowManager.cs: Add an icon menu that (the menu you get
26962 when clicking on the forms icon).
26963 - New method to create a forms maximized menu. This is its normal
26965 - Handle window state changes.
26966 - Handle sizing of maximized windows. Maximized windows are just
26967 drawn bigger then the parent visible area. All controls are still
26968 there, they are just outside the visible area (this matches windows).
26969 * MdiClient.cs: No scrollbars when a child window is maximized.
26970 - Let the children windows figure out how big they should be when
26971 sizing maximized windows.
26972 - Implement a version of ArrangeIconicWindows somewhat similar to
26973 Windows version. There are some little differences, but I don't
26974 think any app will rely on the layout of minimized mdi windows.
26976 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26978 * Padding.cs: Several fixes to allow compiling with csc 2.0
26980 2006-03-09 Jackson Harper <jackson@ximian.com>
26983 * MenuItem.cs: Cheap hack so we can add items to the list without
26984 the events being raised. This allows adding mdi items during
26985 drawing. TODO: Should probably find a better time to add the items.
26987 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26989 * ThemeWin32Classic.cs:
26990 - CheckBox_DrawText: Added logic to not wrap if not enough space
26991 is available (Fix for bug #77727)
26992 - RadioButton_DrawText: Added logic not to wrap if not enough
26993 space is available (Fix for bug #77727). Also removed some
26994 duplicate code, DrawString always drawing the regular text
26995 before hitting the if statement.
26997 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26999 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
27001 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27003 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
27004 * ContainerControl.cs: Partial implementation of some 2.0 scaling
27005 methods. Moved the new 2.0 properties into alphabetical order with
27006 other properties and added MonoTODO tags
27008 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27010 * AutoScaleMode.cs: Added. Fix build.
27012 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27014 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27015 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
27016 and was requiring premature handle creation for calls from above
27017 * Form.cs, Control.cs: Removed handle arguments from calls to
27018 CalculateClientRect()
27020 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27022 * ListView.cs (HeaderMouseMove): Fix csc compilation.
27023 drag_column.column_rect is MarshalByRef and can't be used that way
27025 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27027 * AxHost.cs: Added deserialization constructor for
27028 AxHost+State (fixes 77743)
27030 2006-03-09 Mike Kestner <mkestner@novell.com>
27033 - Added column drag reordering for details view.
27034 - fixed behavior when mouse is dragged off column and
27035 AllowColumnReorder is false.
27036 * ColumnHeader.cs: clone the format too in Clone.
27037 * Theme.cs: add DrawListViewHeaderDragDetails method.
27038 * ThemeWin32Classic.cs:
27039 - impl new method for drawing drag column shadows and targets.
27040 - support column offset for details mode in DrawListViewItem.
27042 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27044 * TextControl.cs: Reset the char_count when the document is cleared
27045 (Fixes bug reported on mono-winforms mailing list)
27047 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27049 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
27050 of calling base we simply process the key ourselves, since both
27051 DefWindowProc and the handled method would set m.Result.
27054 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27056 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
27057 method also moves the window; instead implemented a copy of
27058 Control.ScaleCore (Part of fix for #77456)
27060 - Created new CreateGraphicsInternal method to allow providing
27061 a graphics context when no handle is created without triggering
27062 handle creation. (Part of fix for #77456)
27063 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27065 - Switched Constructor to require TextBoxBase instead of Control (to
27066 allow uncast access to CreateGraphicsInternal)
27067 - Safeguarded use of owner.Handle property. No longer accessing it
27068 unless the handle is already created.
27069 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27070 - Now triggering a recalc when owning control becomes visible
27071 * TextBox.cs, RichTextBox.cs: Switched to use new internal
27072 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
27073 premature handle creation (Part of fix for #77456)
27075 - We now only destroy our double-buffering buffers when the
27076 control is resized or disposed, but not when visibility
27077 changes. (The code even re-created them twice every time)
27078 - Now requiring a redraw of the buffer on visibility changes
27079 (fixes bug 77654 part 2)
27080 - Not passing OnParentVisibleChanged up unless the control
27082 - CanFocus: Fixed to match MS documentation
27083 - Focus: Fixed to return actual focus state and to check if
27084 setting focus is legal before setting it
27086 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
27088 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
27089 when to draw focus rectangle by looking at parent focus and
27090 selected state instead. This fixes TabPages on Linux sometimes
27091 having none or multiple focus rectangles.
27092 * XplatUIX11.cs (SetFocus):
27093 - Don't set the focus if the same window already has focus
27094 - Use SendMessage instead of PostMessage (like it's Win32
27095 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
27096 to match MS behaviour
27097 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
27098 are not selectable.
27100 2006-03-07 Jackson Harper <jackson@ximian.com>
27102 * PictureBox.cs: Revert line I accidently committed last week.
27104 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
27107 - Added new IsRecreating and ParentIsRecreating properties to
27108 allow testing if RecreateHandle has been called on ourselves
27109 or one of our parents
27110 - WndProc(WM_DESTROY): If our control handle is being recreated
27111 we immediately need to create the handle when receiving the
27112 destroy, that way our child windows find a valid parent handle
27113 when they themselves are being recreated upon WM_DESTROY receipt
27114 (fix for bug #77654 part 1)
27116 - DestroyWindow: WM_DESTROY must be sent to our own window before
27117 notifying any child windows. MS documents that child windows
27118 are still valid when WM_DESTROY is received. (Control now relies on
27120 - Added some fine-grain debug options
27122 2006-03-06 Jackson Harper <jackson@ximian.com>
27124 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
27125 box and base calculations off this.
27126 * MdiChildContext.cs:
27127 * MdiWindowManager.cs: Don't need to ensure scrollbars here
27130 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
27132 * Splitter.cs: In situations where the affected control is added
27133 to the parent's control list after the splitter, we would not
27134 populate affected. Now we try populating it on mousedown, if
27135 it's not already set, and force it to be re-set whenever our
27138 2006-03-03 Matt Hargett <matt@use.net>
27140 * Control.cs: implement Control.Padding
27141 * Padding.cs: -Padding.All returns -1 when constructing with the
27142 implicit default ctor
27143 -Padding.ToString() matches MS.NET
27144 * ContainerControl.cs: implement
27145 ContainerControl.AutoScaleDimensions
27146 * ListControl.cs: implement ListControl.FormattingEnabled
27147 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
27149 * TabPage.cs: Implement UseVisualStyleBackColor.
27150 * PictureBox.cs: Implement PictureBox.InitialImage.
27152 2006-03-03 Mike Kestner <mkestner@novell.com>
27154 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
27155 event declarations to proxy to base event.
27156 * ListViewItem.cs: update to use ItemControl.
27157 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
27158 * ThemeWin32Classic.cs: update to new ListView theme API and fix
27159 column header label rendering for 0 width columns.
27161 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
27163 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27164 that causes the control to be created. Fixes #77476.
27166 2006-03-02 Jackson Harper <jackson@ximian.com>
27168 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27171 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
27173 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27174 passed in for the EventArgs (fixes #77690)
27176 2006-03-01 Jackson Harper <jackson@ximian.com>
27178 * ScrollBar.cs: Refresh afterbeing resized.
27180 2006-02-28 Mike Kestner <mkestner@novell.com>
27182 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27183 Clean up a tracker compile warning.
27184 * MenuItem.cs: add internal PerformPopup method.
27187 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27189 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27190 implicit expose) when the text is set to null
27192 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27194 * RichTextBox.cs (FlushText): When newline is true, we always
27195 need to split the line, even if no text is on it and we may
27196 never eat newlines. (Fixes #77669)
27198 2006-02-28 Mike Kestner <mkestner@novell.com>
27200 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
27201 and set Selected instead.
27202 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
27205 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27207 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
27209 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
27212 - Got rid of the panel. All controls are now directly added to
27214 - It is now possible to set a font with the Font property
27215 - MinSize and MaxSize property do now what they should
27216 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
27217 - Searching and selecting a font with the font textbox works now,
27218 the same applies to the style and size textbox
27219 - Draw the correct 3D border in the example panel
27220 - Fixed a little mem leak (unused fonts didn't get disposed)
27221 - Many other internal updates/rewrites...
27224 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27227 - InsertRTFFromStream: Added 'number of characters inserted' argument
27228 - set_SelectedRTF: Now using the number of characters to calculate
27229 the new location for the selection and cursor (x/y cannot be used
27230 due to potentially already wrapped text)
27232 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27234 * TextControl.cs: Added property and implemented means to allow
27235 disabling recalculation of a document (can be used to speed up
27236 multiple inserts and is needed to make RTF inserts predictable, see
27238 * RichTextBox.cs: Using the new NoRecalc property of Document to
27239 keep x/y insert locations predictable. Also makes it faster inserting
27240 large chunks of RTF
27242 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27244 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
27245 it's easier for a child control to handle the other messages without
27246 having to duplicate the special functionality
27248 - WndProc: Removed calling base handler for WM_KEYDOWN and added
27249 code to handle processing the key ourselves, in order to get
27250 access to the result of KeyEventArgs.Handled. We now only call
27251 ProcessKey if they key hasn't been handled already. Fixes #77526.
27252 - set_Text: If null or empty string is given, just clear the
27253 document. Fixes part of #77526
27255 2006-02-27 Jackson Harper <jackson@ximian.com>
27257 * SizeGrip.cs: Paint the background color before painting the grip
27258 so things look right.
27259 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
27261 2006-02-27 Mike Kestner <mkestner@novell.com>
27264 - Restructure layout and invalidation model to remove a ton of
27265 flicker from the control and speed up performance in general.
27266 - Add manual column resize, flickers like crazy, but I already have
27267 some ideas on how I'll fix that. (#76822)
27268 - Merge the three Icon-based views into a single layout method.
27269 - Move item selection interaction logic from the item since
27270 interaction with the collections is more appropriate to the view.
27271 - Deselection on non-item clicks.
27273 - Encapsulate most of the layout. Add some internal props to trigger
27274 layout. Move to a model where Items invalidate themselves instead
27275 of just invalidating the whole control every time something changes.
27276 - Invalidate on Text/Caption changes.
27277 - switch to an offset based layout model to avoid having to absolute
27278 position every element on item moves.
27279 - correct checkbox layout to conform to MS layout.
27280 * ThemeWin32Classic.cs:
27281 - refactor some column header drawing code.
27282 - fix string justification for column headers (#76821)
27283 - make SmallIcon labels top justified for compat with MS impl.
27284 * ThemeClearlooks.cs:
27285 - adjust to new ListViewItem internal checkbox bounds api.
27287 2006-02-27 Jackson Harper <jackson@ximian.com>
27289 * Control.cs: Change where implicit controls fall in the zorder.
27290 They are now on top of all children.
27291 - Synced AddImplicit code with Add
27292 - Removed unused enumerator.
27293 * SizeGrip.cs: Remove the TODO as its been TODONE.
27295 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27297 * TextControl.cs(Insert): Combine the last lines unless the insertion
27298 string ends with \n\n, otherwise we leave one line too many (Fixes
27299 something I noticed with the testapp for #77526; the bug itself was
27300 already fixed in the previous checkin)
27302 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27305 - SelectionColor and SelectionFont methods no longer set absolute
27306 styles. Instead, the keep font or color respectively (This
27307 resolves a long-standing FIXME in the code)
27308 - When flushing RTF text, the insert code now considers text trailing
27309 behind the insertion point (Fixes the bug where when replacing
27310 the selected text via SelectedRTF the remainder of the line behind
27311 the selection would stay on the first insertion line)
27313 - AppendText now updates the selection points after inserting text
27314 - AppendText now ensures that the last tag (sometimes 0-length) of
27315 the document is used for the style information (Fixes part of
27318 - Created new FontDefiniton class to allow describing partial style
27320 - StreamLine() now takes a lines argument, to allow it to decide
27321 whether an encountered zero-length tag is the last in the document
27322 (which must be kept to not loose the font/color contained in it,
27324 - Created Combine() and Split() methods for Marker structs, to
27325 support marker updates due to reformatted documents (soft line
27327 - Implemented Document.CaretTag setter
27328 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
27329 of the last line (Not the cause, but also exposed by bug #77220)
27330 - Added LineTag argument to InsertString method, to allow callers
27331 to force a certain tag to be used (required to force use of the
27332 trailing zero-length tag of a document)
27333 - Now updating markers in Combine(), to avoid stale tag markers
27334 - Added some method descriptions to aid maintenance
27335 - Implemented new FormatText concept, allowing additive/subtractive
27336 formatting by only specifying the components that are to be
27337 changed. This was needed for resolving the RTB.SelectedColor/
27338 RTB.SelectedFont fixmes
27339 - Added Break() support method to allow breaking up linetags (used
27340 for partial formatting)
27341 - Added GenerateTextFormat() method. It is used for partial
27342 formatting and allows to generate a full font/color from given
27343 attributes and an existing tag.
27345 2006-02-26 Jackson Harper <jackson@ximian.com>
27347 * XplatUIX11.cs: Use the correct caption height.
27348 - Translate hittest coordinates to screen coords to match MS.
27349 * XplatUIWin32.cs: When we create MDI windows we need to reset
27350 some of the style flags, so we get a nice blank window, and can
27351 draw all the decorations ourselves.
27352 - Set a clipping rectangle on the non client paint event, the
27353 window manager drawing code needs one.
27354 * Form.cs: The window manager needs to know when the window state
27356 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
27357 don't need to factor in border and title sizes in these
27358 methods. TODO: Remove the args and fix the call points.
27359 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
27361 - Let the driver set the cursors.
27362 - Improve active window handling
27363 - Correct sizes for title bars and buttons.
27364 - Match MS drawing better
27365 * MdiWindowManager.cs: We don't need to handle border style
27366 updates specially anymore.
27367 - Check for scrollbars when windows are done moving
27368 - Handle Active properly.
27369 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
27370 correctly. I am spewing the exception though, so we don't hide the
27373 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
27375 * DataGridViewRowPostPaintEventArgs.cs,
27376 DataGridViewCellPaintingEventArgs.cs,
27377 DataGridViewRowCollection.cs,
27378 DataGridViewRowPrePaintEventArgs.cs,
27379 DataGridViewCell.cs: Clear a few warnings and implement a few
27380 exceptions that should be thrown.
27382 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27384 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
27385 'inheriting' our parent's (non-default) cursor. (Part of
27386 the fix for #77479)
27388 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27390 * XplatUIX11.cs: Fixed cast to make csc happy
27392 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27394 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
27395 it's for the client area (part of fix for #77479 and needed
27396 for MDI window cursor handling)
27398 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
27399 the appropriate default cursors and also passing the message
27400 up the parent chain
27401 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
27402 for non-client areas
27404 2006-02-15 Jackson Harper <jackson@ximian.com>
27406 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
27407 is a real MDI window
27409 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
27411 * X11DesktopColors.cs: Instead of checking the desktop session
27412 string for "KDE" check if it starts with "KDE"
27414 2006-02-10 Jackson Harper <jackson@ximian.com>
27416 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
27419 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27421 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
27424 - Got rid of the panel. All controls are now directly added to
27426 - Changed to mono coding style
27428 2006-02-10 Jackson Harper <jackson@ximian.com>
27430 * InternalWindowManager.cs: We don't need the set visibility to
27431 false hack anymore now that peter has written beautiful shutdown
27434 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
27436 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
27437 where already explicitly destroyed
27439 2006-02-10 Jackson Harper <jackson@ximian.com>
27441 * MdiClient.cs: Handle the case where windows are too high or to
27442 the left and we need scrollbars.
27444 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27446 * MimeIcon.cs: Added some icons
27449 - Got rid of the panel. All controls are now directly added to
27451 - Changed to mono coding style
27452 - On Linux "My Computer" and "My Network" will now show some
27453 more usefull information. A new class, MasterMount, gathers
27454 this information from /proc/mount. Updated MWFFileView to make
27455 use of this information
27456 - Fixed a bug that caused FileDialog to crash when
27457 ".recently_used" file had a zero size
27458 - FilterIndex does now what it should
27460 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
27463 2006-02-09 Jackson Harper <jackson@ximian.com>
27465 * ComboBox.cs: Don't touch if null.
27467 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
27469 * Cursor.cs: 64bit safeness fix
27470 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
27472 2006-02-09 Jackson Harper <jackson@ximian.com>
27474 * Form.cs: If a form is made into an MDI form update the styles so
27475 all the props can get set correctly.
27476 - Kill the mdi_container when we dont need it anymore.
27477 * InternalWindowManager.cs: Add missing NOT
27479 2006-02-08 Jackson Harper <jackson@ximian.com>
27481 * InternalWindowManager.cs: Respek clipping when drawing MDi
27484 2006-02-08 Jackson Harper <jackson@ximian.com>
27486 * Hwnd.cs: Add bits to track non client expose events.
27487 * XplatUIX11.cs: Track non client expose events on the hwnd. This
27488 gives us a proper invalid rect and will allow for some nice
27489 optimizations with NC client drawing
27490 - MDI windows are children windows, so move their style handling
27491 into the child window block.
27492 * InternalWindowManager.cs: Remove a state reset that was
27493 getting invoked at the wrong time. Fixes managed windows getting
27494 into a 'stuck' captured state.
27496 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27498 * TextControl.cs (Document.ctor): Now initializing
27499 selection_anchor. Fixes #77493
27501 2006-02-07 Jackson Harper <jackson@ximian.com>
27503 * TrackBar.cs: The increment/decrements were backwards.
27505 2006-02-07 Mike Kestner <mkestner@novell.com>
27507 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
27508 to the instance itself.
27510 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27512 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
27513 on ulongs and pointers, the size differs between 32bit and 64bit
27516 2006-02-07 Mike Kestner <mkestner@novell.com>
27518 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
27519 for 64 bit platforms to work around a metacity bug.
27521 2006-02-07 Jackson Harper <jackson@ximian.com>
27523 * TrackBar.cs: Process the input keys we need, and hookup to
27524 KeyDown instead of using WndProc, so we get key messages.
27526 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27528 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
27530 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
27531 we need to translate the XdndVersion atoms array before sending it
27533 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27536 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
27537 number of bits for the property, not the number of bytes. The
27538 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
27539 but would not crash since it specified 8 bits instead of 4 bits)
27540 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
27541 defined as XID -> long in the C headers)
27542 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
27543 references since those are now IntPtr to begin with
27544 - Switched all Atom.XXX 'int' casts to IntPtr casts
27545 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
27546 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
27547 - Added XChangeActivePointerGrab DllImport (for X11DnD)
27549 - Changed 'int' type for Atoms in XEvent structures to IntPtr
27550 - Changed atom in HoverStruct to be IntPtr
27552 - Removed local DllImports, switched code to use those from XplatUIX11
27553 - Removed/fixed casts related to the switch of Atom to be a IntPtr
27555 2006-02-06 Mike Kestner <mkestner@novell.com>
27557 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
27558 method signatures in the import region. There may still be some
27559 lingering struct marshaling issues, as I didn't drill down into those.
27562 2006-02-06 Jackson Harper <jackson@ximian.com>
27564 * ComboBox.cs: Dont manually set the top_item, this is computed
27565 when the scrollbar position is set.
27567 2006-02-06 Mike Kestner <mkestner@novell.com>
27569 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
27570 startup crashes on amd64. There's other fixes needed. All pinvoke
27571 usage of Atom needs to be mapped to IntPtr for example. And there are
27572 likely other int/long issues to be addressed.
27574 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
27576 * FileDialog.cs: One more...
27578 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27580 * FileDialog.cs: Next try
27582 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27584 * FileDialog.cs: First part of fix for #77464
27586 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27588 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
27589 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
27590 AcceptButton border drawing.
27592 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27594 * Form.cs: Moved positioning of form after auto scaling is applied,
27595 otherwise it would possibly use wrong form size.
27597 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27599 * Control.cs (RecreateHandle): No need to re-create any child
27600 controls, the child windows will get destroyed automatically by
27601 the windowing system or driver, and re-created when the handle
27602 is being accessed the first time. Fixes #77456
27603 * Form.cs: No longer setting the form to closing if the handle is
27604 being recreated. This seems like the right thing to do, don't
27605 have a bug or testcase for this, though.
27607 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27609 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
27610 controls to avoid unwanted side effects
27612 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27615 - ScaleCore needs to scale the bounds, not the ClientSize of the
27616 control. Fixes #77416.
27617 - DefaultSize is 0,0 for control
27619 - DefaultSize is 100, 20
27620 - SetBoundsCore: Now enforcing the height, no matter if the provided
27621 height is more or less than the preferred one, as long as AutoSize
27623 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
27625 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27628 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
27629 call unless both performLayout is true *and* we have a pending
27631 - ResumeLayout: MS does not completely nest Suspend and Resume,
27632 they bottom out at 0, fixed our code to match that.
27633 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
27634 SetBoundsCore, we were updating even when we shouldn't. This fixes
27635 swf-anchors mis-anchoring when resizing the app fast and lots.
27636 - UpdateDistances: Now only setting the left and top distance if
27637 we have a parent and are not suspended, this is based on
27638 a suggestion by Don Edvaldson in bug #77355.
27639 - OnVisibleChanged: Fixed logic when to create the control. We may
27640 not create the control if we have no parent or if it's not visible;
27641 switched to using Visible property instead of is_visible field
27642 since the property also considers parent states. This fixes a bug
27643 when starting Paint.Net
27645 2006-02-02 Jackson Harper <jackson@ximian.com>
27647 * Form.cs: If the forms handle hasn't been created yet don't call
27648 into xplatui to make it top most, just set the topmost flag on the
27649 form in CreateParams
27650 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
27652 2006-02-01 Jackson Harper <jackson@ximian.com>
27654 * ScrollableControl.cs: Refactored the Recalculate method a
27655 little, this wasn't handling all the variants of bottom and right
27656 bars needed to be added and added/removed based on their
27657 counterparts being added/removed (which changes the drawable
27658 size). Also we special case client widths and heights of 0 and
27659 don't add the scrollbar for those.
27661 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
27664 - Added method to get AbsoluteGeometry(); currently unused, but might
27665 be used in the future, if we try again to figure out toplevel
27666 coordinates with some more crappy window managers
27667 - Added FrameExtents() method to retrieve the WM set decoration size
27668 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
27669 to deal with at least KDE, FVWM and metacity (Fixes #77092)
27671 - Added whacky_wm tracking var for metacity
27672 - Added logic to have default menu height if the actual menu height
27673 has not yet been calculated (part of fix for #77426)
27674 * Form.cs: Keep track whether client size has been set and re-set
27675 it if a menu is added/removed afterwards (Fixes #77426)
27677 2006-01-31 Jackson Harper <jackson@ximian.com>
27679 * Control.cs: When a new Site is set on the component attempt to
27680 pull the AmbientProperties from it.
27682 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
27684 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
27685 in the background of the owning form. Fixes #77332
27687 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27689 * MimeIcon.cs: Fix for #77409
27691 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27693 * XplatUIX11GTK.cs: Initial import
27695 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
27697 * FixedSizeTextBox: fixes class signature
27699 2006-01-30 Jackson Harper <jackson@ximian.com>
27701 * FixedSizeTextBox.cs: New internal class that represents a
27702 textBox that will not be scaled.
27705 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
27708 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27710 * XplatUIX11.cs: Retrieve default screen number instead of
27711 assuming 0. Attempted fix for #77318
27713 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27716 - GetWindowPos: When a window is parented by FosterParent, use
27717 the desktop instead of FosterParent as the base to get coordinates
27718 - CreateWindow: Don't make FosterParent the parent window for Popups
27719 if we don't want a taskbar entry, Popups automatically don't get one
27720 * Hwnd.cs: Need to call remove to actually remove the key from the
27723 2006-01-30 Mike Kestner <mkestner@novell.com>
27725 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
27727 2006-01-30 Jackson Harper <jackson@ximian.com>
27730 * TreeNode.cs: Raise events no matter how the treenode is
27731 checked. Patch by Don Edvalson.
27733 2006-01-30 Jackson Harper <jackson@ximian.com>
27735 * TreeNode.cs: Signature fix.
27737 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
27739 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
27741 2006-01-20 Mike Kestner <mkestner@novell.com>
27743 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
27744 event forwarding when menus are active.
27745 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
27746 Most of the patch is pdb's with a little rework.
27748 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27750 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
27751 Removed GetMenuDC and ReleaseMenuDC methods; replaced
27752 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
27753 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
27754 * InternalWindowManager.cs: Added use of PaintEventStart/End to
27755 handling of WM_NCPAINT message, now passing the PaintEventArgs to
27756 the PaintWindowDecorations method
27757 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
27758 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
27759 * MenuAPI.cs: Made tracker window invisible
27761 - Removed GetMenuDC and ReleaseMenuDC methods
27762 - Implemented the client=false path for PaintEventStart and
27765 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27767 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
27768 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
27771 - MaximizeBox, MinimizeBox: Recreate the handle when setting
27773 - CreateParams: Reworked the styles to match MS look'n'feel,
27774 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
27775 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
27777 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27779 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
27780 window is not mapped, since otherwise every form that's being
27781 created is considered minimized, which is wrong.
27782 * Form.cs: Catching the exception and returning our internal value
27785 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27787 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
27788 SetWindowMinMax() to have means to tell the driver about the minimum,
27789 maximum and maximized state window sizes. (Part of the fix for #76485)
27791 - Implemented tracking of minimum and maximum window size, now calling
27792 new SetWindowMinMax() driver method to tell the driver (Part of the
27794 - Finished handling of WM_GETMINMAXINFO method, now setting all values
27795 (Completes fix for #76485)
27796 - Calling new SetWindowMinMax driver method when the handle for a
27797 form is created, to make sure the driver knows about it even if
27798 the values have been set before the window was created
27799 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
27800 to avoid messing up our anchoring calculations (partial fix
27802 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
27804 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
27805 - Improved GetWindowState() to detect 'Minimized' state on Metacity
27806 (and presumably other freedesktop.org compliant WMs). Left the
27807 assumption unmapped=minimized, needed for SetVisible to work.
27808 - Now setting the window state when creating windows
27809 - Fixed SetVisible to consider/set the window state when mapping
27810 a Form. We cannot set the state before it's mapped, and we cannot
27811 use Form.WindowState once it's mapped (since it would ask the
27812 driver and get 'normal'. Therefore, we grab the state before
27813 mapping, map, and then set state.
27814 - Implmemented SetWindowMinMax method; Metacity does not seem to
27815 honor the ZoomHints, though.
27817 - Removed MINMAXINFO (moved to XplatUIStructs)
27818 - Added SetWindowMinMax stub (on Win32 the only way to set that
27819 information is in response to the WM_GETMINMAXINFO message, which
27820 is handled in Form.cs)
27821 - Added logic to SetVisible to set the proper window state when a
27822 form is made visible (fixes #75720)
27824 2006-01-26 Jackson Harper <jackson@ximian.com>
27826 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
27827 same way we handle them with Invoke.
27829 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
27832 - Added tracking of window state so CreateParams can return
27833 the appropriate style
27834 - Moved setting of WS_CAPTION style in CreateParams to allow
27835 styles without caption
27836 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
27837 control if the TextBox property is accessed. Fixes #77345
27839 - get_Created: now uses is_disposed and is_created to determine
27840 return value (suggested by Jackson)
27841 - CreateHandle: No longer exits if the handle is being recreated
27842 - RecreateHandle: If the handle is not yet created call the
27843 appropriate method to create either control or handle. If the
27844 control is already created CreateHandle will simply exit instead
27845 of just creating the handle
27846 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
27847 now SendMessage WM_DESTROY directly to the control when DestroyWindow
27850 - When DestroyWindow is called, instead of waiting for the
27851 DestroyNotification from X11, we directly post it to the WndProc
27852 and immediately dispose the hwnd object.
27853 Same applies to DestroyChildWindows, and this obsoletes the
27854 expose_pending tracking. Contrary to Win32 behaviour we destroy our
27855 child windows before our own, to avoid X11 errors.
27856 - Removed the direct sending of WM_PAINT on UpdateWindow
27858 - Reworked DoEvents and GetMessage to allow access to internal queue
27859 even when trying non-blocking access to the queue. Fixes #77335.
27860 Based on a patch suggestion by Don Edvalson. The new private
27861 GetMessage can now also be used as a backend for a PeekMessage
27863 * XplatUI.cs: Improved debug output for CreateWindow
27865 2006-01-25 Jackson Harper <jackson@ximian.com>
27867 * Help.cs: Allow param to be null. Patch by Don Edvalson.
27869 2006-01-24 Jackson Harper <jackson@ximian.com>
27871 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
27872 when we have a MaxDropItems lower then the selected index.
27874 2006-01-24 Jackson Harper <jackson@ximian.com>
27876 * Control.cs: Don't allow selection of non visible controls, allow
27877 selection of controls without parents.
27879 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27881 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
27882 * DataGridDrawingLogic.cs: Add editing row only when is necessary
27884 2006-01-23 Jackson Harper <jackson@ximian.com>
27886 * UpDownBase.cs: Make the textbox handle all the selection and
27887 tabbing. This fixes tabing to updown controls.
27889 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27891 * TextBoxBase.cs: fixes exception thown the object was null
27893 2006-01-23 Jackson Harper <jackson@ximian.com>
27895 * ButtonBase.cs: Just use the base CreateParams. They set
27896 visibility and enabled correctly.
27899 * MonthCalendar.cs: Lets let the base set as much of the
27900 createparams as possible so we don't have duplicate code all over
27903 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
27905 * ThemeGtk.cs: Added TrackBar and some experimental code to
27906 get double buffering back
27908 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
27910 * DataGrid.cs: Allows row number set internally higher than the last
27911 when creating a new row. Restores the editing functionality.
27913 2006-01-20 Mike Kestner <mkestner@novell.com>
27915 * MimeIcon.cs: delay Image creation until the icons are accessed
27916 instead of creating 190 scaled images on GnomeHandler startup.
27918 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27920 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
27921 first call base before processing the event. Fixes #77279
27923 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27925 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
27926 that the stride for the GDI bitmap would match the stride of
27929 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
27931 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
27933 2006-01-19 Jackson Harper <jackson@ximian.com>
27935 * ComboBox.cs: Hookup the text controls keydown event so we get
27936 those when the text control has the focus.
27938 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27940 * Label.cs: Now using the base events instead of defining new ones;
27941 this allows us to just call the base properties without having to
27942 duplicate all base property logic
27944 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27946 * Label.cs: A label by default is not a tabstop (Fixes one of our
27947 failing nunit tests)
27949 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27951 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
27952 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
27954 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27956 * Cursor.cs: Reimplemented creating cursor bitmaps without using
27957 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
27960 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
27961 constructor creates images that can't be saved. Part of the fix
27963 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
27964 - SetWindowState: Switched ShowWindow flags (part of an upcoming
27965 bug fix for handling window state in forms properly)
27967 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27969 * ThemeGtk.cs: Simplify ScrollBar drawing
27971 2006-01-18 Jackson Harper <jackson@ximian.com>
27973 * Splitter.cs: Set the default dock style for the splitter control
27974 in the constructor.
27976 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27978 * ThemeGtk.cs: Corrected StateType and ShadowType for
27981 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27983 * Control.cs: Make use of Theme.DoubleBufferingSupported
27985 - Added drawing for flat style buttons
27986 - Added ScrollBar drawing
27988 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27990 * ThemeClearlooks.cs: Removed some unneeded code.
27991 * ThemeGtk.cs: First part of ThemeGtk enhancements.
27993 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
27995 * LinkLabel.cs: We need to update the hover drawing when
27996 leaving the control as well.
27998 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
28000 * DataGrid.cs: Clicking on non empty areas in the columns
28001 area was giving an exception
28003 2006-01-17 Jackson Harper <jackson@ximian.com>
28005 * ThemeWin32Classic.cs:
28006 * ListView.cs: Do not draw/clip the headers when the header style
28009 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
28011 * DataGrid.cs: Fixes 77260
28013 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
28015 * DataGrid.cs: Clicking on a column on a empty grid was giving
28018 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
28020 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
28021 or any keypress will crash the grid.
28023 2006-01-17 Mike Kestner <mkestner@novell.com>
28025 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
28026 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
28027 invisible/previously-visible items.
28030 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
28032 * ThemeClearlooks.cs:
28033 - Added CL_Draw_Button method; now other theme controls that are
28034 not derived from button or do not have a button can draw buttons
28036 - Updated ComboBox drawing
28037 - Beautified RadioButton drawing
28038 - Corrected drawing of bottom and left tabs
28039 - Beautified DateTimePicker and MonthCalendar
28040 - Added CPDrawButton and CPDrawRadioButton
28042 2006-01-16 Jackson Harper <jackson@ximian.com>
28044 * ComboBox.cs: Set the initial value of the scrollbar to the
28045 current index. Reduce the numbers of refreshs and IndexOfs called.
28047 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
28049 * FileDialog.cs: When the file listview is focused hitting the
28050 backspace key moves the fileview to the parent directory
28052 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28055 - Added RecreateHandle call when changing taskbar visibility to
28056 trigger reparenting in Win32 driver (Fixes #75719)
28057 - If a window has minimize or maximize buttons, it cannot have
28060 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
28061 the toplevel form with FosterParent (A toolwindow not on the
28062 taskbar) (Fixes #75719)
28063 - Made FosterParent a toolwindow
28065 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28067 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
28069 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28071 * ToolTip.cs: If SetToolTip is called from a control and the mouse
28072 is currently over that control, make sure that tooltip_window.Text
28075 2006-01-13 Mike Kestner <mkestner@novell.com>
28077 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
28079 2006-01-13 Jackson Harper <jackson@ximian.com>
28081 * TreeView.cs: On MS GetNodeAt never actually factors in the X
28082 value passed. Also redraw the selected node when we recieve
28083 focus, so tabbing between trees works correctly.
28085 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28087 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
28088 ~/.gconf/%gconf-tree.xml, so use
28089 .gconf/desktop/gnome/interface/%gconf.xml
28091 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28093 * TextControl.cs: Draw text in gray if control is disabled
28095 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28097 * TreeView.cs: Draw the focus rectangle outside the highlight, to
28098 make sure it's always visible. Fixes #76680.
28100 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28102 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
28104 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
28106 * PageSetupDialog.cs: Added.
28107 * PrintDialog.cs: Attributes.
28108 * PrintPreviewControl.cs: Updates.
28109 * PrintPreviewDialog.cs: Updates.
28111 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28113 * Control.cs: Undid my selection check fix, since it's not needed
28115 - Now considering the presence of hscroll/vscroll when sizing
28116 vscroll/hscroll respectively. Fixed bug #77077
28117 - Added Left/Up/Down/Right to IsInputKey list to prevent
28118 ContainerControl from stealing them. This fixes what I broke
28119 with my last checkin.
28121 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28123 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
28124 I finally understand how the property can be set without a setter :-)
28126 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28129 - Switched RunLoop to use static Message.Create to create a
28131 - Added PreProcessMessage call in runloop for keyboard events; this
28132 is part of the fix for #77219, I overlooked this originally in the
28133 MSDN doc for PreProcessMessage
28135 - Removed call to PreProcessMessage from handling of keyboard
28136 messages; it's supposed to be done in the message pump
28137 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
28138 per MSDN documentation.
28139 - IsInputChar: All chars are input chars by default; removed the
28140 parent calling chain, MS does not document that
28141 - PreProcessMessage: If IsInputChar is true, we want to return false
28142 to allow dispatching of the message
28143 - When selecting the next control, now also check that we're not
28144 selecting ourselves again and therefore return a false positive.
28146 - Tried to match return values for IsInputKey and ProcessDialogKey
28147 to what MS returns; moved processing of our special keys outside
28148 ProcessDialogKey since MS does not seem to return true on those.
28149 - Moved code that previously was in ProcessDialogKey into new private
28150 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
28151 - Reworked handling of WM_CHAR to not have to duplicate code from
28152 Control.cs anymore, instead we simply call down to base.
28154 2006-01-12 Jackson Harper <jackson@ximian.com>
28156 * ComboBox.cs: We always need to refresh the text area when
28157 EndUpdate is called. Fixes the combobox in the file dialog.
28158 * Control.cs: Don't create the creator_thread until the controls
28159 handle is created. Also in InvokeRequired we check if the
28160 creator_thread is null. This gives the effect of InvokeRequired
28161 returning true if the controls handle is not created yet, and
28164 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28167 - Added StartLoop() driver method. This is used to allow drivers to
28168 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28169 loop for a particular thread
28170 - Added EndLoop() driver method. This is called once the message
28171 pump for the thread is shut down
28172 - Added SupportsTransparency method to allow the driver to indicate
28173 opacity support for windows
28175 - Removed TODO attribute, completed AllowTransparency property
28176 - Added documented logic to Opacity
28177 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28178 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28179 versions of CompatibleTextRendering
28180 * X11Structs.cs: Added opacity atom to our atom enumeration
28181 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28182 of a form might be set before it's reparented by the WM, and we need
28183 the opacity value without calling up to Form)
28184 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
28185 SupportsTransparency() driver methods
28186 * Application.cs: Now calling StartLoop and EndLoop driver methods
28188 - Added opacity atom registration
28189 - Added StartLoop()/EndLoop() methods. They're empty right now but
28190 will need to get implemented when we switch to a per-thread queue
28191 - Implemented SupportsTransparency() method
28192 - Implemented SetWindowTransparency() method
28193 - Added support for setting the opacity value when a window is
28194 reparented (since the opacity needs to be set on the WM frame)
28195 * XplatUIOSX.cs, XplatUIWin32.cs:
28196 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28198 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28200 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
28202 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28204 * FileDialog.cs: Added ToolTip for MWFFileView
28205 * MimeIcon.cs: Rewrote GnomeHandler.
28206 - Get currently used gnome icon theme from
28207 ($HOME)/.gconf/%gconf-tree.xml
28208 - Make use of inherited icon themes
28209 - Support SVG icon themes like Tango via librsvg
28211 2006-01-12 Miguel de Icaza <miguel@novell.com>
28213 Revert's Jackson's revert which broke 2.0 builds. Fix both
28216 * Application.cs: Move the use_compatible_text_rendering outside
28217 the NET_2_0 define. If we ever need to use the
28218 use_compatible_text_rendering on the individual controls they will
28219 access the variable from the common shared code paths.
28221 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28224 - Added more granular debug options
28225 - Added method to print both window text and id
28226 - Switched debug output to use new Window() debug method
28227 - Added IsEnabled() driver method
28228 - Added EnableWindow() driver method
28230 - Removed end_modal; no longer needed, new loop handles termination
28231 via 'closing' variable
28232 - If form is modal, setting DialogResult will now initiate loop
28233 termination via 'closing' variable
28234 - Added support for is_enabled/WS_DISABLED to CreateParams
28235 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
28237 - Removed code that's now in RunLoop from ShowDialog()
28238 - Added various documented sanity checks to ShowDialog()
28239 - Added handling of WM_DESTROY message; we set 'closing' on getting
28240 the message to indicate the message pump to terminate
28241 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
28242 send by the Application.ExitThread method. (We send the message
28243 to destroy the window after all other events have been
28244 processed through the queue, instead of destroying the handle
28246 - Moved code from Close() method to WM_CLOSE handler; added logic
28247 to only send close-related events if the form is not displayed
28249 * Splitter.cs (..ctor): Fixed typo in resource name
28251 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
28253 - set_Cursor: Now only setting calling into XplatUI if the handle for
28254 the control is already created; this avoids implict handle creation
28255 or crashes if it's not created
28256 - set_Enabled: Now setting the enabled state via the new driver method
28257 instead of just tracking it
28258 - CreateParams: Added logic to set WS_DISABLED based on enabled state
28259 - CreateControl: Reordered event firing and method calls to more
28260 closely fire events in the order MS does. Now setting the
28261 enabled state in the driver when creating the control.
28262 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
28264 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
28265 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
28266 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
28268 - Added tracking of window enabled state (get_Enabled/set_Enabled)
28269 - Added EnabledHwnd property to easily allow a driver to find the
28270 handle of the first enabled window in the parent chain (this is
28271 used by drivers to pass up input events of disabled windows)
28272 * XplatUIDriver.cs: Added IsEnabled() method
28274 - Removed crude and obsolete exiting tracking variable
28275 - Removed internal ModalRun(); replaced by RunLoop()
28276 - Implemented private CloseForms() method to allow closing all
28277 windows owned by a particular (or all) threads
28278 - Exit() now properly closes all windows without forcing the message
28280 - Removed obsolete InternalExit() method
28281 - Changed Run() methods to use new RunLoop() message pump
28282 - Implemented new RunLoop() method for both modal and non-modal forms
28284 - get_CreateParams: Added setting of WS_DISABLED
28285 - Simplified ShowDialog(); now all the work is done in RunLoop(),
28286 invoked via Form.ShowDialog()
28287 * NativeWindow.cs: We don't remove the window from the collection when
28288 the handle is destroyed; there might still be messages for it in the
28289 queue (mainly the resulting WM_DESTROY); instead it will be removed
28290 when Control calls InvalidateHandle in the WM_DESTROY handler
28292 - CreateWindow: Added logic to handle the WS_DISABLED window style
28293 - EnableWindow: Implemented based on Hwnd.Enabled
28294 - GetMessage: Reset PostQuitState so the method can be called again
28295 - Implemented support for disabled windows (passing messages to the
28296 first enabled parent) in handling all input messages
28297 - Added optimizations for handling Expose events
28298 - Implemeted new driver method IsEnabled()
28299 - Now always resetting paint pending tracking vars when we start paint
28300 - Re-implemented UpdateWindow via just sending a WM_PAINT message
28301 * XplatUIOSX.cs: Added IsEnabled method stub
28302 * XplatUIWin32.cs: Implemented new IsEnabled() method
28304 2006-01-11 Jackson Harper <jackson@ximian.com>
28306 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28307 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
28308 variables a little.
28309 * ColorDialog.cs: Clear out the old form before adding the new
28312 2006-01-11 Jackson Harper <jackson@ximian.com>
28314 * X11Dnd.cs: Make sure to add all the text formats when adding
28315 strings to the data object.
28316 * TreeNodeCollection.cs: When adding to a sorted tree we need to
28317 do some redrawing too. Also change the UpdateNode to an
28318 UpdateBelow so the newly added node gets painted.
28320 2006-01-11 Miguel de Icaza <miguel@novell.com>
28322 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28323 LinkLabel.cs, PropertyGrid.cs: Implement the
28324 UseCompatibleTextRendering property for 2.x
28326 * Application.cs (SetCompatibleTextRenderingDefault): Add.
28328 2006-01-11 Jackson Harper <jackson@ximian.com>
28330 * TreeView.cs: Use the property for setting the selected node so
28331 the correct events get raised.
28332 * TreeNode.cs: Update the tree when the fore/back colours of a
28335 2006-01-10 Jackson Harper <jackson@ximian.com>
28337 * TreeView.cs: Allow setting SelectedNode to null.
28339 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28341 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
28343 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28345 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
28347 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28349 * PrintDialog.cs: Added attributes and set default property values.
28351 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28353 * PrintControllerWithStatusDialog.cs:
28354 Added PrintControllerWithStatusDialog.
28356 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28358 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
28359 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
28361 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28363 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
28365 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28367 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
28368 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
28370 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28372 * MimeIcon.cs: Added internal class SVGUtil.
28374 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28376 * FileDialog.cs: Don't crash if there are two files with the
28377 same name but different locations.
28379 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
28381 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
28382 dates across multiple month grids. Used to not highlight entire
28383 month, but does now.
28385 2006-01-06 Jackson Harper <jackson@ximian.com>
28387 * MonthCalendar.cs: Removed DoEvents call to prevent a running
28388 message loop. Change timer intervals to numbers that seem more
28391 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
28393 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
28394 object for location info since screen object is now implemented.
28396 2006-01-05 Jackson Harper <jackson@ximian.com>
28398 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
28399 * AsyncMethodResult.cs: We no longer use a WeakReference for the
28400 AsyncMethodResult, this is because we ALWAYS want the
28401 ManualResetEvent to get set.
28402 * Control.cs: When disposing use an async invoke to call shutdown
28403 code, so that thigns don't block on the finalizer thread. Also
28404 check if we even have a message loop before trying to send
28405 messages, if we don't then don't bother sending messages.
28406 - No more weak references for async methods
28407 * XplatUIDriver.cs: No more weak references for async methods.
28409 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28411 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
28412 returns two FontFamily with the same name
28414 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28416 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
28417 drawing disabled text. Instead using the ColorGrayText color
28419 2006-01-04 Jackson Harper <jackson@ximian.com>
28421 * TreeNode.cs: redraw the node when its image index is changed.
28423 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28425 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
28426 time I checked there are no others like it.
28428 2006-01-04 Jackson Harper <jackson@ximian.com>
28430 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
28431 this gives the behavoir I was looking for.
28432 * Control.cs: Special case Invoking EventHandlers, this matches MS
28433 and fixes part of bug #76326.
28435 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28437 * ThemeClearlooks.cs, FileDialog.cs:
28438 - Reflect the latest Theme class changes
28439 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
28442 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28444 * Theme.cs: Cache UI resource images and resize them if needed
28446 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28448 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
28449 is called. This fixes the crash in Nexxia when setting the font
28450 attributes in the chat. [However, RTF needs a look-over to make sure
28451 that all SelectionXXX methods handle the special case that selection
28452 is empty and therefore the change must be applied to all text starting
28453 at the cursor/selection start]
28455 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28457 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28458 XplatUIOSX.cs: Added SendMessage and PostMessage methods
28459 * X11Keyboard.cs: Switched to new way of calling PostMessage
28461 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28463 * Theme.cs: Added theme interface for images to allow the theme to
28464 control what images are used for things like FileDialog, MessageBox
28466 * MessageBox.cs: Now uses the new Theme icon/image interfaces
28468 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
28471 - Removed some dead code
28472 - Opening a recently used file does work now
28473 - Small UI enhancements
28476 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28478 * FileDialog.cs: Forgot too add __MonoCS__
28480 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28482 * FileDialog.cs: We are able to read recently used files now let's
28483 go on and write them.
28485 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
28487 * FileDialog.cs: Breathe some life into "last open"/"recently used"
28489 * MimeIcon.cs: Do a check for the top level media type also
28491 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28493 * ThemeClearlooks.cs:
28494 - Added CPDrawStringDisabled
28495 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
28496 some chars if the text doesn't fit into text_rect
28497 - DrawListViewItem: If View = View.LargeIcon center the image;
28498 rewrote the drawing of ListViewItem.Text if View =
28501 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28503 * MimeIcon.cs: Use default KDE icon theme if there is no
28504 "48x48" directory for the current icon theme, fixes #77114
28505 * Mime.cs: Disable not working and actually not used code.
28506 * ThemeWin32Classic.cs:
28507 - Replace "new SolidBrush" in GetControlBackBrush and
28508 GetControlForeBrush with ResPool.GetSolidBrush
28509 - Changed DrawListViewItem from private to protected virtual
28511 - Added form.MaximizeBox = true
28512 - Don't throw an exception if there is a broken symbolic link
28514 2005-12-23 Jackson Harper <jackson@ximian.com>
28516 * TabControl.cs: Give the panels focus, keyboard navigation is
28517 fixed so this works correctly now.
28518 - We need these key events also.
28519 * ToolBar.cs: Remove some of the poor mans double buffering.
28521 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
28523 * ComboBox.cs: The internal TextBox now returns the focus.
28525 2005-12-23 Jackson Harper <jackson@ximian.com>
28527 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
28529 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28531 * Control.cs: Removed debug code
28532 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
28535 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28537 * Control.cs: When creating the control, update the Z-order after
28538 all it's children are created, too. (Fixes nexxia not showing
28541 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28543 * Control.cs: Do not update the anchoring distances if layout is
28544 suspended, instead do it once layout is resumed
28546 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28549 - After many hours of debugging, for both Jackson and
28550 myself, it turns out that it helps to set the parent of a control
28551 if you want to actually see it onscreen. In the spirit of that
28552 discovery, we're now setting the parent of the control and
28553 it's children when the control's handle is created. This fix
28554 will make Lutz Roeder's Reflector run happily.
28555 - now just creating the handle instead of the whole control when
28556 getting a graphics context for the control.
28558 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28560 * ScrollableControl.cs: When calculating the canvas, don't consider
28561 the scrollbar widths. Instead, predict if horizontal scrollbar
28562 will affect canvas when deciding on vertical display and vice versa.
28564 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28566 * RichTextBox.cs: Set default RTF font for documents that don't
28567 have a font table (Fixes #77076)
28569 2005-12-22 Jackson Harper <jackson@ximian.com>
28571 * TextBoxBase.cs: It's difficult to do, but you can have an empty
28572 clipboard. This prevents a NullRef in that case.
28573 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
28574 clipboard. PRIMARY is for the currently selected text only. (We
28575 should implement PRIMARY at some point.
28577 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28579 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
28580 a Unicode function with a structure that was defined in Ansi way.
28583 2005-12-21 Jackson Harper <jackson@ximian.com>
28585 * StatusBar.cs: Statusbar handles its fore/back colours on it's
28586 on. Because thats how it rolls. (and this avoids it using ambient
28588 * ThemeWin32Classic.cs: Use the proper back color for filling.
28589 * Menu.cs: Use the system menu bar color for drawing menu
28590 bars. Using the window back color will bring ambient colours into
28593 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
28595 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
28596 Bitmaps were created and not disposed.
28598 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28600 * Control.cs (CreateControl): Don't do anything if the control is
28601 already created, otherwise we'd fire the OnCreated event more than
28604 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28606 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
28607 will always match. Instead return -1. Fixes #76464.
28609 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28611 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
28612 neither the beginning nor the end of the line (Fixes bug #76479)
28614 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28617 - ControlNativeWindow.ControlFromHandle(): Now handling situation
28618 where handle is invalid
28619 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
28620 instead of slower linear search
28621 * NativeWindow.cs: Don't remove the window from the hashtable until
28622 after the driver has destroyed it (since the driver might use
28623 Control.FromHandle to lookup the control object
28624 * Hwnd.cs: Added DestroyPending property to track if a window is
28625 already destroyed as far as the driver is concerned and only hasn't
28626 yet notified the control
28628 - Activate(): Check if the window is still valid before using the
28630 - Implemented DestroyChildWindow() method to mark child windows as
28631 destroyed when a window is destroyed. This prevents situations
28632 where we might call an X method based on queued events for a
28633 window that already has been destroyed but we haven't yet pulled
28634 the destroy method from the queue.
28635 - Added a call to the new DestroyChildWindow() method to the drivers
28636 DestroyWindow code. Also now marking the destroyed window itself
28639 2005-12-20 Jackson Harper <jackson@ximian.com>
28642 * StatusBarPanel.cs: Don't calculate panel sizes on draw
28643 anymore. Just do them when needed, also track the rects of panels
28644 so that we can optimize refreshing more in the future.
28646 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
28648 * ColorDialog.cs: Fixed focus drawing in small color controls
28650 2005-12-19 Jackson Harper <jackson@ximian.com>
28652 * InternalWindowManager.cs:
28653 * MdiWindowManager.cs: Cleanup some coordinate system changes so
28654 moving windows works properly.
28656 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
28659 - Removed call to InitLayout() from SetBoundsCore(); doc says
28660 it's only called when a control is added to a container
28661 - Split InitLayout logic, moved to separate UpdateDistances() method
28662 since we need to perform those calculations more often than just
28663 when adding the control to a container. (Needed to fix #77022)
28664 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
28665 - Reduced the OnBindingContextChanged events count, don't send them
28666 unless the control is created, we still aren't totally matching
28667 MS, but I can't quite figure out some of their rules
28669 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28671 * ThemeClearlooks.cs: Corrected distance between ProgressBar
28674 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28676 * ThemeClearlooks.cs:
28677 - Updated ProgressBar drawing
28678 - Corrected drawing of ScrollBars and scroll buttons
28679 - Some temporary fixes for minor pixel artefacts
28681 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
28684 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
28685 cause events to be sent in the same order as MS does.
28686 - Added ChangeParent() method to trigger various OnXXXChanged events
28687 that need to be fired when a parent changes (This is a reworking
28688 of the patch from r54254, with the X11 errors fixed)
28689 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
28690 since on MS we get OnLayoutChanged events when calling Clear()
28691 - Changed Enabled property to consider parent state as well, if a
28692 parent is not enabled, the control will not be either
28693 - Changed Parent property to simply call Controls.Add() since that
28694 now does all the work required, this way we avoid code duplication
28695 - Threw in a few OnBindingsContextChanged calls to try and match
28696 when MS sends them. We seem to send a few too many, though.
28697 - Added call to CreateControl when adding the control to a parent.
28698 We were never calling CreateControl. Still needs some work, in
28699 some places we treat HandleCreated and ControlCreated as equal,
28701 - Removed obsolete commented out code from UpdateZOrder()
28703 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28705 * ThemeClearlooks.cs: Updated TrackBar drawing.
28707 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28709 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
28711 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28713 * FileDialog.cs: Add the Help button and the open readonly
28714 checkbox only if needed
28716 2005-12-16 Jackson Harper <jackson@ximian.com>
28718 * Control.cs: Make sure we have an active menu before trying to
28719 process commands on it. Prevents menu-less forms from crashing
28720 when Alt is pressed.
28721 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
28723 * RichTextBox.cs: Expand statement to help out gmcs and fix the
28726 2005-12-16 Jackson Harper <jackson@ximian.com>
28728 * InternalWindowManager.cs: Don't translate tool windows screen
28729 coordinates. This fixes windows 'bouncing' around when being moved.
28731 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28734 - MaxLength now treats 2^31-1 equal to unlimited length (this is
28735 not quite MS compatible, MS uses that number only for single line
28736 and 2^32-1 for multi-line, but I figure it won't hurt keeping
28738 - Now enforcing the MaxLength limit when entering characters
28739 - Added argument to internal Paste() method to track if it's called
28740 from programatically or via keyboard, since keyboard driven pastes
28741 need to enforce max-length
28742 - Added logic to Paste to only paste as many chars as MaxLength
28744 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
28746 - Added Length property to return number of characters in document
28747 - Added private CharCount property which only tracks actual chars
28748 in the document (no linefeeds) and fires event when CharCount
28750 - Added tracking of character count to all methods that alter it
28751 - Added LengthChanged event to allow applications to subscribe
28752 to any changes to the document
28754 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28757 - Removed local password_char field (moved to TextBoxBase)
28758 - Now setting the document's password var when password is
28761 - Added password_char field (needed here so MultiLine can
28763 - Added logic to MultiLine property setter to set the document's
28764 variable when password display is allowed
28765 - Removed debug code and made some debug code conditional
28767 - Added RecalculatePasswordLine() method to handle special password
28769 - Added PasswordChar property, also added related tracking vars
28770 - Draw() method now uses local text var for grabbing text to draw,
28771 this var is set to line.text unless we're doing password display,
28772 then it is set to the pre-generated all-password-chars line
28773 - Added calling RecalculatePasswordLine() method for password lines
28775 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28778 - Added Reparented property to allow tracking of Window Manager
28779 reparenting actions (which affect X/Y calculations of toplevel
28781 - Made ToString() print window handles in hex
28783 - AddConfigureNotify(): Now uses reparented state off Hwnd to
28784 determine if X/Y needs offsetting
28785 - AddConfigureNotify(): Fixed offset calculations
28786 - Now adds ReparentNotify messages into the queue
28787 - Now processes ReparentNotify messages and causes a
28788 WM_WINDOWPOSCHANGED message to be sent upstream if a window
28789 is reparented (as most likely it's X/Y coordinates are changed
28792 2005-12-14 Jackson Harper <jackson@ximian.com>
28794 * XplatUIX11.cs: Tool windows still need to respek focus.
28796 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28798 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
28799 have a working release
28801 2005-12-13 Jackson Harper <jackson@ximian.com>
28803 * Form.cs: Update styles after setting the border style regardless
28804 of whether or not the window is using a window manager.
28806 2005-12-13 Jackson Harper <jackson@ximian.com>
28808 * Form.cs: We now hook into an internal window manager instead of just an
28809 MDI subsystem, this is so we can have properly behaving tool windows.
28810 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
28811 * InternalWindowManager.cs: New internal class that acts as a
28812 window manager for tool windows and as a base for mdi windows.
28813 * MdiWindowManager.cs: New class that acts as a window manager for
28816 2005-12-12 Jackson Harper <jackson@ximian.com>
28818 * Control.cs: Updates so we match behavoir for for implicit
28819 controls. Fixes explosions in MDI.
28821 2005-12-12 Jackson Harper <jackson@ximian.com>
28823 * Control.cs: Implement Invalidate (Region).
28825 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
28828 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
28829 the same events as MS does. MS fires events for each property
28830 except, for unknown reasons, Cursor, when the control is reparented.
28831 I can't seem to totally match add/remove since MS also fires some
28832 VisibleChanged events, which makes no sense. Consolidated the
28833 parenting code into a separate method so it can be called from
28834 both Add and Remove. set_Parent no longer needs any special logic
28835 as it calls the parent's add method which implicitly fires
28837 - Removed some obsolete code and debug output
28838 - Enabled state is inherited from parents, if this is enabled
28840 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28842 * Form.cs: Removed commented out code
28844 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28847 - Added internal version of Invoke, with additional argument
28848 indicating if we're calling it from a Dispose() handler. That
28849 way we can avoid BeginInvoke throwing an exception if we're
28850 calling for an already destroyed window.
28851 - Added a dispose argument to BeginInvokeInternal, and made the
28852 check if a valid window handle chain exists conditional on
28853 it not being a dispose call
28854 - Removed code in DestroyHandle to destroy our children. Since we
28855 now handle the WM_DESTROY message we will catch all our children
28857 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
28859 - Added a field to track the application context of the form.
28860 - No need to set closing variable as response to WM_CLOSE, instead
28861 we destroy the window. We also call PostQuitMessage if the form
28862 has an application context (which makes it the main app form,
28863 which, when closed terminates the app)
28865 - Dropped Exit() method, it's naming was confusing
28866 - Added PostQuitMessage() which causes GetMessage to return false
28867 once the message queue is empty
28868 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
28870 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
28871 no longer a valid XplatUI method, but left it in since it's used
28872 internally. Added empty PostQuitMessage() method.
28873 * MenuAPI.cs: Replaced call to Exit() with call to
28874 PostQuitMessage, even though this is probably no longer needed.
28875 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
28876 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
28878 - Replaced call to XplatUI.Exit() with PostQuitMessage()
28879 - Removed old debug code that would call XplatUI for exception
28880 display, enabled standard exception handling (Still not enabled
28881 though, until NativeWindow's ExternalExceptionHandler define
28884 - Added internal method to allow control to update NativeWindow
28885 after a window has been destroyed
28886 - Added handling of already destroyed windows when calling i
28888 - Added removal of handle from list on ReleaseHandle
28890 - Dropped GetMessageResult var and related code
28891 - Added PostQuitState to field to track if PostQuitMessage has been
28893 - Dropped Exit() method
28894 - Added PostQuitMessage() method
28895 - GetMessage now will return false if PostQuitState is set and no
28896 more messages are in the queue.
28897 - Expose handler will no longer generate WM_PAINT messages if we are
28898 in PostQuitState since it's very likely any windows have already
28899 been destroyed, and since Hwnd won't get updated until we have
28900 processed the DestroyNotify we'd be causing X errors.
28902 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28904 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
28905 Thanks to Mike for pointing out the err of my ways.
28907 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28909 * Control.cs(PreProcessMessage): Moved menu handling back, but
28910 after all other key handling, to match MS (who handles Menu in
28912 * Menu.cs (WndProc): Removed my brainfart
28914 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28916 * Control.cs(PreProcessMessage): Removed special menu handling
28917 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
28919 2005-12-07 Mike Kestner <mkestner@novell.com>
28921 * Control.cs : special case SYSKEYUP so that we can adjust keynav
28922 state according in tracker.
28923 * Menu.cs : promote tracker field to base class and provide a tracker
28924 lookup capability. Add/Remove shortcuts dynamically if the top menu
28925 has a tracker. Unparent items that are removed from the collection.
28926 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
28927 * Theme*.cs: add always_show_hotkeys field to support configurability
28928 of mnemonic display. win32 doesn't show mnemonics until Alt is
28931 2005-12-07 Jackson Harper <jackson@ximian.com>
28933 * MdiChildContext.cs: Use Control.ResetCursor.
28934 * Control.cs: ResetCursor needs to set the property so that the
28935 correct XplatUI call gets made.
28937 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28939 * Control.cs: More fixes to make our key events match MS. We
28940 were not setting the modifier state on KeyData, and we were
28941 not generating any events when Alt was pressed with a key
28942 since handling of WM_SYSxxx was missing for the OnKey methods.
28944 2005-12-07 Jackson Harper <jackson@ximian.com>
28946 * MdiChildContext.cs: reenable the sizing code.
28947 - When the mouse leaves a window reset its cursor.
28949 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28951 * ThemeClearlooks.cs: Reflect latest Hwnd changes
28953 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28955 * Hwnd.cs: Now using the theme 3d bordersize to calculate
28956 widths of Fixed3D borders
28958 2005-12-07 Jackson Harper <jackson@ximian.com>
28960 * MdiClient.cs: Fix warnings. Earn Mike's love.
28962 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28964 * ThemeClearlooks.cs:
28965 - Adjusted mouse over button color
28966 - Added first parts of CheckBox drawing
28967 - Added correct color for selected text background
28968 - Fixed ComboBox drawing
28969 - Added CPDrawBorder3D and CPDrawBorder
28971 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28973 * XplatUIX11.cs: Added call to XBell for AudibleAlert
28975 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28977 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28978 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
28979 alert users via sound. We could add an enum arg with different
28980 types of alerts in the future
28982 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28984 * Control.cs: Fix behaviour problems pointed out by Mike
28986 2005-12-05 Mike Kestner <mkestner@novell.com>
28988 * StatusBarPanel.cs: add Invalidate method and hook it into all the
28989 prop setters. Calls parent.Refresh for now, but could be maybe be
28990 optimized with an internal method on StatusBar at some point.
28993 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
28995 * RichTextBox.cs: Implemented get_SelectionColor
28997 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
28999 * ThemeClearlooks.cs:
29000 - Removed dead code
29001 - Draw black button border only if button is Form.AcceptButton
29002 - Draw correct button color for pressed RadioButton if the mouse
29003 has entered the button
29004 - Updated ProgressBar drawing!
29005 - Updated CPDrawSizeGrip drawing
29006 - Updated StatusBarPanel drawing
29008 2005-12-05 Mike Kestner <mkestner@novell.com>
29010 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
29011 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
29013 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
29015 * ThemeClearlooks.cs: Initial check-in, activate with
29016 export MONO_THEME=clearlooks
29017 * ThemeEngine.cs: Added ThemeClearlooks
29019 2005-12-03 Mike Kestner <mkestner@novell.com>
29021 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
29024 2005-12-02 Jackson Harper <jackson@ximian.com>
29026 * Form.cs: If the child form has no menu the default main menu is
29027 used as the active menu.
29029 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29031 * ListBox.cs: Check if any items exist before trying to resolve
29032 coordinates into items
29034 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29036 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
29037 as the second color for the background hatch
29039 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29041 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
29042 * RichTextBox.cs: FormatText position arguments are 1-based, now making
29043 sure that what we pass to FormatText is always 1-based. Fixes #76885
29045 2005-11-29 Miguel de Icaza <miguel@novell.com>
29047 * NumericUpDown.cs (EndInit): When we are done initializing,
29048 reflect any updates on the UI.
29050 2005-12-02 Jackson Harper <jackson@ximian.com>
29052 * ImplicitHScrollBar.cs:
29053 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
29054 their container controls.
29055 * TreeView.cs: Use the new implicit scrollbars.
29057 2005-12-02 Jackson Harper <jackson@ximian.com>
29059 * TreeView.cs: Make top_node internal so the TreeNodeCollections
29061 * TreeNodeCollection.cs: If we remove the topnode we need to
29062 update topnode to the next node in line.
29063 - When clearing nodes go through the same process as removing
29064 them, so they get depareneted and checked if they are top node.
29066 2005-12-01 Jackson Harper <jackson@ximian.com>
29068 * TreeView.cs: When imagelists are used the image area is
29069 selectable as well as the text.
29070 - If there are no selected nodes select the first one.
29071 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
29072 so don't do it more then we need to.
29074 2005-12-01 Jackson Harper <jackson@ximian.com>
29076 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
29077 that arrows can be scaled.
29079 2005-12-01 Jackson Harper <jackson@ximian.com>
29081 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
29082 fail. Patch by Dieter Bremes
29084 2005-11-30 Jackson Harper <jackson@ximian.com>
29086 * Form.cs: Property is 2.0 only
29087 * PrintDialog.cs: Signature fix.
29089 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
29092 - No longer artificially moves text 2 pixels down (now that we have
29093 borders this is no longer needed)
29094 - Added calcs for left, hanging and right indent
29096 2005-11-23 Mike Kestner <mkestner@novell.com>
29098 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
29100 2005-11-30 Jackson Harper <jackson@ximian.com>
29102 * MdiChildContext.cs: Set the cloned menus forms, as these don't
29103 get cloned as part of CloneMenu ().
29104 * Menu.cs: Make sure the parent of the items get set correctly
29105 when they are added. And the owners are notified of the changes.
29106 * Form.cs: Create an ActiveMenu property, so that when MDI is used
29107 we can change the menu being displayed/handled by the form without
29108 changing the menu assosciated with the form.
29109 - Don't let Mdi children draw/handle menus.
29111 2005-11-30 Jackson Harper <jackson@ximian.com>
29113 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
29114 a MenuChanged event. Just to make the API a little more
29117 * MenuItem.cs: Use the new OnMenuChanged
29118 * MdiChildContext.cs: Handle menu merging.
29119 * Form.cs: Implement MergedMenu.
29121 2005-11-30 Jackson Harper <jackson@ximian.com>
29123 * Menu.cs: We were misusing Add. Add goes behind the specified
29124 index according to the docs, and does not replace the specified
29125 index. So I added an Insert method.
29127 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
29129 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
29130 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
29132 * RichTextBox.cs: Added calls to base for DnD events
29134 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
29137 - Fixed drag-selection related crash; style fixes
29138 - Implemented undo class
29139 o Implemented method to capture document state for specified
29140 range in document tree
29141 o Implemented method to restore captured document state
29142 o Implemented cursor tracking
29143 o Implemented basic undo stack
29144 - Added undo cursor tracking to methods altering cursor location
29145 - Added undo tracking to selection deletion (still missing
29146 other text-altering hookups)
29148 - Added SelectionLength property
29149 - Implemented CanPaste()
29150 - Implemented Paste()
29151 - Added missing protected methods
29152 - Fixed RTF->Document conversion; now uses font index 0 and color
29153 index 0 as the default font for the parsed text
29154 - Fixed RTF<->Document font size translation
29155 - Fixed RTF generation, now properly handles cross-tag boundaries
29156 for single line selection
29157 - No longer always appends blank line to generated RTF
29159 - Added missing attributes
29160 - Hooked up undo-related methods
29162 - Implemented Copy()
29163 - Implemented Paste()
29164 - Implemented Cut()
29165 - Fixed caret mis-behaviour on backspace across line-boundaries
29167 2005-11-29 Jackson Harper <jackson@ximian.com>
29169 * MdiClient.cs: Add a method for activating mdi children. Very
29170 basic right now. I imagine someday it might need more girth.
29171 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29172 children windows names are added to the menu item.
29173 * ThemeWin32Classic.cs: Draw the arrow if the item is an
29174 mdilist. This happens regardless of whether or not there are any
29175 mdi windows to see in the list, and according to my tests happens
29176 before the items are even added. Also happens if there isn't even
29177 an mdi client to get windows from.
29179 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
29181 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29182 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29184 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
29186 * DataGridTableStyle.cs:
29187 - Create always the styles for the missing columns even if they are
29188 provided by the user (not default table style)
29191 - Fixes SetDataBinding (always re-attach source)
29192 - Fixes SetNewDataSource (only clear styles if they are not for
29194 - Expands OnTableStylesCollectionChanged to handle style refresh
29195 and remove properly
29197 2005-11-29 Jackson Harper <jackson@ximian.com>
29199 * FileDialog.cs: Implement missing bits, remove some dead
29201 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
29202 creation of the panel so that the options set on the dialog are
29203 seen when the panel is created.
29204 * TreeView.cs: raise a click when items are clicked.
29206 2005-11-29 Jackson Harper <jackson@ximian.com>
29208 * MdiClient.cs: Pass some signature methods through to base.
29210 2005-11-28 Jackson Harper <jackson@ximian.com>
29212 * ListView.cs: Raise the click event when items are clicked.
29214 2005-11-28 Jackson Harper <jackson@ximian.com>
29216 * MdiClient.cs: Make this algorithm even more beautiful. And fix
29219 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
29221 * ThemeNice.cs: - Removed 1 pixel bitmaps
29222 - Use SmoothingMode.AntiAlias where it makes sense
29223 (ScrollButton arrow for example)
29224 - Enhanced Button focus drawing
29225 - Fixed ComboBox drawing (no artefacts anymore, focus
29226 rectangle is back again, reduced size of ComboButton, etc.)
29227 - Fixed RadioButton focus drawing for Appearence.Button
29228 - Slight ScrollButton redesign
29229 - Some LinearGradientBrush size fixes
29230 - GroupBoxes have now rounded edges
29231 - Fixed StatusBar drawing
29233 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
29235 * ThemeNice.cs: - Remove dead code
29236 - use correct background colors for menus, etc.
29237 - Fake pixel drawing with 1 pixel bitmaps
29239 2005-11-24 Jackson Harper <jackson@ximian.com>
29241 * MdiClient.cs: Size the scrollbars when resizing the window.
29242 - Resize the maximized windows when the client is resized
29243 * Form.cs: Make the child context available
29245 2005-11-23 Jackson Harper <jackson@ximian.com>
29247 * MdiChildContext.cs: Don't size windows if they are maximized.
29249 2005-11-23 Mike Kestner <mkestner@novell.com>
29251 * ContextMenu.cs: use MenuTracker.
29252 * Control.cs: remove menu handle usage.
29253 * Form.cs: remove menu handle usage.
29254 * Hwnd.cs: remove menu handle usage.
29255 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
29256 motion and clicks to the new Tracker handlers.
29257 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
29259 * MenuAPI.cs: refactored to combine popup and menubar event handling.
29260 Killed the MENU and MENUITEM data types and associated collections
29261 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
29262 MenuTracker class that exposes the leftovers from the old MenuAPI
29263 static methods. Restructured Capture handling so that only one grab is
29264 done for the entire menu hierarchy instead of handing off grabs to
29265 submenus. Tracker now has an invisible control to Capture when active.
29266 * MenuItem.cs: add sizing accessors, kill Create
29268 * Theme.cs: remove menu handle and MENU(ITEM) usage.
29269 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
29270 MENU(ITEM). remove menu handle usage, use Menu directly.
29271 * XplatUIDriver.cs: remove menu handle usage.
29272 * XplatUIOSX.cs: remove menu handle usage.
29273 * XplatUIWin32.cs: remove menu handle usage.
29274 * XplatUIX11.cs: remove menu handle usage.
29276 2005-11-22 Jackson Harper <jackson@ximian.com>
29278 * Hwnd.cs: Don't compute the menu size for
29279 DefaultClientRectangle.
29280 - Reenable menu sizes being computed for GetClienRectangle.
29281 * Form.cs: Remove comment of trechery
29283 2005-11-22 Jackson Harper <jackson@ximian.com>
29285 * Hwnd.cs: The adjustments for the menu bar are made when it is
29286 attached to the form.
29288 2005-11-19 Jackson Harper <jackson@ximian.com>
29290 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
29291 (just like on windows).
29293 2005-11-19 Jackson Harper <jackson@ximian.com>
29295 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
29296 use real buttons anymore because they are in non client area. The
29297 one TODO here is that I need to somehow invalidate a section of
29298 the non client area.
29300 2005-11-18 Jackson Harper <jackson@ximian.com>
29302 * Control.cs: Put the enum check back in now that MDI doesnt have
29303 to use this to set border styles.
29304 * Form.cs: Only set mdi child windows borders if the handle has
29306 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
29307 this directly on to the driver.
29308 - Get the move start position before adjusting for the titlebar
29309 height, this fixes the windows "skipping" when they are first
29312 2005-11-18 Jackson Harper <jackson@ximian.com>
29314 * XplatUIX11.cs: Just compute the mdi borders separately as they
29315 don't totally match up with normal form borders.
29317 2005-11-18 Jackson Harper <jackson@ximian.com>
29319 * Control.cs: Set WS_ styles for borders, so that the driver does
29320 not have to retrieve the control instance to figure out what kind
29321 of borders it should have.
29322 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
29323 driver can know its an mdi child easily.
29324 * XplatUIX11.cs: Get the border styles and whether the window is
29325 MDI from the Styles and ExStyles params instead of having to get a
29326 control. This prevents a chicken and egg problem.
29328 2005-11-18 Jackson Harper <jackson@ximian.com>
29330 * MdiClient.cs: Fix typo so scrollbars show up correctly.
29332 2005-11-18 Jackson Harper <jackson@ximian.com>
29334 * MdiClient.cs: Calculate when to add and remove scrollbars
29336 * MdiChildContext.cs: Adjust the y position to take the titlebar
29338 - No height for FormBorderStyle.None
29340 2005-11-18 Jackson Harper <jackson@ximian.com>
29342 * Control.cs: Allow non enum values to be used for
29343 InternalBorderStyle. MDI does this to set a special border style.
29344 - New utility methods for converting points to/from client coords
29345 - Add the newly created control to the Controls collection before
29346 updating its style. This way UpdateStyle can walk the control
29347 heirarchy to find the control if needed.
29348 so I don't need to create a new Point object all the time.
29349 * Form.cs: Let MDI windows handle their border styles.
29350 - Set styles on MDI windows so the correct title style is derived.
29351 * MdiChildContext.cs: Move all the painting and window handling
29352 into the non client area.
29353 - Use correct sizing and put correct buttons on frames based on
29354 the FormBorderStyle.
29355 - Notify the mdi client about scrolling
29356 - Need to handle the buttons ourselves now, because they are all
29357 in non client areas and we can't add controls there.
29358 * MdiClient.cs: Halfway to scrolling, this implementation is
29359 somewhat broken though, we need to check to make sure other
29360 windows aren't causing scrolling before removing the bars. Also
29361 the bars need to be drawn on top, maybe I can switch implicit
29362 controls to be on top.
29363 * Hwnd.cs: caption_height and tool_caption_height are now
29364 properties of an hwnd, this way they can be set by the driver
29365 based on the type of window they are. In X11 the window manager
29366 handles the decorations so caption_height is zero unless its an
29368 - Add 3 pixel borders for MDI windows (0xFFFF).
29369 - Get rid of some code duplication, have DefaultClientRectanle
29370 just call GetClientRectangle.
29371 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
29373 - Set border styles differently for mdi windows.
29374 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
29377 2005-11-15 Mike Kestner <mkestner@novell.com>
29379 * Menu.cs: when adding an item to the collection, if item is already
29380 parented, remove it from the parent.
29382 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
29384 * X11DesktopColors.cs: Added KDE support
29386 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
29389 - Clipboard methods now can translate Rtf format
29390 - No longer removes clipboard contents whenever a new format is added
29391 to allow placing multiple formats on the clipboard
29392 * Clipboard.cs: Clipboard now supports getting a IDataObject and
29393 will place all formats contained in it onto the clipboard. Also
29394 now cleans the clipboard before placing a new object onto it
29396 - Implemented set_Rtf
29397 - Implemented set_SelectedRtf
29398 - Created InsertRTFFromStream() method to allow single code base
29399 for all properties and methods that insert RTF into document
29400 - Removed debug output
29402 - Fixed Delete(int) to fix up line numbers
29403 - Fixed ReplaceSelection to combine start and end line
29404 - Fixed serious DeleteChars bug that would leave the document tree
29406 - Improved DumpTree with several logic checks to detect broken
29408 - Removed debug lines
29409 - Fixed Caret.WordForward/WordBack moving code, now always also
29410 updates caret.tag (fixes crash when word-selecting across tag
29411 boundaries via keyboard)
29412 - Added Insert() method for inserting multiline text into documents
29413 - Fixed DeleteChars() calculation errors that would cause a broken
29414 tag chain with multiple tag lines
29415 - DeleteChars() no longer crashes on multi-tag lines if not all tags
29416 - Split() no longer moves caret if split is at caret location
29417 - ReplaceSelection() now updates the cursor and re-displays it
29418 - ReplaceSelection() now uses new Insert() method to avoid code
29420 - FormatText() can now handle formatting partial lines
29422 - Append now uses new TextControl.Insert() method (this avoids
29424 - Implemented Ctrl-X (Cut) (
29425 - Implemented Ctrl-C (Copy)
29426 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
29427 regeneration when pasting text; roundtripping Copy&Paste within
29428 edit control still fails due to some calculation bugs in GenerateRTF)
29429 - The Delete key will now remove the current selection if it is visible
29430 * TextBox.cs: Removed debug lines
29431 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
29432 driver to be initialized and can't therefore be done via a static ctor)
29434 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
29436 * TextControl.cs: Added backend code for finding char arrays and strings
29438 - Added mouse wheel scroll support
29439 - Added support for VScroll and HScroll events
29441 - Implemented all seven Find() variants
29442 - Implemented GetCharFromPosition()
29443 - Implemented GetCharIndexFromPosition()
29444 - Implemented GetLineFromIndex()
29445 - Implemented GetPositionFromCharIndex();
29446 - Implemented SaveFile for PlainText and UnicodeText
29447 - Fixed set_Font, now setting a new font applies that font to
29449 - Implemented generic Document to RTF converter
29450 - Implemented SaveFile for RichText format (still missing unicode
29451 conversion for non-ansi chars)
29452 - Implemented get_Rtf
29453 - Implemented get_SelectedRtf
29455 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
29457 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
29458 to allow any captures to be released before triggering OnClick. This
29459 way a click handler may capture the mouse without interference.
29460 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
29461 This way we send them even though X may not allow a grab (if the window
29462 isn't visible, for example)
29464 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
29466 * DataGridViewRowEventArgs.cs: DataGridView implementation
29467 * DataGridViewElement.cs: DataGridView implementation
29468 * DataGridViewComboBoxCell.cs: DataGridView implementation
29469 * DataGridViewDataErrorContexts.cs: DataGridView implementation
29470 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
29471 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
29472 * ImageLayout.cs: DataGridView implementation
29473 * DataGridViewComboBoxColumn.cs: DataGridView implementation
29474 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
29475 * DataGridViewSelectionMode.cs: DataGridView implementation
29476 * IDataGridViewEditingControl.cs: DataGridView implementation
29477 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
29478 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
29479 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
29480 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
29481 * DataGridViewColumnSortMode.cs: DataGridView implementation
29482 * DataGridView.cs: DataGridView implementation
29483 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
29484 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
29485 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
29486 * Padding.cs: DataGridView implementation
29487 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
29488 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
29489 * DataGridViewRowEventHandler.cs: DataGridView implementation
29490 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
29491 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
29492 * DataGridViewButtonCell.cs: DataGridView implementation
29493 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
29494 * DataGridViewEditMode.cs: DataGridView implementation
29495 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
29496 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
29497 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
29498 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
29499 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
29500 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
29501 * DataGridViewCellEventHandler.cs: DataGridView implementation
29502 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
29503 * DataGridViewCellStyleConverter.cs: DataGridView implementation
29504 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
29505 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
29506 * DataGridViewColumnEventArgs.cs: DataGridView implementation
29507 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
29508 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
29509 * QuestionEventArgs.cs: DataGridView implementation
29510 * IDataGridViewEditingCell.cs: DataGridView implementation
29511 * DataGridViewTriState.cs: DataGridView implementation
29512 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
29513 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
29514 * DataGridViewColumnCollection.cs: DataGridView implementation
29515 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
29516 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
29517 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
29518 * DataGridViewColumn.cs: DataGridView implementation
29519 * DataGridViewCellBorderStyle.cs: DataGridView implementation
29520 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
29521 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
29522 * DataGridViewRow.cs: DataGridView implementation
29523 * DataGridViewImageCellLayout.cs: DataGridView implementation
29524 * DataGridViewImageCell.cs: DataGridView implementation
29525 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
29526 * DataGridViewCheckBoxCell.cs: DataGridView implementation
29527 * DataGridViewHeaderCell.cs: DataGridView implementation
29528 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
29529 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
29530 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
29531 * DataGridViewTextBoxColumn.cs: DataGridView implementation
29532 * QuestionEventHandler.cs: DataGridView implementation
29533 * DataGridViewCellStyleScopes.cs: DataGridView implementation
29534 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
29535 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
29536 * DataGridViewCell.cs: DataGridView implementation
29537 * DataGridViewCellEventArgs.cs: DataGridView implementation
29538 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
29539 * DataGridViewCellStyle.cs: DataGridView implementation
29540 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
29541 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
29542 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
29543 * TextFormatFlags.cs: DataGridView implementation
29544 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
29545 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
29546 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
29547 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
29548 * DataGridViewButtonColumn.cs: DataGridView implementation
29549 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
29550 * HandledMouseEventArgs.cs: DataGridView implementation
29551 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
29552 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
29553 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
29554 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
29555 * DataGridViewRowCollection.cs: DataGridView implementation
29556 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
29557 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
29558 * DataGridViewHitTestType.cs: DataGridView implementation
29559 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
29560 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
29561 * DataGridViewColumnEventHandler.cs: DataGridView implementation
29562 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
29563 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
29564 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
29565 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
29566 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
29567 * DataGridViewContentAlignment.cs: DataGridView implementation
29568 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
29569 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
29570 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
29571 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
29572 * DataGridViewPaintParts.cs: DataGridView implementation
29573 * DataGridViewCellCollection.cs: DataGridView implementation
29574 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
29575 * DataGridViewImageColumn.cs: DataGridView implementation
29576 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
29577 * DataGridViewElementStates.cs: DataGridView implementation
29578 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
29579 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
29580 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
29581 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
29582 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
29583 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
29584 * DataGridViewRowHeaderCell.cs: DataGridView implementation
29585 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
29586 * DataGridViewTextBoxCell.cs: DataGridView implementation
29587 * DataGridViewBand.cs: DataGridView implementation
29588 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
29589 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
29590 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
29591 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
29592 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
29593 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
29594 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
29595 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
29596 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
29597 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
29598 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
29600 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
29602 * ThemeWin32Classic.cs:
29603 - Draw the outside focus rectangle around buttons
29604 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
29605 doesn't use end caps for every dash of a line anymore. This
29606 workaround ignores the forecolor.
29608 2005-11-08 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29610 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
29613 2005-11-07 Jackson Harper <jackson@ximian.com>
29615 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
29617 2005-11-07 Jackson Harper <jackson@ximian.com>
29619 * ScrollableControl.cs: Calculate the maximum and change vars
29620 (more) correctly so that scrollbars appear as a sensible size.
29622 2005-11-04 Jackson Harper <jackson@ximian.com>
29624 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
29626 * TreeView.cs: When the tree is sorted null out the top_node so
29627 that it is recalculated.
29628 - Use dotted lines instead of dashed lines to match MS better.
29630 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
29633 - Implements key search for items. Useful when browsing files with FileDialog
29634 - When changing view mode or when clear the items reset scrollbar positions
29636 2005-11-04 Jackson Harper <jackson@ximian.com>
29638 * CurrencyManager.cs: Implement the MetaDataChanged event, the
29639 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
29640 as to what the method may do as there is no real way of creating a
29641 derived CurrencyManager and calling the method.
29643 2005-11-03 Jackson Harper <jackson@ximian.com>
29645 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
29646 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
29647 method which seems to just be used internally to refresh the tabs.
29649 2005-11-03 Jackson Harper <jackson@ximian.com>
29651 * TabControl.cs: Implement the remove method. Fix some broken
29654 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29656 * DateTimePicker.cs:
29657 - Added missing DateTimePickerAccessibleObject class
29658 - Added missing events
29659 - Added OnFontChanged method
29660 * Form.cs: Added missing attributes
29661 * TreeView.cs: Added missing attributes
29663 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29665 * GridItemCollection.cs: Fix signatures
29667 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29669 * XplatUI.cs: Updated build rev/date
29670 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
29671 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
29672 * Application.cs: Trigger context-specific ExitThread events
29674 2005-11-03 Jackson Harper <jackson@ximian.com>
29678 * GridTableStylesCollection.cs:
29683 * MonthCalendar.cs: Signature fixes
29685 2005-11-03 Jackson Harper <jackson@ximian.com>
29687 * TreeNodeCollection.cs: Remove should not be virtual.
29688 * TreeView.cs: Implement the last of the missing methods.
29690 2005-11-03 Jackson Harper <jackson@ximian.com>
29692 * TreeNodeConverter.cs: Implement to get off my class-status back.
29694 2005-11-03 Jackson Harper <jackson@ximian.com>
29696 * TreeView.cs: Hookup the bits for drag and drop.
29697 * TreeNode.cs: Don't cache the tree_view or index anymore, now
29698 that nodes can be moved from tree to tree easily this just causes
29699 all sorts of problems.
29700 * TreeNodeCollection: Don't need to give treenodes an index and
29701 treeview anymore when they are added, these are computed on the
29702 fly. Also make sure to remove a node before its added.
29704 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29707 - Added CaretSelection enum
29708 - Added comparison methods to Marker struct, makes selection code
29710 - Added SelectionStart and SelectionEnd as 'moveable' location for
29711 the CaretDirection enum and handler
29712 - Added selection_prev variable to track optimized invalidation for
29713 word and line selection
29714 - Added SelectionVisible property (returns true if there is a valid
29716 - Switched CaretHasFocus to only display the caret if there is no
29718 - Avoiding StringBuilder.ToString to retrieve a single char, instead
29719 using the direct character index; should be much faster
29720 - Added various conditional debug statements
29721 - Fixed invalidation calculation for selection ranges
29722 - Added ExpandSelection() method to support word and line selection
29723 - Switched SetSelectionToCaret to use new Marker compare overloads
29724 - Added central IsWordSeparator() method to determine word
29725 separators/whitespace and FindWordSeparator() to streamline common
29726 usage of IsWordSeparator()
29728 - Removed unneeded grabbed variable, it was just mirroring
29730 - No longer firing OnTextChanged event when Text setter is called,
29731 since the base will fire the event for us
29732 - Added handling of Ctrl-Up/Down selection
29733 - Added handling of Shift-Cursorkey selection
29734 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
29736 - Added handling of Shift and Ctrl-Shift-Home/End selection
29737 - Removed some debug output
29738 - Added handling for single/double/tripple-click to place caret/
29739 select word/select line respectively (Fixes bug #76031)
29740 - Added support for drag expansion of word/line selection
29741 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
29744 2005-11-02 Jackson Harper <jackson@ximian.com>
29746 * X11Dnd.cs: If the drag is going to and from a MWF window just
29747 copy the data instead of sending it out through the X Selection
29750 2005-11-02 Jackson Harper <jackson@ximian.com>
29753 * XplatUIX11.cs: When in a drag we don't want motion notify
29754 messages to get passed on to the other controls. This prevents
29755 mouse move messages from showing up in the drag source.
29757 2005-11-02 Jackson Harper <jackson@ximian.com>
29759 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
29760 the correct button is release to end a drag.
29761 * XplatUIX11.cs: Make the button state internal so the drag system
29762 can access it. Dragging needs to know about all button releases,
29763 not just left button.
29765 2005-11-02 Miguel de Icaza <miguel@novell.com>
29767 * Form.cs (Icon): If the icon is null, reset the icon to the
29770 * Cursor.cs: When writing the AND-mask bitmap do not include the
29771 number of colors, but hardcode those to two (black and white),
29772 fixes the loading of color cursors (Paint Dot Net).
29774 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
29775 turn off autoscaling.
29777 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
29779 2005-11-02 Jackson Harper <jackson@ximian.com>
29781 * X11Dnd.cs: Make sure to send a status message if the pointer
29782 enters a control that can not accept a drop, otherwise the cursor
29783 isn't updated correctly. Also tried to compress the lines of code
29786 2005-11-02 Jackson Harper <jackson@ximian.com>
29788 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
29789 set actions correctly. This isn't perfect as XDND and win32 have
29790 some differences on how you allow actions. I'll clear this up by
29791 adding a path for drag from MWF to MWF windows.
29792 * XplatUIX11.cs: Hook into the dnd system.
29794 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
29796 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
29797 previously shown but they are no longer need it. Very obvious when
29798 browsing files with FileDialog.
29800 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
29802 * Control.cs: We always need to call OnPaintBackground. We pretty much
29803 ignore AllPaintingInWmPaint and always do the painting there, whether
29804 it's set or not, since we always ignore the WM_ERASEBKGND message
29805 (which we don't generate on X11). This fixes #76616.
29806 * Panel.cs: Removed unneeded background painting. This happens properly
29807 in Control.cs already
29809 2005-10-31 Mike Kestner <mkestner@novell.com>
29811 * Menu.cs: Add items to collection before setting their index.
29812 * MenuItem.cs : add range checking with ArgumentException like MS.
29815 2005-10-31 Jackson Harper <jackson@ximian.com>
29817 * ListBox.cs: Invalidate if the area is visible at all not just
29818 contained in the visible rect. Fixes unselection of semi visible
29821 2005-10-31 Jackson Harper <jackson@ximian.com>
29823 * Control.cs: Consistently name the dnd methods. Make them
29824 internal so we can override them to match some MS behavoir
29826 * Win32DnD.cs: Use the new consistent names.
29828 2005-10-31 Jackson Harper <jackson@ximian.com>
29830 * TreeView.cs: Don't draw the selected node when we lose focus.
29832 2005-10-31 Jackson Harper <jackson@ximian.com>
29834 * X11Dnd.cs: We still need to reset the state even though a full
29835 reset isn't being done, otherwise status's still get sent all over
29838 2005-10-31 Jackson Harper <jackson@ximian.com>
29840 * Control.cs: Make the dnd_aware flag internal so the dnd
29841 subsystem can check it. Catch exceptions thrown in dnd handlers to
29843 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
29844 * X11Dnd.cs: Handle null data in the converters. Set the XDND
29845 version when sending a XdndEnter. Use the control/hwnd dnd_aware
29846 flags to reduce the number of dnd enters/status's sent.
29848 2005-10-31 Jackson Harper <jackson@ximian.com>
29850 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
29852 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
29854 * PictureBox.cs: Fixes 76512
29856 2005-10-28 Jackson Harper <jackson@ximian.com>
29858 * X11Dnd.cs: Early implementation to support winforms being a drag
29859 source for data on X11. Also restructured the converters so they
29860 can go both ways now.
29861 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
29863 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
29865 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
29868 2005-10-27 Jackson Harper <jackson@ximian.com>
29870 * TreeNode.cs: Implement serialization so my DnD examples will work.
29872 2005-10-24 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29874 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
29875 TreeView.cs: Don't dispose objects that are not owned.
29877 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
29879 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
29880 should retrieve the current cursor and report that, but XplatUI
29881 doesn't (yet) have an interface for that (and I'm not sure I even
29883 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
29884 until any message loop processing is done (and the WM_SETCURSOR
29885 replaces the cursor to the proper one)
29887 - Fixed override behaviour, we can't set the cursor globally on X11,
29888 just for our windows.
29889 - Invalidating the System.Drawing X11 display handle when we are
29891 * Control.cs: Fix to make csc happy
29893 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
29896 - get_Text: Add last line (without trailing newline) to returned
29897 value (Fixes 76212)
29898 - get_TextLength: Count last line in returned length
29899 - ToString: Call Text property instead of duplicating code
29901 2005-10-23 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29903 * ImageList.cs: Dispose ImageAttributes objects.
29905 2005-10-22 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29907 * ImageList.cs: Use attribute constructors with less arguments where
29910 2005-10-22 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29912 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
29913 Use typeof instead of strings when assembly is referenced. Added
29914 some more comments.
29916 2005-10-21 Jackson Harper <jackson@ximian.com>
29918 * ListView.cs: Raise a double click event. Also tried to somewhat
29919 fix when the selectedindexchanged event is raised. Its still
29922 2005-10-21 Jackson Harper <jackson@ximian.com>
29924 * TreeView.cs: New method to invalidate the plus minus area of a
29925 node without invalidating the whole node (maybe this can be used
29926 in some more places).
29927 * TreeNodeCollection.cs: When adding to an empty node we need to
29928 invalidate its plus minus area so the little block shows up.
29930 2005-10-21 Jackson Harper <jackson@ximian.com>
29932 * TreeView.cs: Make sure that when we invalidate a node the bounds
29933 are big enough to cover the selected box and the focus
29934 rectangle. Use a different colour for the lines connecting nodes
29935 so they show up with all themes.
29937 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29939 * NativeWindow.cs: Don't call anything that could call into the driver,
29940 we might be on a different thread.
29942 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29944 * Control.cs(Dispose): Since Dispose might run on a different thread,
29945 make sure that we call methods that could call into the driver via
29946 invoke, to avoid thread issues
29948 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29950 * XplatUI.cs: Removed finalizer
29951 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
29952 not allowing to be called on the finalizer thread.
29954 2005-10-21 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29957 - Reverted r51889 and r51891.
29958 - Added ImageListItem class that stores unmodified image items and image
29959 properties required to create list images until handle is created.
29960 - Added AddItem and moved image creation logic to AddItemInternal.
29961 - Added CreateHandle method that creates images based on unmodified items.
29962 - Added DestroyHandle that changes state to store unmodified items.
29963 - Add and AddStrip methods no more create handle.
29964 - ReduceColorDepth has no return value.
29965 - Dispose destroys handle.
29966 - Modified other methods to reflect the above changes.
29967 - Implemented key support.
29968 - Added profile 2.0 members and attributes.
29969 - Added private Reset and ShouldSerialize methods that provide the same
29970 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
29971 them as they are private.
29972 - Added some more comments about implementation details.
29974 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29976 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
29978 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29980 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
29982 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29984 * DataGridDrawingLogic.cs: Fixes column hit calcultation
29985 * DataGridColumnStyle.cs: Remove debug message
29987 2005-10-20 Jackson Harper <jackson@ximian.com>
29989 * TreeView.cs: We can always get input keys regardless of whether
29990 or not editing is enabled. They are used for navigation.
29992 2005-10-20 Jackson Harper <jackson@ximian.com>
29994 * TreeNode.cs: Use the viewport rect for determining if a node
29995 needs to be moved for visibility. Don't use Begin/End edit. This
29996 calls a full refresh when its done.
29997 * TreeView.cs: New SetBottom works correctly. Make the viewport
29998 rect property internal so the treenodes can see it. When clicking
29999 on a node we need to ensure that its visible because it might just
30000 be partly visible when clicked.
30002 2005-10-20 Jackson Harper <jackson@ximian.com>
30004 * TreeNodeCollection.cs: Remove debug code.
30006 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
30008 * Datagrid.cs: Implements column sorting in Datagrid
30009 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
30011 2005-10-20 Jackson Harper <jackson@ximian.com>
30013 * TreeNodeCollection.cs: Remove items properly. Update the correct
30014 area after removing them.
30016 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
30018 * Datagrid.cs: Should not call base.OnPaintBackground
30020 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30022 * XplatUIX11.cs (GetMessage):
30023 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
30024 window instead of client window
30025 - Now properly calculates NC_xBUTTONUP message coordinates
30026 - ScreenToMenu now properly calculates it's coordinates of whole
30027 window, since menus are in the whole window, not in the client
30029 - Added WholeToScreen coordinate translation method
30031 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30033 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
30034 want to return a message, loop back to the beginning of the function
30035 and grab the next real message to process instead.
30037 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30039 * Splitter.cs: Properly set limits if no filler control is used
30041 2005-10-19 Jackson Harper <jackson@ximian.com>
30043 * ColorDialog.cs: Don't show the help button if it is not enabled
30044 instead of disabling it (this is what MS does). Don't create the
30045 panel until the dialog is run, otherwise the vars (such as
30046 ShowHelp) are not set yet.
30048 2005-10-19 Jackson Harper <jackson@ximian.com>
30050 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
30051 are reduced when adding nodes.
30053 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
30056 2005-10-19 Jackson Harper <jackson@ximian.com>
30058 * FolderBrowserDialog.cs: End editing our treeview so the window
30059 actually gets refreshed.
30061 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
30063 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
30064 Obsoleted handling of WM_ERASEBKGND, now always draws our background
30067 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30069 * MenuAPI.cs: Returns after Hidding window
30070 * XplatUIX11.cs: Added TODO found while debugging menu issues
30072 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
30074 * XplatUIX11.cs: Do not re-map the whole window when it's size
30075 becomes non-zero unless it's supposed to be actually visible
30077 2005-10-18 Jackson Harper <jackson@ximian.com>
30079 * TreeView.cs: We don't need to keep a count anymore.
30080 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
30081 use the Grow method.
30083 2005-10-18 Jackson Harper <jackson@ximian.com>
30085 * TreeNodeCollection.cs: Insert is not supported on arrays, so
30086 implement it manually here.
30088 2005-10-18 Jackson Harper <jackson@ximian.com>
30090 * ImageList.cs: Dont kill the list when the colour depth is
30091 changed, just change the colour depth of all the images.
30092 - Same goes for setting the image size. Just resize them all
30093 instead of killing the list softly.
30095 2005-10-18 Jackson Harper <jackson@ximian.com>
30097 * Control.cs: Don't invalidate empty rectangles.
30099 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30102 - Adds checked item to the Checked/Item lists (where empty before)
30103 - Do not add items to the Selected lists if they are already present
30105 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
30106 - When deleting items make sure that we delete them for the Selected
30107 and Checked list also.
30109 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30111 * Label.cs: Dispose objects no longer used
30112 * ThemeWin32Classic.cs: Dispose objects no longer used
30114 2005-10-18 Jackson Harper <jackson@ximian.com>
30116 * TabControl.cs: Don't refresh the whole control when the tabs are
30117 scrolled, we just need to refresh the tab area.
30119 2005-10-17 Jackson Harper <jackson@ximian.com>
30121 * XplatUIX11.cs: Compress code a little bit. Only calculate the
30122 after handle when we need it.
30124 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
30126 * Control.cs: When the parent size changes, recalculate anchor
30127 positions. Partial fix for #76462
30129 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
30131 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
30132 drawn. Fixes #76462
30134 2005-10-17 Jackson Harper <jackson@ximian.com>
30136 * MonthCalendar.cs: Don't create the numeric up down until our
30137 handle is created. Otherwise our handle is created in the
30138 constructor and we don't know if we are a WS_CHILD or WS_POPUP
30141 2005-10-17 Jackson Harper <jackson@ximian.com>
30143 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
30146 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30147 * TreeNode.cs : small logical fix (was using local var instead of field)
30149 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30151 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
30153 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30155 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
30157 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
30160 - Re-implemented anchoring code. My first version was really broken.
30161 This fixes bug #76033. Unlike the previous implementation we will
30162 no longer have round errors since all numbers are calculated from
30163 scratch every time. Removed various anchor-related obsolete vars.
30164 - InitLayout no longer causes layout event firing and layout to be
30167 2005-10-16 Jackson Harper <jackson@ximian.com>
30169 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30172 2005-10-16 Jackson Harper <jackson@ximian.com>
30174 * TabControl.cs: Remove debug code.
30176 2005-10-16 Jackson Harper <jackson@ximian.com>
30178 * XEventQueue.cs: Increase the default queue size (very simple
30179 apps needed to grow the queue).
30180 * Hwnd.cs: No finalizer so we don't need to suppress
30181 finalization. Compute the invalid area manually so a new rectangle
30182 does not newto be created.
30183 * ScrollableControl.cs: Don't set any params (otherwise visibility
30184 isn't set correctly).
30185 * MdiChildContext.cs: New constructor takes the mdi parent so it
30186 doesn't have to be computed and avoids a crash on windows. Draw
30187 the window icon properly, and allow the text to be seen.
30188 * Form.cs: Use new MdiChildContext constructor. Make sure the
30189 child context isn't null in wndproc.
30190 * TabControl.cs: Don't set focus, this is muddling keyboard
30191 behavoir. Expand the tab rows when a window size increase will
30192 allow extra tabs to be seen. Don't allow tabs smaller than the
30193 width of a window to be scrolled out of view.
30195 * TreeView.cs: Use measure string to calculate a nodes width, the
30196 width is cached and only updated when the text or the font is
30197 changed. Don't check for expand/collapse clicks on the first level
30198 nodes if root lines are disabled.
30200 2005-10-16 Ritvik Mayank <mritvik@novell.com>
30202 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
30204 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30206 * DataGridBoolColumn.cs: fixes warning
30208 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30210 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
30211 to match more to match more precisely the MS Net behavior
30213 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30215 * Hwnd.cs: Added field to track if window is mapped
30217 - Unmap windows if they become 0-size, re-map when
30218 they are >0 again; fixes #76035
30219 - Re-set our error handler after initializing X11Desktop
30220 to override any error handlers Gtk or whatever was called
30223 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30225 * CheckedListBox.cs: Removed unused vars
30226 * ListView.cs: Fixed signatures
30227 * RichTextBox.cs: Removed unused vars
30228 * TextBoxBase.cs: Removed unused vars
30229 * XplatUIWin32.cs: Removed unused vars
30230 * XplatUIX11.cs: Removed unused vars
30231 * XplatUI.cs: Updated version and date to latest published
30233 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30235 * Cursor.cs: Added private .ctor to work around a bug in
30236 resourceset (Thanks to Geoff Norton for the help on this)
30237 * SplitterEventArgs.cs: Made fields accessible so we don't
30238 waste boatloads of objects and can reuse the same one
30240 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
30241 any captions and borders when generating screen coordinates
30242 * Splitter.cs: Reimplemented control, now fully complete, uses
30243 rubberband drawing, supports and obeys all properties, has
30246 2005-10-13 Miguel de Icaza <miguel@novell.com>
30248 * Form.cs (Form): Setup default values for autoscale and
30249 autoscale_base_size; Make these instance variables, not static
30252 (OnLoad): on the first load, adjust the size of the form.
30254 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30256 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
30257 width argument to DrawReversibleRectangle()
30258 * XplatUIWin32.cs, XplatUIX11.cs:
30259 - Implemented width for DrawReversibleRectangle()
30260 - Added logic to DrawReversibleRectangle that recognizes a zero
30261 width or height and only draws a line in that situation
30263 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
30265 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
30266 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
30267 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
30268 method (it uses our FosterParent window to get a graphics context)
30270 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
30272 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
30273 and SetWindowBackground methods
30275 - Setting proper ControlStyles
30276 - We no longer call XplatUI.SetWindowBackground and XplatUI.
30277 EraseWindowBackground, instead we draw the window background
30278 ourselves in PaintControlBackground. This behaviour is
30279 required to match MS, where, when OnPaintBackground is not
30280 called, the background is not drawn.
30281 - Removed unneeded Refresh() in set_Text
30282 * Hwnd.cs: Dropped the ErasePending support. No longer needed
30284 - Created DeriveStyles method to translate from CreateParams to
30285 FormBorderStyle and TitleStyle, also handles BorderStyle (which
30286 matches FormBorderStyle enum values)
30287 - Consolidated SetHwndStyles and CalculateWindowRect border/title
30288 style calculations into single DeriveStyles method
30289 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
30290 from redrawing the whole window on any resize or expose.
30291 - Fixed CreateWindow usage of SetWindowValuemask. Before not
30292 all styles were applied to our whole/client window appropriately
30293 - Removed EraseWindowBackground() and SetWindowBackground() methods
30294 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
30295 no longer clear/redraw the background through X
30296 - Removed handling of erase_pending bit, we have no use for it (or
30299 - Removed generation and handling of WM_ERASEBKGND message
30300 - Removed EraseWindowBackground() and SetWindowBackground() methods
30301 - Removed handling of hwnd.ErasePending flag
30303 - Removed EraseWindowBackground() and SetWindowBackground() methods
30304 - We no longer call EraseWindowBackground on PaintEventStart, we
30305 ignore the fErase flag, erasing is handled in Control in the
30307 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
30308 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
30309 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
30310 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
30311 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
30312 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
30313 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
30315 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
30317 * PropertyGrids.cs: Get sub properties
30318 * PropertyGridView.cs: Fix drawing code
30320 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30322 * ListBox.cs: Fixes 76383
30324 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30326 * DataGridTextBoxColumn.cs: Sets location and size before attachment
30327 * ThemeWin32Classic.cs: Fixes border drawing and calculations
30328 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
30331 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30333 * ComboBox.cs: Fixes border drawing
30335 2005-10-10 Miguel de Icaza <miguel@novell.com>
30337 * MimeIcon.cs: Ignore errors if the file can not be read.
30339 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30341 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
30342 - Fixed border calculations
30343 - Fixed horizontal scrolling in single column listboxes
30344 - Fixed drawing issues
30346 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
30348 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
30349 FormBorderStyle enum
30350 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
30351 code to determine FormBorderStyles from CreateParams
30353 - Fixed bug where we'd set the wrong window styles if we were
30354 not creating an MDI window
30355 - Added call to XplatUI.SetBorderStyle when form borders are set
30356 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
30358 - Removed obsolete edge style
30359 - Switched from BorderStyle to FormBorderStyle
30361 2005-10-10 Jackson Harper <jackson@ximian.com>
30363 * Form.cs: Use the property to get the window handle instead of
30364 accessing it directly. Prevents a null reference exception.
30366 2005-10-10 Jackson Harper <jackson@ximian.com>
30368 * TreeView.cs: Don't adjust the rect given to DrawString now that
30369 our libgdiplus draws correctly.
30371 2005-10-08 Jackson Harper <jackson@ximian.com>
30373 * TreeView.cs: Don't try to find the clicked on node if there are
30374 no nodes in the tree.
30376 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30382 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30384 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
30385 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
30387 Use ResPool for brushes and dispose System.Drawing objects that
30388 are not used anymore.
30390 2005-10-07 Jackson Harper <jackson@ximian.com>
30392 * MdiChildContext.cs: Use the new borders instead of drawing them
30395 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30397 * Calling UpdateBounds after changing the window's BorderStyle
30398 since the style can change the ClientSize
30400 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30402 * Control.cs: Made PaintControlBackground virtual
30403 * Panel.cs: Overriding PaintControlBackground instead of using paint
30404 event; paint event method was interfering with 'real' users of the
30407 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30409 * ThemeWin32Classic.cs: remove border drawing since it is handled
30410 by the base control class now and was causing double border drawing.
30412 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30414 * Panel.cs: Redraw our background on paint. Not a pretty solution,
30415 but it does seem to match MS behaviour. This fixes bug #75324
30417 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30419 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
30420 somewhat hackish looking
30422 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30425 - We now accept Enter even if AcceptEnter is false, if the containing
30426 form does not have an AcceptButton configured (fixes bug #76355)
30427 - Calculations are now fixed to no longer use Width/Height, but
30428 ClientSize.Width/Height, since we now support borders (this was
30429 a result of fixing borders and therefore bug #76166)
30430 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
30431 true (fixes bug #76354)
30433 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30436 - Defaulting BorderStyle and setting it in XplatUI when our window
30438 - Added enum check to InternalBorderStyle setter
30440 - Added drawing of window borders
30441 - Now properly calculates WM decorations offset for toplevel
30442 windows (fixes bug #74763)
30444 - Implemented BorderStyles for windows (we're letting win32 draw
30446 - Fixed the signature for SetWindowLong
30447 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
30448 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
30450 * UpDownBase.cs: Remove drawing of borders, this is handled by
30451 the driver, outside the client area
30452 * ListView.cs: Removed bogus border calculations. The control should
30453 be oblivious to borders, since those are not part of the client
30455 * X11DesktopColors.cs: Commented out (currently) unneeded variables
30456 * ThemeWin32Classic.cs: Removed border calculations from ListView
30459 2005-10-06 Jackson Harper <jackson@ximian.com>
30461 * MdiChildContext.cs: Clear out the old virtual position remove
30462 all the unneeded calls to CreateGraphics.
30464 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30466 * TextControl.cs: Use proper color for highlighted text; fixes #76350
30468 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30471 - Added loading and setting of our new default icon
30472 - Only set icon if window is already created
30474 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30477 - Do not explicitly set the foreground and background colors, to
30478 allow inheriting from parents (fixes #76302)
30479 - Use Control's InternalBorderStyle property to deal with borders
30481 2005-10-06 Jackson Harper <jackson@ximian.com>
30483 * MdiChildContext.cs: Use the new xplatui function to draw a
30486 2005-10-06 Jackson Harper <jackson@ximian.com>
30488 * Form.cs: Add the parent before creating the child context cause
30489 we need the parent when setting up the child.
30491 2005-10-06 Jackson Harper <jackson@ximian.com>
30493 * FolderBrowserDialog.cs: redo the tree population code so a
30494 second thread isn't used. Should be a lot faster and more stable
30497 2005-10-05 Jackson Harper <jackson@ximian.com>
30499 * TreeView.cs: There are no expand/collapse boxes if the node has
30502 2005-10-05 Jackson Harper <jackson@ximian.com>
30504 * X11DesktopColors.cs: Get menu colours for the gtk theme.
30506 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
30508 * FileDialog.cs: Fix InitialDirectory
30510 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30513 - Fixes changing between styles
30514 - Fixes simple mode
30515 - Fixes last item crashing when navigating with keyboard
30517 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30519 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
30521 2005-10-05 Jackson Harper <jackson@ximian.com>
30523 * TreeView.cs: If updating the root node do a full refresh.
30524 * TreeNode.cs: The root node should be expanded by default. Also
30525 added a utility prop to tell if we are the root node.
30526 * TreeNodeCollection.cs: Only refresh if the node we are being
30527 added to is expanded. Also added a comment on a potential
30530 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
30532 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
30533 in dispose method. Fixes #76330
30535 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
30537 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
30539 - Implements vertical and horizontal scrolling using XplatUI
30540 - Fixes keyboard navagation
30541 - Fixes EnsureVisible
30543 - Handles and draws focus properly
30546 2005-10-04 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30548 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
30549 Create handle. NET_2_0: Destroy handle when value is null.
30551 2005-10-03 Jackson Harper <jackson@ximian.com>
30553 * ScrollBar.cs: My last scrollbar patch was broken. This is a
30554 revert and a new patch to prevent the thumb from refreshing so
30557 2005-10-02 Jackson Harper <jackson@ximian.com>
30559 * ScrollBar.cs: Don't update position if it hasn't actually
30560 changed. This occurs when you hold down the increment/decrement
30561 buttons and the thumb gets to the max/min.
30563 2005-10-01 Jackson Harper <jackson@ximian.com>
30566 * MdiChildContext.cs:
30567 * MdiClient.cs: Implement ActiveMdiChild in Form.
30569 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
30571 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
30573 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
30575 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
30578 2005-09-30 Jackson Harper <jackson@ximian.com>
30580 * ListBox.cs: Don't do a full refresh unless some data has
30583 2005-09-30 Jackson Harper <jackson@ximian.com>
30585 * TreeView.cs: Make sure that the checkboxes size is factored in
30586 even when not visible.
30588 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30590 * FileDialog.cs: Fix Jordi's build break
30592 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30595 - Use standard the Windows colours for the combobox as espected
30596 - Dispose objects that use resouces when no longer need them
30598 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30600 * X11DesktopColors.cs: Initial incomplete implementation
30601 * XplatUIX11.cs: Added call to initialize X11DesktopColors
30603 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30606 - Switched Theme color names to match the names defined in
30607 System.Drawing.KnownColors. Life's hard enough, no need to make
30609 - Added setters to all theme color properties so themes can set
30610 their color schemes. The setters also propagate the color changes
30611 to System.Drawing.KnownColors via reflection
30612 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
30613 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
30614 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
30615 use the new, more logical theme color names
30616 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
30618 * ThemeWin32Classic.cs:
30619 - Removed code to set the old classic Windows colors. Instead it
30620 now relies on the colors returned by System.Drawing.KnownColors
30621 which will be either modern static colors (Unix) or colors
30622 read from the user's configuration (Win32)
30623 - Updated to use the new, more logical theme color names
30624 - Switched DataGrid drawing code to use only Theme colors instead of
30625 a mix of System.Drawing.KnownColors and Theme colors
30626 - DrawFrameControl(): Removed code that fills the button area, the
30627 fill would overwrite any previous fill done by a control. This
30629 - Added DrawReversibleRectangle() stub
30630 * ScrollableControl.cs: Set visible state to false when scrollbars
30631 are removed (pdn fix)
30632 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
30633 DrawReversibleRectangle() method to allow drawing primitive
30635 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
30637 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30639 * ImageList.cs: Add(Icon): Create handle.
30641 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30644 * ThemeWin32Classic.cs:
30645 - Fixes detail mode
30647 - Issues with drawing
30649 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30651 * ImageList.cs: Moved RecreateHandle back to ImageList as event
30652 source has to be the ImageList.
30654 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30656 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
30658 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30660 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
30662 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30664 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
30666 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
30667 * GridItem.cs: Fixed TODOs
30668 * GridItemCollection.cs: Added ICollection interface
30670 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30672 * ImageList.cs: Resize icons when needed.
30674 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
30677 - Fixes GetBounds and returns on screen rects
30679 - Fixes vertical and horzintal scrolling of items
30680 * ThemeWin32Classic.cs:
30683 2005-09-29 Raja R Harinath <harinath@gmail.com>
30685 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
30687 2005-09-29 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30689 * ImageList.cs: Added comments about handle creation. Moved Handle,
30690 HandleCreated and OnRecreateHandle implementations to ImageCollection.
30691 Handle is created in Add methods.
30693 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30695 * DataGridDrawingLogic.cs:
30696 - Takes rows into account on Colum calculations
30697 - Returns the column when clickig
30699 - Fixes default HitTestInfo values
30700 - Fixes HitTestInfo.ToString
30701 - Fixes ResetBackColor
30703 2005-09-28 Jackson Harper <jackson@ximian.com>
30705 * MdiChildContext.cs: Obey rules for fixed sized windows (no
30706 sizing or cursor changes). Also added some temp code to draw the
30707 titlebars text (Makes dev a little easier).
30709 2005-09-28 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30711 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
30713 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30715 * ListBox.cs: Fixes bug 76253
30717 2005-09-28 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30719 * ImageList.cs: Added comments about the current implementation. Added
30720 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
30721 Format32bppArgb to preserve transparency and can use Graphics.FromImage
30722 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
30723 with Bitmap.LockBits for better performance. Revised the whole file to
30724 match MS.NET behaviour and provide better performance. Non-public
30725 interface members are calling public members even when they throw
30726 NotSupportedException for better maintainability. Moved ColorDepth,
30727 ImageSize, ImageStream and TransparentColor implementations to
30728 ImageCollection for better performance as these properties are not used
30730 * ImageListStreamer.cs: Added a new internal constructor that takes an
30731 ImageList.ImageCollection and serializes Images based on
30732 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
30733 match ImageList property name.
30735 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
30737 * ListBox.cs: Fixes IndexFromPoint for last item
30739 2005-09-27 Jackson Harper <jackson@ximian.com>
30741 * Form.cs: Set the position of new mdi children correctly.
30743 2005-09-27 Jackson Harper <jackson@ximian.com>
30745 * MdiClient.cs: New mdi children need to be added to the back of
30746 the controls collection so the zorder is set correctly. Also add a
30747 count of all the child windows that have been created.
30749 2005-09-27 Jackson Harper <jackson@ximian.com>
30751 * Form.cs (CreateParams): Setup MDI forms correctly.
30753 2005-09-27 Jackson Harper <jackson@ximian.com>
30755 * MdiChildContext.cs:
30756 * MonthCalendar.cs:
30762 * ScrollableControl.cs:
30763 * ComboBox.cs: Add implicit controls using the new implict control
30764 functionality in ControlCollection. Also try to block multiple
30765 control add in a suspend/resume layout to save some cycles.
30767 2005-09-27 Jackson Harper <jackson@ximian.com>
30769 * Control.cs: Add functionality to the controls collection to add
30770 'implicit controls' these are controls that are created by the
30771 containing control but should not be exposed to the user. Such as
30772 scrollbars in the treeview.
30773 * Form.cs: The list var of the ControlsCollection is no longer
30774 available because of the potential of implicit controls getting
30775 ignored by someone accessing the list directly.
30777 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
30779 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
30780 loose it's parent. (Fixed bug introduced in r49103 when we added
30781 setting the child parent to null on Remove)
30783 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
30785 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
30786 * Splitter.cs: Added missing attributes for BorderStyle property.
30787 * TextBoxBase.cs: Marked Calculate* methods internal.
30788 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
30791 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
30793 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
30795 2005-09-25 Jackson Harper <jackson@ximian.com>
30797 * TreeView.cs: Update the node bounds correctly regardless of
30798 whether the node is visible.
30800 2005-09-25 Jackson Harper <jackson@ximian.com>
30802 * ImageList.cs: Don't dispose the image after it is added to the
30803 image list. Only reformat images that need to be resized.
30805 2005-09-25 Jackson Harper <jackson@ximian.com>
30807 * ImageList.cs: Don't set the format when changing the image.
30809 2005-09-25 Jackson Harper <jackson@ximian.com>
30811 * TreeView.cs: We can't just assume the node has a font. Use the
30812 treeviews font if no node font is available.
30814 2005-09-25 Jackson Harper <jackson@ximian.com>
30816 * TreeView.cs: Allow the scrollbars to be reset with negative
30818 - Don't add scrollbars to negative sized windows.
30820 2005-09-23 Jackson Harper <jackson@ximian.com>
30822 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
30823 old Mono.Posix. Also remove some stray code that shouldn't have
30826 2005-09-23 Jackson Harper <jackson@ximian.com>
30828 * TreeView.cs: Attempt at proper sizing of the horizontal
30829 scrollbar. Also don't resize the scrollbars unless they are
30832 2005-09-23 Jackson Harper <jackson@ximian.com>
30834 * TreeView.cs: We don't need to expand the invalid area when the
30835 selection changes, as this is all drawn in the node's bounding
30836 box. The area needs to be expanded (previous typo was contracting
30837 it) when the focus rect moves.
30839 2005-09-23 Jackson Harper <jackson@ximian.com>
30841 * TreeView.cs: Display the selection box under the correct
30842 circumstances. We were rendering white text with no selection box
30845 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
30847 * TextControl.cs(Split): Now updates selection start/end if it points
30848 into a line that's being split. Fixes a FIXME and bug #75258
30850 2005-09-23 Jackson Harper <jackson@ximian.com>
30853 * ListControl.cs: Don't use the path when retrieving binding
30854 managers from the binding context. My bat sense tells me that the
30855 path is only used on insertion.
30857 2005-09-22 Jackson Harper <jackson@ximian.com>
30859 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
30861 2005-09-22 Jackson Harper <jackson@ximian.com>
30863 * Splitter.cs: There are special cursors used for splitting.
30864 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
30866 2005-09-22 Jackson Harper <jackson@ximian.com>
30868 * Splitter.cs: Change the cursor appropriately when the splitter
30869 is moused over, so the user actually knows there is a splitter
30872 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30874 * Label.cs : Fix ToString method to give same output as MS.NET
30876 2005-09-22 Jackson Harper <jackson@ximian.com>
30878 * TreeView.cs: Create the scrollbars when the handle is created
30879 and add them right away, just make them invisble. Also account for
30880 the window being shrunk vertically to the point that the vert
30881 scrollbar needs to be added.
30882 - Remove some 0.5 adjustments to get around anti aliasing issues.
30884 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
30886 * MainMenu.cs: Fixes default value
30887 * MenuItem.cs: Fixes default value
30889 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
30891 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
30893 2005-09-21 Jackson Harper <jackson@ximian.com>
30895 * Control.cs: Don't try to set the border style on the window if
30896 it hasn't been created. When the window is created the border
30897 style will be used.
30899 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30901 * Control.cs (Update): Don't call XplatUI if we don't have a
30904 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30906 * ContainerControl.cs: Instead of throwing an exception, print
30907 a one-time warning about Validate not being implemented
30908 * XplatUIWin32.cs: Removed debug output
30910 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30912 * Control.cs: Only set XplatUI background if we expect the windowing
30913 system to handle the background. This stops controls that draw their
30914 own background from flickering
30916 * XplatUIX11.cs: Support custom visuals and colormaps for window
30917 creation. This allows, amongst other things, using MWF X11 windows
30920 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30922 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
30923 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
30924 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
30925 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
30926 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
30927 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
30928 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
30929 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
30930 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
30931 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
30932 GridColumnStylesCollection.cs,
30933 IDataGridColumnStyleEditingNotificationService.cs,
30934 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
30935 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
30936 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
30937 TreeNodeCollection.cs, AmbientProperties.cs,
30938 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30939 DataObject.cs, ErrorProvider.cs, Splitter.cs,
30940 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
30941 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
30942 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
30943 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
30944 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
30945 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
30946 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
30947 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
30948 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
30949 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
30950 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
30951 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
30952 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
30953 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
30954 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
30955 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
30956 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
30957 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
30958 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
30959 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
30960 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
30961 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
30962 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
30963 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
30964 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
30965 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
30966 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
30967 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
30968 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
30969 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
30970 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
30971 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
30972 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
30973 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
30974 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
30976 2005-09-21 Jackson Harper <jackson@ximian.com>
30978 * TreeNode.cs: Call Before/After Expand not Collapse when
30981 2005-09-20 Jackson Harper <jackson@ximian.com>
30983 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
30985 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
30989 - Fixes proper storing of subitems
30990 - Fixes not updated items
30992 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
30994 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
30995 things if our window handle isn't created yet. Also disabled
30996 debug for TextBoxBase
30998 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
31000 * MenuAPI.cs: Remove filtering of events to allow menu usage
31002 2005-09-20 Miguel de Icaza <miguel@novell.com>
31004 * Cursor.cs: Allow null to be passed to Cursor.Current.
31006 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
31008 * ThemeWin32Classic.cs:
31009 - Change some private methods/fields to protected virtual so that
31010 they can be accessed and overriden in derived classes
31011 - First refactoring of some methods. Derived themes now don't
31012 need to duplicate the complete code from ThemeWin32Classic
31014 - Added nice StatusBar
31015 - Derive from ThemeWin32Classic and not Theme
31016 - Removed duplicate ThemeWin32Classic code
31018 2005-09-20 Miguel de Icaza <miguel@novell.com>
31020 * Control.cs (ControlCollection.Add): If the value null is passed
31021 the control is ignored.
31023 Optimize this loop.
31025 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
31027 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
31028 PostQuitMessage state.
31029 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
31031 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
31033 * Application.cs: Our constructor will never get called, move
31034 initialization to fields; fixes bug #75933
31036 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31039 - Allow files to be selected properly using file name
31041 - Add ability to change diretory (absolute / relative)
31042 using file name combo box.
31044 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
31047 - Fixes Multicolumn listboxes item wrong calculations
31048 - Allows to click when only one item is in the listbox
31049 - Fixes crash when no items using keyboard navigation
31051 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
31053 * ComboBox.cs: Reverted almost everything from the latest patch which
31056 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
31059 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
31061 - When DropDownStyle is Simple, it does not show scrollbar
31062 to the last item of the list.
31063 - When DropDownStyle is Simple, it crashed when the list was
31064 scrolled down with the down cursor key.
31065 - Fixed a bug that when DropDownStyle is DropDownList, the
31066 selected item was not shown.
31067 - The position of the selected item was not preserved when
31068 the next dropdown happened.
31069 * ThemeWin32Classic.cs:
31070 - Items were wrapped at the right end.
31071 * CheckedListBox.cs:
31074 - Items should be fully shown.
31075 - When resizing and vertical scrollbar disappeared, the item
31076 of index 0 should be on the top of the list.
31077 - GetItemRectangle should consider the size of ver. scrollbar
31079 - SizingGrip area should not be allocated when it is not
31081 - Now it reflects MinWidth of the containing panel and
31082 fixed a crash that happens when its width becomes so small.
31084 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
31086 * CheckedListBox.cs: Fixes bug 76028
31087 * ListBox.cs: Fixes bug 76028
31089 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
31091 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
31092 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
31094 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
31096 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
31098 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
31100 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
31102 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
31104 * IRootGridEntry.cs: Added
31105 * PropertyGridCommands.cs: Added
31106 * PropertiesTab.cs: Added missing methods and property
31107 * PropertyGridView.cs: Made class internal
31108 * PropertyGridTextBox.cs: Made class internal
31110 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31112 * MimeIcon.cs: Try to check some other environment variables
31113 if "DESKTOP_SESSION" returns "default"
31115 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31117 * ThemeNice.cs: Corrected background colors (e.g. menus)
31118 * ColorDialog.cs: Use correct background colors for controls
31120 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31122 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
31124 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
31126 * RichTextBox.cs: Added initial implementation
31127 * lang.cs: Removed. Was accidentally checked in long time ago
31128 * TODO: Removed. Contents were obsolete
31130 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
31132 * PropertiesTab.cs : Added
31134 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
31136 * PropertyGrid.cs : Update
31137 * PropertyGridView.cs : Update
31138 * System.Windows.Forms.resx : Added images and strings
31140 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31142 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
31144 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31146 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
31147 a busy loop right after the Ungrab the X11 display is otherwise
31150 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
31152 * ThemeWin32Classic.cs: Optimise the use of clipping
31154 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
31156 * DataGrid.cs: fixes recursion bug
31158 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
31161 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31164 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
31166 * ThemeNice.cs: Draw nice ProgressBars
31168 2005-09-01 Miguel de Icaza <miguel@novell.com>
31170 * VScrollBar.cs: Another buglet found by Aaron's tool.
31172 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31175 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
31178 - Added nicer menu drawing
31182 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31184 * CreateParams.cs (ToString): Made output match MS
31185 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
31186 handle is already created (to avoid forcing window creation)
31187 * XplatUIX11.cs: Set window text to caption after creating window,
31188 in case Text was set before window was created
31189 * Form.cs: Use this.Text instead of a static string as caption
31191 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31193 * NotifyIcon.cs: Don't set the window to visible; this screws
31194 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31195 OnPaint without a bitmap)
31196 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
31197 happen very often anyway; we could add the check to the WM_PAINT
31198 event generation code
31200 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31202 * NotifyIcon.cs: Fill the icon area with a background color, to
31203 avoid 'residue' when transparent icons are drawn
31205 - Handle whole_window == client_window when destroying windows
31206 - SystrayAdd(): Set client_window to whole_window value to
31207 get mouse and other events passed to NotifyIcon
31209 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31211 * Form.cs: Set proper default for Opacity property
31213 - ShowSystray(): Don't bother creating telling the OS
31214 about the systray item if no icon is provided
31215 - Now handles WM_NCPAINT message to deal with whole/client window
31217 - Create window as visible to not get caught by Expose optimization
31218 * Hwnd.cs: Removed debug message
31219 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
31220 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
31221 PaintEventStart/End to use new client argument
31223 - Commented out debug messages
31224 - Switched PaintEventStart/End to use new client argument
31225 * XplatUI.cs: Added client window bool to PaintEventStart()/
31226 PaintEventEnd() calls, to support drawing in non-client areas
31227 * XplatUIDriver.cs:
31228 - Added client window bool to PaintEventStart()/PaintEventEnd()
31229 calls, to support drawing in non-client areas
31230 - Added conditional compile to allow using MWF BeginInvoke
31233 - Added some conditional debug output
31234 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
31235 whole/client window split
31236 - Implemented handling of client argument to PaintEventStart()/End()
31238 - Throw exception if BeginInvoke() is called and the window handle
31239 or one of the window's parent handles is not created
31240 - Added conditional compile to allow using MWF BeginInvoke on
31242 - get_Parent(): Only sets parent if handle is created. This avoids
31243 forcing window handle creation when parent is set.
31244 - Now fires Layout and Parent changed events in proper order
31245 - Switched to use Handle instead of window.Handle for Z-Order setting,
31246 the get_Parent() patch above causes us to possibly get null for 'window'
31247 - Implemented handling of client argument to PaintEventStart()/End()
31248 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
31250 - Now sends a Refresh() to all child windows when Refresh() is called
31252 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
31254 * Form.cs: Added (non-functional) Opacity property
31255 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
31257 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
31258 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
31259 use export MONO_THEME=nice to activate it.
31260 Currently supported controls:
31264 - TabControl (TabAlignment.Top only, other will follow)
31265 * ThemeEngine.cs: Add theme nice
31266 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
31269 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
31271 * Splitter.cs: Resize docked control and its neighbor.
31273 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31274 -- Making Windows with Menus layout correctly --
31275 * Form.cs : The first leg of the fix
31276 Menu setter - adjust Client Size as needed to make space for the menu
31277 SetClientSizeCore - doesn't call base version to be able to pass the
31278 menu handle to XplatUI.CalculateWindowRect
31279 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
31280 * XplatUIX11.cs: The critical second leg of the fix
31281 GetWindowPos needs to use a recalculated client_rect
31282 so that resizing the window doesn't break layout of child controls.
31283 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
31284 Lots of \t\n killed
31286 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
31288 * Label.cs: Now properly recalculates width and height on Font and Text
31289 changes if AutoSize is set
31291 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31292 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
31294 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
31296 * ImageList.cs: Makes ToString method compatible with MS
31298 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
31300 * MenuAPI.cs: fixes bug 75716
31302 2005-08-11 Umadevi S <sumadevi@novell.com>
31303 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
31305 2005-08-11 Umadevi S <sumadevi@novell.com>
31306 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
31308 2005-08-10 Umadevi S <sumadevi@novell.com>
31309 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
31311 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
31313 * Menu.cs: fixes bug 75700
31314 * MenuAPI.cs: fixes navigation issues
31316 2005-08-09 Umadevi S <sumadevi@novell.com>
31317 * CheckedListBox.cs - simple fix for GetItemChecked.
31319 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
31321 * ComboBox.cs: Serveral fixes
31322 * ListBox.cs: Serveral fixes
31324 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31326 * ComboBox.cs: Fixes FindString methods and GetItemHeight
31327 * ListBox.cs: Fixes FindString methods
31329 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31331 * DataGrid.cs: fixes bugs exposed by new tests
31333 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
31335 * Mime.cs: Compile Mono assembly references only if compiling
31336 with Mono (Allows to build with VS.Net again)
31338 2005-07-28 Marek Safar <marek.safar@seznam.cz>
31340 * Control.cs (PaintControlBackground): Draw background image
31342 (CheckForIllegalCrossThreadCalls): Stubbed.
31344 * Form.cs (OnCreateControl): Center when should be centered.
31346 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
31348 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
31350 * Binding.cs: Binding to properties should be case unsensitive
31352 2005-07-18 vlindos@nucleusys.com
31354 * DataGrid.cs: fixes setmember order
31356 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
31358 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
31359 * FileDialog.cs: FileDialog is now resizable and uses the new
31362 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
31364 * DataGridTextBoxColumn.cs: default value
31365 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
31366 * GridTableStylesCollection.cs: fixes checking MappingName
31367 * DataGridDrawingLogic.cs: fixes drawing logic issues
31368 * DataSourceHelper.cs: rewritten to make compatible with more data sources
31369 * DataGrid.cs: fixes
31371 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
31373 * MimeGenerated.cs: Use case sensitive comparer for
31374 NameValueCollections
31376 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
31378 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
31379 * ThemeWin32Classic.cs: bug fixes, code refactoring
31380 * DataGridDrawingLogic.cs: bug fixes, code refactoring
31381 * DataGrid.cs: bug fixes, code refactoring
31382 * DataGridTextBox.cs: bug fixes, code refactoring
31383 * DataGridColumnStyle.cs: bug fixes, code refactoring
31384 * Theme.cs: bug fixes, code refactoring
31386 2005-07-01 Peter Bartok <pbartok@novell.com>
31388 * TextControl.cs: Quick fix for the reported crash on ColorDialog
31389 and other text box usage
31391 2005-07-01 Jackson Harper <jackson@ximian.com>
31393 * TabControl.cs: Make sure the bottom of the tab covers the pages
31396 2005-06-30 Peter Bartok <pbartok@novell.com>
31398 * Form.cs (ShowDialog): Assign owner of the dialog
31399 * TextBoxBase.cs: Always refresh caret size when deleting, caret
31400 might have been moved to a tag with different height
31402 2005-06-30 Jackson Harper <jackson@ximian.com>
31404 * Form.cs: Don't create an infinite loop when setting focus
31405 * MenuItem.cs: Don't dirty the parents if we don't have any
31407 2005-06-29 Ben Maurer <bmaurer@ximian.com>
31409 * LibSupport.cs: Rename
31411 2005-06-29 Peter Bartok <pbartok@novell.com>
31413 * TextBoxBase.cs: Re-align caret after deleting a character
31415 - DeleteChars(): Ensure that tag covers the provided position
31416 - StreamLine(): Drop reference for dropped tag
31418 2005-06-29 Peter Bartok <pbartok@novell.com>
31421 - Selections now work properly, anchoring at the initial location
31422 and properly extending in either direction (SetSelectionToCaret(),
31423 SetSelectionStart() and SetSelectionEnd())
31424 - No longer redraws the whole control on selection change, now
31425 calculates delta between previous and new selection and only
31426 invalidates/redraws that area
31427 - Fixed FindPos() math off-by-one errors
31428 - Changed DeleteChars() to verify the provided tag covers the
31429 provided position, selections may have a tag that doesn't cover
31430 the position if the selection is at a tag border
31431 - Fixed off-by-one errors in DeleteChars()
31432 - Added missing streamlining check in DeleteChars() to remove
31434 - Implemented Invalidate() method, now properly calculates exposures
31435 between two given lines/positions
31436 - Implemented SetSelection()
31437 - Obsoleted and removed FixupSelection()
31438 - Improved RecalculateDocument() logic, removing code duplication
31440 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31442 * LibSupport.cs: changes to match different input/output arguments.
31444 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31446 * LibSupport.cs: added libsupport.so init routine.
31448 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
31450 * ControlBindingsCollection.cs
31451 - Throws an exception on null datasource when adding
31452 - Checks for duplicated bindings when adding
31454 2005-06-28 Jackson Harper <jackson@ximian.com>
31456 * TreeView.cs (OnKeyDown): Support left and right properly
31457 (navigates as well as expanding and collapsing.
31458 - Add support for Multiply, this expands all the selected nodes
31460 - Fix some tabbing.
31462 2005-06-28 Jackson Harper <jackson@ximian.com>
31464 * TreeView.cs: Implement keyboard navigation, currently supports,
31465 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
31466 support for toggling checkboxes with the space bar.
31468 2005-06-28 Jackson Harper <jackson@ximian.com>
31470 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
31473 2005-06-28 Jackson Harper <jackson@ximian.com>
31475 * TreeView.cs: Add missing event.
31477 2005-06-27 Peter Bartok <pbartok@novell.com>
31480 - Made line ending size configurable (now allows for counting
31481 lineendings as \n or \r\n)
31482 - Added margin to viewport to keep caret visible on right side
31483 - Fixed translation routines for line/pos to documentpos to consider
31484 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
31485 - Fixed some line-endings to be unix style
31486 - Fixed Document.FormatText to perform it's calculations 1-based
31487 - Added descriptions for a few methods that might otherwise get
31489 - Added NOTE section with some basic conventions to remember at
31490 the top of the file
31491 - Major fixup for RichTextBox selection drawing:
31492 * Fixed crashes when multiple tags on a single line were selected
31493 * fixed selection box drawing not overlaying text
31494 * fixed bogus offset calculation for tags not starting at index 1
31495 * Switched behaviour from using multiple Substrings of a
31496 StringBuilder.ToString() to using multiple
31497 StringBuilder.ToString(start, length) statements, hoping this is
31498 faster (kept original version commented out in the code, in case
31499 original version was faster)
31500 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
31502 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
31505 2005-06-27 Jackson Harper <jackson@ximian.com>
31507 * TabControl.cs: Move to the left and right with the arrow
31508 keys. These keys don't cycle beyond first and last like
31509 tab. Refresh all the tabs when scrolling them to the left or
31512 2005-06-27 Jackson Harper <jackson@ximian.com>
31515 - ToString: Added method
31516 - CreateParams: Remove TODO and comment
31517 - OnKeyDown: Cycle through bounds properly.
31518 - SelectedIndex: Scroll to the right or left if we need to
31519 display the newly selected tab.
31521 2005-06-23 Jackson Harper <jackson@ximian.com>
31523 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
31526 2005-06-23 Jackson Harper <jackson@ximian.com>
31528 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
31529 CTRL-SHIFT-TAB, and HOME, END are there any others?
31531 2005-06-23 Jackson Harper <jackson@ximian.com>
31533 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
31535 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31537 * DataGridTextBoxColumn.cs: fixes and enhancements
31538 * ThemeWin32Classic.cs: fixes and enhancements
31539 * DataGridBoolColumn.cs: fixes and enhancements
31540 * DataGridDrawingLogic.cs: fixes and enhancements
31541 * CurrencyManager.cs: fixes and enhancements
31542 * DataGrid.cs: fixes and enhancements
31543 * DataGridColumnStyle.cs: fixes and enhancements
31545 2005-06-22 Jackson Harper <jackson@ximian.com>
31547 * TabControl.cs: Add some missing methods that just call into the
31548 base. Make the TabPageCollection's IList interface behave in the
31549 same manner as the MS implementation.
31551 2005-06-22 Peter Bartok <pbartok@novell.com>
31553 * TextControl.cs: Added sanity check
31555 - Fixed wrapping behaviour, don't set wrap on single line controls
31556 (this fixes the breakage of colordialog introduced in an earlier
31558 - Added rudimentary support for autoscrolling right-aligned controls
31559 (still needs fixing, also, center alignment scroll is missing)
31561 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31563 * ScrollBar.cs: Fixes thumbpos on Maximum values
31565 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
31567 * PropertyGridView.cs: Pass context information to UITypeEditors
31569 2005-06-21 Peter Bartok <pbartok@novell.com>
31572 - Now calling PositionCaret with absolute space coordinates
31573 - Enabled vertical scrolling
31574 - Better tracking of scrollbar changes, tied into WidthChange
31576 - Improved cursor tracking
31577 - Removed debug output
31579 - PositionCaret coordinates are now works in absolute space, not
31581 - Improved tracking of document size
31582 - Added events for width and height changes
31584 2005-06-21 Peter Bartok <pbartok@novell.com>
31586 * Form.cs: Set focus to active control when form is activated
31588 - Added word-wrap functionality to RecalculateLine()
31589 - Added some short function descriptions for VS.Net to aid in
31590 writing dependent controls
31591 - Added Caret property, returning the current coords of the caret
31592 - Added ViewPortWidth and ViewPortHeight properties
31593 - Added Wrap property
31594 - Added CaretMoved event
31595 - Removed some old debug code
31596 - Split() can now create soft splits
31597 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
31598 - Added method to format existing text
31599 - Fixed size/alignment calculations to use viewport
31600 - RecalculateDocument now can handle changing line-numbers while
31604 - Added some wrap logic, we don't wrap if alignment is not left
31605 - Added casts for scrollbar var, base class switched types to
31606 also support RichTextBoxA
31607 - Implemented handling of scrollbar visibility flags
31610 - Switched scrollbars type to RichTextBoxScrollBars to support
31612 - Added tracking of canvas width/height
31613 - Switched scrollbars to be not selectable (to keep focus on text)
31614 - Added central CalculateDocument() method to handle all redraw
31616 - Added ReadOnly support
31617 - Added WordWrap support
31618 - Fixed handling of Enter key (we now treat it as a DialogKey)
31619 - Fixed caret positioning when h or v scroll is not zero
31620 - Fixed placing/generation of vertical scrollbar
31621 - Added CalculateScrollBars() method to allow updating scrollbar
31622 limits and visibility
31623 - Fixed handling of horizontal scroll
31624 - Added handling of vertical scroll
31625 - Implemented auto-'jump' when caret moves to close to a left or
31626 right border and there is text to be scrolled into view (currently
31627 there's the potential for a stack overflow, until a bug in
31628 scrollbar is fixed)
31630 2005-06-21 Geoff Norton <gnorton@customerdna.com>
31632 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
31634 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
31638 - return application/x-zerosize for files with size zero
31639 (if no extension pattern matches).
31640 - check matches collection for strings too.
31641 - return only the first mime type if the name value
31642 collection has more than one mime type.
31644 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
31646 * PropertyGrid.cs: Cleaned up some TODOs
31647 * PropertyGridView.cs: Added support for UITypeEditors
31649 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31651 * DataGrid.cs: clears cached value
31653 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31655 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
31656 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
31657 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
31658 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
31660 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
31662 * ThemeWin32Classic.cs: fixes colour
31664 2005-06-15 Peter Bartok <pbartok@novell.com>
31666 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
31667 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
31668 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
31669 * Control.cs: Added some MWFCategory and MWFDescription attributes
31670 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
31672 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
31674 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
31677 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
31679 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
31680 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
31681 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
31682 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
31683 * DataGrid.cs: default datagrid settings for Default Styles, fixes
31684 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
31686 2005-06-13 Jackson Harper <jackson@ximian.com>
31688 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
31689 isn't printed when the user enables dropping. (X11 does accept
31692 2005-06-13 Jackson Harper <jackson@ximian.com>
31694 * TreeView.cs: Remove some TODOS.
31696 2005-06-13 Jackson Harper <jackson@ximian.com>
31698 * Form.cs: Hook into the mdi framework.
31699 * MdiClient.cs: Use the base control collections add method so
31700 parents get setup correctly. Set the default back colour and dock
31702 * MdiChildContext.cs: New class, this bad actor handles an
31703 instance of an MDI window. Right now there is only basic
31704 support. You can drag, close, and resize windows. Minimize and
31705 Maximize are partially implemented.
31707 2005-06-13 Jackson Harper <jackson@ximian.com>
31709 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
31710 freaky when both vals are negative. NOTE: There are probably other
31711 places in XplatUIX11 that this needs to be done.
31713 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
31715 * DataGrid.cs: implement missing methods, move KeyboardNavigation
31716 * DataGridColumnStyle.cs: fixes signature
31718 2005-06-12 Jackson Harper <jackson@ximian.com>
31720 * XplatUIX11.cs: Use sizing cursors similar to the ones on
31723 2005-06-11 Jackson Harper <jackson@ximian.com>
31725 * StatusBarPanel.cs: Signature cleanups. Implement
31728 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
31730 * DataGridTextBoxColumn.cs: Honors aligment
31731 * GridColumnStylesCollection.cs: Contains is case unsensitive
31732 * GridTableStylesCollection.cs: several fixes
31733 * DataGridTableStyle.cs: default column creation
31734 * DataGridDrawingLogic.cs: fixes
31735 * CurrencyManager.cs: ListName property
31736 * DataGrid.cs: multiple styles support
31737 * DataGridColumnStyle.cs: fixes
31740 2005-06-10 Peter Bartok <pbartok@novell.com>
31742 * Control.cs(Select): Moved SetFocus call to avoid potential
31743 loops if controls change the active control when getting focus
31744 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
31745 the up/down buttons
31747 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
31749 * ImageListConverter.cs: Implemented
31751 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31753 * MonthCalendar.cs: Wired in NumericUpDown control for year
31755 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31757 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
31758 DoubleClick events, since they are not meant to be fired.
31760 2005-06-09 Peter Bartok <pbartok@novell.com>
31762 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
31763 Jonathan's standalone controls into MWF, implemented missing
31764 events, attributes and methods; added xxxAccessible classes
31765 * AccessibleObject.cs: Made fields internal so other classes
31766 can change them if needed
31768 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
31770 * UpDownBase.cs: Complete implementation
31771 * NumericUpDown.cs: Complete implementation
31772 * DomainUpDown.cs: Complete implementation
31774 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
31776 * DataGridTextBoxColumn.cs: drawing fixes
31777 * DataGridCell.cs: fixes ToString method to match MSNet
31778 * DataGridTableStyle.cs: fixes
31779 * DataGridBoolColumn.cs: fixes, drawing
31780 * DataGridDrawingLogic.cs: fixes, new methods
31781 * DataGridTextBox.cs: Keyboard and fixes
31783 - Keyboard navigation
31785 - Row selection (single, multiple, deletion, etc)
31788 2005-06-07 Jackson Harper <jackson@ximian.com>
31790 * ThemeWin32Classic.cs: Clear the background area when drawing
31793 2005-06-06 Peter Bartok <pbartok@novell.com>
31795 * ImageListStreamer.cs: Fixed signature for GetData
31796 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
31798 - Added missing ChildAccessibleObject class
31799 - Added missing OnXXXFocus overrides, switched to using those
31800 instead of the event handler
31802 - Added Parent property for ControlAccessibleObject
31805 - Added ResetBindings()
31806 * ListBindingConverter.cs: Implemented some methods
31807 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
31808 * ImageList.cs: Implemented basic handle scheme, removed TODOs
31809 * ContainerControl.cs: Fixed signature, now subscribing to the
31810 ControlRemoved event instead of overriding the handler, LAMESPEC
31811 * CurrencyManager.cs: Added missing attribute
31812 * MonthCalendar.cs: Added missing properties
31814 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31816 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
31818 2005-06-06 Gaurav Vaish and Ankit Jain
31820 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
31821 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
31823 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31825 * Control.cs: fixes CreateParams Width / Height.
31827 2005-06-05 Peter Bartok <pbartok@novell.com>
31829 * Win32DnD.cs: Removed compilation warnings
31831 2005-06-05 Peter Bartok <pbartok@novell.com>
31833 * Control.cs (CreateParams): Since we don't know if one of the
31834 properties we use is overridden, lets make sure if we fail accessing
31835 we continue with a backup plan
31837 2005-06-05 Peter Bartok <pbartok@novell.com>
31840 - Removed debug output
31841 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
31843 - Plugged resource leak
31844 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
31847 2005-06-05 Peter Bartok <pbartok@novell.com>
31849 * XplatUIWin32.cs: Removed DnD code
31850 * Win32DnD.cs: Implemented drop source and drop target functionality
31852 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31854 * UpDownBase.cs: remove duplicate addition of event, enable some code
31855 that was commented out.
31856 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
31857 Validate input when a key is pressed. It works fine now for every
31858 combination of Hexadecimal. Only missing some drawing love when sharing
31859 space with other controls.
31861 2005-06-04 Peter Bartok <pbartok@novell.com>
31864 - We need to pass a window for DragDrop, so enable callback events
31865 - Added DnD callback events when being a DragSource
31866 * XplatUI.cs (StartDrag): Added window handle argument
31867 * XplatUIDriver.cs (StartDrag): Added window handle argument
31868 * QueryContinueDragEventArgs: Made fields internally accessible so
31869 drivers can set them
31870 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
31873 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
31875 * DataGridTextBoxColumn.cs: column text editing
31876 * DataGridTableStyle.cs: Respect columns styles created by the user
31877 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
31878 * DataGridBoolColumn.cs: bool column editing
31879 * DataGrid.cs: fixes to scrolling, properties, etc
31880 * DataGridTextBox.cs: handle keyboard
31881 * DataGridColumnStyle.cs: fixes
31883 2005-06-02 Jackson Harper <jackson@ximian.com>
31885 * ImageListStreamer.cs: Somewhat broken implementation of
31886 GetObjectData. The RLE needs some work to match MS properly.
31888 2005-06-02 Jackson Harper <jackson@ximian.com>
31890 * X11Dnd.cs: Attempting to keep at least one file in MWF
31893 2005-06-02 Peter Bartok <pbartok@novell.com>
31895 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
31898 2005-06-02 Peter Bartok <pbartok@novell.com>
31900 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
31901 * XplatUI.cs: Added DoDragDrop() method
31902 * XplatUIDriver.cs: Added DoDragDrop() method
31904 2005-06-02 Jackson Harper <jackson@ximian.com>
31906 * Splitter.cs: Implement BorderStyle.
31908 2005-06-02 Jackson Harper <jackson@ximian.com>
31910 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
31911 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
31914 2005-06-02 Peter Bartok <pbartok@novell.com>
31917 - Added Data setter
31918 - Fixed broken insertion code for SetData, now also
31919 overwrites any existing entry of the same format name
31920 * Hwnd.cs: Added list of pointers that automatically gets
31921 freed when the window is disposed
31922 * XplatUI.cs: Call driver initialization method when loading
31925 - OnDragLeave takes EventArgs, not DragEventArgs
31926 - Added setting of WS_EX_ACCEPTFILES style when dropping is
31928 - Forces style update when drop state changes
31929 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
31930 not perfect since we cannot (yet) call the IDataObject.GetData()
31931 method, we keep getting 0x80004005 error, dunno why)
31933 2005-06-02 Peter Bartok <pbartok@novell.com>
31935 * DragEventArgs.cs: Make fields internal so we can cache the
31936 object and re-set the fields from XplatUI
31938 2005-06-02 Jackson Harper <jackson@ximian.com>
31940 * Control.cs: Add some internal methods so the DnD subsystem can
31941 raise DnD events. Also call into the driver when AllowDrop is set.
31943 * XplatUIDriver.cs: New method for setting whether or not a window
31944 is allowed to accept drag and drop messages.
31946 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
31948 * ScrollBar.cs: Make sure that values sent in Scroll events
31949 are always between Maximum and Minimum.
31951 2005-06-01 Marek Safar <marek.safar@seznam.cz>
31953 * Menu.cs: Call MenuChanged when menuitem visibility has been
31955 * MenuItem.cs: Rebuild menu when item is (not) visible.
31956 * MainMenu.cs: MainMenu has special MenuChanged.
31957 * Theme.cs: Caption and FrameBorderSize are not fixed.
31958 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
31959 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
31961 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
31962 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
31964 2005-05-30 Jackson Harper <jackson@ximian.com>
31966 * DataFormat.cs: We can't statically initialize this stuff because
31967 it calls into the xplatui and could create a loop. So we lazy init
31970 2005-05-28 Jackson Harper <jackson@ximian.com>
31972 * Control.cs: Proper implementation of Product(Name/Version).
31974 2005-05-27 Jackson Harper <jackson@ximian.com>
31976 * DataObject.cs: Dont crash if no data is found.
31978 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31979 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
31980 as per status page, guessing it should be set to true
31982 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
31984 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
31985 * DataGridTableStyle.cs: set proper formatting text, def header text
31986 * ThemeWin32Classic.cs: new themable paramaters
31987 * DataGridBoolColumn.cs: paint check box, get data, fixes
31988 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
31989 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
31990 * DataGridColumnStyle.cs: fixes
31991 * Theme.cs: new themable paramaters
31993 2005-05-26 Peter Bartok <pbartok@novell.com>
31995 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
31997 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31998 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
32000 2005-05-24 Peter Bartok <pbartok@novell.com>
32002 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
32003 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
32004 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
32005 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
32006 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
32007 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
32008 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
32009 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
32010 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
32011 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
32012 missing attributes, etc
32013 * DataGridPreferredColumnWidthTypeConverter.cs: Added
32015 2005-05-24 Peter Bartok <pbartok@novell.com>
32017 * Help.cs: Added, implemented trivial functions, throws up MessageBox
32018 when user tries to get help
32019 * DataObject.cs, DataFormats.cs, LinkArea.cs,
32020 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
32021 to suppress warnings
32022 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
32023 avoid unreachable code warning
32025 2005-05-20 Peter Bartok <pbartok@novell.com>
32027 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
32029 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32031 * DataGridTextBoxColumn.cs: Basic painting methods
32032 * DataGridTableStyle.cs: Set table style in the column
32033 * ThemeWin32Classic.cs: Use Theme for colors
32034 * DataGridDrawingLogic.cs: Implement more drawing
32035 * DataGrid.cs: drawing, theming, enhacements, fixes
32036 * DataGridColumnStyle.cs: fixes, drawing
32037 * Theme.cs: theming for Datagrid
32039 2005-05-20 Peter Bartok <pbartok@novell.com>
32041 * Cursor.cs: Implemented GetObjectData() method
32043 2005-05-20 Peter Bartok <pbartok@novell.com>
32045 * Cursors.cs: Added setting of cursor name
32047 - Implemented constructors
32048 - Implemented Draw and DrawStretched
32049 - Implemented Current property
32050 - Implemented == and != operators
32051 - Implemented Dispose()
32052 - Implemented ToString
32053 - Added missing attributes
32055 - Added missing reset for OverrideCursor when DoEvents is called
32056 - Fixed creation of cursor, logic was wrong
32058 - Added missing reset for OverrideCursor when DoEvents is called
32059 - Fixed creation of cursor, bit arrays were swapped
32060 * Clipboard.cs: Removed obsolete MonoTODO attribute
32062 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32064 * ComboBox.cs: fixes OnSelectedItemChanged
32065 * ControlBindingsCollection.cs: fixes item range check
32067 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32070 - Calc preferred height properly
32071 - Implement missing properties
32073 * NumericUpDown.cs: Implement missing events
32075 2005-05-19 Jackson Harper <jackson@ximian.com>
32077 * TabControl.cs: New method that resizes the tab pages before
32078 redrawing them. This as needed as the control is double buffered
32079 and sizing will not be recalculated unless ResizeTabPages is
32081 * TabPage.cs: Set base.Text instead of Text in the constructor so
32082 that UpdateOwner does not get called. Use the new Redraw method of
32083 TabControl instead of Refresh so the sizing is recalculated.
32084 * ThemeWin32Classic.cs: Draw the text for button tabs.
32086 2005-05-19 Jackson Harper <jackson@ximian.com>
32088 * Control.cs: Paint control background images. Fix typo where
32089 PaintControlBackground was not getting called correctly.
32091 2005-05-19 Peter Bartok <pbartok@novell.com>
32093 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
32094 I can investigate, apparently I broke FileDialog
32096 2005-05-19 Marek Safar <marek.safar@seznam.cz>
32098 * AxHost.cs: Some simple properties.
32099 * Control.cs: window must be accessible after ctor.
32100 * Form.cs: Added TransparencyKey property.
32101 * TextBoxBase.cs: Implemented Clear. Text property can be null.
32102 * XplatUIWin32.cs: SetBorderStyle implemented.
32104 2005-05-18 Peter Bartok <pbartok@novell.com>
32106 * DataObject.cs: Entries are not global but particular to the
32107 DataObject, now it behaves that way
32108 * XplatUIWin32.cs: Implemented Clipboard methods
32109 * Clipboard.cs: Implemented
32110 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
32111 * XplatUIOSX.cs: Updated to final clipboard prototypes
32112 * XplatUIX11.cs: Implemented Clipboard methods
32113 * XplatUIDriver.cs: Updated to final clipboard prototypes
32114 * XplatUIStructs.cs:
32115 - Added BITMAPINFOHEADER struct
32116 - Added ClipboardFormats enum
32118 - Added ClipboardStruct
32119 - Added Atom enum items for clipboard types
32120 - Fixed atom types for Selection event structures
32122 - Added internal properties and methods for drivers to enumerate
32124 - Switched initialization method to allow drivers to assign their
32125 own IDs even for the MS predefined clipboard IDs
32126 * XplatUI.cs: Updated to final clipboard interface
32128 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32129 * PropertyGridView.cs: Fixed compiler warnings.
32131 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32132 * PropertyGrid.cs: Added some event calls
32133 * PropertyGridView.cs: Change drawing code to use double buffering
32134 * PropertyGridTextBox.cs: Changed Text property name
32135 * GridItem.cs: Added Bounds property.
32136 * GridEntry.cs: Added Bounds property.
32138 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
32140 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
32141 since GetType() may not return the correct type if the object is
32144 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
32146 * TreeNodeCollection.cs: fixes get/set item ranges
32148 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32150 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
32152 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32154 * ComboBox.cs: Fix item range comparation
32155 * ListView.cs: Fix item range comparation
32157 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32160 - Clear example panel when OnPaint is called
32161 - Better solution for displaying the example panel text
32162 - Select default indexes in the ListBoxes
32164 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32166 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
32168 2005-05-11 Peter Bartok <pbartok@novell.com>
32170 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32171 * SelectionRangeConverter.cs: Implemented
32172 * PropertyGrid.cs: Fixed attribute value
32174 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32175 - Added Sebastien Pouliot's CAS Stack Propagation fixes
32176 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32177 that's common to all drivers. First methods to go there are
32178 Sebastien Pouliot's CAS Stack Propagation helper methods
32179 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32180 Sebastien Pouliot for CAS Stack Propagation
32182 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32185 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32187 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
32189 * DataGridTextBoxColumn.cs: fixed some members
32190 * GridColumnStylesCollection.cs: indexed column is case insensitive
32191 * DataGridTableStyle.cs: fixes
32192 * ThemeWin32Classic.cs: add new theme parameter
32193 * Theme.cs: add new theme parameter
32194 * DataGridDrawingLogic.cs: Datagrid's drawing logic
32195 * DataGrid.cs: fixes, new internal properties, etc.
32196 * DataGridColumnStyle.cs: allows to set grid value
32199 2005-05-10 Peter Bartok <pbartok@novell.com>
32201 * AccessibleObject.cs:
32202 - Removed MonoTODO attribute on help, method is correct
32203 - Fixed Bounds property
32204 * AxHost.cs: Moved MonoTODO
32205 * ButtonBase.cs: Now setting AccessibleObject properties
32206 * RadioButton.cs: Setting proper AccessibleObject role
32207 * CheckBox.cs: Setting proper AccessibleObject role
32208 * ControlBindingsCollection.cs: Added properties, methods and attributes
32209 * DataFormats.cs: Fixed awkward internal API, and changed to enable
32210 userdefined DataFormats.Format items as well
32211 * ListControl.cs: Removed data_member from the public eye
32212 * OpenFileDialog.cs:
32213 - Made class sealed
32214 - Added missing attributes
32215 * SaveFileDialog.cs: Added missing attributes
32216 * ImageListStreamer.cs: Fixed code that caused warnings
32217 * LinkLabel.cs: Removed unreachable code
32218 * TreeView.cs: Fixed code that caused warnings
32219 * PropertyGridView.cs: Fixed code that caused warnings
32220 * GridColumnStylesCollection.cs: Added missing attributes
32221 * GridTableStylesCollection: Added missing attribute
32222 * PropertyManager: Added .ctor
32223 * SecurityIDType: Added
32224 * DataObject.cs: Implemented class
32225 * LinkArea.cs: Added missing attribute
32227 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
32229 * RadioButton.cs: call base method to allow to fire OnClick event
32230 * UpDownBase.cs: OnMouseUp call base method
32231 * CheckedListBox.cs: call base method before returning
32232 * TrackBar.cs: call base method before returning
32235 2005-05-10 Peter Bartok <pbartok@novell.com>
32237 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
32240 2005-05-10 Peter Bartok <pbartok@novell.com>
32242 * DataFormats.cs: Implemented
32243 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
32244 XplatUIX11.cs: Added Clipboard APIs
32245 * XplatUIWin32.cs: Implemented Clipboard APIs
32246 * FolderBrowserDialog.cs: Added missing event, attributes
32248 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
32250 * CheckBox.cs: call base method to allow to fire OnClick event
32252 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
32254 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
32256 2005-05-06 Peter Bartok <pbartok@novell.com>
32258 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
32259 * Screen.cs: Implemented
32260 * HelpNavigator.cs: Added
32261 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
32263 * HelpProvider.cs: Implemented all we can do until we have a CHM
32264 help library (which means that "What's This" does work now)
32266 2005-05-06 Jackson Harper <jackson@ximian.com>
32268 * XplatUIX11.cs: Fix waking up the main loop.
32270 2005-05-05 Peter Bartok <pbartok@novell.com>
32272 * XplatUI.cs: Updated revision
32273 * Form.cs: Removed enless loop
32274 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
32275 * Label.cs (OnPaint): Added call to base.OnPaint()
32276 * ToolTip.cs: Made ToolTipWindow reusable for other controls
32277 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
32278 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
32280 * ButtonBase.cs: Moved base.OnPaint() call to end of method
32281 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
32282 to ToolTip.ToolTipWindow for drawing and size methods; this allows
32283 reuse of ToolTipWindow by other controls
32284 * SizeGrip.cs: Moved base.OnPaint() call to end of method
32285 * XplatUIX11.cs: Now clipping drawing area (experimental)
32286 * PictureBox.cs: Moved base.OnPaint() call to end of method
32287 * Theme.cs: Fixed ToolTip abstracts to match new format
32288 * ErrorProvider.cs: Implemented
32290 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
32292 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
32296 - Implements LinkBehavior
32297 - Fixes many issues
32299 2005-05-03 Jackson Harper <jackson@ximian.com>
32301 * ListView.cs: Calculate the scrollbar positioning on resize and
32302 paint, so they get put in the correct place.
32304 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32306 * ColorDialogs.cs: The small color panels are now handled by
32307 SmallColorControl. This fixes drawing of the focus rectangle
32308 and adds a 3D border.
32310 2005-05-03 Peter Bartok <pbartok@novell.com>
32312 * Control.cs: Modified version of Jonathan Chamber's fix for
32315 2005-05-03 Jackson Harper <jackson@ximian.com>
32317 * ListView.cs: Remove redraw variable. Control now handles whether
32318 or not a redraw needs to be done, and will only raise the paint
32319 event if redrawing is needed.
32321 2005-05-03 Jackson Harper <jackson@ximian.com>
32323 * Splitter.cs: No decorations for the splitter form. Cache the
32326 2005-05-03 Jackson Harper <jackson@ximian.com>
32328 * TreeView.cs: Use dashed lines to connect nodes. Use the
32329 ControlPaint method for drawing the focus rect instead of doing
32332 2005-05-02 Peter Bartok <pbartok@novell.com>
32334 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
32336 2005-04-29 Jackson Harper <jackson@ximian.com>
32338 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
32339 entire image buffer. Just clear the clipping rectangle.
32341 2005-04-29 Jackson Harper <jackson@ximian.com>
32343 * ThemeWin32Classic.cs: Don't draw list view items that are
32344 outside the clipping rectangle.
32346 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
32348 * ListBox.cs: added horizontal item scroll
32350 2005-04-29 Jackson Harper <jackson@ximian.com>
32352 * ThemeWin32Classic.cs: Remove some old debug code that was
32353 causing flicker with the new double buffering code.
32355 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
32357 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
32358 behave like combobox and comboboxlist (still not sure if this is
32361 2005-04-28 Jackson Harper <jackson@ximian.com>
32363 * ThemeWin32Classic.cs: Don't fill the middle of progress
32364 bars. This fills areas outside of the clip bounds that don't need
32367 2005-04-28 Jackson Harper <jackson@ximian.com>
32369 * Control.cs: Don't expose functionality to touch the image buffers.
32371 * ListView.cs: We do not need to (and no longer can) manipulate
32372 the image buffers directly. All of this is handled by Control.
32374 2005-04-28 Peter Bartok <pbartok@novell.com>
32376 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32377 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
32378 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
32380 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32383 - Adjust control's height for non-simple comboboxes (bug fix)
32385 * MenuAPI.cs: remove unused var
32386 * ScrollBar.cs: remove unsed var
32388 * ListBox.cs: unselect items when clearing
32390 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32392 * ListControl.cs: honors OnPositionChanged and default Selected Item
32393 * ListBox.cs: unselect items when clearing
32395 2005-04-27 Jackson Harper <jackson@ximian.com>
32397 * X11Keyboard.cs: Initialize a default keyboard and give a warning
32398 if a "correct" keyboard is not found. This will make us not crash,
32399 but might give some users bad keyboard layouts...seems to be the
32400 same thing rewind does.
32402 2005-04-27 Jackson Harper <jackson@ximian.com>
32404 * BindingManagerBase.cs: Attach the current/position changed
32405 handlers to their respective events.
32407 2005-04-27 Jackson Harper <jackson@ximian.com>
32409 * Control.cs: Make sure that the first WM_PAINT does a full draw,
32411 * ThemeWin32Classic.cs: Don't fill the background for picture
32412 boxes. This could overright user drawing.
32413 * ComboBox.cs: Just fill the clipping rect not the entire client
32414 rect when drawing the background. This prevents pieces of the
32415 image buffer from getting overwritten and is theoretically faster.
32417 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
32419 * ComboBox.cs: Databinding support fixes, fire missing events
32420 * ListControl.cs: implement missing methods and properties, fixes
32421 * ThemeWin32Classic.cs: Databiding support on Drawing
32422 * CheckedListBox.cs: Databinding support fixes, fire missing events
32423 * ListBox.cs: Databinding support fixes, fire missing events
32425 2005-04-25 Peter Bartok <pbartok@novell.com>
32427 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
32429 2005-04-25 Jackson Harper <jackson@ximian.com>
32431 * TreeView.cs: Use the horizontal scrollbars height not width when
32432 determining how much of the client area is available.
32434 2005-04-25 Jackson Harper <jackson@ximian.com>
32436 * Control.cs: Double buffering is handled differently now. As per
32437 the spec, the extra buffer is created in the WM_PAINT message and
32438 passed down to the control's drawing code.
32446 * PropertyGridView.cs:
32458 * DateTimePicker.cs:
32460 * TreeView.cs: Update to new double buffering system.
32461 * MonthCalendar.cs: Uncomment block, as Capture is now
32462 working. Update to new double buffering
32463 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
32464 * PaintEventArgs.cs: New internal method allows us to set the
32465 graphics object. This is used for double buffering.
32466 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
32467 rectangle. The internal paint_area var has been removed from
32468 StatusBar. The clipping rect should be used instead.
32469 * Theme.cs: Give the PictureBox drawing method a clipping rect.
32470 * TabPage.cs: The RefreshTabs method was removed, so just call the
32471 tab controls Refresh method now.
32472 * TabControl.cs: Update to new double buffering. Make sure the
32473 handle is created before sizing the tab pages, otherwise we will
32474 get stuck in a loop.
32476 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
32478 * LinkLabel.cs: Fix typo, bug #74719; patch
32479 from Borja Sanchez Zamorano
32481 2005-04-22 Jackson Harper <jackson@ximian.com>
32483 * TreeNode.cs: Implement Handle stuff.
32484 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
32486 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
32488 * DataGridTextBoxColumn.cs: call base constructors, fixes
32489 * GridColumnStylesCollection.cs: missing events, methods, and functionality
32490 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
32491 * DataGridTableStyle.cs: implements create default column styles
32492 * DataGridBoolColumn.cs: which types can handle
32493 * DataGrid.cs: missing methods, fixes, new functionality
32494 * DataGridColumnStyle.cs: fixes
32496 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
32497 * FolderBrowserDialog.cs:
32498 - Use a thread to fill the TreeView
32499 - Adjusted some sizes
32501 2005-04-19 Peter Bartok <pbartok@novell.com>
32503 * LinkLabel.cs: (Re-)create the pieces when setting the Text
32504 property. Fixes #74360.
32506 2005-04-19 Jackson Harper <jackson@ximian.com>
32508 * XEventQueue.cs: Lock when getting the lockqueue size.
32509 * PictureBox.cs: Call base OnPaint
32511 2005-04-19 Peter Bartok <pbartok@novell.com>
32513 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
32514 messages were no longer being processed (this broke BeginInvoke)
32517 2005-04-18 Jackson Harper <jackson@ximian.com>
32519 * TreeView.cs: buglet that caused node images to get drawn
32520 regardless of whether or not they were in the clipping rectangle.
32522 2005-04-18 Jackson Harper <jackson@ximian.com>
32524 * CurrencyManager.cs: There are four rules for GetItemProperties:
32525 - If the type is an array use the element type of the array
32526 - If the type is a typed list, use the type
32527 - If the list contains an Item property that is not an object, use
32529 - use the first element of the list if there are any elements in
32532 2005-04-17 Jackson Harper <jackson@ximian.oom>
32534 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
32535 click. This handles offsets for scrolling properly and reduces
32536 memory. Also fixed GetNode to not offset now that TopNode works
32538 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
32540 2005-04-17 Jackson Harper <jackson@ximian.com>
32542 * CursorConverter.cs: Initial implementation.
32544 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32546 * ListControl.cs: work towards complex data binding support on ListControl
32547 * CurrencyManager.cs: work towards complex data binding support on ListControl
32548 * ListBox.cs: work towards complex data binding support on ListControl
32551 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32553 * GridTableStylesCollection.cs: fixes name and constructor
32554 * DataGridTableStyle.cs: fixes
32555 * DataGridBoolColumn.cs: fixes names and constructors
32556 * DataGrid.cs: define methods and properties. Some init implementations
32557 * DataGridCell.cs: define methods and properties. Some init implementations
32558 * GridTablesFactory.cs: Define methods and properties
32560 2005-04-15 Geoff Norton <gnorton@customerdna.com>
32562 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
32563 graphics port changes. We still want the coordinates in global screen
32566 2005-04-14 Jackson Harper <jackson@ximian.com>
32568 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
32569 check plus minus or checkbox clicks unless those features are enabled.
32571 2005-04-14 Jackson Harper <jackson@ximian.com>
32573 * TreeView.cs: Add methods for setting the top and bottom visible
32574 nodes. TreeNode::EnsureVisible uses these methods.
32575 * TreeNode.cs: Implement EnsureVisible
32577 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
32579 * Form.cs: Pospone menu assignation if the window has not been created yet
32580 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
32583 2005-04-12 Jackson Harper <jackson@ximian.com>
32585 * TreeView.cs: Set the TopNode properly when scrolling
32586 occurs. This has the added benifit of reducing the amount of
32587 walking that needs to be done when drawing. Also removed an old
32589 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
32591 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
32593 * Timer.cs: fixes interval setting when the timer is already enabled
32595 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
32597 * FolderBrowserDialog.cs: First approach
32599 2005-04-09 Peter Bartok <pbartok@novell.com>
32601 * FolderBrowserDialog: Added
32603 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
32605 * LinkLabel.cs: move drawing code into the theme
32606 * ThemeWin32Classic.cs: drawing code and painting background bugfix
32607 * Theme.cs: define DrawLinkLabel method
32609 2005-04-05 Jackson Harper <jackson@ximian.com>
32611 * BindingContext.cs: Use weak references so these bad actors don't
32612 stay alive longer then they need to.
32614 2005-04-05 Jackson Harper <jackson@ximian.com>
32616 * ListControl.cs: Basic implementation of complex databinding.
32618 * ListBox.cs: Add calls to ListControl databinding methods.
32620 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
32623 - Don't change PopupButtonState to Normal when the
32624 PopupButton gets pressed several times.
32625 - Renamed ButtonPanel to PopupButtonPanel
32627 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
32629 * ColorDialog.cs: Use cached objects instead of creating them
32630 * LinkLabel.cs: Use cached objects instead of creating them
32631 * Splitter.cs: Use cached objects instead of creating them
32632 * FontDialog.cs: Use cached objects instead of creating them
32633 * PropertyGridView.cs: Use cached objects instead of creating them
32634 * MessageBox.cs: Use cached objects instead of creating them
32635 * FileDialog.cs: Use cached objects instead of creating them
32636 * ThemeWin32Classic.cs: Use cached objects instead of creating them
32637 * TreeView.cs: Use cached objects instead of creating them
32639 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
32641 * Control.cs: use Equals to compare the font since no == op
32642 * ScrollBar.cs: use Equals to compare the font since no == op
32644 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
32646 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
32648 2005-04-01 Jackson Harper <jackson@ximian.com>
32650 * Binding.cs: Implement IsBinding.
32651 * BindingManagerBase.cs:
32652 * PropertyManager.cs:
32653 * CurrencyManager.cs: Add IsSuspended property.
32655 2005-04-01 Jackson Harper <jackson@ximian.com>
32657 * Binding.cs: Had some IsAssignableFrom calls backwards.
32659 2005-04-01 Jackson Harper <jackson@ximian.com>
32661 * Binding.cs: Handle null data members when pulling data.
32662 * PropertyManager.cs: Handle the data member being a property that
32665 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32667 * DataGridTextBoxColumn.cs: fixes signature
32668 * DataGrid.cs: calls right constructor
32670 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32672 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
32673 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
32674 * GridTableStylesCollection.cs: implements GridTableStylesCollection
32675 * DataGridTableStyle.cs: implements DataGridTableStyle
32676 * DataGridBoolColumn.cs: implements DataGridBoolColumn
32677 * DataGridTextBox.cs: implements DataGridTextBox
32678 * DataGridColumnStyle.cs: implements DataGridColumnStyle
32680 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
32682 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
32684 2005-03-29 Peter Bartok <pbartok@novell.com>
32687 - Properly implemented CompanyName property
32688 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
32689 returns a path that includes CompanyName, ProductName and
32690 Version (fixes bug #70330)
32692 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
32694 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
32697 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32699 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
32701 - Added ReadOnly CheckBox
32702 - Further refactoring: moved some code from Open-/SaveFileDialog
32705 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32707 * OpenFileDialog.cs: Fixed CheckFileExists
32709 Moved FileView and DirComboBox outside FileDialog class.
32710 They can now be used outside FileDialog
32712 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32714 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
32715 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
32717 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32719 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32720 - Added missing CreatePrompt property in SaveDialog
32721 - Overall SaveDialog handling should be better now
32722 - Added non standard ShowHiddenFiles property
32723 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
32724 - Added InitialDirectory and RestoreDirectory support
32726 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
32728 * FileDialog.cs: Made dirComboBox usable
32730 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
32732 * FileDialog.cs: Added Filter support (case sensitiv)
32734 2005-03-24 Jackson Harper <jackson@ximian.com>
32736 * TabControl.cs: Need a couple more pixels for the lines.
32738 2005-03-23 Jackson Harper <jackson@ximian.com>
32740 * TabControl.cs: Give the tab page focus when it is selected.
32742 2005-03-23 Jackson Harper <jackson@ximian.com>
32744 * TabControl.cs: Account for the drawing of tabs borders when
32745 invalidating. If the slider was clicked dont do click detection on
32748 2005-03-23 Jackson Harper <jackson@ximian.com>
32750 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
32752 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
32754 * CategoryGridEntry.cs: Added
32755 * GridItem.cs: Added helper properties
32756 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
32757 * GridEntry.cs: Updated code for collection
32758 * PropertyGrid.cs: Cleaned up some formatting
32759 * PropertyGridView.cs: Added drop down functionality for enums.
32760 * GridItemCollection.cs: Added enumerator logic
32761 * PropertyGridEntry.cs: Added
32763 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32766 - Removed unnecessary commented code
32767 - Fixed handling for entering the filename manually in the combobox
32769 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32771 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
32773 2005-03-18 Peter Bartok <pbartok@novell.com>
32775 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
32776 them being touching the border
32778 2005-03-18 Peter Bartok <pbartok@novell.com>
32780 * TextControl.cs: Quick hack to center text better
32782 2005-03-18 Peter Bartok <pbartok@novell.com>
32785 - Don't throw NotImplemented exceptions, just print a notice once
32786 instead (requested by Miguel). This makes running existing SWF
32789 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
32790 - Added context menu trigger on right click
32791 * Panel.cs: Trigger invalidate on resize
32793 - Removed old double-buffer drawing
32794 - Added ResizeRedraw style to force proper update of statusbar
32796 - Removed debug output
32797 * ThemeWin32Classic.cs:
32798 - Fixed drawing of status bar, now draws Text property if there
32799 are no defined panels
32801 2005-03-18 Jackson Harper <jackson@ximian.com>
32803 * ImageList.cs: When the image stream is set pull all the images
32805 * ImageListStreamer.cs: Implement reading image list streams.
32807 2005-03-18 Peter Bartok <pbartok@novell.com>
32809 * ThemeWin32Classic.cs (DrawPictureBox):
32810 - Fixed calculations for centered drawing
32811 - Fixed drawing for normal mode, not scaling the image on normal
32813 2005-03-18 Peter Bartok <pbartok@novell.com>
32815 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
32818 - Made Open/Save button the accept button for FileDialog
32819 - Tied the cancel button to the IButtonControl cancel button
32820 - Save/Open now properly builds the pathname
32821 - Now handles user-entered text
32822 - Preventing crash on right-click if no item is selected
32823 - Fixed Text property, now uses contents of textbox
32824 - Fixed SelectedText property, now just returns the text part that
32825 is selected in the text box
32827 2005-03-18 Jackson Harper <jackson@ximian.com>
32829 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
32830 rect, make sure to de-adjust the interior rect after drawing the
32833 2005-03-18 Peter Bartok <pbartok@novell.com>
32835 * MenuAPI.cs: Remove menu *before* executing selected action to
32836 prevent the menu from 'hanging around'
32838 2005-03-17 Geoff Norton <gnorton@customerdna.com>
32840 * XplatUIOSX.cs: Implemented WorkingArea property
32842 2005-03-17 Peter Bartok <pbartok@novell.com>
32844 * XplatUIX11.cs: Fixed menu coord calculations
32845 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
32846 for calculating offsets
32848 2005-03-17 Peter Bartok <pbartok@novell.com>
32850 * Hwnd.cs: Do not consider menu presence for default client
32851 rectangle location/size
32852 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
32853 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
32854 translation functions
32855 * FileDialog.cs: Fixed (what I presume is a) typo
32857 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
32859 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
32860 X access (avoids X-Async errors)
32862 2005-03-16 Jackson Harper <jackson@ximian.com>
32864 * TabControl.cs: Raise the SelectedIndexChanged event.
32866 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
32868 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32869 - Removed vertical ToolBar and replaced it with a custom panel
32870 (desktop and home button already work)
32871 - Added Help button (some controls get resized or relocated then)
32872 - Draw correct text depending on Open or Save.
32873 - Fixed some typos...
32875 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
32878 - Only change Maximum and Minimum when need it (bug fix)
32880 2005-03-15 Peter Bartok <pbartok@novell.com>
32882 * Form.cs: Use Handle for icon, to trigger creation if
32883 the window does not yet exist
32885 - CanSelect: Slight performance improvement
32886 - Focus(): Preventing possible recursion
32887 - Invalidate(): Removed ControlStyle based clear flag setting
32888 - WM_PAINT: fixed logic for calling OnPaintBackground
32889 - WM_ERASEBKGND: Fixed logic, added call to new driver method
32890 EraseWindowBackground if the control doesn't paint background
32892 - Moved EraseWindowBackground() method to internal methods
32893 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
32894 is sent via SendMessage on BeginPaint call on Win32
32896 - Added EraseWindowBackground() method
32897 - No longer sends WM_ERASEBKGND on .Expose, but on call to
32898 PaintEventStart, which more closely matches Win32 behaviour
32899 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
32900 - Fixed SetFocus() to properly deal with client and whole windows
32901 * Hwnd.cs: Added ErasePending property
32902 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
32903 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
32905 2005-03-12 Geoff Norton <gnorton@customerdna.com>
32908 - Fix hard loop when timers exist.
32909 - Fix bugs with middle and right click for 3 button mice.
32911 2005-03-11 Peter Bartok <pbartok@novell.com>
32914 - get_WorkingArea: Need to call X directly, GetWindowPos only
32915 returns cached data now
32916 - Added sanity check to GetWindowPos hwnd usage
32918 2005-03-11 Jackson Harper <jackson@ximian.com>
32920 * BindingManagerBase.cs: This method isn't used anymore as
32921 PullData now updates the data in the control.
32923 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
32925 * Form.cs: fixes menu drawing on X11
32926 * MenuAPI.cs: fixes menu drawing on X11
32928 2005-03-11 Peter Bartok <pbartok@novell.com>
32930 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
32931 from Jonathan Gilbert; should fix bug #73606
32932 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
32933 in Screen coordinates. Thanks, Jordi.
32934 * Form.cs: Added missing attribute
32936 2005-03-11 Peter Bartok <pbartok@novell.com>
32939 - Rudimentary Mdi support
32940 - Removed outdated FormParent code
32941 - Implemented lots of missing properties and methods, still missing
32942 transparency support
32943 - Added missing attributes
32944 - Implemented support for MaximumBounds
32945 - Added firing of various events
32946 * XplatUI.cs: Added SetIcon() method
32947 * XplatUIDriver.cs: Added SetIcon() abstract
32948 * XplatUIOSX.cs: Stubbed out SetIcon() method
32950 - Implemented SetIcon() support
32951 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
32952 - Switched to unix line endings
32954 - Made POINT internal so for can access it as part of MINMAX
32955 - Implemented SetIcon() support
32956 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
32957 native Mdi support again, might have to go managed)
32958 * Control.cs: Now fires the StyleChanged event
32959 * MdiClient.cs: Added; still mostly empty
32961 2005-03-10 Peter Bartok <pbartok@novell.com>
32963 * SaveFileDialog.cs: Added emtpy file
32965 2005-03-08 Peter Bartok <pbartok@novell.com>
32967 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
32968 in turn triggers OnCreateContro) when creating a handle for the
32970 * TextControl.cs: Fixed endless loop in certain cases when
32971 replacing the current selection
32973 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
32976 - Honors NewValue changes in Scroll events allowing apps to change it
32977 - Adds First and Last Scroll events
32978 - Fixes Thumb events
32980 2005-03-07 Peter Bartok <pbartok@novell.com>
32982 * Hwnd.cs: Added DefaultClientRectangle property
32983 * XplatUI.cs: Now using the X11 driver Where() method, which provides
32984 more detailed debug information
32986 - Fixed size-change feedback loop, where we would pull an old size
32987 off the queue and mistakenly change our window's size to an
32989 - Now compressing ConfigureNotify events, to reduce looping and
32991 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
32994 2005-03-07 Jackson Harper <jackson@ximian.com>
32996 * Binding.cs: Push data pushes from data -> property. Check if the
32997 property is readonly when attempting to set it.
32999 2005-03-07 Jackson Harper <jackson@ximian.com>
33001 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
33002 instead of IsSubclassOf. Pulling data now sets the value on the
33004 * PropertyManager.cs:
33005 * CurrencyManager.cs: Just need to pull data when updating now,
33006 because PullData will set the value on the control.
33008 2005-03-04 Jackson Harper <jackson@ximian.com>
33010 * Binding.cs: Implement data type parsing and converting on pulled
33011 data. TODO: Are there more ways the data can be converted?
33013 2005-03-04 Jackson Harper <jackson@ximian.com>
33015 * Binding.cs: Support <Property>IsNull checks. Also bind to the
33016 controls Validating method so we can repull the data when the
33017 control loses focus.
33019 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
33022 - Fixes null string format
33025 - Adds enum type checks
33026 - Fixes redrawing and recalc need after changing some properties
33027 - Fixes on focus_item set after the event
33028 - Fixes adding columns after the control has been created
33030 * ThemeWin32Classic.cs:
33031 - Fixes CheckBox focus rectangle
33032 - Fixes ColumnHeader drawing
33035 2005-03-03 Jackson Harper <jackson@ximian.com>
33037 * Binding.cs: Bind to <Property>Changed events so we can detect
33038 when properties are changed and update the data.
33040 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
33043 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
33044 - Fixes ImageList constructor with ImageList container
33045 - Fixes image scaling (wrong parameters at DrawImage)
33047 2005-02-02 Jackson Harper <jackson@ximian.com>
33049 * Binding.cs: Make property searches case-insensitive. Eliminate
33050 some duplicated code.
33052 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
33055 - Handle focus event
33056 - Fix scrollbar events
33057 - Discard highlighted item if remove it
33058 - Fixes SelectedItem with strings
33060 2005-03-01 Peter Bartok <pbartok@novell.com>
33063 - Fixed Visible property, now follows (once again) parent chain
33064 to return false if any control in the chain is visible=false
33065 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
33066 - Fixed several places where is_visible instead of Visible was used
33067 - Implemented FIXME related to focus selection when setting focused
33068 control to be invisible
33070 * XplatUIWin32.cs: Now using proper method to find out if window is
33071 visible. Thanks to Jordi for pointing it out
33073 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
33075 * ComboBox.cs: show/hide scrollbar instead of creating it
33077 2005-02-27 Jackson Harper <jackson@ximian.com>
33079 * CurrencyManager.cs: Add PositionChanged stuff.
33081 2005-02-27 Peter Bartok <pbartok@novell.com>
33083 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
33084 * XplatUIOSX.cs: Added GetMenuOrigin() stub
33085 * XplatUIWin32.cs: Implemented GetMenuOrigin()
33087 - Implemented GetMenuDC()
33088 - Implemented GetMenuOrigin()
33089 - Implemented ReleaseMenuDC()
33090 - Implemented generation of WM_NCPAINT message
33091 - Implemented generation and handling of WM_NCCALCSIZE message
33092 * Form.cs: Added debug helper message for Jordi's menu work
33094 - Modified ClientRect property; added setter, fixed getter to handle
33095 setting of ClientRect
33096 - Added MenuOrigin property
33098 2005-02-26 Peter Bartok <pbartok@novell.com>
33101 - Destroys the caret if a window that's being destroyed contains it
33102 - Ignores expose events coming from the X11 queue for windows that
33103 already are destroyed
33104 - Now uses the proper variable for handling DestroyNotify, before we
33105 marked the wrong window as destroyed
33106 - Improved/added some debug output
33108 2005-02-26 Peter Bartok <pbartok@novell.com>
33110 * X11Keyboard.cs: Fixes to work on 64bit systems
33112 2005-02-26 Peter Bartok <pbartok@novell.com>
33115 - Now calling OnHandleDestroyed from DestroyHandle()
33116 instead of Dispose()
33117 - Removed bogus call to controls.Remove() from DestroyHandle()
33119 2005-02-26 Peter Bartok <pbartok@novell.com>
33121 * Control.cs: Properly destroy child windows when our handle is
33124 2005-02-25 Peter Bartok <pbartok@novell.com>
33127 - Added 'DriverDebug' define to allow tracing XplatUI API calls
33128 - Alphabetized Static Methods and Subclasses
33131 - Added XException class to allow custom handling of X11 exceptions
33132 - Created custom X11 error handler, tied into XException class
33133 - Added support for MONO_XEXCEPTIONS env var to allow the user
33134 to either throw an exception on X errors or continue running
33135 after displaying the error
33136 - Added handling of DestroyNotify message
33137 - Added handler for CreateNotify message (still disabled)
33138 - Improved (tried to at least) Where method to provide file and lineno
33140 - Added XErrorHandler delegate
33141 - Added XRequest enumeration (to suppor translation of errors)
33143 2005-02-25 Jackson Harper <jackson@ximian.com>
33145 * PropertyManager.cs: Implement editing features
33146 * CurrencyManager.cs:
33147 * Binding.cs: First attempt at UpdateIsBinding
33148 * BindingManagerBase.cs: Call UpdateIsBinding before
33149 pushing/pulling data.
33151 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
33153 * MenuAPI.cs: Respect disabled items
33154 * ThemeWin32Classic.cs
33155 - Caches ImageAttributes creation for DrawImageDisabled
33156 - Fixes vertical menu line drawing
33157 - Draws disabled arrows in disable menu items
33159 2005-02-24 Peter Bartok <pbartok@novell.com>
33162 - Added UserData property to allow associating arbitrary objects
33164 - Fixed leak; now removing Hwnd references from static windows array
33166 - Fixed Graphics leak in PaintEventEnd
33167 - Removed usage of HandleData, switched over to Hwnd class
33168 * HandleData.cs: Removed, obsoleted by Hwnd.cs
33170 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33172 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33173 * ScrollBar.cs: Fixes bug
33174 * TrackBar.cs: removes death code, clipping, mimize refreshes,
33175 keyboard navigation enhancements
33177 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33179 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33180 * GroupBox.cs: Add control styles
33181 * Label.cs: Add control styles
33182 * UpDownBase.cs: Add control styles
33183 * ListBox.cs: Add control styles
33184 * XplatUIWin32.cs: Fixes wrong parameter order
33187 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
33189 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33191 2005-02-23 Jackson Harper <jackson@ximian.com>
33193 * PropertyManager.cs: Implement property binding. This doesn't
33194 seem to work yet though as (I think) there are some bugs in
33195 System.ComponentModel.PropertyDescriptor.
33196 * BindingContext.cs: Use new PropertyManager constructor.
33198 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
33200 * ProgressBar.cs: use clip region in ProgressBar
33201 * ThemeWin32Classic.cs: use clip region in ProgressBar
33203 2004-02-22 Jackson Harper <jackson@ximian.com>
33205 * BindingsCollection.cs: Remove some debug code.
33207 2005-02-22 Jackson Harper <jackson@ximian.com>
33209 * BindingContext.cs:
33210 * ControlBindingsCollection.cs:
33211 * CurrencyManager.cs:
33213 * BindingManagerBase.cs: Initial implementation
33214 * BindingsCollection.cs: Add an internal contains method that the
33215 BindingManagerBase uses to ensure bindings aren't added twice to
33217 * PropertyManager.cs: Stubbed out.
33219 * ContainerControl.cs: Hook up databinding
33221 2005-02-22 Geoff Norton <gnorton@customerdna.com>
33224 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
33225 Fixed Invalidate/Update chain.
33226 Fixed tons of other minor bugs (this is almost a complete rewrite).
33228 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
33230 * ComboBox.cs: do subcontrol creation when the control is created
33232 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33234 * Label.cs: fixes image drawing (image and imagelist)
33235 * ThemeWin32Classic.cs: cache brushes
33237 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33239 * Form.cs: Move menu drawing code to Theme class
33240 * ComboBox.cs: Move ComboBox drawing code to Theme class
33241 * MenuItem.cs: Move menu drawing code to Theme class
33242 * MenuAPI.cs: Move menu drawing code to Theme class
33243 * ThemeWin32Classic.cs: New methods
33244 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
33245 * ListBox.cs: Move Listbox drawing code to Theme class
33246 * Theme.cs: New methods
33248 2005-02-20 Peter Bartok <pbartok@novell.com>
33251 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
33252 only process mnemonics on those)
33253 - Fixed event sequence for key handling; first calling
33254 ProcessKeyEventArgs now
33256 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
33257 for processing non-character keys
33258 - Fixed WM_CHAR to generate proper event sequence before processing
33259 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
33262 2005-02-19 Peter Bartok <pbartok@novell.com>
33264 * UserControl.cs: Added TextChanged event; added attributes
33265 * SizeGrip.cs: Implemented resizing and optional display of grip
33266 * Form.cs: Fixed attribute
33267 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33268 Changed meaning of ScrollWindow bool argument; instead of the
33269 clear attribute (which will be true usually anyway), it gives the
33270 option of moving child controls as well.
33272 - Changed to match new ScrollWindow argument
33273 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
33274 now handles the implicit parent window a WM puts around us
33275 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
33277 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
33278 * TreeView.cs: Adjusted to new ScrollWindow arguments
33280 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33282 * Form.cs: Menu integration with non-client area
33283 * MenuItem.cs: Menu integration with non-client area
33284 * MenuAPI.cs: Menu integration with non-client area
33286 2005-02-18 Peter Bartok <pbartok@novell.com>
33288 * MethodInvoker.cs: Added
33289 * MdiLayout.cs: Added
33290 * SendKeys.cs: Started implementation
33291 * ErrorIconAlignment.cs: Added
33293 2005-02-18 Peter Bartok <pbartok@novell.com>
33295 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
33296 * Form.cs: Added handling for Menu-related Non-client messages
33298 2005-02-17 Peter Bartok <pbartok@novell.com>
33300 * UpDownBase.cs: Fixed typo, compilation errors
33301 * DomainUpDown.cs: Fixed attribute value
33303 2005-02-16 Miguel de Icaza <miguel@novell.com>
33305 * UpDownBase.cs: Attach entry events.
33307 Add ForeColor property, Focused, InterceptArrowKeys (interception
33308 does not work yet).
33310 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
33313 - Redraw non client are on Setmenu
33314 - Calc proper menu starting point
33316 2005-02-17 Peter Bartok <pbartok@novell.com>
33318 * Application.cs: Fixed message_filter check
33320 2005-02-17 Peter Bartok <pbartok@novell.com>
33322 * Application.cs: Now calls registered message filters
33323 * DockStyle.cs: Fixed attribute
33324 * Form.cs: Fixed attribute
33325 * Menu.cs: Fixed attribute
33326 * ToolTip.cs: Fixed attribute
33327 * TreeNode.cs: Added missing attributes and arranged in regions
33328 * PropertyGrid.cs: Fixed signatures
33329 * TreeNodeCollection.cs: Added attributes
33330 * Splitter.cs: Added missing attributes; arranged into regions
33331 * TabPage.cs: Added missing attributes; arranged into regions
33332 * TextBoxBase.cs: Added missing attributes
33333 * TextBox.cs: Added missing attributes
33334 * ArrangeDirection.cs: Added missing attributes
33335 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
33336 * ToolBarButton.cs: Fixed attributes
33337 * AnchorStyles.cs: Fixed attribute
33338 * TrackBar.cs: Fixed attributes
33339 * TabControl.cs: Added missing attributes and arranged into regions
33340 * ToolBar.cs: Fixed attribute
33341 * StatusBar.cs: Fixed signature, organized into regions and added
33343 * StatusBarPanel.cs: Fixed attributes
33344 * ContentsResizedEventArgs.cs: Implemented
33345 * ContentsResizedEventHandler.cs: Implemented
33346 * DateBoldEventArgs.cs: Implemented
33347 * DateBoldEventHandler.cs: Implemented
33348 * UpDownEventArgs.cs: Implemented
33349 * UpDownEventHandler.cs: Implemented
33351 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
33353 * Form.cs: first Menu NC refactoring
33354 * MenuAPI.cs: first Menu NC refactoring
33356 2005-02-16 Peter Bartok <pbartok@novell.com>
33358 * ImeMode.cs: Added missing attributes
33359 * Menu.cs: Fixed attribute
33360 * GroupBox.cs: Fixed attribute
33361 * Label.cs: Fixed attribute
33362 * ColorDialog.cs (RunDialog): Removed TODO attribute
33363 * ComboBox.cs: Fixed attributes
33364 * ListControl.cs: Added missing attributes
33365 * PropertyGrid.cs: Fixed attributes
33366 * Control.cs: Fixed attributes
33367 * ListViewItem.cs: Added TypeConverter attribute
33368 * NotifyIcon.cs: Fixed attributes
33369 * ListView.cs: Fixed attributes
33370 * ButtonBase.cs: Fixed attribute
33371 * ImageList.cs: Added missing attributes
33372 * ContainerControl.cs: Fixed signature
33373 * CheckedListBox.cs: Fixed attribute; added missing attributes
33374 * Panel.cs: Fixed attributes
33375 * PropertyTabChangedEventArgs.cs: Added missing attribute
33376 * PropertyValueChangedEventArgs.cs: Added missing attribute
33377 * Binding.cs: Fixed attribute
33378 * ListViewItemConverter: Implemented ListViewSubItemConverter class
33379 * ListBox.cs: Fixed attribute; added missing attributes;
33380 * ScrollableControl.cs: Added missing attributes
33381 * PictureBox.cs: Added missing attributes; implemented missing property
33382 * DateTimePicker.cs: Added missing attributes
33383 * Theme.cs (ToolWindowCaptionHeight): Fixed type
33384 * MonthCalendar.cs: Fixed attributes
33385 * StatusBarPanel.cs: Added missing attributes
33386 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
33388 2005-02-16 Peter Bartok <pbartok@novell.com>
33390 * TextBoxBase.cs: The previous method to enforce height yet remember
33391 the requested high was less than ideal, this is an attempt to do
33393 * Control.cs: Added comment about possible problem
33394 * Copyright: Updated format
33395 * GridItemType.cs: Fixed swapped values
33397 2005-02-15 Jackson Harper <jackson@ximian.com>
33399 * BaseCollection.cs: Use property so we never access an
33400 uninitialized list. Also initialize the list in the property.
33402 2005-02-15 Peter Bartok <pbartok@novell.com>
33404 * GroupBox.cs (ProcessMnemonic): Implemented
33405 * Label.cs (ProcessMnemonic): Implemented
33406 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
33409 2005-02-15 Peter Bartok <pbartok@novell.com>
33411 * RadioButton.cs (ProcessMnemonic): Implemented
33412 * CheckBox.cs (ProcessMnemonic): Implemented
33414 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
33416 - Added internal method to allow calling ProcessMnemonic from other
33418 * ContainerControl.cs:
33419 - Started support for handling validation chain handling
33420 - Implemented ProcessMnemonic support
33421 - Added Select() call to Active, to make sure the active control
33423 * Form.cs: Setting toplevel flag for Forms (this was lost in the
33424 FormParent rewrite)
33425 * ThemeWin32Classic.cs:
33426 - DrawCheckBox(): Fixed stringformat to show hotkeys
33427 - DrawRadioButton(): Fixed stringformat to show hotkeys
33428 * CommonDialog.cs: Removed WndProc override, not needed
33430 2005-02-14 Peter Bartok <pbartok@novell.com>
33432 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
33433 missed those in the rewrite
33435 2005-02-14 Miguel de Icaza <miguel@novell.com>
33437 * NumericUpDown.cs (Increment, ToString): Add.
33438 (DecimalPlaces): implement.
33442 * UpDownBase.cs: Add the designer attributes.
33444 2005-02-13 Peter Bartok <pbartok@novell.com>
33446 * Panel.cs: Removed border_style, now in Control
33447 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
33448 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
33450 2005-02-13 Peter Bartok <pbartok@novell.com>
33452 * MouseButtons.cs: Added missing attributes
33453 * XplatUIStructs.cs: Added enumeration for title styles
33454 * LeftRightAlignment.cs: Added missing attributes
33455 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
33456 it compatible with Graphics.FromHwnd()
33457 * SelectedGridItemChangedEventArgs.cs: Fixed property type
33458 * Keys.cs: Added missing attributes
33459 * SelectionRange.cs: Added missing attributes
33460 * SelectionRangeConverter.cs: Added
33462 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
33463 ReleaseMenuDC methods
33464 - Renamed ReleaseWindow to UngrabWindow
33465 - Added proper startup notice to allow version identification
33467 - Added missing attributes
33468 - Removed FormParent concept
33469 * Label.cs: Removed border_style field, now in Control
33470 * RadioButton.cs: Now properly selects RadioButton when focus is
33472 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
33474 - Added missing attributes
33475 - Added borderstyle handling
33476 - Removed FormParent concept support
33477 - Fixed calls to XplatUI to match changed APIs
33478 - Fixed bug that would case us to use disposed Graphics objects
33479 - Removed unneeded internal methods
33480 - PerformLayout(): Fixed to handle DockStyle.Fill properly
33481 - SelectNextControl(): Fixed to properly check common parents
33482 * TextBoxBase.cs: Removed border_style field (now in Control)
33484 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
33485 fixed calculations for form size
33486 - Added support for localized strings and icons
33487 - Improved form size calculations, added border
33488 * ListView.cs: Removed border_style field (now in Control)
33489 * X11Structs.cs: Moved several structs from X11 driver here
33490 * X11Keyboard.cs: Changed debug message
33491 * Application.cs: Removed FormParent concept support
33493 - Resetting end_modal flag
33494 - Removed FormParent concept support
33495 * NativeWindow.cs: Removed FormParent concept support
33496 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
33497 Client area and Non-Client whole window to allow support for WM_NC
33499 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
33500 prevent using it until it supports Hwnd as per Geoff Norton's request
33501 * ToolBar.cs: Fixed drawing, was not doing proper drawing
33502 * PictureBox.cs: Removed border_style field, now in Control
33503 * XplatUIWin32.cs: Added new driver methods
33505 2005-02-12 Peter Bartok <pbartok@novell.com>
33507 * OpacityConverter.cs: Implemented
33508 * Hwnd.cs: Internal class to support drivers that need to emulate
33509 client area/non-client area window behaviour
33511 2005-02-11 Peter Bartok <pbartok@novell.com>
33513 * KeysConverter.cs: Implemented
33515 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
33517 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
33518 * LinkLabel: Added missing attributes
33519 * MainMenu.cs: fixes ToString
33520 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
33521 * ListBox.cs: fixes event position
33522 * TrackBar.cs: adds missing attributes and events
33524 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
33526 * MenuItem.cs: Use SystemInformation and bug fixes
33527 * MenuAPI.cs: Use SystemInformation and bug fixes
33529 2005-02-09 Jackson Harper <jackson@ximian.com>
33531 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
33532 their keystate otherwise things like VK_MENU get stuck "on".
33534 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
33536 * ListBox.cs: Fixes AddRange bug
33538 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
33541 - Add missing attributes
33542 - Add missing method
33544 * CheckedListBox.cs: Added missing attributes
33545 - Add missing attributes
33546 - Remove extra method
33548 * ComboBox.cs: Added missing attributes
33549 * VScrollBar.cs: Added missing attributes
33550 * ScrollBar.cs: Added missing attributes
33551 * ListBox.cs: Fixes signature, add missing consts
33552 * LinkArea.cs: Added missing attributes
33555 2005-02-08 Peter Bartok <pbartok@novell.com>
33557 * Menu.cs: Added missing attributes
33558 * MainMenu.cs: Added missing attributes
33559 * GroupBox.cs: Added missing attributes
33560 * Label.cs: Added missing attributes
33561 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
33563 - Added Instance and Options properties
33564 - Added missing attributes
33565 * Cursor.cs: Made Serializable
33566 * NotifyIcon: Added missing attributes
33567 * MenuItem.cs: Added missing attributes
33568 * TextBoxBase.cs: Implemented AppendText() and Select() methods
33569 * Panel.cs: Added Missing attributes
33570 * MonthCalendar.cs: Fixed CreateParams
33572 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33576 - Fixes issues with links
33577 - Adds the class attributes
33579 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33582 - Fixes button when no items available in dropdown
33583 - Fixes repainting problems
33584 - Adds the class attributes
33586 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33588 * XplatUIOSX.cs: Detect the menu bar and title bar height from
33589 the current theme. Cache these on startup.
33591 2005-02-07 Jackson Harper <jackson@ximian.com>
33593 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
33594 the scrollbar buttons when they are depressed.
33596 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33598 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
33599 Get the display size from the main displayid. We currently dont
33600 support multiple display configurations.
33602 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33604 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
33606 2005-02-07 Miguel de Icaza <miguel@novell.com>
33608 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
33610 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
33612 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
33614 2005-02-04 Jackson Harper <jackson@ximian.com>
33616 * ThemeWin32Classic.cs: Respect the clipping rect when
33617 drawing. Only fill the intersection of clips and rects so there
33618 isn't a lot of large fills.
33619 * ScrollBar.cs: Pass the correct clipping rect to the theme
33620 engine. Remove some debug code.
33622 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
33624 * DateTimePicker.cs:
33625 - Fixed crash on DateTime.Parse, use Constructor instead
33627 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33631 - Owner draw support (MeasureItem and DrawItem)
33633 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33636 - Implements FindMergePosition and MergeMenu functions (very poor documented)
33637 - Fixes MenuItems.Add range
33639 - MergeMenu and Clone and CloneMenu functions
33641 2005-02-03 Jackson Harper <jackson@ximian.com>
33643 * ScrollBar.cs: Make abstract
33644 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
33647 2005-02-03 Jackson Harper <jackson@ximian.com>
33649 * ScrollBar.cs: First part of my scrollbar fixups. This removes
33650 all the unneeded refreshes and uses invalidates with properly
33653 2005-02-03 Peter Bartok <pbartok@novell.com>
33655 * ComponentModel.cs: Added
33656 * IDataGridEditingService.cs: Added
33657 * Timer.cs: Added missing attributes
33658 * ToolTip.cs: Added missing attributes
33660 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
33662 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
33664 2005-02-03 Peter Bartok <pbartok@novell.com>
33666 * ListBox.cs: Added missing attributes
33668 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
33671 - Fixes font height after font change
33672 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
33674 2005-02-02 Peter Bartok <pbartok@novell.com>
33676 * HandleData.cs: Introduced static methods to allow class
33677 to be more self-contained and track it's own HandleData objects
33678 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
33679 HandleData to use new static methods
33681 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
33684 - Fixes default size and PreferredHeight
33686 - ObjectCollection.Insert implementation
33692 - ObjectCollection.Insert implementation
33693 - No selection after clean
33696 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33698 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
33700 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
33703 - Caches ItemHeight calculation for OwnerDrawVariable
33704 - Handles dropdown properly
33705 - Fixes several minor bugs
33707 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33710 - Fixes 71946 and 71950
33711 - Fixes changing Multicolumn on the fly
33712 - Fixes keyboard navigation on Multicolumn listboxes
33714 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33716 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
33717 crash reporter log.
33719 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33721 * XplatUIOSX.cs: Allow applications to actually exit.
33723 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33725 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
33726 their parent at creation time rather than lazily later. Fixes a major
33727 regression we were experiencing.
33729 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33731 * ThemeWin32Classic.cs: more date time picker painting fixes
33732 * DateTimePicker.cs: more monthcalendar drop down fixes
33733 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
33735 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33738 - When moving the thumb going outside the control should stop the moving
33739 - Adds the firing of missing events
33740 - Fixes no button show if Size is not specified
33741 - End / Home keys for keyboard navigation
33743 2005-01-30 Peter Bartok <pbartok@novell.com>
33745 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
33746 sanity check to prevent theoretical loop
33747 * XplatUIWin32.cs (SetVisible): Removed debug output
33748 * XplatUIX11.cs (SystrayChange): Added sanity check
33749 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
33750 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
33751 behaviour, valid until the X11 client window rewrite is done
33752 * TextBox.cs (ctor): Setting proper default foreground and background
33755 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
33757 * Theme: Added DrawDateTimePicker to interface
33758 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
33759 * DateTimePicker.cs: Created (still needs keys and painting code)
33760 * DateTimePickerFormat.cs: added
33761 * MonthCalendar.cs: fixed CreateParams for popup window mode
33763 2005-01-29 Peter Bartok <pbartok@novell.com>
33765 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
33766 this should also the calculations for ligher/darker
33767 * Theme.cs: Fixed defaults for ScrollBar widths/heights
33769 2005-01-29 Peter Bartok <pbartok@novell.com>
33771 * ArrangeDirection.cs: Added
33772 * ArrangeStartingPositon.cs: Added
33773 * SystemInformation.cs: Implemented
33774 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33775 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
33776 used by SystemInformation class
33777 * X11Strucs.cs: Added XSizeHints structure
33779 - Fixed CreateParams to make sure the menu window is always visible
33780 - TrackPopupMenu: Added check to make sure we don't draw the
33783 2005-01-29 Peter Bartok <pbartok@novell.com>
33785 * HandleData.cs: Added method for altering invalid area
33786 * TextBoxBase.cs: Implemented TextLength
33788 2005-01-28 Peter Bartok <pbartok@novell.com>
33790 * XplatUIX11.cs: Improvement over last patch, not sending
33791 the WM_PAINT directly anymore, instead we scroll any pending
33792 exposed areas and let the system pick out the WM_PAINT later
33794 2005-01-28 Peter Bartok <pbartok@novell.com>
33796 * SWF.csproj: Deleted, no longer used. Instead,
33797 Managed.Windows.Forms/SWF.csproj should be used
33798 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
33799 directly, to avoid a potential race condition with the next
33802 2005-01-28 Peter Bartok <pbartok@novell.com>
33804 * XplatUI.cs: Made class internal
33806 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
33808 * CheckedListBox.cs:
33811 - Missing methods and events
33813 2005-01-27 Peter Bartok <pbartok@novell.com>
33815 * Application.cs (Run): Don't use form if we don't have one
33817 2005-01-27 Peter Bartok <pbartok@novell.com>
33819 * TextBoxBase.cs (get_Lines): Fixed index off by one error
33821 2005-01-27 Peter Bartok <pbartok@novell.com>
33823 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
33824 * GridItem.cs: Added; Patch by Jonathan S. Chambers
33825 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
33826 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
33827 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
33828 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
33829 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33830 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33831 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33832 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33833 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33834 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33836 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33839 - Draw focus on Simple Combobox
33840 - Fixes drawing issues
33843 2005-01-27 Peter Bartok <pbartok@novell.com>
33846 - Place window in default location, instead of hardcoded 0/0
33847 - Send initial LocationChanged event
33849 - UpdateBounds after creation to find out where the WM placed us
33850 - Make sure that if the ParentForm changes location the Form
33852 * XplatUIX11.cs: XGetGeometry will not return the coords relative
33853 to the root, but to whatever the WM placed around us.
33854 Translate to root coordinates before returning toplevel
33856 * XplatUIWin32.cs: Removed debug output
33857 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
33858 flag to GetWindowPos, to allow translation of coordinates on X11
33860 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33862 * ListBox.cs: connect LostFocus Event
33864 2005-01-27 Peter Bartok <pbartok@novell.com>
33866 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33867 XplatUIX11.cs: Extended the Systray API
33868 * Form.cs: Removed debug output
33869 * Application.cs: Fixed focus assignment, always need to call
33870 XplatUI.Activate() since Form.Activate() has rules that may
33872 * NotifyIcon.cs: Should be complete now
33873 * ToolTip.cs: Worked around possible timer bug
33875 2005-01-27 Jackson Harper <jackson@ximian.com>
33878 - Only invalidate the effected tabs when the
33879 selected index changes. This reduces drawing and gets rid of some
33881 - Only refresh if the tabs need to be shifted, otherwise only
33882 invalidate the slider button.
33883 - On windows the tabs are not filled to right if the slider is
33886 2005-01-27 Jackson Harper <jackson@ximian.com>
33888 * TabControl.cs: Only refresh on mouseup if we are showing the
33889 slider. Also only invalidate the button whose state has changed.
33891 2005-01-26 Peter Bartok <pbartok@novell.com>
33893 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
33894 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
33895 and SystrayRemove() methods
33896 * XplatUIOSX.cs: Stubbed Systray methods
33898 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
33900 - Fixed broken XChangeProperty calls (marshalling messed up things)
33901 * X11Structs.cs: Added enums and structs required for Size hinting
33902 * NotifyIcon.cs: Added & implemented
33904 2005-01-26 Jackson Harper <jackson@ximian.com>
33906 * TabControl.cs: Space vertically layed out tabs properly.
33908 2005-01-26 Peter Bartok <pbartok@novell.com>
33910 * Form.cs (CreateClientParams): Always set the location to 0,0
33911 since we're a child window.
33913 * Control.cs (SetVisibleCore): Always explicitly setting the location
33914 of a toplevel window, apparently X11 doesn't like to move windows
33915 while they're not mapped.
33917 2005-01-26 Jackson Harper <jackson@ximian.com>
33919 * TabControl.cs: Implement FillToRight size mode with vertically
33922 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33924 * ControlPaint.cs, ThemeWin32Classic.cs
33925 - Fixes DrawFocusRectangle
33927 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33930 - MenuBar tracking only starts when item is first clicked
33931 - Fixes menu hidding for multiple subitems
33932 - Unselect item in MenuBar when item Executed
33935 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
33938 - IsInputKey for ListBox
33941 - Shift and Control item selection
33942 - Implement SelectionMode.MultiExtended
33943 - Fixes RightToLeft
33945 - IsInputKey implemented
33946 - Do not generate OnTextChangedEdit on internal txt changes
33948 2005-01-23 Peter Bartok <pbartok@novell.com>
33950 * AccessibleObject.cs: Partially implemented Select()
33951 * MonthCalendar.cs: Added missing attributes and events
33952 * Form.cs: Fixed CreateParams behaviour, now controls derived from
33953 form can properly override CreateParams.
33954 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33955 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
33956 Control performs Invalidate & Update
33957 * NativeWindow (CreateHandle): Added special handling for Form
33958 and Form.FormParent classes to allow overriding of From.CreateParams
33960 - ControlNativeWindow: Renamed 'control' variable to more intuitive
33962 - ControlNativeWindow: Added Owner property
33963 - Removed usage of Refresh() on property changes, changed into
33964 Invalidate(), we need to wait until the queue is processed for
33965 updates, direct calls might cause problems if not all vars for
33966 Paint are initialized
33967 - Added call to UpdateStyles() when creating the window, to set any
33968 styles that CreateWindow might have ignored.
33969 - Added support for Form CreateParent overrides to UpdateStyles()
33970 * MessageBox.cs: Removed no longer needed FormParent override stuff,
33971 CreateParams are now properly overridable
33972 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
33973 CreateParams are now properly overridable
33975 2005-01-23 Miguel de Icaza <miguel@ximian.com>
33977 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
33980 Capture LostFocus and OnTextBoxChanged. The later introduces a
33981 recursive invocation that I have not figured out yet.
33983 Reset the timer when not using (it was accumulating).
33986 (OnTextBoxChanged): Set UserEdit to true here to track whether the
33987 user has made changes that require validation.
33989 Reset changing to avoid loops.
33991 2005-01-22 Miguel de Icaza <miguel@ximian.com>
33993 * NumericUpDown.cs: Display value at startup.
33995 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
33998 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
33999 filled in. Added some basic parsing of text.
34001 Still missing the OnXXX method overrides, and figuring out the
34002 events that must be emitted.
34004 * UpDownBase.cs: Handle UserEdit on the Text property.
34006 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
34009 - Fixes IntegralHeight
34012 2005-01-21 Jackson Harper <jackson@ximian.com>
34014 * TabControl.cs: Set the SelectedIndex property when SelectedTab
34015 is set so that the page visibility is updated and the tabs are
34018 2005-01-21 Jackson Harper <jackson@ximian.com>
34020 * TabControl.cs: Use cliping rectangle for blitting. Give the
34021 theme the clipping rect so we can do clipping while
34022 drawing. Remove some debug code.
34024 2005-01-21 Jackson Harper <jackson@ximian.com>
34026 * TabPage.cs: Add a new method so tab pages can force the tab
34027 control to recalculate the tab page sizes.
34028 * TabControl.cs: UpdateOwner needs to make the tab control recalc
34031 2005-01-20 Jackson Harper <jackson@ximian.com>
34033 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
34035 2005-01-20 Jackson Harper <jackson@ximian.com>
34037 * TreeView.cs: Set the bounds for nodes properly. They were
34038 getting screwed up when checkboxes were not enabled, but images
34041 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
34044 - Owner draw support
34047 2005-01-20 Jackson Harper <jackson@ximian.com>
34049 * XplatUIStructs.cs: More misc keys
34050 * X11Keyboard.cs: Ignore some control keys.
34052 2005-01-20 Jackson Harper <jackson@ximian.com>
34054 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
34055 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
34057 2005-01-19 Peter Bartok <pbartok@novell.com>
34059 * Control.cs: Un-selecting the control when it is loosing focus
34061 2005-01-19 Jackson Harper <jackson@ximian.com>
34063 * TreeView.cs: Hook up to the text controls leave event so we can
34064 end editing when the users clicks outside the text box.
34066 2005-01-19 Jackson Harper <jackson@ximian.com>
34068 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
34069 get set in the conversion array.
34071 2005-01-19 Peter Bartok <pbartok@novell.com>
34073 * Application.cs (ModalRun): Added a call to CreateControl to ensure
34074 focus is properly set
34076 - Added missing attributes
34077 - removed styles, those are already set in the base class
34079 - Added missing attributes
34080 - Added clip window styles
34081 * CheckBox.cs: Added missing attributes
34083 - FormParentWindow.CreateParams: Added required clip styles
34084 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
34085 also filters modifier keys
34087 - Added assignment of Accept and Cancel button to enable Enter
34088 and Esc keys in MessageBox dialogs
34089 - FormParentWindow.CreateParams: Added required clip styles
34090 * RadioButton.cs: Added missing attributes
34091 * TextControl.cs: No longer draws selection if control does not
34094 - Now draws simple rectangle around test area to make it obvious
34095 there's a control. This is a hack until we properly support borders
34096 - A few simple fixes to support selections better, now erases selected
34097 text when typing, and resets selection when using movement keys
34099 2005-01-19 Miguel de Icaza <miguel@ximian.com>
34101 * UpDownBase.cs: Added some new properties.
34103 * DomainUpDown.cs: Implement a lot to get my test working.
34105 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34107 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
34109 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34111 * OSXStructs (WindowAttributes): Fixed csc complaints
34113 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34116 OSXStructs.cs: Initial refactor to move enums and consts into
34117 OSXStructs and use them in the driver for greater readability.
34119 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34121 * XplatUIOSX.cs: Initial support for Standard Cursors.
34122 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
34124 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
34126 * ComboBox.cs: ability to change style when the ctrl is already
34127 created, missing methods and events, bug fixes, signature fixes
34129 2005-01-19 Peter Bartok <pbartok@novell.com>
34131 * Cursors.cs (ctor): Added ctor to fix signature
34133 2005-01-18 Peter Bartok <pbartok@novell.com>
34135 * Button.cs: Implemented DoubleClick event
34137 - Fixed keyboard handling to behave like MS, where the press of
34138 Spacebar is equivalent to a mousedown, and the key release is
34139 equivalent to mouseup. Now a spacebar push will give the same
34140 visual feedback like a mouse click.
34141 - Added missing attributes
34142 - Added ImeModeChanged event
34143 - Added support for generating DoubleClick event for derived classes
34145 - Implemented DoubleClick event
34146 - Added missing attributes
34147 * CommonDialog.cs: Added missing attribute
34148 * ContextMenu.cs: Added missing attributes
34150 - AutoChecked buttons do not allow to be unselected when clicked
34151 (otherwise we might end up with no selected buttons in a group)
34152 - Added missing attributes
34153 - Implemented DoubleClickEvent
34154 * ThreadExceptionDialog.cs: Enabled TextBox code
34156 2005-01-18 Peter Bartok <pbartok@novell.com>
34158 * Form.cs: Removed debug output
34159 * Button.cs: Added support for DoubleClick method
34161 2005-01-18 Peter Bartok <pbartok@novell.com>
34164 - Added method to parent window that allows triggering size
34165 calculations when a menu is added/removed
34166 - set_Menu: Cleaned up mess from early days of Form and Control,
34167 now properly triggers a recalc when a menu is added/removed
34168 - Added case to select form itself as focused form if no child
34170 - Added PerformLayout call when showing dialog, to ensure properly
34173 - Select(): Made internal so Form can access it
34174 - Focus(): Only call Xplat layer if required (avoids loop), and sets
34176 * Application.cs (Run): Removed hack and calls PerformLayout instead
34177 to trigger calculation when Form becomes visible
34179 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
34181 * ComboBox.cs: fixes for ownerdraw
34183 2005-01-18 Peter Bartok <pbartok@novell.com>
34186 - Sentinel is no longer static, each Document gets it's own, this
34187 avoids locking or alternatively overwrite problems when more
34188 than one text control is used simultaneously.
34189 - Switched to use Hilight and HilightText brushes for text selection
34191 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34193 2005-01-18 Peter Bartok <pbartok@novell.com>
34196 - Hooked up the following events:
34204 o SystemColorsChanged
34205 o ParentFontChanged
34207 - Removed debug output
34208 - Added a call to the current theme's ResetDefaults when a color change
34210 * Form.cs: Now setting the proper ImeMode
34211 * Theme.cs: Defined a method to force recreation of cached resources
34212 and rereading of system defaults (ResetDefaults())
34213 * ThemeWin32Classic.cs: Added ResetDefaults() stub
34215 2005-01-17 Peter Bartok <pbartok@novell.com>
34217 * Control.cs: Added missing attributes
34219 2005-01-17 Jackson Harper <jackson@ximian.com>
34221 * TreeNode.cs: Implement editing. Add missing properties selected
34223 * TreeView.cs: Implement node editing. Also some fixes to use
34224 Invalidate (invalid area) instead of Refresh when selecting.
34226 2005-01-17 Peter Bartok <pbartok@novell.com>
34229 - Implemented InvokeGotFocus() method
34230 - Implemented InvokeLostFocus() method
34231 - Implemented InvokePaint() method
34232 - Implemented InvokePaintBackground() method
34233 - Implemented InvokeClick() method
34234 - Implemented FindForm() method
34235 - Implemented RectangleToClient() method
34236 - Implemented ClientToRectangle() method
34237 - Implemented ResetBackColor() method
34238 - Implemented ResetCursor() method
34239 - Implemented ResetFont() method
34240 - Implemented ResteForeColor() method
34241 - Implemented ResetImeMode() method
34242 - Implemented ResetLeftToRight() method
34243 - Implemented ResetText() method
34244 - Implemented Scale() methods
34245 - Implemented ScaleCore() method
34246 - Implemented Update() method
34247 - Removed unused variables
34248 - Stubbed AccessibilityNotifyClients and
34249 ControlAccessibleObject.NotifyClients() methods (dunno what to do
34251 - Now setting proper default for RightToLeft property
34252 - Fixed bug in SetClientSizeCore that would cause windows to get
34254 - Now sending Click/DoubleClick events
34255 - Now selecting controls when left mouse button is clicked on
34257 * AccessibleEvents.cs: Added
34258 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
34259 * XplatUIOSX.cs: Stubbed UpdateWindow() method
34260 * XplatUIWin32.cs: Implemented UpdateWindow() method
34261 * XplatUIX11.cs: Implemented UpdateWindow() method
34262 * Form.cs: Removed stray semicolon causing CS0162 warning
34263 * ThemeWin32Classic.cs: Fixed unused variable warnings
34264 * ScrollableControl.cs: Now calls base method for ScaleCore
34265 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
34266 style to avoid interference with internal click handler (which is
34267 different than standard Control click handling)
34269 - Now unchecks all sibling radio buttons when control is
34270 selected (Fixes #68756)
34271 - Removed internal tabstop variable, using the one inherited from
34274 2005-01-17 Jackson Harper <jackson@ximian.com>
34276 * NavigateEventArgs.cs: Fix base type.
34277 * LinkLabel.cs: Sig fix
34279 2005-01-17 Jackson Harper <jackson@ximian.com>
34281 * TreeView.cs: Only invalidate the effected nodes bounds when
34284 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34286 * XplatUIWin32.cs: fixes Win32 marshaling
34287 * XplatUIX11.cs: fixes method signature
34289 2005-01-17 Peter Bartok <pbartok@novell.com>
34291 * XplatUIX11.cs: Clean up resources when we no longer need them
34293 2005-01-17 Peter Bartok <pbartok@novell.com>
34295 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
34296 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
34297 and DestroyCursor() methods.
34298 * Cursor.cs: Partially implemented, now supports standard cursors;
34299 still contains some debug code
34300 * Cursors.cs: Implemented class
34302 - WndProc(): Added handling of WM_SETCURSOR message, setting the
34304 - Implemented Cursor property
34305 - Replaced break; with return; more straightforwar and possibly
34307 - Now properly setting the result for WM_HELP
34308 * X11Structs.cs: Added CursorFontShape enum
34309 * XplatUIStructs.cs:
34310 - Added StdCursor enum (to support DefineStdCursor() method)
34311 - Added HitTest enum (to support sending WM_SETCURSOR message)
34313 - Now sends the WM_SETCURSOR message
34314 - Implemented new cursor methods
34315 * XplatUIOSX.cs: Stubbed new cursor methods
34317 - Implemented new cursor methods
34318 - Added GetSystemMetrics function and associated enumeration
34320 2005-01-15 Peter Bartok <pbartok@novell.com>
34323 - WndProc(): Now handles EnableNotifyMessage
34324 - SelectNextControl(): Fixed bug where if no child or sibling
34325 controls exist we looped endlessly
34327 2005-01-14 Jackson Harper <jackson@ximian.com>
34329 * TreeView.cs: Recalculate the tab pages when a new one is added
34330 so that the proper bounding rects are created.
34332 2005-01-14 Jackson Harper <jackson@ximian.com>
34334 * TreeView.cs: Draw a gray box instead of a grip in the lower
34335 right hand corner when there are both horizontal and vertical
34338 2005-01-14 Jackson Harper <jackson@ximian.com>
34340 * Control.cs: When erasing backgrounds use FromHwnd instead of
34341 FromHdc when there is a NULL wparam. This occurs on the X driver.
34342 * XplatUIX11.cs: Set the wparam to NULL.
34344 2005-01-13 Jackson Harper <jackson@ximian.com>
34346 * PictureBox.cs: Implement missing methods (except ToString, need
34347 to test that on windows) and events. When visibility is changed we
34348 need to redraw the image because the buffers are killed. When size
34349 is changed refresh if the sizemode needs it.
34351 2005-01-13 Peter Bartok <pbartok@novell.com>
34353 * Control.cs (SelectNextControl): Was using wrong method to select
34356 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34358 * ComboBox.cs: fixes dropstyle
34360 2005-01-13 Peter Bartok <pbartok@novell.com>
34363 - Implemented Select() override
34364 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
34365 - Now sets keyboard focus on startup
34366 * Control.cs (SelectNextControl): Now properly handles directed=true
34368 - WndProc: Now passes tab key on to base if AcceptTabChar=false
34369 - Added (really bad) focus rectangle (mostly for testing)
34370 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
34371 to enforce redraw on focus changes
34372 * ContainerControl.cs:
34373 - Fixed detection of Shift-Tab key presses
34374 - Fixed traversal with arrow keys
34375 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
34376 gonna keep this or if it's complete yet
34378 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34380 * ComboBox.cs: missing properties, fixes
34382 2005-01-13 Peter Bartok <pbartok@novell.com>
34384 * Panel.cs (ctor): Setting Selectable window style to off
34385 * Splitter.cs (ctor): Setting Selectable window style to off
34386 * GroupBox.cs (ctor): Setting Selectable window style to off
34387 * Label.cs (ctor): Setting Selectable window style to off
34389 2005-01-12 Miguel de Icaza <miguel@ximian.com>
34391 * UpDownBase.cs (InitTimer): If the timer has been already
34392 created, enable it.
34394 Use a TextBox instead of a Label.
34396 2005-01-12 Jackson Harper <jackson@ximian.com>
34398 * TreeView.cs: Refresh the tree after sorting the nodes. Always
34399 draw the connecting node lines (when ShowLines is true).
34400 * TreeNode.cs: The nodes index can now be updated. This is used
34401 when a node collection is sorted.
34402 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
34403 insert or an existing unsorted node collection can be sorted.
34405 2005-01-12 Peter Bartok <pbartok@novell.com>
34407 * ContainerControl.cs: Implemented ProcessDialogKeys()
34409 2005-01-12 Peter Bartok <pbartok@novell.com>
34412 - Implemented SelectNextControl() method
34413 - Several focus related bug fixes
34414 - Fixed Docking calculations to match MS documentation and
34417 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
34419 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
34422 2005-01-12 Peter Bartok <pbartok@novell.com>
34425 - Fixed broken Contains() method
34426 - Implemented GetNextControl() method. Finally. This is the pre-
34427 requisite for focus handling.
34429 2005-01-12 Peter Bartok <pbartok@novell.com>
34431 * OSXStrucs.cs: Added
34433 2005-01-12 Peter Bartok <pbartok@novell.com>
34436 - Removed PeekMessageFlags
34437 - Implemented SetWindowStyle() method
34438 * XplatUIStructs.cs: Added PeekMessageFlags
34439 * X11Structs: Added missing border_width field to XWindowChanges struct
34441 - PeekMessage: Now throws exception if flags which are not yet
34442 supported are passed
34443 - Implemented SetWindowStyle() method
34444 - Fixed SetZOrder to handle AfterHwnd properly
34445 * XplatUI.cs: Added SetWindowStyle() method
34446 * XplatUIDriver.cs: Added SetWindowStyle() abstract
34448 - Implemented UpdateStyles() method
34449 - Implemented UpdateZOrder() method
34450 * XplatUIOSX.cs: Added SetWindowStyle() stub
34452 2005-01-12 Geoff Norton <gnorton@customerdna.com>
34454 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
34458 2005-01-11 Jackson Harper <jackson@ximian.com>
34460 * TreeView.cs: Still need to draw lines to siblings even if out of
34461 the current node is out of the clip.
34463 2005-01-11 Jackson Harper <jackson@ximian.com>
34465 * TreeView.cs: When setting the hbar/vbar/grip position use
34466 SetBounds so that perform layout is only called once. Also suspend
34467 and resume layout so layout is only done once for all controls.
34468 - Removed some debug fluff
34469 * SizeGrip.cs: Call base implmentation in overriding methods.
34470 - When visibility is changed the drawing buffers are killed so we
34473 2005-01-11 Jackson Harper <jackson@ximian.com>
34475 * TreeView.cs: Calculate the open node count while drawing. This
34476 saves us an entire tree traversal for every paint operation. Use
34477 a member var for the open node count so less vars are passed around.
34479 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
34481 * MonthCalendar.cs:
34482 - fixed selection to use mousemove, not mouse polling on timer
34483 * ThemeWin32Classic.cs
34484 - removed redundant unused variable "no_more_content"
34486 2005-01-11 Peter Bartok <pbartok@novell.com>
34488 * XplatUIX11.cs (DoEvents): Needs to return when no more events
34489 are pending, so it now calls PeekMessage instead of GetMessage;
34490 implemented a incomplete version of PeekMessage
34492 2005-01-11 Peter Bartok <pbartok@novell.com>
34494 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
34496 * TextBoxBase.cs: Added sending of TextChanged event
34498 2005-01-10 Jackson Harper <jackson@ximian.com>
34500 * TreeView.cs: Try not to draw outside the clipping rectangle on
34503 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
34505 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
34507 2005-01-10 Jackson Harper <jackson@ximian.com>
34510 - Implement fast scrolling. Now only the newly
34511 exposed nodes are drawn and the old image is moved using the
34512 XplatUI::ScrollWindow method.
34513 - Factor in height of nodes when calculating whether or not the
34514 node is in the clipping rect.
34516 2005-01-10 Jackson Harper <jackson@ximian.com>
34518 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
34520 2005-01-10 Peter Bartok <pbartok@novell.com>
34522 * Application.cs: Added temporary hack to resolve all our resize
34523 required issues on startup. This will get fixed properly at
34524 some point in the future
34526 2005-01-10 Jackson Harper <jackson@ximian.com>
34528 * SizeGrip.cs: New internal class that is used as a sizing
34529 grip control...hence the name.
34531 2005-01-10 Peter Bartok <pbartok@novell.com>
34533 * Control.cs: Implemented proper TabIndex handling, now assigning
34534 a tabindex when a control is added to a container
34535 * GroupBox.cs (ctor): Now sets the Container style bit, required
34536 for Control.GetNextControl()
34538 2005-01-09 Jackson Harper <jackson@ximian.com>
34540 * TextBoxBase.cs: Clear window when scrolling (fixes build).
34542 2005-01-09 Peter Bartok <pbartok@novell.com>
34544 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34545 XplatUIX11.cs: Added ability to control ScrollWindow expose and
34546 an overload for ScrollWindow to allow only scrolling a rectangle
34548 2005-01-09 Peter Bartok <pbartok@novell.com>
34551 - Implemented SetDesktopBounds method
34552 - Implemented SetDesktopLocation method
34554 2005-01-08 Jackson Harper <jackson@ximian.com>
34556 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
34557 the node count has changed, this removes to VScroll::Refresh calls
34560 2005-01-08 Geoff Norton <gnorton@customerdna.com>
34562 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
34564 2005-01-07 Jackson Harper <jackson@ximian.com>
34566 * TreeNode.cs: Just update the single node when it is
34567 checked. Don't refresh after toggling, the Expand/Collapse already
34569 * TreeView.cs: Respect clipping a little more when drawing. Try
34570 not to redraw things that don't need to be redrawn. Just hide the
34571 scrollbars when they are no longer needed instead of removing
34572 them, so they don't have to be created again and again.
34574 2005-01-07 Geoff Norton <gnorton@customerdna.com>
34576 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
34577 coordinates to window space to place the caret properly, FIXED.
34578 Implement GetWindowState & SetWindowState
34580 2005-01-06 Peter Bartok <pbartok@novell.com>
34583 - Implemented ClientSize property
34584 - Implemented DesktopBounds property
34585 - Implemented DesktopLocation property
34586 - Implemented IsRestrictedWindow property
34587 - Implemented Size property
34588 - Implemented TopLevel property
34589 - Implemented FormWindowState property
34591 - Implemented GetTopLevel() method
34592 - Implemented SetTopLevel() method
34593 * X11Structs.cs (Atom):
34594 - Added AnyPropertyType definition
34595 - Added MapState definiton and updated XWindowAttribute struct
34596 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
34597 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
34598 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
34600 - Implemented GetWindowState() and SetWindowState() methods
34601 - Fixed Win32GetWindowLong return type
34603 - Introduced central function for sending NET_WM messages
34604 - Implemented GetWindowState() and SetWindowState() methods
34605 * TextBoxBase.cs (set_Lines):
34606 - Now uses Foreground color for text added via Text property (Duh!)
34607 - Added code to remember programmatically requested size (fixes
34608 behaviour when Multiline is set after Size)
34609 - Added AutoSize logic
34611 2005-01-06 Jackson Harper <jackson@ximian.com>
34613 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
34615 2005-01-06 Jackson Harper <jackson@ximian.com>
34617 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
34618 set to less then 0.
34620 2005-01-06 Jackson Harper <jackson@ximian.com>
34622 * ScrollableControl.cs: Lazy init the scrollbars.
34624 2005-01-06 Jackson Harper <jackson@ximian.com>
34626 * Theme.cs: Speed up getting pens and solid brushes, by using
34627 their ARGB as a hash instead of tostring and not calling Contains.
34629 2005-01-06 Peter Bartok <pbartok@novell.com>
34632 - Implemented OnActivated and OnDeactivate event trigger
34633 - Implemented Activate() method
34634 - Fixed ShowDialog() to activate the form that was active before
34635 the dialog was shown
34637 - Added global active_window var that tracks the currently active
34639 - Now always grabs Property changes from the root window to always
34640 catch changes on the active window property
34641 - Added code to PropertyNotify handler to send Active/Inactive
34642 messages when state changes. This puts X11 and Win32 en par on
34643 WM_ACTIVATE notifications (except for double notifications when
34644 the user clicks away from our modal window to another one of our
34647 2005-01-05 Jackson Harper <jackson@ximian.com>
34649 * ImageList.cs: Implment ctor
34651 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34653 * XplatUIOSX.cs: Implement Activate/SetTopmost
34655 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34657 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
34659 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34661 * XplatUIOSX.cs: Implement GetActive/SetFocus.
34663 2005-01-05 Peter Bartok <pbartok@novell.com>
34665 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
34666 XplatUIOSX.cs: Added GetActive method to return the currently
34667 active window for the application (or null, if none is active)
34669 - Implemented ActiveForm
34670 - Commented out owner assignment for modal dialogs (causes problems
34671 on Win32, since the owner will be disabled)
34672 - Reworked some Active/Focus handling (still incomplete)
34673 * CommonDialog.cs: Commented out owner assignment for modal dialogs
34674 (causes problems on Win32, since the owner will be disabled)
34675 * IWin32Window: Added ComVisible attribute
34677 2005-01-05 Peter Bartok <pbartok@novell.com>
34679 * ToolTip.cs (WndProc): Enable setting focus now that we have the
34680 required XplatUI functions.
34682 2005-01-05 Peter Bartok <pbartok@novell.com>
34684 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
34685 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
34686 to implement focus and activation handling; still incomplete and
34689 2005-01-04 Peter Bartok <pbartok@novell.com>
34691 * TextBoxBase.cs: Changed access level for Document property to
34692 match switch to internal for TextControl
34694 2005-01-04 Peter Bartok <pbartok@novell.com>
34696 * AccessibleObject: Added ComVisible attribute
34698 2005-01-04 Jackson Harper <jackson@ximian.com>
34700 * X11Keyboard.cs: Remove unneeded var.
34702 2005-01-04 Jackson Harper <jackson@ximian.com>
34704 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
34706 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
34707 ClientMessage. This makes apps exit cleanly (more often).
34709 2005-01-04 Jackson Harper <jackson@ximian.com>
34711 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
34712 handling focus, return correct colors and fonts,
34713 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
34714 handle selection, horizontal scrolling, and mouse interaction.
34716 2005-01-04 Peter Bartok <pbartok@novell.com>
34718 * ICommandExecutor.cs: Added
34719 * IDataGridColumnStyleEditingNotificationService.cs: Added
34720 * IFeatureSupport.cs: Added
34721 * IFileReaderService.cs: Added
34722 * IDataObject.cs: Added ComVisible attribute
34723 * AmbientProperties.cs: Added
34724 * BaseCollection.cs: Added missing attributes
34725 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
34726 * BaseCollection.cs: Added missing attributes
34727 * Binding.cs: Added TypeConverter attribute
34728 * BindingContext.cs: Added DefaultEvent attribute
34729 * BindingsCollection.cs: Added DefaultEvent attribute
34730 * Button.cs: Added DefaultValue attribute
34731 * DragEventArgs.cs: Added ComVisible attribute
34732 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
34733 * KeyEventArgs.cs: Added ComVisible attribute
34734 * KeyPressEventArgs.cs: Added ComVisible attribute
34735 * MouseEventArgs.cs: Added ComVisible attribute
34736 * NavigateEventArgs.cs: Added
34737 * NavigateEventHandler.cs: Added
34738 * FeatureSupport.cs: Added
34739 * OSFeature.cs: Added
34740 * Theme.cs: Added abstract Version property to support OSFeature
34741 * ThemeWin32Classic.cs: Added Version property to
34742 support OSFeature.Themes
34743 * ProgressBar.cs: Removed OnPaintBackground override, not required since
34744 the proper styles to avoid background drawing are set, also doesn't
34746 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
34747 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
34748 * ScrollEventArgs.cs: Added ComVisible attribute
34749 * SplitterEventArgs.cs: Added ComVisible attribute
34750 * AccessibleSelection.cs: Added Flags attribute
34751 * Appearance.cs: Added ComVisible attribute
34752 * Border3DSide.cs: Added ComVisible attribute
34753 * Border3DStyle.cs: Added ComVisible attribute
34754 * BorderStyle.cs: Added ComVisible attribute
34755 * DragAction.cs: Added ComVisible attribute
34756 * ErrorBlinkStyle.cs: Added
34757 * ScrollEventType.cs: Added ComVisible attribute
34758 * AnchorStyles.cs: Added Editor attribute
34759 * DockStyle.cs: Added Editor attribute
34760 * HorizontalAlignment.cs: Added ComVisible attribute
34761 * HelpEventArgs.cs: Added ComVisible attribute
34762 * PaintEventArgs.cs: Added IDisposable
34764 2005-01-04 Peter Bartok <pbartok@novell.com>
34766 * TextControl.cs: Switched Line, LineTag and Document classes to
34769 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34771 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
34772 Simple mode, fixes, IntegralHeight, etc.
34774 2005-01-04 Peter Bartok <pbartok@novell.com>
34776 * TextBoxBase.cs: Using proper font variable now
34778 2005-01-04 Peter Bartok <pbartok@novell.com>
34780 * Form.cs (ShowDialog): Set parent to owner, if provided
34781 * GroupBox.cs: Removed unused vars
34783 - Added GetHashCode() for Document and LineTag classes
34784 - Removed unused variables
34785 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
34786 to allow translation between continuous char position and line/pos
34787 * CheckBox.cs: Removed vars that are provided by base class
34788 * RadioButton.cs: Removed vars that are provided by base class, added
34789 new keyword where required
34790 * LinkLabel.cs: Added new keyword where required
34791 * Control.cs (WndProc): Removed unused variable
34793 - Finished SelectionLength property
34794 - Implemented SelectionStart property
34795 - Implemented Text property
34796 - Removed unused vars
34797 * MessageBox.cs: Added new keyword where required
34798 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
34800 * MenuAPI.cs: Added new keyword where required
34801 * ButtonBase.cs: Removed vars that are provided by base class, added
34802 new keyword where required
34803 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
34804 argument to double, to allow compiling with csc 2.0 (Atsushi ran
34806 * Application.cs (Run): Now triggers the ThreadExit event
34807 * CommonDialog.cs: Added new keyword where required; now properly sets
34808 parent (owner) for dialog
34809 * XplatUIX11.cs: Commented out unused vars
34810 * StatusBar.cs: Fixed signature for Text property
34811 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
34813 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34815 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
34816 TrackBar.cs, MonthCalendar.cs: remove unused vars
34818 2005-01-03 Jackson Harper <jackson@ximian.com>
34820 * ThemeWin32Classic.cs:
34821 * X11Keyboard.cs: Remove unused vars.
34823 2005-01-03 Peter Bartok <pbartok@novell.com>
34826 - set_Text: Tied into TextControl
34827 - set_TextAlignment: Tied into TextControl
34829 - Added alignment properties and implemented alignment handling
34830 and drawing (still has a bug, not generating proper expose events)
34831 - Added new Line() constructor to allow passing the line alignment
34832 - Fixed selection setting, properly handling end<start now
34833 - Added aligment considerations to RecalculateDocument()
34835 - Now properly enforces control height for single line controls
34836 - Added support for CharacterCasing
34837 - Added IsInputKey override
34838 - Fixed Keys.Enter logic
34839 - Added SetBoundsCore override
34840 - Fixed mouse selection handling
34842 2005-01-03 Jackson Harper <jackson@ximian.com>
34845 - Collapse and uncheck all nodes when CheckBoxes is disabled.
34846 - Checkboxes are always aligned to the bottom of the node,
34847 regardless of item height.
34848 - Use the node bounds to draw the text so we can center it when
34849 the item height is greater then the font height.
34850 - Node::Bounds are only the text part of the node.
34851 * TreeNode.cs: New method to combine collapsing and unchecking all
34854 2005-01-02 Jackson Harper <jackson@ximian.com>
34856 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
34857 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
34858 tree when a check is changed. TODO: Only refresh the checked node.
34860 2004-12-30 Jackson Harper <jackson@ximian.com>
34862 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
34863 * TreeNode.cs: When collapsing make sure to never collapse the
34866 2004-12-29 Jackson Harper <jackson@ximian.com>
34868 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
34870 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
34872 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
34874 2004-12-28 Peter Bartok <pbartok@novell.com>
34876 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
34879 2004-12-28 Peter Bartok <pbartok@novell.com>
34881 * Control.cs (WndProc): Added WM_HELP handler, now generates
34882 HelpRequested event
34883 * Form.cs: Added HelpButton property and required support code
34884 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
34886 2004-12-28 Peter Bartok <pbartok@novell.com>
34889 - Made DialogForm.owner variable internal
34890 - Added check to ensure owner form is set before setting
34891 owner properties in CreateParams
34893 2004-12-28 Geoff Norton <gnorton@customerdna.com>
34895 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
34896 swizzling. Implement ClientToScreen and ScreenToClient. Implement
34897 GetCursorPos. Fix major visibility issues. Rework the windowing
34898 system to support borderless/titleless windows (implements menus).
34899 Fix GetWindowPos. Implement initial background color support for
34902 2004-12-28 Peter Bartok <pbartok@novell.com>
34904 * Form.cs (get_CreateParams): Make sure we have an owner before using
34905 the owner variable. Implement proper default if no owner exists
34907 2004-12-28 Peter Bartok <pbartok@novell.com>
34909 * In preparation for making Managed.Windows.Forms the default build target
34910 for System.Windows.Forms, the following stubbed files were added.
34911 Dialogs are currently being implemented by contributors and are only
34912 short-term place holders.
34913 * ColorDialog.cs: Initial check-in (minmal stub)
34914 * DataGrid.cs: Initial check-in (minimal stub)
34915 * DataGridLineStyle.cs: Initial check-in (minimal stub)
34916 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
34917 * DataGridTableStyle.cs: Initial check-in (minimal stub)
34918 * FontDialog.cs: Initial check-in (minimal stub)
34919 * FileDialog.cs: Initial check-in (minimal stub)
34920 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
34921 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
34922 * OpenFileDialog: Initial check-in (minimal stub)
34923 * IComponentEditorPageSite.cs: Initial check-in
34924 * Splitter.cs: Initial check-in (for Jackson)
34925 * SplitterEventArgs.cs: Initial check-in (for Jackson)
34926 * SplitterEventHandler.cs: Initial check-in (for Jackson)
34927 * TextBox.cs: Initial check-in; still needs some wiring to
34928 TextControl backend
34929 * Form.cs: Implemented ControlBox property
34930 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
34931 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
34932 * TextControl.cs: Added selection functionality; added todo header
34934 - Implemented Lines property
34935 - Implemented TextHeight property
34936 - Implemented SelectedText property
34937 - Implemented SelectionLength property
34938 - Implemented SelectAll method
34939 - Implemented ToString method
34940 - Removed and cleaned up some debug code
34941 - Implemented (still buggy) mouse text selection
34943 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
34945 * ComboBox.cs: Complete DropDownList implementation, fixes.
34947 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
34949 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
34950 * ComboBoxStyle.cs: ComboBoxStyle enum
34951 * ComboBox.cs: Initial work on ComboBox control
34953 2004-12-21 Peter Bartok <pbartok@novell.com>
34955 * Control.cs (ctor, CreateParams): Moved setting of is_visible
34956 forward so that anything that creates a window gets the default,
34957 also no longer uses Visible property in CreateParams to avoid
34958 walking up the parent chain and possibly get the wrong visible
34959 status. Fixed IsVisible to no longer walk up to the parent.
34961 2004-12-21 Peter Bartok <pbartok@novell.com>
34963 * Form.cs (ShowDialog): Unset modality for the proper window
34965 2004-12-20 Peter Bartok <pbartok@novell.com>
34967 * CommonDialog.cs: Initial check-in
34969 2004-12-20 Peter Bartok <pbartok@novell.com>
34971 * Control.cs (Visible): Now uses the parent window instead of the
34972 client area window for the property
34975 - ShowDialog(): Now uses the proper window for modality
34976 - The default visibility state for the form parent is now false. This
34977 will prevent the user from seeing all the changes to the form and
34978 its controls before the application hits Application.Run()
34979 - Removed some stale commented out code
34982 - Added FindWindow() method to have a method to check for existence
34984 - Added ability to override default exception handling (for example
34985 when debugging with VS.Net; to do this the ExternalExceptionHandler
34987 - Removed some useless debug output
34990 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
34991 not working as expected
34992 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
34993 property to allow switching back to the modal window if focus is
34994 given to another one of our windows (Application Modal)
34995 - Now only sets override_redirect if we create a window
34997 - Moved EventMask selection before mapping of newly created window
34998 so we can catch the map event as well
34999 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
35000 - Added various Atom related DllImports
35001 - Implemented Exit() method
35002 - .ctor() : No longer shows window if WS_VISIBLE is not defined
35003 in the CreateParams
35005 * MessageBox.cs: Now properly deals with the FormParent window by
35006 providing an override the FormParent CreateParams property to
35007 set as POPUP instead of OVERLAPPED window.
35009 2004-12-19 Geoff Norton <gnorton@customerdna.com>
35011 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
35012 Minor code cleanup.
35014 2004-12-19 Geoff Norton <gnorton@customerdna.com>
35016 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
35018 2004-12-18 Peter Bartok <pbartok@novell.com>
35020 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
35021 implementing SetModal() method
35023 2004-12-18 Peter Bartok <pbartok@novell.com>
35025 * X11Structs.cs (XGCValues): Fixed type of function element
35026 * XplatUI.cs: Added ScrollWindow() method
35027 * XplatUIDriver.cs: Added ScrollWindow() abstract
35028 * XplatUIWin32.cs: Implemented ScrollWindow() method
35029 * XplatUIX11.cs: Implemented ScrollWindow() method
35030 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
35032 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35034 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
35035 Some more keyboard support (INCOMPLETE)
35037 2004-12-17 Peter Bartok <pbartok@novell.com>
35040 - Added color attribute to line tags.
35041 - Added color argument to all functions dealing with tags
35042 - Added color argument support to various functions
35043 - Fixed miss-calculation of baseline/shift in certain circumstances
35045 * TextBoxBase.cs: Added new color option to test code
35047 2004-12-17 Jackson Harper <jackson@ximian.com>
35050 * MonthCalendar.cs: Signature fixes
35052 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35054 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
35055 keyboard event moved it. Create a new graphics context for each paint resolves this
35057 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35059 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
35060 Make caret exist and go blink blink. Initial keyboard support.
35061 Fix exception handler, Add Invalidate support. Change way RefreshWindow
35064 2004-12-17 Jackson Harper <jackson@ximian.com>
35066 * XplatUIStructs.cs: Updated set of virtual keycodes.
35067 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
35069 2004-12-17 Jackson Harper <jackson@ximian.com>
35071 * XplatUIX11.cs: Prune old keyboard code.
35073 2004-12-17 Jackson Harper <jackson@ximian.com>
35075 * XplatUIX11.cs: When generating mouse wparams get the modifier
35076 keys from the ModifierKeys property.
35078 2004-12-17 Jackson Harper <jackson@ximian.com>
35080 * X11Keyboard.cs: Send up/down input when generating
35081 messages. Remove some unused vars.
35083 2004-12-17 Jackson Harper <jackson@ximian.com>
35086 * TreeView.cs: get rid of warnings.
35088 2004-12-17 Jackson Harper <jackson@ximian.com>
35090 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
35092 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
35094 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
35095 CheckedListBox.cs: Implementation
35097 2004-12-17 Peter Bartok <pbartok@novell.com>
35099 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
35101 2004-12-16 Peter Bartok <pbartok@novell.com>
35104 - InsertCharAtCaret(): Fixed start pos fixup
35105 - CaretLine_get: No longer derives the line from the tag, the tag
35106 could be stale if lines in the document have been added or deleted
35107 - RebalanceAfterDelete(): Fixed bug in balancing code
35108 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
35109 - Line.Streamline(): Now can also elminate leading empty tags
35110 - DumpTree(): Added a few more tests and prevented exception on
35112 - Added Debug section for Combining lines
35113 - Delete(): Now copies all remaining properties of a line
35116 - Left mousebutton now sets the caret (and middle button still acts
35117 as formatting tester, which must go away soon)
35118 - Added Debug section for Deleting/Combining lines
35119 - Fixed calculations for UpdateView after Combining lines
35121 2004-12-16 Peter Bartok <pbartok@novell.com>
35123 * TextControl.cs: Now properly aligns text on a baseline, using the
35124 new XplatUI.GetFontMetrics() method. Simplified several calculations
35125 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
35128 2004-12-16 Peter Bartok <pbartok@novell.com>
35130 * XplatUI.cs: Added GetFontMetrics() method
35131 * XplatUIDriver.cs: Added GetFontMetrics() abstract
35132 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
35133 into libgdiplus, our private GetFontMetrics function
35134 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
35135 * XplatUIWin32.cs: Implemented GetFontMetrics() method
35137 2004-12-16 Jackson Harper <jackson@ximain.com>
35139 * XplatUIStruct.cs: Add enum for dead keys
35140 * X11Keyboard.cs: Map and unmap dead keys.
35142 2004-12-16 Jackson Harper <jackson@ximian.com>
35144 * X11Keyboard.cs: Detect and use the num lock mask.
35146 2004-12-16 Peter Bartok <pbartok@novell.com>
35148 * Control.cs (CreateGraphics): Added check to make sure the
35149 handle of the window exists before calling Graphics.FromHwnd()
35151 2004-12-16 Peter Bartok <pbartok@novell.com>
35153 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
35154 contains a lot of code that's not supposed to be there for the
35155 real thing, but required for developing/testing the textbox
35158 2004-12-16 Peter Bartok <pbartok@novell.com>
35161 - Fixed Streamline method
35162 - Added FindTag method to Line
35163 - Added DumpTree method for debugging
35164 - Added DecrementLines() method for deleting lines
35165 - Fixed UpdateView to update the cursor to end-of-line on single-line
35167 - Added PositionCaret() method
35168 - Fixed MoveCaret(LineDown) to move into the last line, too
35169 - Added InsertChar overload
35170 - Fixed InsertChar tag offset calculations
35171 - Added DeleteChar() method
35172 - Added Combine() method for folding lines
35173 - Fixed Delete() method, no longer allocates wasted Line object and
35174 now copies all properties when swapping nodes
35175 - Delete() method now updates document line counter
35177 2004-12-15 Jackson Harper <jackson@ximian.com>
35179 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35180 * X11Keyboard.cs: Expose the currently selected modifier keys
35181 through a property.
35183 2004-12-15 Peter Bartok <pbartok@novell.com>
35185 * TextControl.cs: Initial check-in. Still incomplete
35187 2004-12-15 Jackson Harper <jackson@ximian.com>
35190 * TreeView.cs: Fix build on csc (second time today ;-))
35192 2004-12-15 Jackson Harper <jackson@ximian.com>
35194 * TreeView.cs: Store the treenodes plus/minus box bounds when it
35195 is calculated and use this for click testing.
35196 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35198 2004-12-15 Jackson Harper <jackson@ximian.com>
35200 * TreeView.cs: Pass the nodes image index to the image list when
35201 drawing that image.
35203 2004-12-15 Jackson Harper <jackson@ximian.com>
35205 * X11Keyboard.cs: Set messages hwnd.
35206 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
35207 post_message calls.
35209 2004-12-15 Jackson Harper <jackson@ximian.com>
35211 * X11Keyboard.cs: Fix to compile with csc.
35213 2004-12-15 Jackson Harper <jackson@ximian.com>
35215 * X11Structs.cs: Add key mask values
35216 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
35217 * X11Keyboard.cs: New file - Extrapolates and interpolates key
35218 down/up foo into WM_CHAR foo
35219 * KeyboardLayouts.cs: Common keyboard layouts
35220 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
35221 post messages into the main queue.
35223 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
35225 * Button.cs: implement ProcessMnemonic
35226 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
35228 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
35229 * ButtonBase.cs: Show HotkeyPrefix (not the &)
35231 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
35233 * MonthCalendar.cs: Implemented click-hold for next/previous month
35236 2004-12-11 Peter Bartok <pbartok@novell.com>
35239 - Added XKeyboardState (moved from XplatUIX11.cs)
35240 - Added XCreateGC related enums and structures
35241 - Added GXFunction for XSetFunction
35243 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
35245 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
35246 CaretVisible() calls
35248 * ToolTip.cs: Added code to prevent stealing focus from app windows
35250 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
35251 DestroyCaret, SetCaretPos and CaretVisible)
35254 - Added implementation for caret functions
35255 - Moved hover variables into a struct, to make it a bit easier
35256 on the eyes and to debug
35257 - Removed XKeyboardState (moved to XplatUIX11.cs)
35258 - Moved Keyboard properties into the properties region
35260 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
35261 call to get a graphics context for our control
35263 * XplatUIOSX.cs: Added empty overrides for the new caret functions
35265 * TreeView.cs: Fixed bug. No matter what color was set it would always
35266 return SystemColors.Window
35268 * XplatUIWin32.cs: Implemented caret overrides
35270 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
35272 * ListBox.cs: fire events, implement missing methods and properties,
35275 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
35277 * MonthCalendar.cs: invalidation bug fixing
35278 * ThemeWin32Classic.cs: paint fixing
35280 2004-12-09 Geoff Norton <gnorton@customerdna.com>
35282 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
35283 prepare the CGContextRef there now.
35285 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
35287 * MonthCalendar.cs:
35288 - optimisationL only invalidate areas that have changed
35289 * ThemeWin32Classic.cs:
35290 - only paint parts that intersect with clip_area
35292 2004-12-09 Peter Bartok <pbartok@novell.com>
35294 * Application.cs: Undid changes from r37004 which cause problems
35297 2004-12-09 Ravindra <rkumar@novell.com>
35299 * ToolBar.cs: Added support for displaying ContextMenu
35300 attached to a button on ToolBar.
35301 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
35304 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35306 * Label.cs: autosize works in text change and removes unnecessary
35309 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35311 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35314 2004-12-08 Geoff Norton <gnorton@customerdna.com>
35316 * XplatUIOSX.cs: Added mouse move/click/grab support
35317 Remove some debugging WriteLines not needed anymore.
35318 Add window resizing/positioning.
35319 Fix visibility on reparenting.
35321 2004-12-08 Peter Bartok <pbartok@novell.com>
35323 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
35325 2004-12-07 Geoff Norton <gnorton@customerdna.com>
35327 * XplatUIOSX.cs: Initial checkin
35328 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
35330 2004-12-03 Ravindra <rkumar@novell.com>
35332 * ListView.cs: Added some keybindings and fixed scrolling.
35333 ScrollBars listen to ValueChanged event instead of Scroll
35334 Event. This would let us take care of all changes being
35335 done in the scrollbars' values programmatically or manually.
35336 * ListView.cs (CanMultiselect): Added a check for shift key.
35337 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
35338 * ListViewItem.cs (Clone): Fixed. We need to make a copy
35339 of ListViewSubItemCollection as well.
35341 2004-12-06 Peter Bartok <pbartok@novell.com>
35343 * Control.cs (Parent): Added check and exception to prevent
35346 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
35348 * ListBox.cs: implemented clipping, selection single and multiple,
35351 2004-12-03 Ravindra <rkumar@novell.com>
35353 * ListView.cs (ListView_KeyDown):
35354 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
35355 when CTRL key is pressed.
35356 * ListViewItem.cs (Selected): Fixed setting the property.
35358 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35360 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
35362 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
35363 MinimizeBox, ShowInTaskbar, TopMost properties.
35365 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
35366 will be implemented).
35368 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35370 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
35372 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
35375 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
35377 * TreeView.cs: BackColor is Colors.Window.
35379 2004-12-01 Jackson Harper <jackson@ximian.com>
35381 * TreeView.cs: When resizing the tree if the user is making it
35382 smaller we don't get expose events, so we need to handle adding
35383 the horizontal scrollbar in the size changed handler as well as
35384 the expose handler.
35386 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
35388 * DrawItemState.cs: fixes wrong enum values
35390 2004-12-01 Jackson Harper <jackson@ximian.com>
35392 * TreeView.cs: Resize the hbar as well as the vbar on resize.
35394 2004-12-01 Jackson Harper <jackson@ximian.com>
35396 * NodeLabelEditEventArgs.cs:
35397 * NodeLabelEditEventHandler.cs:
35398 * OpenTreeNodeEnumerator.cs:
35400 * TreeNodeCollection.cs:
35402 * TreeViewAction.cs:
35403 * TreeViewCancelEventArgs.cs:
35404 * TreeViewCancelEventHandler.cs:
35405 * TreeViewEventArgs.cs:
35406 * TreeViewEventHandler.cs: Initial implementation.
35408 2004-12-01 Ravindra <rkumar@novell.com>
35410 * ListView.cs (CalculateListView): Fixed scrolling related
35411 calculations. Also, removed some debug statements from other
35413 * ListViewItem.cs: Changed access to 'selected' instance variable
35414 from private to internal.
35415 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
35417 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
35419 * ThemeWin32Classic.cs: remove cache of brush and pens for
35420 specific controls and use the global system, fixes scrollbutton
35421 bugs (for small sizes, disabled, etc)
35423 * ScrollBar.cs: does not show the thumb for very small controls
35424 (as MS) and allow smaller buttons that the regular size
35426 2004-12-01 Miguel de Icaza <miguel@ximian.com>
35428 * UpDownBase.cs: Add abstract methods for the interface.
35429 Add new virtual methods (need to be hooked up to TextEntry when it
35431 Add override methods for most features.
35432 Computes the size, forces the height of the text entry.
35434 * NumericUpDown.cs: Put here the current testing code.
35436 * Set eol-style property on all files that do not have mixed line
35437 endings, to minimize the future problems. There are still a few
35438 files with mixed endings, and someone should choose whether they
35439 want to move it or not.
35441 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
35443 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
35446 2004-11-30 Ravindra <rkumar@novell.com>
35448 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
35449 drawing and replaced use of SystemColors by theme colors.
35450 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
35451 * ListView.cs (ListViewItemCollection.Add): Throw exception when
35452 same ListViewItem is being added more than once.
35454 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
35456 * MonthCalendar.cs:
35457 - ControlStyles love to make the control not flicker
35459 2004-11-30 Peter Bartok <pbartok@novell.com>
35461 * CharacterCasing.cs: Added
35463 2004-11-29 Peter Bartok <pbartok@novell.com>
35465 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35466 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
35467 I am removing these files as they conflict with already completed
35468 work. While it is fantastic to get contributions to MWF, I
35469 respectfully ask that everyone please coordinate their contributions
35470 through mono-winforms-list or #mono-winforms at this time. We're
35471 explicitly avoiding stubbing and don't want controls that don't have
35472 their basic functionality implemented in svn. Please also see
35473 http://www.mono-project.com/contributing/winforms.html
35476 2004-11-29 Marek Safar <marek.safar@seznam.cz>
35478 * Application.cs (ModalRun): Don't hang after exit.
35480 * Theme.cs: New TreeViewDefaultSize property.
35482 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
35483 with less hardcoded SystemColors constant.
35484 Implemented TreeViewDefaultSize.
35486 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35487 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
35490 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
35492 * MonthCalendar.cs:
35493 - Fix NextMonthDate and PrevMonthDate click moving calendar
35495 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35497 * MonthCalendar.cs:
35498 - Fix usage of ScrollChange Property when scrolling months
35500 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
35502 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
35503 - Fixes menu destroying
35504 - Support adding and removing items on already created menus
35506 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35508 * MonthCalendar.cs:
35509 - Re-worked all bolded dates handling to match win32
35510 * ThemeWin32Classic.cs:
35511 - Fixed rendering with bolded dates
35513 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
35515 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
35516 - Horizontal scroolbar
35521 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
35523 * MonthCalendar.cs:
35524 - Fix Usage of MaxSelectionCount from SelectionRange
35525 - Fixed Shift + Cursor Selection
35526 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
35527 - Fixed normal cursor selection to be compat with win32
35528 - Fixed Shift + Mouse Click selection
35530 2004-11-24 Peter Bartok <pbartok@novell.com>
35532 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
35533 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
35535 - CreatedKeyBoardMsg now updates keystate with Alt key
35536 - Added workaround for timer crash to CheckTimers, Jackson will
35537 develop a proper fix and check in later
35538 - Implemented DispatchMessage
35539 - Removed calling the native window proc from GetMessage (call
35540 now moved to DispatchMessage)
35542 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
35543 the keydata (Fixes bug #69831)
35546 - (DispatchMessage): Switched to return IntPtr
35547 - Added DllImport for SetFocus
35549 2004-11-24 Ravindra <rkumar@novell.com>
35551 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
35552 background drawing.
35553 * ListViewItem.cs: Fixed various properties, calculations
35554 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
35555 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
35556 and some internal properties. Fixed MouseDown handler and Paint
35559 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35561 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
35563 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35565 * ContainerControl.cs: correct accidental check in of local changes
35567 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35569 * ThemeWin32Classic.cs:
35570 - Fixed Drawing Last month in grid (sometimes not showing)
35571 * MonthCalendar.cs:
35572 - Fixed title width calculation bug (makeing title small)
35574 2004-11-23 Peter Bartok <pbartok@novell.com>
35577 - Added generation of WM_MOUSEHOVER event
35578 - Added missing assignment of async_method atom
35579 - Fixed WM_ERASEBKGND; now only redraws the exposed area
35581 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35583 * ThemeWin32Classic.cs:
35584 - Fixed Drawing of today circle when showtodaycircle not set
35585 - fixed drawing of first and last month in the grid (gay dates)
35586 * MonthCalendar.cs:
35587 - Fixed Drawing of today circle
35588 - Fixed drawing of grady dates
35589 - Fixed HitTest for today link when ShowToday set to false
35590 - Fixed DefaultSize to obey ShowToday
35592 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35594 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
35595 * System.Windows.Forms/Theme.cs
35596 * MonthCalendar.cs: added for MonthCalendar
35597 * SelectionRange.cs: added for MonthCalendar
35598 * Day.cs: added for MonthCalendar: added for MonthCalendar
35599 * DateRangeEventArgs.cs: added for MonthCalendar
35600 * DateRangeEventHandler.cs: added for MonthCalendar
35602 2004-11-22 Ravindra <rkumar@novell.com>
35604 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
35607 2004-11-22 Miguel de Icaza <miguel@ximian.com>
35609 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
35612 * NumericUpDown.cs: Added new implementation.
35613 * UpDownBase.cs: Added new implementation.
35615 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
35618 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
35621 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
35624 2004-11-21 Miguel de Icaza <miguel@ximian.com>
35626 * Timer.cs (Dispose): Should call the base dispose when
35629 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35631 * ScrollBar.cs: updates thumb position when max, min or increment
35634 2004-11-21 Ravindra <rkumar@novell.com>
35636 * ListView.cs: Implemented item selection, activation and
35637 column header style. Fixed properties to do a redraw, if
35638 required. Added support for MouseHover, DoubleClick, KeyDown
35639 and KeyUp event handling and some minor fixes.
35640 * ListViewItem.cs: Fixed constructor.
35641 * ThemeWin32Classic.cs: Improved drawing for ListView.
35643 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35645 * ThemeWin32Classic.cs: initial listbox drawing code
35646 * DrawMode.cs: new enumerator
35647 * ListControl.cs: stubbed class
35648 * ListBox.cs: initial implementation
35649 * Theme.cs: new methods definitions
35650 * SelectionMode.cs: new enumerator
35652 2004-11-17 Peter Bartok <pbartok@novell.com>
35654 * XplatUIWin32.cs: Added double-click events to the class style
35655 * Control.cs (WndProc):
35656 - Added handling of click-count to MouseDown/ MouseUp events.
35657 - Added handling of middle and right mouse buttons
35658 - Removed old debug code
35660 2004-11-17 Jackson Harper <jackson@ximian.com>
35662 * XplatUIX11.cs: Use the new Mono.Unix namespace.
35664 2004-11-17 Ravindra <rkumar@novell.com>
35666 * ListView.cs: Added event handling for MouseMove/Up/Down.
35667 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
35668 * ThemeWin32Classic.cs: We need to clear the graphics context and
35669 draw column header in a proper state.
35672 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
35674 * Menu.cs: fixes signature
35676 2004-11-16 Peter Bartok <pbartok@novell.com>
35678 * XplatUIX11.cs (GetMessage): Implemented generation of
35679 double click mouse messages
35681 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
35683 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
35686 2004-11-11 Peter Bartok <pbartok@novell.com>
35688 * HandleData.cs: Added Visible property
35689 * XplatUIX11.cs (IsVisible): Now uses Visible property from
35691 * XplatUIX11.cs: Removed old debug leftovers
35692 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
35693 * Control.cs (WndProc): Removed old debug leftovers,
35694 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
35695 needed WM_SIZE handling
35697 2004-11-11 Jackson Harper <jackson@ximian.com>
35699 * OwnerDrawPropertyBag.cs:
35700 * TreeViewImageIndexConverter.cs: Initial implementation
35702 2004-11-10 Jackson Harper <jackson@ximian.com>
35704 * ThemeWin32Classic.cs:
35705 * TabControl.cs: instead of moving tabs by the slider pos just
35706 start drawing at the tab that is offset by the slider. This way
35707 scrolling always moves by exactly one tab.
35709 2004-11-10 Jackson Harper <jackson@ximian.com>
35711 * TabControl.cs: You can only scroll left when the slider has
35712 already ben moved right.
35714 2004-11-10 Jackson Harper <jackson@ximian.com>
35716 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
35719 2004-11-10 Jackson Harper <jackson@ximian.com>
35721 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
35724 2004-11-09 Jackson Harper <jackson@ximian.com>
35726 * TabControl.cs (CalcXPos): New helper method so we can determine
35727 the proper place to start drawing vertical tabs.
35728 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
35730 2004-11-09 Jackson Harper <jackson@ximian.com>
35732 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
35733 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
35734 and Bottom, left and right are illegal values for this and
35735 multiline is enabled when the alignment is set to left or right.
35736 (DrawTab): Each alignment block should draw the text itself now
35737 because Left requires special love. Also add rendering for Left
35740 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
35742 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
35743 does not destroy the windows, removes debugging messages
35745 2004-11-09 jba <jba-mono@optusnet.com.au>
35747 * ThemeWin32Classic.cs
35748 (DrawButtonBase): Fix verticle text rect clipping in windows
35749 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35750 rendering and incorrect text rect clipping
35751 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35752 rendering and incorrect text rect clipping
35754 2004-11-08 Jackson Harper <jackson@ximian.com>
35756 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
35757 bottom when they are bottom aligned so the bottoms of the tabs get
35759 * TabControl.cs (DropRow): Move rows up instead of down when the
35760 tab control is bottom aligned.
35762 2004-11-08 13:59 pbartok
35765 - Added handling for various window styles
35766 - Added handling for popup windows
35767 - Added SetTopmost handling
35769 2004-11-08 13:55 pbartok
35772 - Added argument to SetTopmost method
35773 - Fixed broken ClientToScreen function
35775 2004-11-08 13:53 pbartok
35777 * XplatUIStructs.cs:
35778 - Added missing WS_EX styles
35780 2004-11-08 13:53 pbartok
35782 * XplatUI.cs, XplatUIDriver.cs:
35783 - Added argument to SetTopmost
35785 2004-11-08 13:52 pbartok
35788 - Added XSetWindowAttributes structure
35789 - Improved XWindowAttributes structure
35790 - Added SetWindowValuemask enum
35791 - Added window creation arguments enum
35792 - Added gravity enum
35793 - Added Motif hints structure
35794 - Added various Motif flags and enums
35795 - Added PropertyMode enum for property functions
35797 2004-11-08 13:50 pbartok
35800 - Fixed arguments for updated SetTopmost method
35802 2004-11-08 13:49 pbartok
35805 - Fixed arguments for updated SetTopmost function
35806 - Fixed usage of PointToClient
35808 2004-11-08 13:44 pbartok
35811 - Added Clipping of children and siblings
35813 2004-11-08 13:41 pbartok
35816 - Removed SetMenuBarWindow call. We do this in Form.cs
35818 2004-11-08 13:40 jackson
35820 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
35821 scrolling jimmi in the correct location with bottom aligned tabs
35823 2004-11-08 13:36 pbartok
35825 * ContainerControl.cs:
35826 - Implemented BindingContext
35827 - Implemented ParentForm
35829 2004-11-08 12:46 jackson
35831 * TabControl.cs: Put bottom rendered tabs in the right location
35833 2004-11-08 07:15 jordi
35835 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
35838 2004-11-05 17:30 jackson
35840 * TabControl.cs: When selected tabs are expanded make sure they
35841 don't go beyond the edges of the tab control
35843 2004-11-05 14:57 jackson
35845 * TabControl.cs: Reset show_slider so if the control is resized to
35846 a size where it is no longer needed it's not displayed anymore
35848 2004-11-05 13:16 jackson
35850 * TabControl.cs: Make tab pages non visible when added to the
35853 2004-11-05 12:42 jackson
35855 * TabControl.cs: Implement SizeMode.FillToRight
35857 2004-11-05 12:16 jackson
35859 * Control.cs: Do not call CreateHandle if the handle is already
35862 2004-11-05 11:46 jackson
35864 * TabControl.cs: Remove superflous call to CalcTabRows
35866 2004-11-05 09:07 jackson
35868 * XplatUIX11.cs: Update for Mono.Posix changes
35870 2004-11-05 07:00 ravindra
35872 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
35875 2004-11-04 22:47 jba
35877 * ThemeWin32Classic.cs:
35878 - Fix Button rendering for FlatStyle = Flat or Popup
35879 - Fix RadioButton and CheckBox rendering when Appearance = Button
35880 (normal and flatstyle).
35881 - Correct outer rectangle color when drawing focus rectangle
35882 - Adjust button bounds to be 1 px smaller when focused
35883 - Make button not draw sunken 3d border when pushed (windows compat)
35884 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
35885 - Offset the text in RadioButton and Checkbox when being rendered as
35887 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
35889 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
35890 - Fixed disabled text rendering for normally rendered radiobuttons
35892 2004-11-04 10:26 jackson
35894 * TabControl.cs: Recalculate tab rows when resizing
35896 2004-11-04 07:47 jordi
35898 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
35899 collection completion, drawing issues, missing features
35901 2004-11-04 05:03 ravindra
35904 - We need to recalculate the Thumb area when
35905 LargeChange/maximum/minimum values are changed.
35906 - We set the 'pos' in UpdatePos() method to minimum, if it's less
35907 than minimum. This is required to handle the case if large_change is
35908 more than max, and use LargeChange property instead of large_change
35910 - We return max+1 when large_change is more than max, like MS does.
35912 2004-11-04 04:29 ravindra
35914 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
35915 - Changed default value signatures (prefixed all with ListView).
35916 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
35918 - Fixed calculations for ListViewItem and implemented Clone()
35921 2004-11-04 04:26 ravindra
35923 * Theme.cs, ThemeWin32Classic.cs:
35924 - Changed default ListView values signatures (prefixed all with
35926 - Fixed default size values for VScrollBar and HScrollBar.
35927 - Fixed DrawListViewItem method.
35929 2004-11-04 04:05 ravindra
35931 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
35933 2004-11-04 04:04 ravindra
35935 * ImageList.cs: Implemented the missing overload for Draw method.
35937 2004-11-03 19:29 jackson
35939 * TabControl.cs: Handle dropping rows on selection properly
35941 2004-11-03 11:59 jackson
35943 * TabControl.cs: remove debug code
35945 2004-11-03 11:52 jackson
35947 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
35948 the scrolly widgerywoo
35950 2004-11-02 13:52 jackson
35952 * TabControl.cs: Resize the tab pages and tabs when the tab control
35955 2004-11-02 13:40 jackson
35957 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
35958 selected tab to the bottom
35960 2004-11-02 13:39 jackson
35962 * TabPage.cs: Store the tab pages row
35964 2004-11-02 12:33 jordi
35966 * MenuItem.cs: fixes handle creation
35968 2004-11-02 11:42 jackson
35970 * TabControl.cs: signature fix
35972 2004-11-02 08:56 jackson
35974 * TabControl.cs: Calculate whether the tab is on an edge properly.
35975 Remove top secret debugging code
35977 2004-11-01 19:57 jackson
35979 * TabControl.cs: Add click handling, and proper sizing
35981 2004-11-01 19:47 jackson
35983 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
35986 2004-11-01 19:39 jackson
35988 * TabPage.cs: add internal property to store the bounds of a tab
35991 2004-10-30 04:23 ravindra
35993 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
35996 2004-10-30 04:21 ravindra
35998 * ListView.cs, ListViewItem.cs: Added support for scrolling and
35999 fixed calculations.
36001 2004-10-30 03:06 pbartok
36004 - Removed extension of DllImported libs
36006 2004-10-29 09:55 jordi
36008 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
36009 navigation, itemcollection completion, menu fixes
36011 2004-10-27 22:58 pbartok
36014 - Now throws a nice error message when no X display could be opened
36016 2004-10-26 13:51 jordi
36018 * ListView.cs: removes warning
36020 2004-10-26 03:55 ravindra
36022 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
36023 ThemeWin32Classic.cs: Some formatting for my last checkins.
36025 2004-10-26 03:36 ravindra
36027 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
36028 control and default values.
36030 2004-10-26 03:35 ravindra
36032 * Theme.cs: Added some default values for ListView control.
36034 2004-10-26 03:33 ravindra
36036 * ToolBar.cs: ToolBar should use the user specified button size, if
36037 there is any. Added a size_specified flag for the same.
36039 2004-10-26 03:33 ravindra
36041 * ColumnHeader.cs: Added some internal members and calculations for
36044 2004-10-26 03:32 ravindra
36046 * ListViewItem.cs: Calculations for ListViewItem.
36048 2004-10-26 03:31 ravindra
36050 * ListView.cs: Added some internal members and calculations for
36053 2004-10-22 13:31 jordi
36055 * MenuAPI.cs: speedup menus drawing
36057 2004-10-22 13:16 jackson
36059 * XplatUIX11.cs: Make sure to update exposed regions when adding an
36062 2004-10-22 11:49 jackson
36066 2004-10-22 11:41 jackson
36068 * Control.cs: Check to see if the window should have its background
36069 repainted by X when drawing.
36071 2004-10-22 11:31 jackson
36073 * XplatUIX11.cs: When invalidating areas only use XClearArea if
36074 clear is true, this way we do not get flicker from X repainting the
36077 2004-10-22 11:28 jackson
36079 * XEventQueue.cs: Queue properly
36081 2004-10-21 09:38 jackson
36083 * XEventQueue.cs: Fix access modifier
36085 2004-10-21 09:36 jackson
36087 * XEventQueue.cs: Don't loose messages
36089 2004-10-21 09:22 jackson
36091 * XEventQueue.cs: Don't loose messages
36093 2004-10-20 04:15 jordi
36095 * BootMode.cs: enum need it by SystemInfo
36097 2004-10-19 21:58 pbartok
36100 - Small sanity check
36102 2004-10-19 21:56 pbartok
36105 - Added private FormParentWindow class which acts as the container
36106 for our form and as the non-client area where menus are drawn
36107 - Added/Moved required tie-ins to Jordi's menus
36108 - Fixed/Implemented the FormStartPosition functionality
36110 2004-10-19 21:52 pbartok
36113 - Removed unneeded locals
36114 - Added code to all size and location properties to understand and
36115 deal with the parent container of Form
36117 2004-10-19 21:33 pbartok
36120 - Fixed to deal with new Form subclasses for menus
36122 2004-10-19 17:48 jackson
36124 * XEventQueue.cs: commit correct version of file
36126 2004-10-19 16:50 jackson
36128 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
36130 2004-10-19 16:15 jordi
36132 * MenuAPI.cs: MenuBarCalcSize returns the height
36134 2004-10-19 08:31 pbartok
36137 - Added missing call to PreProcessMessage before calling OnXXXKey
36140 2004-10-19 00:04 ravindra
36142 * ToolTip.cs: Fixed constructor.
36144 2004-10-18 09:31 jordi
36146 * MenuAPI.cs: menuitems in menubars do not have shortcuts
36148 2004-10-18 09:26 jordi
36150 * MenuItem.cs: fixes MenuItem class signature
36152 2004-10-18 08:56 jordi
36154 * MenuAPI.cs: prevents windows from showing in the taskbar
36156 2004-10-18 00:28 ravindra
36158 * ToolTip.cs: Suppressed a warning message.
36160 2004-10-18 00:27 ravindra
36162 * Control.cs: Default value of visible property must be true.
36164 2004-10-17 23:19 pbartok
36167 - Complete implementation
36169 2004-10-17 23:19 pbartok
36172 - Added EnableWindow method
36173 - Added SetModal stub
36174 - Added generation of WM_ACTIVATE message (still needs testing)
36175 - Added SetTopMost stub
36176 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36178 2004-10-17 23:17 pbartok
36181 - Removed VirtualKeys to XplatUIStructs
36182 - Implemented SetTopMost method
36183 - Implemented EnableWindow method
36184 - Bugfix in ScreenToClient()
36185 - Bugfixes in ClientToScreen()
36187 2004-10-17 22:51 pbartok
36189 * XplatUIStructs.cs:
36190 - Added WS_EX styles to WindowStyles enumeration
36192 2004-10-17 22:50 pbartok
36194 * XplatUI.cs, XplatUIDriver.cs:
36195 - Added method for enabling/disabling windows
36196 - Added method for setting window modality
36197 - Added method for setting topmost window
36199 2004-10-17 22:49 pbartok
36201 * ThemeWin32Classic.cs:
36202 - Added ToolTip drawing code
36204 2004-10-17 22:49 pbartok
36207 - Added ToolTip abstracts
36209 2004-10-17 22:47 pbartok
36212 - Fixed Form.ControlCollection to handle owner relations
36213 - Added Owner/OwnedForms handling
36214 - Implemented Z-Ordering for owned forms
36215 - Removed unneeded private overload of ShowDialog
36216 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
36218 - Fixed Close(), had wrong default
36219 - Added firing of OnLoad event
36220 - Added some commented out debug code for Ownership handling
36222 2004-10-17 22:16 pbartok
36225 - Fixed/implemented flat list of controls
36227 2004-10-17 22:14 pbartok
36230 - Added code to simulate modal dialogs on Win32
36232 2004-10-17 16:11 jordi
36234 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
36237 2004-10-17 13:39 jordi
36239 * MenuAPI.cs: menu drawing fixes
36241 2004-10-15 09:10 ravindra
36243 * StructFormat.cs: General Enum.
36245 2004-10-15 09:09 ravindra
36247 * SizeGripStyle.cs: Enum for Form.
36249 2004-10-15 09:08 ravindra
36251 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
36252 in Theme for ListView.
36254 2004-10-15 09:06 ravindra
36256 * ColumnHeader.cs: Flushing some formatting changes.
36258 2004-10-15 09:05 ravindra
36260 * ListViewItem.cs: Implemented GetBounds method and fixed coding
36263 2004-10-15 09:03 ravindra
36265 * ListView.cs: Implemented Paint method and fixed coding style.
36267 2004-10-15 07:34 jordi
36269 * MenuAPI.cs: fix for X11
36271 2004-10-15 07:32 ravindra
36273 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
36274 - Renamed Paint() method to Draw() for clarity. Also, moved
36275 DrawImage() to OnPaint().
36277 2004-10-15 07:25 ravindra
36279 * CheckBox.cs, RadioButton.cs:
36280 - Removed Redraw (), we get it from ButtonBase.
36281 - Implemented Paint (), to do class specific painting.
36283 2004-10-15 07:16 ravindra
36286 - Redraw () is not virtual now.
36287 - Added an internal virtual method Paint (), so that
36288 derived classes can do their painting on their own.
36289 - Modified OnPaint () to call Paint ().
36291 2004-10-15 06:43 jordi
36293 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
36294 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
36296 2004-10-15 00:30 ravindra
36299 - MessageBox on windows does not have min/max buttons.
36300 This change in CreateParams fixes this on Windows. We
36301 still need to implement this windowstyle behavior in
36304 2004-10-14 05:14 ravindra
36307 - Changed Redraw () to do a Refresh () always.
36308 - Fixed the MouseMove event handling when mouse is pressed,
36309 ie drag event handling.
36310 - Replaced the usage of ToolBarButton.Pressed property to
36311 ToolBarButton.pressed internal variable.
36313 2004-10-14 05:10 ravindra
36315 * ToolBarButton.cs:
36316 - Added an internal member 'inside' to handle mouse move
36317 with mouse pressed ie mouse drag event.
36318 - Changed 'Pressed' property to return true only when
36319 'inside' and 'pressed' are both true.
36320 - Some coding style love.
36322 2004-10-14 00:17 ravindra
36324 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
36327 2004-10-14 00:15 ravindra
36329 * ButtonBase.cs: Redraw () related improvements.
36331 2004-10-14 00:14 ravindra
36333 * MessageBox.cs: Moved InitFormSize () out of Paint method and
36334 removed unnecessary calls to Button.Show () method.
36336 2004-10-13 17:50 pbartok
36340 - Removed destroying of window until we solve the problem of X
36341 destroying the window before us on shutdown
36343 2004-10-13 16:32 pbartok
36346 - Now Redraws on MouseUp for FlatStyle Flat and Popup
36348 2004-10-13 14:18 pbartok
36351 - Added code to destroy the X window
36353 2004-10-13 14:18 pbartok
36356 - Added code to destroy a window
36358 2004-10-13 14:12 pbartok
36361 - Added the Redraw on Resize that got dropped in the last rev
36363 2004-10-13 09:06 pbartok
36365 * ThemeWin32Classic.cs:
36366 - Path from John BouAntoun:
36367 * Fix check rendering (centre correctly for normal style, offset
36368 correctly for FlatStyle).
36369 * Fix border color usage (use backcolor) for FlatStyle.Popup
36370 * Use checkbox.Capture instead of checkbox.is_pressed when
36371 rendering flatstyle states.
36373 2004-10-12 21:48 pbartok
36375 * ThemeWin32Classic.cs:
36376 - Removed all occurences of SystemColors and replaced them with the
36377 matching theme color
36379 2004-10-12 21:41 pbartok
36381 * ThemeWin32Classic.cs:
36382 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
36383 him using the function for flatstyle drawing
36384 - Changed functions to use the new version of CPDrawBorder3D
36386 2004-10-12 21:15 pbartok
36389 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
36390 match MS documentation. They need to return defined colors if the
36391 passed color matches the configured control color. Thanks to John
36392 BouAntoun for pointing this out.
36394 2004-10-12 20:57 pbartok
36397 - Fix from John BouAntoun: Raise ForeColorChanged event when text
36400 2004-10-12 20:46 pbartok
36403 - Fix from John BouAntoun: Now properly sets the Appearance property
36405 2004-10-12 20:45 pbartok
36407 * ThemeWin32Classic.cs:
36408 - Fixes from John BouAntoun: now handles forecolors and backcolors
36409 for flatstyle rendered controls much better; It also fixes normal
36410 checkbox rendering when pushed or disabled.
36412 2004-10-08 02:50 jordi
36414 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
36417 2004-10-07 08:56 jordi
36419 * ThemeWin32Classic.cs: Removes deletion of cached brushes
36421 2004-10-06 03:59 jordi
36423 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
36424 XplatUIWin32.cs: removes warnings from compilation
36426 2004-10-05 12:23 jackson
36428 * RadioButton.cs: Fix ctor
36430 2004-10-05 11:10 pbartok
36433 - Partial implementation by Benjamin Dasnois
36435 2004-10-05 10:15 jackson
36437 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
36440 2004-10-05 03:07 ravindra
36443 - Removed a private method, Draw ().
36444 - Fixed the ButtonDropDown event handling.
36445 - Fixed MouseMove event handling.
36447 2004-10-05 03:04 ravindra
36449 * ThemeWin32Classic.cs:
36450 - Added DrawListView method and ListViewDefaultSize property.
36451 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
36452 - Changed DOS style CRLF to Unix format (dos2unix).
36454 2004-10-05 03:03 ravindra
36457 - Added DrawListView method and ListViewDefaultSize property.
36459 2004-10-05 02:42 ravindra
36461 * ToolBarButton.cs: Added an internal member dd_pressed to handle
36462 clicks on DropDown arrow.
36464 2004-10-04 22:56 jackson
36466 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
36467 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
36468 Control handle the buffers, derived classes should not have to
36469 CreateBuffers themselves.
36471 2004-10-04 21:20 jackson
36473 * StatusBar.cs: The control handles resizing the buffers now.
36475 2004-10-04 21:18 jackson
36477 * Control.cs: When resizing the buffers should be invalidated. This
36478 should be handled in Control not in derived classes.
36480 2004-10-04 14:45 jackson
36484 2004-10-04 02:14 pbartok
36486 * LeftRightAlignment.cs:
36489 2004-10-04 01:09 jordi
36491 * ThemeWin32Classic.cs: fixes right button position causing right
36492 button not showing on horizontal scrollbars
36494 2004-10-02 13:12 pbartok
36497 - Simplified the Invalidate method by using an X call instead of
36498 generating the expose ourselves
36499 - Added an expose when the window background is changed
36500 - Implemented ClientToScreen method
36502 2004-10-02 13:08 pbartok
36505 - Added Win32EnableWindow method (test for implementing modal
36507 - Added ClientToScreen method and imports
36509 2004-10-02 13:07 pbartok
36511 * XplatUI.cs, XplatUIDriver.cs:
36512 - Added ClientToScreen coordinate translation method
36514 2004-10-02 13:06 pbartok
36516 * KeyPressEventArgs.cs:
36517 - Fixed access level for constructor
36519 2004-10-02 13:06 pbartok
36522 - Changed access level for the window_collection hash table
36524 2004-10-02 13:05 pbartok
36527 - Added KeyPreview property
36528 - Added Menu property (still incomplete, pending Jordi's menu work)
36529 - Implemented ProcessCmdKey
36530 - Implemented ProcessDialogKey
36531 - Implemented ProcessKeyPreview
36533 2004-10-02 13:02 pbartok
36536 - Added private method to get the Control object from the window
36538 - Implemented ContextMenu property
36539 - Implemented PointToScreen
36540 - Implemented PreProcessMessage
36541 - Implemented IsInputChar
36542 - Implemented IsInputKey
36543 - Implemented ProcessCmdKey
36544 - Completed ProcessKeyEventArgs
36545 - Fixed message loop to call the proper chain of functions on key
36547 - Implemented ProcessDialogChar
36548 - Implemented ProcessDialogKey
36549 - Implemented ProcessKeyMessage
36550 - Implemented ProcessKeyPreview
36551 - Added RaiseDragEvent stub (MS internal method)
36552 - Added RaiseKeyEvent stub (MS internal method)
36553 - Added RaiseMouseEvent stub (MS Internal method)
36554 - Added RaisePaintEvent stub (MS Internal method)
36555 - Added ResetMouseEventArgs stub (MS Internal method)
36556 - Implemented RtlTranslateAlignment
36557 - Implemented RtlTranslateContent
36558 - Implemented RtlTranslateHorizontal
36559 - Implemented RtlTranslateLeftRight
36560 - Added generation of KeyPress event
36562 2004-10-02 05:57 ravindra
36564 * ListViewItem.cs: Added attributes.
36566 2004-10-02 05:32 ravindra
36568 * ListView.cs: Added attributes.
36570 2004-10-01 11:53 jackson
36572 * Form.cs: Implement the Close method so work on MessageBox can
36575 2004-09-30 14:06 pbartok
36580 2004-09-30 11:34 jackson
36582 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
36584 2004-09-30 07:26 ravindra
36586 * ListViewItemConverter.cs: Converter for ListViewItem.
36588 2004-09-30 07:26 ravindra
36590 * SortOrder.cs: Enum for ListView control.
36592 2004-09-30 07:25 ravindra
36594 * ColumnHeader.cs: Supporting class for ListView control.
36596 2004-09-30 07:24 ravindra
36598 * ListView.cs, ListViewItem.cs: Initial implementation.
36600 2004-09-30 07:20 ravindra
36602 * ItemActivation.cs: Enum for ListView Control.
36604 2004-09-29 20:29 pbartok
36607 - Added lookup of pixel value for background color; tries to get a
36608 color 'close' to the requested color, it avoids having to create a
36609 colormap. Depending on the display this could mean the used color
36610 is slightly off the desired color. Might have to change it to a more
36611 resource intensive colormap approach, but it will work as a
36612 workaround to avoid red screens.
36614 2004-09-29 14:27 jackson
36616 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
36618 2004-09-28 12:44 pbartok
36620 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
36621 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
36622 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
36623 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
36624 TrackBar.cs, VScrollBar.cs:
36625 - Streamlined Theme interfaces:
36626 * Each DrawXXX method for a control now is passed the object for
36627 the control to be drawn in order to allow accessing any state the
36628 theme might require
36630 * ControlPaint methods for the theme now have a CP prefix to avoid
36631 name clashes with the Draw methods for controls
36633 * Every control now retrieves it's DefaultSize from the current
36636 2004-09-28 12:17 jackson
36638 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
36641 2004-09-24 14:57 jackson
36643 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
36644 Gives us a nice little performance boost.
36646 2004-09-24 12:02 jackson
36648 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
36649 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
36650 Control and supporting classes. Initial checkin
36652 2004-09-23 13:08 jackson
36654 * Form.cs: Temp build fixage
36656 2004-09-23 01:39 ravindra
36658 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
36659 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
36660 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
36661 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
36662 EventHandlers needed by ListView Control.
36664 2004-09-22 14:12 pbartok
36666 * ScrollableControl.cs:
36667 - Implemented DockPadding property
36668 - Implemented AutoScroll property
36669 - Implemented AutoScrollMargin property
36670 - Implemented AutoScrollMinSize property
36671 - Implemented AutoScrollPosition property
36672 - Implemented DisplayRectangle property (still incomplete)
36673 - Implemented CreateParams property
36674 - Implemented HScroll property
36675 - Implemented VScroll property
36676 - Implemented OnVisibleChanged property
36678 2004-09-22 14:09 pbartok
36681 - Added Form.ControllCollection class
36682 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
36683 RemoveOwnedForm (still incomplete, missing on-top and common
36684 minimize/maximize behaviour)
36685 - Added StartPosition property (still incomplete, does not use when
36687 - Added ShowDialog() methods (still incomplete, missing forcing the
36690 2004-09-22 14:05 pbartok
36693 - Added message loop for modal dialogs
36695 2004-09-22 14:02 pbartok
36698 - Fixed wrong types for events
36700 2004-09-22 14:00 pbartok
36702 * Shortcut.cs, FormWindowState.cs:
36703 - Fixed wrong values
36705 2004-09-22 12:01 jackson
36707 * Control.cs: Text is never null
36709 2004-09-20 22:14 pbartok
36712 - Fixed accessibility level for Idle handler
36714 2004-09-20 18:54 jackson
36716 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36717 XplatUIX11.cs: New message loop that uses poll so we don't get a
36720 2004-09-17 10:43 pbartok
36723 - Fixed behaviour of arrow buttons. Now properly behaves like
36724 Buttons (and like Microsoft's scrollbar arrow buttons)
36726 2004-09-17 10:14 pbartok
36729 - Added missing release of keyboard/mouse capture
36731 2004-09-17 06:18 jordi
36733 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
36734 Theme.cs: Very early menu support
36736 2004-09-16 17:45 pbartok
36739 - Fixed sending a window to the front
36740 - Added overload for SetWindowPos to avoid casting
36742 2004-09-16 17:44 pbartok
36745 - Added SendToBack and BringToFront methods
36747 2004-09-16 07:00 ravindra
36749 * Copyright: Added Novell URL.
36751 2004-09-16 07:00 ravindra
36753 * ToolBar.cs: Invalidate should be done before redrawing.
36755 2004-09-15 21:19 ravindra
36757 * ColumnHeaderStyle.cs: Enum for ListView Control.
36759 2004-09-15 21:18 ravindra
36761 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
36764 2004-09-13 18:26 jackson
36766 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
36769 2004-09-13 18:13 jackson
36771 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
36772 a second thread and post messages into the main threads message
36773 queue. This makes timing much more consistent. Both win2K and XP
36774 have a minimum timer value of 15 milliseconds, so we now do this
36777 2004-09-13 15:18 pbartok
36779 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36781 - Added Z-Ordering methods
36783 2004-09-13 10:56 pbartok
36786 - Fixed #region names
36787 - Moved properties and methods into their proper #regions
36789 2004-09-13 10:51 pbartok
36792 - Added Accept and CancelButton properties
36793 - Added ProcessDialogKey() method
36795 2004-09-13 08:18 pbartok
36797 * IWindowTarget.cs:
36800 2004-09-10 21:50 pbartok
36803 - Added DoDragDrop() [incomplete]
36804 - Properly implemented 'Visible' handling
36805 - Added SetVisibleCore()
36806 - Implemented FindChildAtPoint()
36807 - Implemented GetContainerControl()
36808 - Implemented Hide()
36810 2004-09-10 19:28 pbartok
36813 - Moved methods into their appropriate #regions
36814 - Reordered methods within regions alphabetically
36816 2004-09-10 18:57 pbartok
36818 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36819 - Added method to retrieve text from window
36821 2004-09-10 18:56 pbartok
36824 - Moved some internal functions into the internal region
36825 - Implemented FontHeight
36826 - Implemented RenderRightToLeft
36827 - Implemented ResizeRedraw
36828 - Implemented ShowFocusCues
36829 - Implemented ShowKeyboardCues
36830 - Implemented FromChildHandle
36831 - Implemented FromHandle
36832 - Implemented IsMnemonic
36833 - Implemented ReflectMessage
36834 - All public and protected Static Methods are now complete
36836 2004-09-10 16:54 pbartok
36839 - Implemented remaining missing public instance properties
36840 - Alphabetized some out of order properties
36842 2004-09-10 05:51 ravindra
36844 * PictureBox.cs: Added a check for null image.
36846 2004-09-10 00:59 jordi
36848 * GroupBox.cs: remove cvs tag
36850 2004-09-09 05:25 ravindra
36852 * ToolBar.cs: Make redraw accessible from ToolBarButton.
36854 2004-09-09 05:23 ravindra
36856 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
36859 2004-09-09 02:28 pbartok
36861 * ThemeWin32Classic.cs:
36862 - Improve disabled string look
36864 2004-09-09 01:15 jordi
36866 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
36869 2004-09-08 23:56 ravindra
36871 * ItemBoundsPortion.cs: It's enum, not a class!
36873 2004-09-08 23:47 ravindra
36875 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
36878 2004-09-08 21:13 ravindra
36880 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
36883 2004-09-08 21:03 ravindra
36885 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
36888 2004-09-08 21:01 ravindra
36890 * ScrollableControl.cs: Removed unreachable code.
36892 2004-09-08 06:45 jordi
36894 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
36896 2004-09-08 01:00 jackson
36898 * XplatUIX11.cs: Only run the timers when updating the message
36899 queue. This effectively gives X messages a higher priority then
36900 timer messages. Timers still need love though
36902 2004-09-07 14:01 jackson
36904 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
36905 this for us and the handle is no longer valid.
36907 2004-09-07 13:59 jackson
36909 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
36910 loop that manages to not crash. TODO: Add poll and cleanup timers
36912 2004-09-07 11:12 jordi
36914 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
36916 2004-09-07 03:40 jordi
36918 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
36919 fixes, methods, multiple links
36921 2004-09-06 06:55 jordi
36923 * Control.cs: Caches ClientRectangle rectangle value
36925 2004-09-05 02:03 jordi
36927 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
36930 2004-09-04 11:10 jordi
36932 * Label.cs: Refresh when font changed
36934 2004-09-02 16:24 pbartok
36937 - Added sanity check to creation of double buffer bitmap
36939 2004-09-02 16:24 pbartok
36942 - Fixed selection of text color
36943 - Fixed handling of resize event; now properly recreates double
36945 - Added missing assignment of TextAlignment
36946 - Added proper default for TextAlignment
36948 2004-09-02 14:26 pbartok
36951 - Added missing RadioButton.RadioButtonAccessibleObject class
36953 2004-09-02 14:26 pbartok
36956 - Added missing Control.ControlAccessibleObject class
36957 - Started to implement Select()ion mechanisms, still very incomplete
36959 2004-09-02 14:25 pbartok
36961 * AccessibleObject.cs:
36962 - Added missing methods
36964 2004-09-02 14:23 pbartok
36966 * AccessibleNavigation.cs, AccessibleSelection.cs:
36969 2004-09-02 10:32 jordi
36971 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
36972 pool for pens, brushes, and hatchbruses
36974 2004-09-01 15:30 jackson
36976 * StatusBar.cs: Fix typo
36978 2004-09-01 14:44 pbartok
36983 2004-09-01 14:39 pbartok
36985 * Button.cs, RadioButton.cs:
36986 - Functional initial check-in
36988 2004-09-01 14:01 pbartok
36991 - Added missing default
36992 - Added missing region mark
36994 2004-09-01 09:10 jordi
36996 * Label.cs: fixes method signatures, new methods, events, fixes
36999 2004-09-01 07:19 jordi
37001 * Control.cs: Init string variables with an empty object
37003 2004-09-01 04:20 jordi
37005 * Control.cs: fires OnFontChanged event
37007 2004-08-31 20:07 pbartok
37010 - Enabled display of strings
37012 2004-08-31 20:05 pbartok
37015 - Added (partial) implementation of DialogResult; rest needs to be
37016 implemented when the modal loop code is done
37018 2004-08-31 19:55 pbartok
37021 - Fixed to match the removal of the needs_redraw concept
37023 2004-08-31 19:55 pbartok
37026 - Removed the rather odd split between 'needs redraw' and redrawing
37027 - Now handles the events that require regeneration (ambient
37028 properties and size)
37030 2004-08-31 19:41 pbartok
37033 - Added firing of BackColorChanged event
37034 - Added TopLevelControl property
37035 - Fixed handling of WM_ERASEBKGRND message
37037 2004-08-31 12:49 pbartok
37043 2004-08-31 12:48 pbartok
37046 - Finished (famous last words)
37048 2004-08-31 04:35 jordi
37050 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
37051 scrolling bugs, adds new methods
37053 2004-08-30 14:42 pbartok
37056 - Implemented CheckBox drawing code
37058 2004-08-30 14:42 pbartok
37061 - Made Redraw() and CheckRedraw() virtual
37062 - Improved mouse up/down/move logic to properly track buttons
37064 2004-08-30 09:44 pbartok
37067 - Updated to fix broken build. Not complete yet.
37069 2004-08-30 09:28 pbartok
37074 2004-08-30 09:17 pbartok
37079 2004-08-27 16:12 ravindra
37081 * ToolBarButton.cs: Added TypeConverter attribute.
37083 2004-08-27 16:07 ravindra
37085 * ImageIndexConverter.cs: Implemented.
37087 2004-08-27 14:17 pbartok
37090 - Removed unneeded stack vars
37091 - First attempt to fix sizing issues when layout is suspended
37093 2004-08-25 15:35 jordi
37095 * ScrollBar.cs: more fixes to scrollbar
37097 2004-08-25 14:04 ravindra
37099 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
37100 Added the missing divider code and grip for ToolBar Control.
37102 2004-08-25 13:20 pbartok
37105 - Control now properly passes the ambient background color to child
37108 2004-08-25 13:20 jordi
37110 * ScrollBar.cs: small bug fix regarding bar position
37112 2004-08-25 12:33 pbartok
37115 - Now only calls SetTimer or KillTimer if the enabled state has
37118 2004-08-25 12:33 pbartok
37121 - Fixed timer handling, now seems to work
37122 - Improved error message for window creation
37124 2004-08-25 12:32 pbartok
37127 - Fixed generation of MouseUp message
37129 2004-08-25 12:29 jordi
37131 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
37132 and fixes for progressbar
37134 2004-08-24 18:43 ravindra
37136 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
37137 in ToolBar control.
37139 2004-08-24 17:15 pbartok
37143 - Added missing events
37146 2004-08-24 17:14 pbartok
37148 * StatusBar.cs, PictureBox.cs:
37149 - Now uses Control's CreateParams
37151 2004-08-24 16:36 pbartok
37154 - Fixed background color handling
37155 - Fixed sending of enter/leave events on a grab
37157 2004-08-24 16:35 pbartok
37160 - Refined definitions for CrossingEvent
37162 2004-08-24 12:37 jordi
37164 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37165 formmating, methods signature, and adds missing events
37167 2004-08-24 12:24 jordi
37169 * Control.cs: fire OnEnabledChanged event
37171 2004-08-24 11:17 pbartok
37174 - Implemented SetTimer() and KillTimer()
37176 2004-08-24 11:16 pbartok
37179 - Now uses Remove instead of Add to kill the timer
37181 2004-08-24 10:16 jackson
37183 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37184 picture boxes in the theme now. Draw picture box borders and obey
37187 2004-08-24 05:49 jackson
37189 * Timer.cs: Remove top secret debugging code
37191 2004-08-24 05:34 jackson
37193 * PictureBox.cs: Temp hack to make picture boxes draw their full
37196 2004-08-24 05:29 jackson
37198 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37199 XplatUIX11.cs: Move timers to the driver level. On X they are
37200 queued by the driver and checked on idle.
37202 2004-08-24 01:07 jackson
37204 * XplatUIX11.cs: Use a queue for async messages instead of passing
37205 them as ClientMessages since that was totally broken. Also simply
37206 check for events and return an idle message if none are found. This
37207 gives us an idle handler, and prevents deadlocking when no messages
37210 2004-08-23 18:19 ravindra
37212 * XplatUIWin32.cs: Removed the unwanted destructor.
37214 2004-08-23 17:27 pbartok
37217 - Finishing touches. Works now, just needs some optimizations.
37219 2004-08-23 16:53 jordi
37221 * ScrollBar.cs: small fix
37223 2004-08-23 16:45 pbartok
37226 - Removed debug output
37229 2004-08-23 16:43 jordi
37231 * ScrollBar.cs: [no log message]
37233 2004-08-23 16:10 pbartok
37236 - Fixed handling of WM_CLOSE message
37237 - Removed debug output
37239 2004-08-23 16:09 pbartok
37242 - Added handling of Idle event
37243 - Added handling of form closing
37244 - Fixed reporting of MessageLoop property
37245 - Removed some unneeded code, should provide a bit of a speedup
37247 2004-08-23 15:22 pbartok
37250 - Added InitLayout() method
37251 - Added code to properly perform layout when Anchor or Dock property
37253 - Changed 'interpretation' of ResumeLayout. MS seems to have a
37254 LAMESPEC, tried to do it in a way that makes sense
37256 2004-08-23 14:10 jordi
37258 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
37259 properties and methods
37261 2004-08-23 13:55 pbartok
37264 - Properly fixed Jordi's last fix
37265 - Now uses Cursor's Position property instead of calling XplatUI
37268 2004-08-23 13:44 jordi
37270 * PaintEventHandler.cs: Adding missing attribute
37272 2004-08-23 13:39 pbartok
37275 - Implemented Position property
37277 2004-08-23 13:39 pbartok
37279 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37280 - Added method to move mouse cursor
37282 2004-08-23 13:39 pbartok
37285 - Fixed setting of background color
37286 - Added method to move mouse cursor
37288 2004-08-23 13:16 jordi
37290 * Control.cs: avoids null exception
37292 2004-08-22 17:46 jackson
37294 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
37297 2004-08-22 17:40 jackson
37299 * XplatUIX11.cs: Add some missing locks
37301 2004-08-22 15:10 pbartok
37303 * Control.cs, Form.cs:
37304 - Removed OverlappedWindow style from Control, instead it's default
37306 - Made form windows OverlappedWindow by default
37308 2004-08-22 13:34 jackson
37310 * ScrollBar.cs: Update the position through the Value property so
37311 the OnValueChanged event is raised.
37313 2004-08-22 12:04 pbartok
37316 - Added Cursor.cs and UserControl.cs
37318 2004-08-22 12:03 pbartok
37321 - Started implementation, not usable yet
37323 2004-08-22 12:00 pbartok
37326 - Implemented UserControl (complete)
37328 2004-08-21 19:20 ravindra
37330 * ToolBar.cs: Correcting the formatting mess of VS.NET.
37332 2004-08-21 18:49 ravindra
37334 * ToolBar.cs: Probably this completes the missing attributes in
37337 2004-08-21 18:03 ravindra
37339 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
37340 Fixed toolbar control signatures.
37342 2004-08-21 16:32 pbartok
37347 2004-08-21 16:30 pbartok
37352 2004-08-21 16:19 pbartok
37354 * Control.cs, Label.cs:
37357 2004-08-21 15:57 pbartok
37360 - Added loads of debug output for development
37361 - Fixed typo in method name
37363 2004-08-21 15:52 pbartok
37365 * ToolBarButtonClickEventArgs.cs:
37366 - Added missing base class
37368 2004-08-21 14:53 pbartok
37371 - Updated to match new GrabWindow signature
37373 2004-08-21 14:51 pbartok
37375 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37376 - Added method to get default display size
37378 2004-08-21 14:23 pbartok
37380 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37381 - Added method to query current grab state
37382 - Added argument to allow confining a grab to a window
37384 2004-08-21 14:22 pbartok
37387 - Added [Flags] attribute so that modifiers can be used in bitwise
37390 2004-08-21 14:21 pbartok
37392 * TrackBar.cs, ScrollBar.cs:
37393 - Replaced direct XplatUI calls with their Control counterpart
37395 2004-08-21 13:32 pbartok
37398 - Implemented Created property
37400 2004-08-21 13:28 pbartok
37403 - Implemented ContainsFocus
37405 2004-08-21 13:26 pbartok
37408 - Implemented CausesValidation
37410 2004-08-21 13:21 pbartok
37413 - Implemented CanFocus
37414 - Implemented CanSelect
37415 - Implemented Capture
37417 2004-08-21 12:35 pbartok
37420 - Fixed bug with Async message handling
37421 - Implemented getting the ModifierKeys
37423 2004-08-21 12:32 jackson
37425 * AsyncMethodResult.cs: Make sure we have the mutex before we
37426 release it. Fixes BeginInvoke on windows
37428 2004-08-21 11:31 pbartok
37430 * XplatUIWin32.cs, XplatUIX11.cs:
37431 - Drivers now return proper mouse state
37433 2004-08-21 10:54 jackson
37435 * Control.cs: Implement EndInvoke
37437 2004-08-21 10:48 jackson
37439 * Timer.cs: Remove unneeded finalizer
37441 2004-08-20 19:52 ravindra
37443 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
37444 in mouse event handling in the ToolBar control.
37446 2004-08-20 19:50 ravindra
37448 * ImageList.cs: Changed draw method to use the arguments passed in
37451 2004-08-20 18:58 pbartok
37453 * XplatUIStructs.cs:
37454 - Added private message for async communication
37456 2004-08-20 17:38 ravindra
37458 * Control.cs: Made RightToLeft property virtual and removed a
37461 2004-08-20 14:39 jordi
37463 * ThemeGtk.cs: use style_attach
37465 2004-08-20 14:39 pbartok
37468 - Added jackson's Async code from X11 to Win32
37470 2004-08-20 14:09 pbartok
37473 - Added all new files
37475 2004-08-20 14:09 pbartok
37478 - Added call to set window background color
37480 2004-08-20 14:03 pbartok
37482 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37483 - Added method for setting the window background
37485 2004-08-20 14:02 pbartok
37488 - Added method for setting the background color
37489 - Added handling for erasing the window background
37491 2004-08-20 13:45 jordi
37493 * TrackBar.cs: fixes timer, new properties and methods
37495 2004-08-20 13:34 jackson
37497 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
37500 2004-08-20 13:22 jackson
37502 * Timer.cs: Timer Tick events are now handed through Controls Async
37503 mechanism so the callbacks are executed in the same thread as X
37505 2004-08-20 13:19 jackson
37507 * XplatUIDriver.cs: Expose functionality to send async messages
37510 2004-08-20 13:18 jackson
37512 * Control.cs: Implement Begininvoke
37514 2004-08-20 13:14 jackson
37516 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
37517 messages through the driver
37519 2004-08-20 13:12 jackson
37521 * XplatUIX11.cs: Lock before all X operations. Also added Async
37522 method functionality through XSendEvent
37524 2004-08-20 13:11 jackson
37526 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
37527 This will screw up on 64 bit systems)
37529 2004-08-20 13:10 jackson
37531 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
37532 Async messages through X/Win32
37534 2004-08-19 19:39 pbartok
37537 - Updated code to match new HandleData.DeviceContext type
37539 2004-08-19 19:38 pbartok
37542 - Made DeviceContext a generic object to allow usage from various
37544 - Added support for queueing Windows messages
37546 2004-08-19 19:37 pbartok
37549 - Added generation of MouseEnter, MouseLeave and MouseHover events
37550 - Added cleanup on EndPaint
37552 2004-08-19 19:17 pbartok
37555 - Added handling of WM_MOUSEHOVER
37556 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
37559 2004-08-19 18:55 jordi
37561 * ThemeGtk.cs: fixes button order
37563 2004-08-19 18:12 jordi
37565 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
37567 2004-08-19 17:09 pbartok
37570 - Added Right property
37571 - Added RightToLeft property
37573 2004-08-19 16:27 jordi
37575 * ThemeGtk.cs: experimental GTK theme support
37577 2004-08-19 16:26 jordi
37579 * ITheme.cs, Theme.cs: move themes from an interface to a class
37581 2004-08-19 16:25 jordi
37583 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
37586 2004-08-19 16:04 pbartok
37589 - Added colormap basics
37590 - Added a way to re-initialize with a different display handle
37591 - Fixed setting of the window background color
37592 - Added various X11 imports related to colors and colormaps
37594 2004-08-19 15:51 pbartok
37597 - Removed packing hints (Paolo suggested this a while back)
37598 - fixed colormap type
37599 - Added default Atom types
37600 - Added Screen and color structs and enums
37602 2004-08-19 15:39 pbartok
37605 - Added missing Draw() method
37606 - Added missing RecreateHandle event
37608 2004-08-19 15:30 pbartok
37611 - Added handling of WM_CLOSE
37613 2004-08-18 13:16 jordi
37615 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
37618 2004-08-18 09:56 jordi
37620 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
37622 2004-08-17 15:31 ravindra
37624 * SWF.csproj: Updated project.
37626 2004-08-17 15:25 pbartok
37629 - Drawing improvement; don't call UpdateBounds if we are not visible
37630 (or have been minimized)
37632 2004-08-17 15:24 pbartok
37635 - Finished IsVisible
37636 - Added Win32GetWindowPlacement
37638 2004-08-17 15:08 jackson
37640 * Panel.cs: Initial checkin of the Panel
37642 2004-08-17 14:25 pbartok
37645 - Fixed broken handling of default window sizes
37647 2004-08-17 13:29 jackson
37649 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
37650 has a large startup time.
37652 2004-08-17 10:25 jackson
37654 * HandleData.cs: union areas properly
37656 2004-08-17 10:12 jackson
37658 * HandleData.cs: union areas properly
37660 2004-08-16 20:00 ravindra
37662 * ToolBar.cs, ToolBarButton.cs: Added attributes.
37664 2004-08-16 18:48 ravindra
37666 * ToolBar.cs: Added attributes.
37668 2004-08-16 17:17 ravindra
37670 * SWF.csproj: Updated project.
37672 2004-08-16 17:16 jackson
37674 * XplatUIX11.cs: Check for more expose events before sending a
37675 WM_PAINT so they can all be grouped together. This makes dragging a
37676 window across another window redraw in a sane way.
37678 2004-08-16 15:47 pbartok
37681 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
37682 support OnMouseEnter/Leave()
37683 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
37686 2004-08-16 15:46 pbartok
37688 * XplatUIStructs.cs, XplatUIX11.cs:
37689 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
37690 OnMouseEnter/Leave()
37692 2004-08-16 15:34 jackson
37694 * XplatUIX11.cs: Group multiple expose events in HandleData, make
37695 sure messages get the message field set to WM_NULL if they are not
37698 2004-08-16 15:24 jackson
37700 * HandleData.cs: HandleData is used for storing message information
37703 2004-08-15 17:23 ravindra
37705 * ColorDepth.cs: Added attribute.
37707 2004-08-15 17:23 ravindra
37709 * SWF.csproj: Updated project for ToolBar Control.
37711 2004-08-15 17:20 ravindra
37713 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
37714 control and also dos2unix format.
37716 2004-08-15 17:13 ravindra
37718 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
37719 ToolBarButtonClickEventArgs.cs,
37720 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
37721 ToolBarTextAlign.cs: First Implementation of ToolBar control.
37723 2004-08-15 15:31 pbartok
37726 - First (mostly) working version
37728 2004-08-13 16:15 pbartok
37731 - Fixed Anchor default
37733 2004-08-13 15:43 pbartok
37736 - Changed GetCursorPos signature
37738 2004-08-13 15:42 pbartok
37740 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37741 - Changed signature for GetCursorPos
37743 2004-08-13 15:25 pbartok
37747 - Fixed resizing/exposure handling
37749 2004-08-13 15:22 jordi
37751 * ThemeWin32Classic.cs: removes redundant code and fixes issues
37754 2004-08-13 14:55 jordi
37756 * TrackBar.cs: change from wndproc to events
37758 2004-08-13 13:00 jordi
37760 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37761 XplatUIX11.cs: implements PointToClient (ScreenToClient)
37763 2004-08-13 12:53 pbartok
37766 - Changed GetWindowPos to also provide client area size
37767 - Fixed broken prototypes for several win32 functions
37769 2004-08-13 12:53 pbartok
37771 * XplatUI.cs, XplatUIDriver.cs:
37772 - Changed GetWindowPos to also provide client area size
37774 2004-08-13 12:52 pbartok
37777 - Added generation of WM_POSCHANGED
37778 - Changed GetWindowPos to also provide client area size
37780 2004-08-13 12:52 pbartok
37783 - Added Dispose() and destructor
37784 - Fixed resizing and bounds calculation
37786 - Added memory savings for invisible windows
37788 2004-08-13 12:46 jordi
37790 * TrackBar.cs: adds timer and grap window
37792 2004-08-13 10:25 jackson
37794 * Timer.cs: SWF Timer
37796 2004-08-12 16:59 pbartok
37798 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37799 - Implemented method to get current mouse position
37801 2004-08-12 14:29 jordi
37803 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
37804 enhancement, fix mouse problems, highli thumb, etc
37806 2004-08-12 13:31 pbartok
37809 - Fixed Anchoring bugs
37811 2004-08-12 13:01 jackson
37813 * StatusBar.cs: Don't forget things
37815 2004-08-12 12:54 jackson
37817 * ThemeWin32Classic.cs: Handle owner draw status bars
37819 2004-08-12 12:54 jackson
37821 * StatusBar.cs: Implement missing properties, events, and methods.
37822 Handle mouse clicking
37824 2004-08-12 10:19 jackson
37826 * StatusBarPanelClickEventArgs.cs,
37827 StatusBarPanelClickEventHandler.cs: Classes for handling status
37828 bar panel click events
37830 2004-08-12 10:10 jackson
37832 * Control.cs: Add missing properties
37834 2004-08-12 09:46 pbartok
37836 * BindingsManagerBase.cs:
37837 - Name changed to BindingManagerBase.cs
37839 2004-08-12 09:25 jordi
37841 * ScrollableControl.cs: calls ctrlbase instead of exeception
37843 2004-08-11 16:28 pbartok
37845 * InputLanguageChangingEventArgs.cs:
37846 - Never check in before compiling. Fixes the last check-in
37848 2004-08-11 16:26 pbartok
37850 * InputLanguageChangingEventArgs.cs:
37851 - More signature fixes
37853 2004-08-11 16:20 pbartok
37855 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
37856 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
37857 ImageListStreamer.cs, InputLanguage.cs,
37858 InputLanguageChangedEventArgs.cs,
37859 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
37860 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
37861 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
37862 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37865 2004-08-11 16:16 pbartok
37869 - Added .Net 1.1 method
37871 2004-08-11 15:25 pbartok
37874 - Fixed BindingManagerBase.cs filename
37876 2004-08-11 15:22 pbartok
37878 * BindingManagerBase.cs:
37879 - Was checked in with wrong filename
37881 2004-08-11 14:50 pbartok
37886 2004-08-11 13:41 jordi
37888 * XplatUIWin32.cs: Fixes ClientRect
37890 2004-08-11 13:19 pbartok
37892 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37894 - We had SetWindowPos and MoveWindow to set window positions and
37895 size, removed MoveWindow. We have GetWindowPos, so it made sense to
37896 keep SetWindowPos as matching counterpart
37897 - Added some X11 sanity checking
37899 2004-08-11 12:59 pbartok
37902 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
37903 (It seems that SetBounds is just a front for SetBoundsCore and
37904 SetBoundsCore updates the underlying window system and
37905 UpdateBounds is responsible for updating the variables associated
37906 with the Control and sending the events)
37907 - Major cleanup of Size handling; we now have two sizes, client_size
37908 and bounds. Bounds defines the window with decorations, client_size
37911 2004-08-11 12:55 pbartok
37913 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37914 - Added method to calculate difference between decorated window and
37917 2004-08-11 12:54 pbartok
37920 - Forcing redraw on resize
37922 2004-08-11 11:43 pbartok
37925 - Removed disposing of the actual images when the list is disposed
37927 2004-08-11 09:13 pbartok
37930 - Now properly reparents windows
37932 2004-08-11 08:37 pbartok
37937 2004-08-11 07:47 pbartok
37940 - Rewrote the collection stuff. Might not be as fast now, not
37941 keeping the number of children around and accessible directly, but
37942 it's more straightforward
37944 2004-08-11 07:44 pbartok
37946 * AccessibleObject.cs:
37947 - Fixed to match ControlCollection rewrite
37949 2004-08-11 07:43 pbartok
37952 - Added missing creation of the collection list
37954 2004-08-10 20:08 jackson
37956 * StatusBar.cs: Get the paint message from WndProc
37958 2004-08-10 19:31 jackson
37960 * ThemeWin32Classic.cs: Create Brushes as little as possible
37962 2004-08-10 19:20 jackson
37964 * UICues.cs: Add Flags attribute
37966 2004-08-10 19:19 jackson
37968 * StatusBarPanel.cs: Signature cleanup
37970 2004-08-10 19:10 jackson
37972 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
37973 Initial implementation of status bar item drawing
37975 2004-08-10 17:27 jordi
37977 * TrackBar.cs: add missing methods, properties, and restructure to
37980 2004-08-10 16:24 jackson
37982 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
37983 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
37986 2004-08-10 13:21 jordi
37988 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
37989 enhancements and standarize on win colors defaults
37991 2004-08-10 12:52 jackson
37993 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
37994 ThemeWin32Classic.cs: Implement DrawItem functionality
37996 2004-08-10 12:47 jordi
37998 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
38000 2004-08-10 12:32 jordi
38002 * Control.cs: throw ontextchange event
38004 2004-08-10 11:43 pbartok
38007 - Added more to the still unfinished Dock/Anchor layout code
38009 2004-08-10 11:39 pbartok
38011 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38012 - Added GetWindowPos method
38014 2004-08-10 11:36 pbartok
38017 - Implemented several methods
38019 2004-08-10 09:47 jackson
38021 * TrackBar.cs: Allow control to handle buffering
38023 2004-08-10 09:41 jackson
38025 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
38027 2004-08-10 09:24 jackson
38029 * Label.cs, LinkLabel.cs: Let Control handle buffering.
38031 2004-08-10 09:09 jackson
38033 * StatusBar.cs: Let Control handle all the buffering.
38035 2004-08-10 09:08 jackson
38037 * Control.cs: Control will now handle the buffering code, so each
38038 control does not have to implement this.
38040 2004-08-10 08:34 jackson
38042 * XplatUIDriver.cs: Use default colors from the theme
38044 2004-08-09 17:12 pbartok
38047 - Fixed several bugs Ravindra pointed out
38049 2004-08-09 16:11 pbartok
38052 - Added incomplete dock layout code
38053 - Added support for mouse wheel
38055 2004-08-09 16:09 pbartok
38058 - Added handling for middle and right mousebutton
38059 - Added handling for mouse wheel
38060 - Added handling for key state and mouse state and position
38061 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
38064 2004-08-09 15:40 jackson
38066 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
38067 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
38070 2004-08-09 15:37 jackson
38072 * StatusBar.cs: Initial implementation of StatusBar
38074 2004-08-09 15:36 jackson
38076 * ITheme.cs: Add support for drawing status bar and getting status
38079 2004-08-09 15:35 pbartok
38084 2004-08-09 15:34 jackson
38086 * ThemeWin32Classic.cs: Add support for drawing status bar and get
38087 status bar item sizes
38089 2004-08-09 15:21 jackson
38091 * ThemeWin32Classic.cs: Use known colors for default control
38094 2004-08-09 15:12 jackson
38096 * ThemeWin32Classic.cs: Make the default font static, it is static
38097 in control so this doesn't change functionality and creating fonts
38100 2004-08-09 14:56 pbartok
38103 - Added GrabMode enum
38105 2004-08-09 14:55 pbartok
38107 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38108 - Removed Run method, was only required for initial development
38110 2004-08-09 14:51 pbartok
38112 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38113 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
38116 2004-08-09 13:48 pbartok
38119 - Fixed default sizing for child windows
38121 2004-08-09 12:56 pbartok
38124 - Added generation of WM_DESTROY message
38125 - Added handling of window manager induced shutdown
38127 2004-08-09 11:31 jackson
38129 * ThemeWin32Classic.cs: New names for control properties
38131 2004-08-09 11:25 jackson
38133 * Control.cs: Use new color names
38135 2004-08-09 11:02 jackson
38137 * XplatUI.cs: Get default window properties from the theme
38139 2004-08-09 11:01 jackson
38141 * ITheme.cs: The theme engine now controls default window
38144 2004-08-09 11:00 jackson
38146 * ThemeWin32Classic.cs: Add default window color properties
38148 2004-08-09 10:17 jackson
38150 * ThemeWin32Classic.cs: Use correct default back color
38152 2004-08-09 10:05 jackson
38154 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
38157 2004-08-09 09:56 jackson
38159 * XplatUI.cs: Remove defaults, these are handled by the theme now.
38161 2004-08-09 09:54 jackson
38163 * Control.cs: Get default properties from the theme.
38165 2004-08-09 09:53 jackson
38167 * ITheme.cs: Themes now handle default control properties
38169 2004-08-09 09:53 jackson
38171 * ThemeWin32Classic.cs: Themes now handle default control
38172 properties so coloring will be consistent
38174 2004-08-08 16:54 jordi
38176 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38178 2004-08-08 15:08 jordi
38180 * XplatUIX11.cs: fixes keyboard crash
38182 2004-08-08 13:47 jordi
38184 * Label.cs: add cvs header info
38186 2004-08-08 12:09 jackson
38188 * ThemeWin32Classic.cs: Add pen_buttonface
38190 2004-08-08 11:52 jordi
38192 * Label.cs, LinkLabel.cs: [no log message]
38194 2004-08-08 11:34 jordi
38196 * ThemeWin32Classic.cs: Use Windows Standard Colours
38198 2004-08-07 17:32 jordi
38200 * TrackBar.cs: throw exceptions of invalid enums values
38202 2004-08-07 17:31 jordi
38204 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
38207 2004-08-07 16:56 jackson
38209 * HorizontalAlignment.cs: Initial checkin
38211 2004-08-07 13:16 jordi
38213 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
38216 2004-08-07 13:05 jordi
38218 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
38219 GetSysColor defines
38221 2004-08-06 18:01 pbartok
38223 * ThemeWin32Classic.cs:
38224 - Fixed some rounding issues with float/int
38226 2004-08-06 18:00 jackson
38228 * DockStyle.cs, AnchorStyles.cs:
38230 Add flags and serializable attributes.
38232 2004-08-06 17:46 pbartok
38235 - Implemented GetParent
38237 2004-08-06 17:18 pbartok
38240 - Fixed some rounding issues with float/int
38242 2004-08-06 17:17 pbartok
38244 * X11Structs.cs, XplatUIX11.cs:
38245 - Fixed Refresh and Invalidate
38247 2004-08-06 15:30 pbartok
38249 * Control.cs, X11Structs.cs, XplatUIX11.cs:
38250 - Fixed recursive loop when resizing
38251 - Improved/fixed redrawing on expose messages
38253 2004-08-06 09:53 jordi
38255 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
38256 keyboard navigation
38258 2004-08-06 08:02 pbartok
38260 * X11Structs.cs, XplatUIX11.cs:
38261 - Fixed reparenting
38262 - Fixed window border creation
38264 2004-08-05 15:38 pbartok
38267 - Attempted fix for reparenting problems
38269 2004-08-04 15:14 pbartok
38272 - Fixed Invalidation bug (calculated wrong client area)
38273 - Added ClientSize setter
38275 2004-08-04 15:13 pbartok
38278 - Added AutoScale properties
38280 2004-08-04 15:13 pbartok
38283 - Added latest files
38285 2004-08-04 14:11 pbartok
38287 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38289 - Added Invalidate handling
38291 2004-08-03 17:09 jordi
38293 * XplatUIDriver.cs: fixes spelling mistake
38295 2004-07-27 09:53 jordi
38297 * TrackBar.cs: fixes trackbar events, def classname, methods
38300 2004-07-27 09:29 jordi
38302 * ScrollBar.cs: fixes scrollbar events
38304 2004-07-27 04:38 jordi
38306 * Control.cs: changes to be able to run winforms samples
38308 2004-07-26 11:42 jordi
38310 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
38311 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
38313 2004-07-26 05:41 jordi
38315 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
38316 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
38319 2004-07-22 09:22 jordi
38321 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
38322 check link overlapping, implement events, and fixes
38324 2004-07-21 10:28 jordi
38326 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
38328 2004-07-21 10:19 jordi
38330 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
38331 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
38332 LinkLabelLinkClickedEventArgs.cs,
38333 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
38334 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
38337 2004-07-19 13:09 jordi
38339 * Control.cs, Label.cs: label control re-written: added missing
38340 functionlity, events, and properties
38342 2004-07-19 10:49 jordi
38344 * Control.cs: fixes SetBounds logic
38346 2004-07-19 01:29 jordi
38348 * Control.cs: Call RefreshWindow only if the window has created
38350 2004-07-15 14:05 pbartok
38352 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
38353 - Implemented ImageList and ImageList.ImageCollection classes
38354 - Added ColorDepth enumeration
38355 - Updated SWF VS.Net project
38357 2004-07-15 11:06 jordi
38359 * XplatUIStructs.cs: added MsgButons enum
38361 2004-07-15 11:03 jordi
38363 * Control.cs: added basic mouse handeling events
38365 2004-07-15 03:38 jordi
38367 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
38368 Vertical TrackBar control implementation
38370 2004-07-13 09:33 jordi
38372 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
38374 2004-07-13 09:31 jordi
38376 * Control.cs, Form.cs: commit: new properties and fixes form size
38379 2004-07-09 14:13 miguel
38381 * ProgressBar.cs: Spelling
38383 2004-07-09 11:25 pbartok
38386 - Removed usage of Rectangle for drawing. Miguel pointed out it's
38389 2004-07-09 11:17 miguel
38391 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
38393 * ProgressBar.cs: Fixed spelling for `block'
38395 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
38398 Avoid using the += on rect.X, that exposed a bug in the compiler.
38400 2004-07-08 23:21 pbartok
38402 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
38403 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
38404 BaseCollection.cs, Binding.cs, BindingContext.cs,
38405 BindingMemberInfo.cs, BindingsCollection.cs,
38406 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
38407 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
38408 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
38409 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
38410 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
38411 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
38412 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
38413 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
38414 FrameStyle.cs, GiveFeedbackEventArgs.cs,
38415 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
38416 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
38417 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
38418 InputLanguageChangedEventArgs.cs,
38419 InputLanguageChangedEventHandler.cs,
38420 InputLanguageChangingEventArgs.cs,
38421 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
38422 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
38423 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
38424 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
38425 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
38426 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
38427 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
38428 QueryAccessibilityHelpEventArgs.cs,
38429 QueryAccessibilityHelpEventHandler.cs,
38430 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
38431 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
38432 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
38433 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
38434 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
38435 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
38436 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
38437 XplatUIX11.cs, lang.cs: