1 2008-04-18 Andreia Gaita <avidigal@novell.com>
3 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
4 CreateWebBrowserSiteBase implementations
5 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
6 Style and TabIndex setters
8 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10 * ListViewGroup.cs: When returning the actual item count, return the
11 proper count for default group.
14 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17 * ListViewGroup.cs: When calculating groups layout, get the actual
18 number of items per group, since groups added to the group BUT not
19 added to the ListView are just ignored, and can cause some nasty
20 exceptions because of the lack of synchronization. Also for
21 ListViewGroup don't use lazy initialization for items, since we
22 the common scenario is to use it always - and it helps us to refactor
23 and clean the .ctor overloads.
25 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
27 * ListView.cs: When adding an item to a ListViewItemCollection
28 belonging to a group (ListViewGroup.Items), don't generate a redraw if
29 the added item hasn't beeen previously added to the ListView instance
30 refered by the group, since it will be ignored. This should avoid some
31 really nasty flickering.
33 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
35 * ListView.cs: When accessing an item in a specific display
36 position, use the helper method GetItemAtDisplayIndex, instead of
37 direct access to the reordered_items_indices array. When doing layout
38 for groups set the correct Items index for the display position (since
39 in groups mode items don't have the same position as in Items
41 * ListViewGroup.cs: Add a field to store the starting item number,
42 which is later used when calculating the layout.
46 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
48 * Application.cs: Fixed ProductVersion to fallback to the assembly
49 version. Fixes regression for bug #325413.
51 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
53 * ListView.cs: New helper method to retrieve an item in a _specific
54 display_ position (the items can be displayed in a different order
55 than one of Items collection).
56 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
57 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
58 specific display position (again remember that items can be sorted
59 different than Items).
61 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
63 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
64 list and update it when the collection changes. We were recreating
65 this several times per row paint and for every pixel the mouse moved
67 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
70 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
72 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
74 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
75 and remove unneccessay casts.
77 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
79 * DataGridViewBand.cs: Add internal way to set displayed variable.
80 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
81 * DataGridView.cs: Make sure we always keep track of Displayed
82 rows and columns, and only draw things that are displayed.
84 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
86 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
87 whether the key events are filtered or not. Introduced
88 PreFilter() process for this purpose. This fixes atokx3/iiimx
91 2008-04-16 Andreia Gaita <avidigal@novell.com>
93 * HtmlHistory.cs: Implement Length property
95 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
97 * DataGridView.cs: Call EndEdit when a sort is performed so we take
98 away the edit textbox. Refactor to reuse column sort code.
100 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
102 * MenuAPI.cs: Remove the code that save and restore capture status of
103 grab_control, this fixes some Menu and Context menu bugs but maybe it can
104 cause some others, I cant figure the possible problems of this patch but
105 right now remove the code looks to be better than keep it. This patch fixes
106 bugs #357638, #378721 and #379570.
108 2008-04-12 Andreia Gaita <avidigal@novell.com>
110 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
111 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
112 add missing properties and event handlers.
114 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
116 * ListBox.cs: Make sure the LargeChange we are setting is at least
117 zero, to prevent an IOORE. [Fixes bug #379531]
119 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
121 * ComboBox.cs: Support item navigation by entering text. Firstly,
122 in DropDownList mode, for each key-press select the next item
123 starting with that letter.
124 For other modes, when no item selected, on arrow-up/-down and open
125 drop-down select the first item matching the text in the textbox.
127 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
129 * X11Keyboard.cs : Control.FromHandle() could return null
130 in MoveCurrentCaretPos().
132 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
134 * ListView.cs: When changing the size in VirtualMode, also Reset the
136 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
137 changing selection info for VirtualMode.
140 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
142 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
143 view, don't use LineLimit for the first item - use NoWrap *always*
144 instead, since ListView.LabelWrap is not used for this view.
147 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
149 * Binding.cs: Call UpdateIsBinding when setting control - probably
150 Binding is already usable and we don't need to wait to check the
151 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
152 Created, just like 2.0 does.
153 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
155 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
157 * Binding.cs: Just realized we don't need to have a handler for
158 BindingContextChanged, since this info should be now consumed directly
159 in the BindingManagerBase. And also, the manager.IsBindingSuspended
160 state info is checked directly, instead of caching it.
162 * CurrencyManager.cs: IsSuspended should return always false if Count
165 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
167 * Binding.cs: When calling PushData, return if manager.Count == 0,
168 since we just don't have data to be read. Also, when setting the
169 Control for binding, hook up some events to refresh the IsBinding
170 state when BindingContext change or control gets created; use
171 Control.IsHandleCreated instead of Control.Created check to set
172 IsBinding state - we *actually* need to modify IsBinding when control
173 is created, but we don't have any Created event, only HandleCreated.
174 Fixes part of #349364.
176 2008-04-11 Geoff Norton <gnorton@novell.com>
178 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
179 warping a null Caret.
181 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
183 * DataGridView.cs: Implement row/column autosizing methods. Implement
185 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
186 * DataGridViewRowCollection.cs: Add an internal sorting method.
188 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
190 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
191 value in ListView drawing code.
193 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
195 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
196 is clicked. Respect the user setting Cancel in FileOk.
198 2008-04-11 Geoff Norton <gnorton@novell.com>
200 * ListView.cs: Avoid setting and resetting control Width/Heights and
201 calculate the final value and set it once. Prevents a feedback loop
204 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
206 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
209 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
211 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
212 Add some on-the-spot code, but it seems we don't need it.
214 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
216 * Form.cs: Add method for DataGridView to trigger focus cues
217 even when it handles the tab keypress.
219 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
221 * DataGridView.cs: More keyboard handling, tab, esc.
222 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
223 when at the beginning or end of the text in the text box.
225 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
227 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
229 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
231 * DataGridView.cs: Some fixups for showing and adding the edit control.
232 * DataGridViewButtonColumn.cs: Implement ToString.
233 * DataGridViewCell.cs: Size and position the control simultaneously.
234 * DataGridViewTextBoxCell.cs: Use base to position control.
236 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
238 * DataGridViewCell.cs: Fix up some formatting and painting code.
239 * DataGridViewImageCell.cs: Implement some NIEX methods.
241 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
243 * ToolStripItemCollection.cs: What moving an item from one owner
244 to another, remove from source owner before adding to destination.
247 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
249 * PictureBox.cs: Call Load when ImageLocation is set.
252 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
254 * X11Keyboard.cs, XplatUIX11.cs :
255 Implement over-the-spot mode (with some odd offsets).
256 - set preedit position when caret is set.
257 - Wrap XMoveResizeWindow() to move preedit position.
259 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
261 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
264 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
266 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
267 and ScanTableIndex public, it fix compilations errors when compiling
268 WinForms to generate keyboard layout resources.
270 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
272 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
273 different element count than scan table. It prevents some errors in non
276 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
278 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
280 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
282 * DataGridView.cs: Call OnContentClick.
283 * DataGridViewCell.cs: Do a null check on ValueType instead
285 * DataGridViewCheckBoxCell.cs: Implement.
287 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
289 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
291 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
293 * X11Keyboard.cs : Check XGetIMValues() return value in
294 case it does not return input styles in some environment.
296 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
298 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
300 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
302 * BindingContext.cs: Stub UpdateBinding method.
304 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
306 * X11Structs.cs : added couple of structs for XIM support.
308 Release XIM in case it failed to create XIC.
309 Use consts for XNblah string.
310 Add support for IM style customization and XIC creation
311 for preedit-position and preedit-callback.
312 Right now use MONO_WINFORMS_XIM_STYLE environment variable
313 (list of: over-the-spot | on-the-spot | root). Only root
316 (redoing r99172 with fix.)
318 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
320 * TreeView.cs: Center the checkbox a little better.
322 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
324 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
325 Apply very nice patch from Ernesto Carrea that simplifies our
326 scrollbar drawing. [From bug #376146]
328 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
330 * TreeView.cs: Correct the location of the root node checkbox when
331 ShowRootLines = false. Don't draw the root lines for the root node
332 when ShowRootLines = false. [Fixes bug #377535]
334 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
336 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
338 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
340 * MaskedTextBox.cs: Added missing attribute. Code formatting.
341 * PageSetupDialog.cs: Added missing attribute. Code formatting.
342 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
343 * ImeMode.cs: Added missing field.
344 * HtmlWindow.cs: Code formatting. Fixed line endings.
345 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
347 * HtmlHistory.cs: Code formatting. Fixed line endings.
348 * HtmlDocument.cs: Code formatting. Fixed line endings.
349 * ToolStripPanel.cs: Added missing IList implementation.
350 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
352 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
354 * BindingContext.cs: Changed argument names to fix corcompare errors.
355 * DataGridView.cs: Removed extra explicit interface implementation
356 of IDropTarget. Code formatting.
357 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
358 * ComboBox.cs: Changed argument names to fix corcompare errors.
359 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
361 * GridColumnStylesCollection.cs: Changed argument names to fix
362 corcompare errors. Removed extra tabs.
363 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
365 * Control.cs: Changed argument names to fix corcompare errors. Code
366 formatting. Removed extra explicit IList implementation.
367 * TextBox.cs: Changed argument names to fix corcompare errors. Code
368 formatting. Use string.Empty instead of "".
369 * GridItemCollection.cs: Changed argument names to fix corcompare
370 errors. Code formatting.
371 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
372 corcompare errors. Code formatting.
373 * ImageList.cs: Changed argument names to fix corcompare errors.
374 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
375 * DataGridViewRowCollection.cs: Changed argument names to fix
376 corcompare errors. Code formatting.
377 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
378 * DataGridViewSelectedCellCollection.cs: Changed argument names to
379 fix corcompare errors. Code formatting.
380 * DataGridViewComboBoxCell.cs: Changed argument names to fix
381 corcompare errors. Code formatting.
382 * LinkLabel.cs: Changed argument names to fix corcompare errors.
383 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
385 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
387 * BindingSource.cs: Changed argument names to fix corcompare errors.
388 Removed extra explicit interface implementations.
389 * DataGridViewSelectedRowCollection.cs: Changed argument names to
390 fix corcompare errors. Code formatting.
391 * ToolStripItemCollection.cs: Removed extra explicit interface
392 implementation of IList.ReadOnly.
393 * DataGridViewColumnCollection.cs: Changed argument names to fix
394 corcompare errors. Code formatting.
395 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
396 * ListView.cs: Changed argument names to fix corcompare errors.
397 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
399 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
401 * ListBindingHelper.cs: Changed argument names to fix corcompare
403 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
404 fix corcompare errors. Code formatting.
405 * ToolStripPanel.cs: Removed extra explicit implementation of
406 IDropTarget interface.
407 * ListBox.cs: Changed argument names to fix corcompare errors. Code
408 formatting. Removed extra tabs and spaces.
409 * DataGridViewCellCollection.cs: Changed argument names to fix
411 * Help.cs: Changed argument names to fix corcompare errors. Code
413 * TabControl.cs: Changed argument names to fix corcompare errors.
414 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
416 * TableLayoutSettings.cs: Changed argument names to fix corcompare
419 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
421 * ListBindingHelper.cs: When returning properties, only return those
422 that are browsable. Also, don't do a linear search of the properties,
423 but use the indexer of the PropertyDescriptorCollection class.
425 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
427 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
428 Dictionary containing the related (child) currency managers. Also,
429 when setting DataSource, add datasource to our List if it is not a list.
431 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
433 * PropertyGridTextBox.cs: Fix background color of the buttons.
434 * PropertyGridView.cs: Make the entry less jumpy.
436 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
438 * PropertyGrid.cs: Fix unused variable warnings.
440 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
442 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
443 double-click. It expanded it once in the mouse down and then
444 again in the double-click handler.
446 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
448 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
449 TypeConverter and UITypeEditors.
451 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
453 * Control.cs: Visibility should be set synchronously,
454 so we must also redraw once it is and not rely on layouting or
455 other code to repaint.
458 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
460 * DataGridViewCell.cs: Respect DataGridView.GridColor.
462 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
464 * Control.cs: Invalidate when the alpha channel is less than 255,
465 not only when control is transparent.
467 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
469 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
470 Implement some painting convenience methods that threw NIEX.
472 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
474 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
475 * DataGridViewLinkCell.cs: Implement.
477 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
479 * GridEntry.cs: Report the conversion exception error description.
482 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
484 * PropertyGridView.cs: Do not scroll to item on resize.
487 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
489 * BindingContext.cs: When retrieving a BindingManagerBase, if the
490 dataSource parameter is ICurrencyManagerProvider, then return
491 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
492 instead of creating a new one.
494 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
496 * BindingSource.cs: Implement support for Type instances as
499 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
501 * DataGridView.cs: Minor cleanups and call CellMouseUp.
502 * DataGridViewCell.cs: Make some painting routines internally virtual.
503 * DataGridViewButtonCell.cs: Implement.
505 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
507 * Control.cs: We always need to invalidate our children with
508 transparent backgrounds when we are invalidated.
511 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
513 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
514 and CancelCurrentEdit on CurrencyManager respectively. Implement
515 support for ICancelAddNew too.
517 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
519 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
520 call EndNew/CancelNew if list is ICancelAddNew.
522 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
524 * DataGridView.cs: Guard against an exception while painting
525 if there are no rows.
527 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
529 * DataGridView.cs: Implement a bunch of keyboard commands.
531 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
533 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
534 isn't set, don't call OnPaint. [Fixes bug #375300]
536 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
538 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
539 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
540 hookup the remaining events related to CurrencyManager, and fire
541 OnListChanged also for the Clear () method.
543 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
545 * BindingSource.cs: Use Current and Position implementations in
546 CurrencyManager instead of using our own routines, since we need
547 to be in synch with it. Count should NEVER return a -1 value, and
548 also report ListChanged events for both simple IList data
549 sources (manually) as well for IBindingList ones (by hooking up an
550 event handler for it).
552 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
554 * BindingSource.cs: Make one .ctor call the another, to avoid
555 duplicate code. Add the CurrencyManager property, and also for AddNew
556 throw the proper exceptions and show better error messages.
558 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
560 * ComboBox.cs: Only adjust selectedindex if Handle has been
561 created. Fixes failing test.
563 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
565 * ComboBox.cs: Adjust selectedindex if we insert a new item
566 above the current selectedindex in a sorted ComboBox.
569 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
571 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
574 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
576 * DataGridViewTextBoxCell.cs: Implement stuffs.
578 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
580 * TreeView.cs: Create the scrollbars even earlier to be
581 double dog certain they are created before they are accessed.
583 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
585 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
587 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
589 * ScrollBar.cs: Create an internal safe Value setter so we
590 won't crash if we try to set a value outside the min and max.
591 * TextBoxBase.cs: Use safe value setter to guard against a
592 potential NRE that is being reported by Reflector.
594 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
596 * TreeView.cs: Create the scrollbars earlier in the constructor
597 to attempt to guard against an NRE in SetTop in Reflector.
599 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
601 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
602 DataGridViewRowCollection.cs: Do not scroll column and row headers,
603 show messagebox on data format error, use column display index
604 correctly, make sure HitTest supports new layout stuff,
605 make sure scrollbars support new layout stuff.
607 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
609 * XplatUIX11.cs : Patch by Doug Rintoul.
610 For some IM engines, keypress events need to delay call
611 to XPending() and XNextEvent() in the loop so that it
612 does not mess the orders in XIM commit callback.
613 Some KeyRelease events such as shift keys need to be
614 processed both in the IM engine and winforms driver
615 itself since winforms holds its own state check.
617 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
619 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
621 * X11Keyboard.cs, XplatUIX11.cs :
622 add primitive support for XIM input support (preedit-
623 nothing and status-nothing). It requires precise event
624 capturing (XSelectInput/"filterEvents") and different
625 call to XFilterEvent against root window.
626 Get composed string and send dummy WM_IME_COMPOSITION.
627 Free XIM and XIC instances in finalizer.
629 (This first patch does not include suggested changes
630 by Doug Rintoul. It will follow.)
632 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
634 * DataGridView.cs: When binding to a property, if the property
635 doesn't have a setter, set the column to readonly.
638 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
640 * ComboBox.cs: Guard against NRE if an arrow key is hit while
641 we aren't dropped down. Support Home/End in DropDownList mode.
644 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
646 * TreeNodeCollection.cs: Don't increment count until we've
647 saved our index to return.
650 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
652 * Label.cs: Add padding to the label's AutoSize calculation.
655 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
657 * ListBindingHelper.cs: Actually implement GetListName method.
659 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
661 * BindingSource.cs: Throw the propert expceptions for some methods, as
662 well as detect the list item type for Add method if DataSource is null.
664 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
666 * DataGridViewCell.cs: I don't know why I commented this out,
667 putting it back for now.
669 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
671 * DataGridViewCell.cs: Remove storage for owning column, just
673 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
674 * DataGridViewColumnHeaderCell.cs: If the header text has been
675 explicitly set, return it.
678 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
680 * DataGridViewRowCollection.cs: Disable row sharing when
681 using data binding. Its a great feature, but lets work on
682 getting DGV usable first before we worry about optimizations.
684 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
686 * BindingSource.cs: When resetting our internal list, compute list
687 item type information to be used for indirect list access. Also
688 implement/tune some properties and methods related to the list access
690 * ListBindingHelper.cs: Add a stub for GetListName method, used from
693 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
695 * DataGridView.cs: If RowCount is increased while ColumnCount
696 is zero, add a column. [Fixes bug #331649]
698 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
700 * DataGridViewRowCollection.cs: When adding new rows for
701 databinding, make sure they are place before the add row.
704 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
706 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
707 instead of Index order.
709 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
711 * DataGridView.cs: If columns are added by increasing ColumnCount,
712 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
715 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
717 * DataGridView.cs: Turn off and on the "new row" when
718 AllowUserToAddRows is toggled. When the handle is created,
719 set current cell and selected cell/row/col.
721 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
723 * ComboBox.cs: When navigating the drop down by keyboard, we
724 need to scroll the list box if our selection moves out of the
725 currently shown items. [Fixes bug #371990]
727 2008-03-24 Luke Page <luke.a.page@gmail.com>
729 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
730 on the control. Also now handles unicode compatibility characters and
731 stores the unicode compatibility length on the stack. Fixes Bugs
734 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
736 * BindingSource..cs: Take into account DataMember when re-creating the
737 List property, and also create a specific kind of list as needed.
739 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
741 * ListBindingHelper.cs: Add a new case for GetList () method - when we
742 get an empty IEnumerable, try to detect whether the datamember is
743 valid or not for that type, if true, return null, and throw exception
746 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
748 * ComboBox.cs: Alt-Down should drop down the list, Esc should
749 retract it. [Fixes bug #371989]
751 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
753 * PropertyGrid.cs: Initialize the sorting button as pushed.
755 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
758 - Visually select the PropertyTab.
759 - Filter Properties by Attributes properly.
761 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
763 * MenuItem.cs: Remove menu item from parent when disposed.
766 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
768 * ToolBar.cs: Don't reset layout_type if Dock = None.
770 2008-03-21 Andreia Gaita <avidigal@novell.com>
772 * UserControl.cs: Select the first available control when we get focus.
775 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
777 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
778 the content if we are in edit mode. [Fixes bug #343964]
780 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
782 * DataGridViewCell.cs: Fix border painting for column headers.
784 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
786 * BindingSource.cs: When setting or resetting data source,
787 use ListBindingHelper.GetList () method, since it will get the list in
788 case datasource is IListSource.
790 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
792 * DataGridViewCell.cs: Implement lots more stuffs.
794 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
796 * PropertyGridView.cs, GridEntry.cs: Implement support for
797 UITypeEditor.IsDropDownResizable.
799 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
801 * DataGridViewCell.cs: Remove unused variables, improve how
802 several of the property getters work.
803 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
804 get its size from the parent row/col.
806 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
808 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
809 user alters manually the PropertyTabs collection via the
810 PropertyTabs property.
812 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
814 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
815 new tests for them to be sure to be compatible with .net.
817 2008-03-20 Andreia Gaita <avidigal@novell.com>
819 * WebBrowserBase.cs: Fix attributes, add events
820 * WebBrowser.cs: Fix Padding signature
822 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
824 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
826 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
828 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
829 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
830 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
831 passes the new suite of tests for it.
833 2008-03-18 Andreia Gaita <avidigal@novell.com>
835 * WebBrowser.cs: Add missing attributes, missing Padding and
836 DefaultSize properties, remove extraneous getters
838 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
840 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
843 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
845 * ComboBox.cs: Move resetting the selected index to keypress
846 instead of textchanged. Changing the text programmatically
847 should not trigger resetting the selected index. Fixes test.
849 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
851 * ComboBox.cs: When the user types into the textbox, reset
852 the selected index to -1. [Fixes bug #371672]
854 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
856 * FileDialog.cs: Support Control-A for selecting everything
857 in an OpenFileDialog. [Fixes bug #371564]
859 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
861 * DataGridView.cs: When row/column visible/height properties
862 change, invalidate. Take the NIEX out of InvalidateRow/Column
863 etc. We don't support them yet, but we can just invalidate
864 everything until we do support them. (Added MonoTODO). Set
865 proper control styles.
866 * DataGridViewRow.cs: Don't call PaintHeader if row headers
869 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
871 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
873 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
875 * DataGridViewRow.cs: Only paint the white background in
876 cell bounds, the row bounds extends past the cells if the
877 grid width isn't as wide as the DGV.
879 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
881 * DataGridView*: Completely revamp the drawing to match the
882 public API. Our grids now look better, and call all the
883 appropriate methods and event to allow users to override
884 the painting and do their own.
886 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
888 * ListBindingHelper.cs: Implement 2.0 GetList methods.
890 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
892 * DataGridView.cs: Implement BorderStyle.
894 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
896 * FileDialog.cs: Apply patch from Andy Hume: Any time we
897 are comparing attributes, make sure we only look at the
898 one we are interested. These calls were failing if there
899 were more than one attribute.
902 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
904 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
906 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
908 * PageSetupDialog.cs: Stub EnableMetric.
909 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
910 * PrintPreviewDialog.cs: Add ProcessDialogKey,
913 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
915 * MonthCalendar.cs: Remove unused variable.
917 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
919 * DataGridView*.cs: corcompare stuffs.
921 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
923 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
924 The savings aren't worth the extra code to fix the optimization.
927 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
929 * ToolBar.cs: Always call base.Dock in the Dock override so that
930 Control's layout_type gets reset correctly.
933 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
935 * X11Dnd.cs: End DnD operation also for the middle mouse button.
937 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
939 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
940 at the same time we do explicit ones, because we have to give all
941 other controls on the container a chance to handle explicit ones
942 first. If no one has an explicit mnemonic, then we can let the
943 MenuStrip have a shot at implicit mnemonics.
944 * MenuStrip.cs: Create an implicit mnemonic function.
945 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
946 mnemonics for MenuStrips.
949 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
951 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
952 DataGridColumnStyle.cs: corcompare stuffs.
954 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
956 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
957 Details - This is needed after we added the bits to use any available
958 column also for List and SmallIcon view.
960 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
962 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
963 at the proper place, not only when changing SelectedIndex and changing
964 the selection using keys/mouse, as .net does.
966 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
968 * ControlBindingsCollection.cs: Implement last 2.0
969 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
970 in the new 2.0 Add methods.
972 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
974 * ListBox.cs: When calling SelectedIndexCollection.Clear,
975 return if no items are previously selected - this is done to avoid
976 firing OnSelectedIndexChanged without need to do so. Also,
977 when creating handle ensure that the focused item is visible (as
980 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
982 * ListBox.cs: Rewrote/refactored most of selection code. We require
983 the following things in selection: a) keep selection sorted (both
984 indices and items), b) SelectedIndices automatically detect the
985 selection mode, c) SelectedIndex should be the first selected item
986 index, d) Need to Focus/adjust scroll bar when selecting a new item,
987 not only for SelectedIndex, which is specially important in Multi*
988 selection modes. To achieve this we are moving the selection core to
989 SelectedIndexCollection and make depend all selection modifications on
993 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
995 * ToolStrip.cs: Enable implicit mnemonics for drop down
996 menu strips. [Fixes part of bug #367692]
998 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1000 corcompare - fix parameter names [stragglers].
1001 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
1002 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
1005 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1007 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
1008 was a mnemonic pressed as well as Alt. Also, if nothing handles a
1009 mnemonic, let the ToolStripManager have it even if it doesn't
1010 have a matching mnemonic.
1013 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1015 corcompare - fix warning about implicit implementation
1016 * ToolStrip.cs: Add IToolStripData interface.
1017 * IToolStripData.cs: Add.
1019 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1021 corcompare - fix warning about implicit implementation
1022 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
1025 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
1027 corcompare - fix parameter names [N-Z].
1028 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
1029 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
1030 PropertyManager.cs, RichTextBox.cs,
1031 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
1032 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
1033 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
1034 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
1035 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
1036 ToolStripContentPanel.cs, ToolStripDropDown.cs,
1037 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
1038 ToolStripPanel.cs, ToolStripSeparator.cs,
1039 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
1040 UICuesEventHandler.cs, UpDownBase.cs.
1042 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
1044 corcompare - fix parameter names [G-M].
1045 GridColumnStylesCollection.cs, GridItemCollection.cs,
1046 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
1047 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
1048 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
1049 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
1050 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
1052 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
1054 corcompare - fix parameter names [A-F].
1055 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
1056 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
1057 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
1058 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
1059 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
1060 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
1061 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
1063 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
1065 * GridEntry.cs: Do not convert not only if the types match,
1066 but also if the property type is assigneable from the value's
1070 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
1072 * PropertyGridView.cs:
1073 - Subscribe to the listbox only once and not everytime.
1074 - Update the textbox even if SetValue fails.
1075 - Close the listbox before calling TrySetValue just in case.
1078 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
1080 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
1082 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1084 * ListView.cs: Implement support for custom column width based on
1085 Columns collection (we were previously using this collection only
1089 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1091 * ListViewItem.cs: For Tile view, always set bounds for the first
1092 subitem (which is the main one), and also don't let Width be larger
1093 than ListView.TileSize.Width. Improve code readibility also.
1094 * ThemeWin32Classic.cs: When painting the ListViewItem instances
1095 in Tile view, _always_ use the NoWrap flag.
1098 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
1100 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
1102 * GridEntry.cs: For MS compitability make all child properties
1103 readonly if the parent is readonly. Ugh.
1104 [Fixes bug #365945 and #365944]
1106 2008-02-29 Andreia Gaita <avidigal@novell.com>
1108 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
1109 relative to the history
1111 2008-02-29 Andreia Gaita <avidigal@novell.com>
1113 * HtmlElement.cs: More handlers for mouse and key events
1115 2008-02-28 Andreia Gaita <avidigal@novell.com>
1117 * WebBrowserBase.cs: MouseClick sig changed.
1118 * HtmlHistory.cs: Implement history navigation
1119 * HtmlElement.cs: Add event handlers, and connect them.
1121 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
1124 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
1125 so that DisplayNameAttribute doesn't get ignored.
1126 - Check for ParenthesizeNameAttribute and parenthesize the Label.
1127 - Add support for PasswordPropertyTextAttribute
1128 * PropertyGridView.cs: Check if an entry is a password.
1129 [Fixes bugs #365589, #365586, #365588]
1131 2008-02-28 Andreia Gaita <avidigal@novell.com>
1133 * PropertyGridView.cs: Revert the message filtering change, as we
1134 need it to block after all. Remove block parameter, unnecessary.
1136 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
1138 * UserControl.cs: Better implementation of GetPreferredSize.
1139 First step to fixing bug #361441.
1141 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1143 * Binding.cs: Actually implement data binding support for
1144 classes implementing IBindableComponent.
1145 * ControlBindingsCollection.cs: Likewise.
1147 2008-02-26 Andreia Gaita <avidigal@novell.com>
1149 * PropertyGridView.cs: Use a message filter to check when to
1152 2008-02-26 Andreia Gaita <avidigal@novell.com>
1154 * Application.cs: Change the message_filters loop so a filter
1155 can be removed while looping.
1157 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
1159 * GridEntry.cs: Optimization in ToggleValue so that it caches
1161 * PropertyGridView.cs: An optimization so that the property isn't
1162 re-read twice for each StandardValue added to the drop-down menu.
1163 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
1167 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
1169 * Application.cs: Apply patch from Justin Cherniak to match
1170 MS better for ProductName, ProductVersion, and CompanyName.
1173 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1175 * Binding.cs: Actually implement 2.0 NullValue property. Also
1176 when changing the formatting related properties, only update the state
1177 if formatting_enabled is true (we don't mind otherwise).
1179 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
1181 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
1184 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
1186 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
1187 of GetType on the current value as it uses reflection to
1188 determine the type. This fixes the case where the new value is
1191 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
1193 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
1196 2008-02-24 Luke Page <luke.a.page@gmail.com>
1198 * Line.cs, TextControl.cs: Implement offset x and y so that a
1199 document doesn't have to begin at (0,0) on the viewpoint.
1200 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
1201 bars and switches the text alignment (and therefore is now
1202 implemented for textbox). Fixes #321383.
1204 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1206 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
1207 properties. Also when changing FormattingEnabled update the control
1208 property -as .Net does-.
1210 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
1212 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
1213 * Binding.cs: Add stubs for the overloads of the Add method in
1216 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1218 * Binding.cs: PullData () returns a false value if we got an exception.
1219 Also when validating the control and we get an error, instead of
1220 setting the value of the previous one, cancel the event (tested in 1.1
1223 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
1225 * TreeView.cs: Make selected_node and highlighted_node internal.
1226 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
1227 to null when Nodes.Clear is called.
1230 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
1232 * FontDialog.cs: Ensure that when the Font is set in code,
1233 all the gui pieces are updated accordingly.
1236 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
1238 * TextRenderer.cs: Respect proposed size for MeasureString.
1239 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
1240 autosize, use a proposed width to force wrapping for long text.
1243 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
1245 * TreeView.cs: Factor in checkboxes = false and state images in
1246 to HitTest. [Fixes bug #363360]
1248 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
1250 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
1251 when drawing the selected range.
1254 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
1256 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
1257 ResizeRedraw control styles.
1260 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1262 * TreeView.cs: StateImages are basically custom checkboxes, so
1263 factor their size the same as real checkboxes when determining
1267 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1269 * MessageBox.cs: Make the message box wider if the form caption
1270 is longer than the text in the form.
1273 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
1275 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
1277 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1279 * TreeNode.cs: Guard against an NRE when the parent's
1280 StateImageList hasn't been set.
1283 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1285 * SplitContainer.cs: Add SupportsTransparentBackColor and
1286 OptimizedDoubleBuffering control styles.
1289 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1291 * Application.cs: For the app data paths and the registry key paths,
1292 ensure they are created before returning them to the user.
1295 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1297 * Application.cs: Guard against an NRE in CompanyName and
1300 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1302 * Application.cs: For CompanyName, ProductName, and ProductVersion,
1303 make sure we handle all three cases correctly: attribute is present,
1304 attribute is present but is an empty string, and attribute is not
1307 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
1309 * PropertyGridView.cs:
1310 - Fix a NRE that caused a test failure
1311 - Another performance improvement - cache the standard values
1314 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
1316 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
1319 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
1321 * PropertyGridView.cs: Fix a big performance bug.
1323 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
1325 * SelectionRange.cs: Apply patch from Andy Hume to make
1326 constructor behavior more accurate. [Fixes bug #362117]
1328 2008-02-19 Andreia Gaita <avidigal@novell.com>
1330 * Control.cs: Added a new flag is_disposing to track if the
1331 window is currently in the process of being disposed of.
1332 This is used so that, when firing visibility changes triggered
1333 by unparenting controls during Dispose, the control doesn't
1336 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
1338 * ComboBox.cs: Set height to preferred height when the handle
1339 is created. [Fixes bug #360862]
1341 2008-02-18 Andreia Gaita <avidigal@novell.com>
1343 * XplatUIX11.cs: Create FosterParent with border width at 0.
1344 With the previous value of 4, everytime a control got reparented
1345 from parent = null, it's location would be shifted right and
1346 down by 4, since these coordinates would be offset by the
1347 FosterParent's border width.
1349 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
1351 * Control.cs: During diposing firstly remove ourselfes from
1352 the parent and *then* destroy our handle, because removing
1353 ourselfes from the parent controls collection causes
1354 VisibilityChange, etc events, which require a handle and end
1355 up recreating the control.
1357 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
1359 * GridEntry.cs: Set expanded state before notifying that the
1360 expansion has taken place.
1361 * PropertyGridView.cs:
1362 - Set the propertygridtextbox text to the selected
1363 StandardValue before proceeding to setting it.
1364 - Scrolling bugfixes.
1366 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
1369 - Fix ValueText to not return null.
1370 - Fix conversion error reporting to actually happen.
1371 * PropertyGridView.cs: Set entry only if the text has changed.
1374 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
1377 - Fix handling of a null current value.
1378 - Swallow editor exceptions.
1381 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
1383 * PropertyGrid.cs: Clear current items first thing before
1384 repopulating subitems.
1386 - Handle null StandardValuesCollection.
1387 - Mark as not editable if there is no PropertyDescriptor and
1388 if the Converter cannot convert from string.
1389 [Part of fix for bugs #360666 and #358332]
1391 2008-02-15 Luke Page <luke.a.page@gmail.com>
1392 * MaskedTextBox.cs: Now skips non editable characters after a
1393 character has been entered and we are progressing to the next
1394 position in the MaskedTextBox.
1396 2008-02-15 Luke Page <luke.a.page@gmail.com>
1397 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
1398 that it changes the selection rather than just repositioning the
1399 cursor. Fixes Bug #360873.
1401 2008-02-15 Luke Page <luke.a.page@gmail.com>
1402 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
1403 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
1404 correctly. See #359330
1406 2008-02-15 Andreia Gaita <avidigal@novell.com>
1408 * XplatUIX11.cs: If the handle is null when posting a message, use the
1409 current thread queue to post instead. Fixes #332409
1411 * SendKeys.cs: Slight optimization
1413 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
1415 * PropertyGrid.cs, PropertyGridView.cs:
1416 Fix multiple scrolling and sizing issues.
1419 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
1421 * PropertyGridView.cs: Ensure that drop down editors are shown
1422 in the WorkingArea of the screen.
1425 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
1427 * GridEntry.cs: Fail silently when UITypeEditor is missing.
1430 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1432 * Binding.cs: Implement 2.0 DataSourceNullValue property.
1434 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
1436 * PropertyGridView.cs:
1437 - Clear the controls in the drop down form after it is hidden.
1438 - Fix Width sizing of the dropdown editors to match MSFT.
1440 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
1442 * PropertyGridView.cs:
1443 - Fix height for drawing the grid entry
1444 text value, so that it clips multiline text properly.
1445 - Fix unfocusing to match MSFT.
1447 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
1449 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
1450 Fixes a bug where on repopulation after value changed items become
1453 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1455 * Binding.cs: For the 2.0 profile, look for a
1456 'PropertyChanged' event in the target control, and add checks for
1457 DataSourceUpdateMode property to change -or not- the data source
1458 from validation/control property change.
1460 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
1462 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
1463 not compare struct with null in 2.0).
1465 2008-02-10 Luke Page <luke.a.page@gmail.com>
1467 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
1468 updates the provider and if not using a provider, uses the internal document
1469 class implementation of password char. Also when showing text, uses display string
1470 from the provider, instead of the actual text.
1472 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1474 * Binding.cs: Ooooops, forgot to take into account the data_source
1475 and binding_member_info null case (it was breaking the Binding tests).
1477 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1479 * Binding.cs: Implement support for data source changes exposed by
1480 'PropertyNameChanged' events, and update the control property as
1483 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1485 * Binding.cs: Implement 2.0 WriteValue method.
1487 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
1489 Commit patch from James Purcell for better AutoScale implementation:
1491 * ScaleControl should call GetScaledBounds with the control's total size rather
1492 than client size. GetScaledBounds should handle ignoring the borders in its
1493 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
1494 (for the most part they just call the base code now since that is fixed).
1495 * Added ScaleChildrenInternal to allow controls to disable scaling of children
1496 without having to override ScaleChildren (since none of .NET's controls do).
1497 This is required for most controls in Mono that have scrollbars to prevent the
1498 scrollbars from being moved/resized.
1499 * Nested ContainerControls can have a different scale mode than their parent.
1500 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
1501 designer produce different results both of which look incorrect).
1502 * Default AutoScaleMode for ContainerControl should be Inherit.
1503 * Simplified workaround for ComboBox scaling issue.
1504 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
1505 1.0 style auto scaling should scale the whole control's size instead of
1506 ignoring the borders (except for Form) and the rounding is done differently to
1507 preserve control alignment.
1508 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
1510 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
1511 * CurrentAutoScaleDimensions should round the estimated character width instead
1513 * ListBox's GetScaledBounds should always use the height it was set to instead
1514 of the height that was passed in. This prevents rounding errors from
1515 accumulating quickly with IntegralHeight.
1518 2008-02-08 Andreia Gaita <avidigal@novell.com>
1520 * Form.cs: Add a null check (darn it).
1522 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
1524 * MdiClient.cs: Make sure the requesting form actually owns the
1525 control menu items before removing them. Also, use
1526 Suspend/ResumeLayout when adding or removing items so we only
1530 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
1532 * Control.cs: Guard against an NRE in ShowFocusCues.
1535 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1537 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
1538 property, as well as stubbing DataSourceUpdateMode.
1540 2008-02-08 Andreia Gaita <avidigal@novell.com>
1542 * Form.cs: When closing forms, get focus back to the active control of the
1543 active form. [Fixes #341314, corner case]
1545 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
1547 * MdiClient.cs: After we move the scrollbars, invalidate the NC
1548 area, so any old scrollbar artifacts are cleaned up.
1551 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
1553 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
1554 for our menus, display that control box menu instead of the 1.1
1557 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
1559 * MdiControlStrip.cs: Add property to access the mdi form tied to
1561 * MdiClient.cs: Be smarter about removing and adding toolstripitems
1562 to the implicitly merged menu. Every time we clicked the form, items
1563 were getting removed and the re-added, causing the form to jump around
1564 as the menu resized.
1566 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
1568 * MdiClient.cs: Make sure the NormalBounds always gets set. It
1569 was being reset by the implicit menu merge for menustrips.
1572 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
1574 * Form.cs: Don't do the previous change when WindowState = Normal,
1575 or it messes up where the window is placed. Fixes test failure.
1577 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
1579 * Form.cs: When becoming visible, if we are an MDI child, call
1580 SetWindowState with a dummy old_state so that changes will actually
1582 [Fixes the 2nd part of bug #325473]
1584 2008-02-07 Andreia Gaita <avidigal@novell.com>
1586 * Control.cs: Reset properties to their pre parent-change values in case
1587 the new parent == null (in which case we're basically removing the control,
1588 and don't want any events fired due to fake property changes)
1591 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
1593 * PropertyGridView.cs:
1594 - Refactor SetValue to allow setting the value
1595 when a custom editor is used, but the entry is not editable.
1596 - Remove the custom editor control on CloseDropDown.
1599 2008-02-06 Andreia Gaita <avidigal@novell.com>
1601 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
1602 reflection only on 1.1, this property is public on system.drawing on 2.0.
1605 2008-02-06 Andreia Gaita <avidigal@novell.com>
1607 * WebBrowser.cs: Do a normal page refresh by default.
1609 2008-02-05 Andreia Gaita <avidigal@novell.com>
1611 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
1612 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
1613 platforms. Fixes #359036
1615 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
1616 platform-specific flags.
1618 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1620 * Binding.cs: Add 2.0 BindableComponent property - just return control
1623 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
1625 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
1626 Jonathan for this patch. Fixes #358442.
1628 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
1630 * Form.cs: If we change the active MDI child form, let the others
1631 know they need to repaint their title bar so it will appear inactive.
1632 [Fixes part 1 of bug #325473]
1634 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
1636 * PropertyGridView.cs: Do not trucate custom editors' width
1637 and align them to the left.
1638 [Fixes #358353 and #358349]
1640 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1642 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
1643 Also fix the arguments passed to CollectionChangeEventArgs in the
1646 2008-02-04 Geoff Norton <gnorton@novell.com>
1648 * Hwnd.cs: The conversion to Quartz coordinates happens in
1649 System.Drawing. Removing this translation from here.
1651 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
1653 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
1654 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
1655 GridItemCollection.cs:
1656 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
1658 2008-02-04 Geoff Norton <gnorton@novell.com>
1660 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
1661 SYSKEYUP if any other key has been pressed in the mean time.
1664 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1666 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
1667 when the item in current position is different than 0. Also, save the
1668 item index in the beginning of the operation, instead of getting the
1669 index of the item when the event is actually performed. Lastly clean
1670 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
1674 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
1676 * Form.cs: Alt-Minus for MDI children system menu should work
1677 with both the minus keys on the keyboard.
1680 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
1682 * Control.cs: Don't invalidate on region change. The WM should
1683 take care of this automagically. Keeps us out of an infinite
1684 paint loop if someone changes the Region in the OnPaint.
1687 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
1689 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
1691 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
1693 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
1694 down the MonthCalendar only on F4, not Alt+F4.
1695 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
1698 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
1700 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
1701 if its part of a DateTimePicker, else, use the back color.
1704 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
1706 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
1709 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1711 * CurrencyManager.cs: When we get a ListChanged event from our source,
1712 always fire our own ListChanged event, as .Net does.
1714 2008-02-03 Luke Page <luke.a.page@gmail.com>
1716 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
1719 2008-02-03 Luke Page <luke.a.page@gmail.com>
1721 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
1722 property. Removed if for richtext property that was always true.
1723 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
1725 2008-02-03 Luke Page <luke.a.page@gmail.com>
1727 * TextBoxBase.cs - commited patch from James Purcell that
1728 correctly sets the FixedHeight control style when the MultiLine
1729 property is changed on a TextBox control. Fixes bug 358229.
1731 2008-02-02 Luke Page <luke.a.page@gmail.com>
1733 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
1734 Fixes bug 351938 - caret is positioned correctly when drawn
1735 and when calculating textual position of caret, no longer
1736 has a NRE in certain situations.
1738 2008-02-01 Geoff Norton <gnorton@novell.com>
1740 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
1741 get that region removed from the paint event.
1742 * XplatUICarbon.cs: Remove the window mapping after disposing of
1743 window. Prevents a crash with handle reuse. Optimize exposes
1744 only onto visible windows (rare; but possible).
1746 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
1748 * UpDownBase.cs: Make sure the internal textbox calls the base's
1749 OnMouseDown and OnMouseUp so the textbox will function correctly.
1750 There were notes saying it doesn't chain up, but its an internal
1751 class, so our implementation may differ.
1754 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
1756 * ListBox.cs: Fix a logic error and don't process MouseDown
1757 for mouse buttons other than Left.
1759 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
1761 * Control.cs: Remove HeightInternal.
1762 * ListBox.cs: Commit patch from James Purcell that correctly
1763 calculates heights for ListBoxen.
1766 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
1768 * Label.cs: Apply patch from James Purcell that corrects the
1769 signature of the AutoSize property.
1772 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
1774 * ListBox.cs: Don't throw [Mouse]Click events for buttons
1775 other than the left mouse button.
1777 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
1779 * Control.cs: Remove my awesome optimization as it caused some
1780 regressions with control ordering. :(
1783 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
1785 * PropertyGridView.cs: Fix a NRE on double click when there is no
1788 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1790 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
1792 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
1794 * ListBox.cs: Call MouseClick and MouseDoubleClick.
1797 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
1799 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
1800 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
1801 instead of Hwnd.bmp_g.
1803 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
1805 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
1806 Use the Hwnd one instead.
1808 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
1810 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
1812 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
1814 * Form.cs: corcompare for RestoreBounds.
1816 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
1818 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
1820 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
1822 * Form.cs: Handle Alt-Minus for MDI children forms.
1823 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
1824 Add mnemonics to the control menu.
1827 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1829 * Binding.cs: Initial implementation bits of FormattingEnabled
1830 property and BindingComplete event (2.0).
1831 * BindingCompleteEventArgs.cs: Internal methods for setting error text
1834 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
1836 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
1837 table.Location. [Fixes bug #354672]
1839 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
1841 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
1842 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
1844 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1846 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
1847 of doing all the re-bound work, just invalidate and call SetControlText
1848 to set the updated text of selected item to our textbox.
1851 2008-01-28 Andreia Gaita <avidigal@novell.com>
1853 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
1854 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
1855 missing properties and methods. Add Load, Unload, Error, GotFocus,
1856 LostFocus, Resize, Scroll events (only load and unload are connected)
1858 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
1860 * AccessibleObject.cs: Modified argument names to match MS.
1861 * Button.cs: Modified argument names to match MS.
1862 * BindingContext.cs: Modified argument names to match MS.
1863 * BindingMemberInfo.cs: Modified argument names to match MS.
1864 * ButtonBase.cs: Modified argument names to match MS.
1865 * ComboBox.cs: Modified argument names to match MS.
1866 * Control.cs: Modified argument names to match MS.
1867 * CheckedListBox.cs: Modified argument names to match MS.
1868 * CommonDialog.cs: Modified argument names to match MS.
1869 * DataGrid.cs: Modified argument names to match MS.
1870 * CursorConverter.cs: Modified argument names to match MS.
1871 * ControlPaint.cs: Modified argument names to match MS.
1872 * CheckBox.cs: Modified argument names to match MS.
1873 * ControlBindingsCollection.cs: Modified argument names to match MS.
1874 * BindingSource.cs: Modified argument names to match MS.
1875 * DataFormats.cs: Modified argument names to match MS.
1876 * ContainerControl.cs: Modified argument names to match MS.
1877 * CurrencyManager.cs: Modified argument names to match MS.
1878 * Application.cs: Modified argument names to match MS.
1879 * ContextMenuStrip.cs: Modified argument names to match MS.
1880 * ContextMenu.cs: Modified argument names to match MS.
1881 * BindingManagerBase.cs: Modified argument names to match MS.
1882 * WindowsFormsSection.cs: Fixed line ending.
1884 2008-01-27 Andreia Gaita <avidigal@novell.com>
1886 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
1887 detecting that the dropdown toolwindow is hidden. EndLoop outside the
1890 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
1892 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
1893 MS. Code formatting.
1895 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1897 * Binding.cs: Don't avoid the Format event if the control
1898 property type is object. Also, if the value retrieved by
1899 the data source is null _and_ the control proeprty type
1900 is object, return Convert.DBNull (match .Net).
1901 Fixes part of #324286.
1903 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1905 * ListControl.cs: Since we are getting two BinginContextChanged events
1906 for the same binding context instance (when the control is added to
1907 form, and when the form is actually shown), take it into account only the
1908 first time for a given binding context instance.
1909 Fixes part of #324286.
1911 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
1913 * PropertryGridView.cs: Ops.
1915 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
1917 * PropertyGridView.cs: Close dropdown form if the owner form is
1921 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
1923 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
1924 RootGridEntry.cs, CategoryGridEntry.cs:
1925 PropertyGrid rewrite.
1926 - Rewrite all of the control logic in PropertyGrid.
1927 - Rewrite all of the ComponentModel logic in GridEntry.
1928 - Rewrite all UI work in PropertyGridView.
1929 - Many bugfixes, etc.
1931 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
1933 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
1934 when all contained controls are autosize or dock-fill. Also take into
1935 account when the total percentage of column/row sizes is not 100%.
1938 2008-01-24 Andreia Gaita <avidigal@novell.com>
1941 - Save a reference to the IDocument in the instance and
1942 use that one instead of going to WebHost.Document; the document that the
1943 WebHost returns might not be the right one (in case of frames).
1944 - Use the hashcode returned from the IDocument interface.
1945 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
1946 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
1947 LinkColor, Url, VisitedColor, Window
1950 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
1951 set_Attribute, NextSibling, Parent, TagName, AppendChild,
1952 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
1953 SetAttribute, Equals, equality operators.
1954 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
1955 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
1957 * HtmlElementCollection.cs: Change implementation to use a generic
1958 collection. Implemented Enumerator and CopyTo
1960 * HtmlHistory.cs: Add constructor, no implementation yet.
1962 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
1963 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
1964 Equals, equality operators.
1966 * HtmlWindowCollection.cs: Implemented.
1968 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
1969 has been deprecated).
1971 * WebBrowserBase.cs: Use Completed event to track document loading
1972 (Navigated has been deprecated)
1974 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
1976 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
1977 level MenuItems do not respect tabs.
1980 2008-01-23 Geoff Norton <gnorton@novell.com>
1982 * XplatUICarbon.cs: Ensure that windows are created in their initial
1983 FormWindowState. Finished fixing Fullscreen windows on Carbon
1985 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
1987 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
1988 be used as grab_control. Also save status of capture before show ContextMenu
1989 and restore it after close.
1991 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
1993 * Control.cs: Internal FindRootParent method added to return high control
1996 2008-01-23 Geoff Norton <gnorton@novell.com>
1998 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
1999 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
2000 it work again. Handle HITTEST events.
2002 2008-01-23 Geoff Norton <gnorton@novell.com>
2004 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
2005 a crash in certain cases. Support for fullscreen windows in certain cases.
2007 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
2009 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
2012 2008-01-23 Geoff Norton <gnorton@novell.com>
2014 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
2016 2008-01-23 Geoff Norton <gnorton@novell.com>
2018 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
2020 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2022 * SplitContainer.cs: Remove unused declarations.
2023 * Binding.cs: Remove unused declarations.
2025 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2027 * Form.cs: Remove unused declaration of 'active' in Activate method.
2028 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
2029 prevent compilation warnings.
2030 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
2031 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
2032 * Bindings.cs: Remove unused formatting_enabled declaration.
2033 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
2035 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
2037 * PropertyGridView.cs: Remove usused 'ex' declaration.
2038 * DataGridView.cs: Remove unused declarations.
2040 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2042 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
2044 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
2045 to Control class, it makes possible to grab menu to controls that can't
2046 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
2047 WmMouseMove removed since it was used only to track menu events.
2050 - Moved all active_tracker stuff from Form.
2051 - ProcessActiveTracker added to prevent code duplicity, now mouse events
2052 can call this method instead of reimplement all necessary code handle for
2054 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
2058 - Remove special handle to ToolStripOverflow, now we can grab menu to
2059 controls that can't reach Form using parent tree.
2060 - Change type of grab_control from Form to Control.
2062 2008-01-22 Geoff Norton <gnorton@novell.com>
2064 * TextBoxBase.cs: Split up the sizing of controls and placing of
2065 controls. Fixes a bug where scrollbars in Reflector could be sized
2066 wrong and have non-working thumbers.
2068 2008-01-23 Geoff Norton <gnorton@novell.com>
2070 * XplatUI.cs: Refactor environment variables to default support to the
2071 Carbon driver on the Mac.
2073 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2075 * Label.cs: Uses new LabelPainter for drawing operations.
2076 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
2077 * Theme.cs: DrawLabel and LabelDefaultSize removed.
2079 2008-01-22 Geoff Norton <gnorton@novell.com>
2081 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
2083 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
2085 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
2086 through the normal flat button code and don't draw the checkbox glyph.
2087 * Theme.cs: Button->ButtonBase signature change.
2090 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
2092 * LinkLabel.cs: Uses new class LinkLabelPainter.
2094 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
2096 * MessageBox.cs: Adjust right border space, we don't need to add
2097 "space_border*2" two times.
2099 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
2101 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
2102 becomes a wrapper around Padding.
2103 [Fixes a part of bug #354676]
2105 2008-01-22 Geoff Norton <gnorton@novell.com>
2107 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
2108 acquired. Also ensure the buffer is large enough to grab the header
2109 we need on linux boxes.
2111 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
2113 * Control.cs: Implement a custom enumerator so people can delete
2114 from the Controls collection while in a foreach.
2117 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
2119 * PropertyGridView.cs: Fix focusing behavior:
2120 - Tab should focus the grid text box.
2121 - Clicking on the labels shouldn't focus the grid text box.
2123 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
2125 * PropertyGridView.cs: IsValueTypeGridItem should return true
2128 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
2130 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
2131 - Renamed GridEntry.SelectedObjects to TargetObjects to better
2132 reflect the property name role.
2133 - PropertyGrid.GetTarget is not required as the target is known
2135 - Setting values will handle value types as a special case now and
2136 populate them up in the chain.
2139 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
2141 * Hwnd.cs: Create a public property for the Graphics we keep around.
2143 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
2145 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
2146 when the current object selection changes.
2147 Fixes failing test SelectedObject_Null2.B5.
2149 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
2151 * PropertyGrid.cs: Process Browsable properties with
2152 DesignerSerializationVisibilityAttribute.Content as being expandable.
2153 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
2154 will not be expandable. We should be nested components-friendly now.
2156 2008-01-21 Andreia Gaita <avidigal@novell.com>
2158 * WebBrowserBase.cs: Check if control was loaded properly,
2159 don't bind if it wasn't.
2161 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
2162 GetElementFromPoint, equality operators, OpenNew, Write.
2163 Remove extra set_Body
2165 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
2167 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
2168 that makes our AutoScale* stuff more tolerant to different orders
2169 of being set. [Fixes bug #354669]
2171 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
2173 * PropertyGridView.cs, PropertyGridTextBox.cs:
2174 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
2175 [Fixes #339005 and #348209]
2177 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
2179 * PropertyGridView.cs: Hide the grid text box before adjusting it
2180 for the newly selected GridItem.
2183 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
2185 * Form.cs: Give MDI children the opportunity to cancel the parent form
2186 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
2187 properly for both the parent and child.
2188 * Application.cs: Signature of internal method changed, pass the previous
2192 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
2194 * PropertyGridView.cs: Set the property value only if it has changed.
2197 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
2199 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
2200 If the mouse hasn't actually moved, ignore these messages so the currently
2201 highlighted menuitem isn't reset to the one under the mouse.
2204 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
2206 * PropertyGridView.cs: When the property changes Invalidate the GridItem
2207 in order for the properties with UITypeEditor.GetPaintValueSupported == true
2208 to reflect the change visually.
2211 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
2213 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
2214 to 2.0 button drawing.
2215 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
2216 the button text is tall enough for one line. LineLimit says it will
2217 always draw at least one line, but it is a lie.
2220 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
2222 * XplatUIStructs.cs, X11Keyboard.cs :
2223 added some more VK_* keys to be handled.
2225 2008-01-16 Andreia Gaita <avidigal@novell.com>
2227 * Control.cs: Check if there is a container before setting or getting
2228 the validation flag.
2230 2008-01-16 Andreia Gaita <avidigal@novell.com>
2232 * ContainerControl.cs: Add flag to track if a control cancels validation,
2233 so we don't fire click events.
2236 - (HandleClick) Check if validation was cancelled before firing the click
2237 events (doubleclicks are fired, but not clicks)
2238 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
2239 ContainerControl.set_ActiveControl, but in the case of non-selectable
2240 controls, like a Label, activecontrol is not set.
2242 * ButtonBase.cs: Only fire clicks if validation passes.
2246 2008-01-16 Geoff Norton <gnorton@novell.com>
2248 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
2251 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
2253 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
2254 SelectedPath, just display the default dialog instead of crashing.
2257 2008-01-16 Geoff Norton <gnorton@novell.com>
2259 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
2260 AddExpose instead of trusting apples compositing manager which doesn't
2261 work for our use case. Remove some dead code causing warnings and
2262 redecorate some other code to prevent warnings.
2264 2008-01-16 Geoff Norton <gnorton@novell.com>
2266 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
2267 carbon signals us to redraw. Fixes another portion of the flickering bug
2269 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
2271 * Form.cs: Prevent the MdiParent property to be set when value is the same
2272 as value already set. Fixes bug #328019.
2274 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
2276 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
2277 it prevents NRE when closing mdi child windows. Fixes bug #325211.
2279 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
2281 * InternalWindowManager.cs: Invalidade close button after mouse up when
2282 mdi form is prevented to close.
2284 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
2286 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
2287 thanks to Andy Hume. Fixes bug #325433.
2289 2008-01-16 Andreia Gaita <avidigal@novell.com>
2291 * LinkLabel.cs: Reset focused_index when resellecting the control.
2294 2008-01-15 Geoff Norton <gnorton@novell.com>
2296 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
2299 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
2301 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
2304 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
2306 * ContainerControl.cs: Setting AutoScaleMode to anything should set
2307 Form.AutoScale to false.
2308 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
2309 AutoScaleBaseSize should be changed on Font change unless it has been
2313 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
2315 * MenuAPI.cs: On instance of MenuTracker check if source control is
2316 ToolStripOverflow and use properly method to find form.
2319 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
2321 [Fixes bug #323241 Transparent toolbar support]
2323 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
2326 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
2327 defined in control style to mimic win32 behavior.
2329 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
2330 it will be transparent.
2332 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
2334 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
2335 CreateParams for ToolBar controls.
2337 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
2339 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
2340 FixedToolWindow, SizeableToolWindow, or None for border styles have
2341 different minimum sizes than regular forms. Implemented to fix
2342 regression in PDN with toolbox being too wide.
2344 2008-01-14 Andreia Gaita <avidigal@novell.com>
2346 * HtmlElementCollection.cs: Implemented
2348 * HtmlElement.cs: Implemented:
2356 * HtmlDocument.cs: Implemented GetElementsByTagName.
2358 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
2360 * Screen.cs: Stub BitsPerPixel to always return 32.
2362 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
2364 * Form.cs: Implement RestoreBounds.
2366 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
2368 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
2369 Sebastien and his fabulous magical problem-finding machine:
2370 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
2371 respect the value set.
2373 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
2375 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
2376 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
2378 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2380 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
2381 messages (to match .Net), we need to remove the capture ourselves.
2383 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
2385 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
2386 will process the message and close our window.
2389 2008-01-10 Geoff Norton <gnorton@novell.com>
2391 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
2392 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
2395 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
2397 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
2400 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
2402 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
2403 Linux doesn't care, having a minimum matches MS and keeps the window
2404 from becoming too small to use window decorations.
2407 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
2409 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
2410 ShowFocusCues. Make focus rectangles fit the text instead of the whole
2411 control. [Fixes bug #325419]
2413 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
2415 * ComboBox.cs: Guard against an NRE if the user open a new form from a
2416 SelectedIndexChanged event. This closes the combobox dropdown, and we
2417 were trying to dispose it. [Fixes bug #352830]
2419 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
2421 * Control.cs, Form.cs: Implement the necessary semantics for
2422 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
2423 to determine if a focus rectangle should be drawn.
2424 * PropertyGrid.cs: Fix property visibility to match override.
2425 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
2427 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
2429 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
2432 2008-01-09 Geoff Norton <gnorton@novell.com>
2434 * XplatUICarbon.cs: Scroll windows in the correct direction.
2436 2008-01-09 Geoff Norton <gnorton@novell.com>
2438 * XplatUICarbon.cs: Track all created utility windows so we can hide them
2439 when the app is deactivated or spaces is enabled.
2441 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2443 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
2444 extra separation pixel for the label rect origin if SmallImageList is
2445 null, and thus we don't need that separation between icon and label
2447 Patch by Ernesto Carrea.
2450 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
2452 * StatusStrip.cs: Invalidate after completing a layout. The base
2453 OnLayout does this, but we don't call the base.
2454 * ToolStripItem.cs: Revert the previous change to invalidate after
2456 [Fixes bug #351341 better.]
2458 2008-01-07 Geoff Norton <gnorton@novell.com>
2460 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
2461 not a notification to exit the application. Listen for WM_QUIT
2464 2008-01-07 Andreia Gaita <avidigal@novell.com>
2466 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
2468 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
2470 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
2471 so it can repaint at the correct location.
2474 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2476 * ListControl.cs: SelectedValue should return a null value if
2477 SelectedIndex is -1. Also, when setting it, it should throw an
2478 ArgumentNullException if the value is null, as well as taking
2479 into account the String.Empty value, instead of ignoring it (we have
2480 tests for that now).
2481 Fixes part of #324286.
2483 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
2485 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
2486 SelectionStart is updated after pressing enter. Fixes bug #351918.
2488 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
2490 * TextControl.cs: Revert a piece r92316 that prevented the fix
2491 from working when there were multiple tags in the text box.
2494 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
2496 * TextControl.cs: Apply patch from Luke Page that prevents an
2497 NRE when determining the beginning of a paragraph.
2500 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
2502 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
2503 caret gets moved with clicking away from a selected block of
2504 text. Fixes bug #351885.
2506 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
2508 * TextControl.cs: Apply patch from Luke Page that takes line
2509 alignment into account for mouse selection, so that center and
2510 right aligned text can be selected.
2513 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
2515 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
2516 issues after loading an RTF file by using the correct line feeds.
2519 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
2521 * TextControl.cs: When deleting multiple line selections, we need
2522 to invalidate every line beginning at the first line of the selection.
2523 Patch from Luke Page fixes bug #351791.
2525 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2527 * ListControl.cs: When getting a CurrencyManager.PositionChanged
2528 event, don't set SelectedIndex if the number of items is 1. This is
2529 because, for the first item, PositionChanged is fired _before_
2530 ItemChanged (the place where we actually populate the items), and
2531 leave us in a temporary invalid state (since items collection is
2535 2008-01-04 Geoff Norton <gnorton@novell.com>
2537 * XplatUICarbon.cs: Create native toolwindows instead of
2538 the managed drawing ones.
2540 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
2542 * LineTag.cs: If the line doesn't have any characters, return
2543 0 for GetCharIndex. Fixes an AOORE exception after certain
2544 caret movements. Fixes bug #351683. Patch by Luke Page.
2546 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
2548 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
2549 is hit when there is selected text, only the selected text gets
2550 deleted, not the character in front of the selection as well.
2553 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2555 * ComboBox.cs: When the values are displayed, calculate the
2556 ComboListBox scrollbar's LargeChange based on the visible area's
2557 height and the actuall ItemHeight, instead of calculating it
2558 based on MaxDropItems value, since it's not used by our _current_
2562 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
2564 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
2565 Patch from Luke Page that fixes issues with font colors and styles
2566 not showing up in a readonly RichTextBox. Fixes bug #324354.
2568 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
2570 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
2571 from Luke Page. This one fixes bug #349926.
2573 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2575 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
2576 an item in the IBindingList source changes with
2577 ListChangedType.ItemAdded. Ignore for now firing the event for other
2578 changes, since we want to have tests for those cases as well.
2580 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
2582 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
2585 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
2587 * TextBoxTextRenderer.cs: Implement a cache for measuring each
2588 character. This is effective because the typical usage of a
2589 TextBox is with a limited amount of fonts and characters, and
2590 the current implementation of TextBox measures everything one
2591 character at a time. Another second or two speedup for bug #347238.
2593 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
2595 * Control.cs: Rewrite the Font getter to only query the parent's
2596 Font property once instead of twice. Since this operation is
2597 recursive, the queries were growing exponentially as the control
2598 tree got deeper. Another second or two speedup for bug #347238.
2600 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
2602 * Control.cs: Avoid setting a parent (and more importantly, updating
2603 the zorder of all its children) if the parent is already correct in
2604 WmShowWindow. Decreases the startup time of the test case on bug
2605 #347238 from 35 seconds to 11 seconds.
2607 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2609 * X11Dnd.cs: When the dnd operation has started and we are
2610 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
2611 This is done to match .Net, which doesn't send those messages after
2612 dnd operation was completed/cancelled.
2615 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
2617 * ToolStrip.cs: Previous change should be != null, not == null.
2620 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
2622 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
2623 user may have moved the mouse off the current item during the event.
2625 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2627 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
2628 calling GetItemAt for every MouseMove event by also taking into
2629 account whether any mouse button is pressed (probably dragging);
2630 if so, we can call GetItemAt, and if not, try to not call it
2631 (GetItemAt can be quite expensive when used with a large number of items).
2633 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2635 * ListView.cs: Implement -finally- support for dnd, by calling
2636 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
2638 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
2639 simple calculation of distances for all the items in the owner
2642 2007-12-21 Geoff Norton <gnorton@novell.com>
2644 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
2645 for windows that are originally created as invisible. Fixes missing
2646 main window in paint-mono.
2648 2007-12-21 Geoff Norton <gnorton@novell.com>
2650 * XplatUICarbon.cs: Register our D&D handler. Register our custom
2651 subclass handler for com.novell.mwfview subclassing HIView. Implement
2652 Pasteboard and Dnd methods.
2654 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2656 * ListBox.cs: When we got focus, give focus to first item if there
2657 wasn't any pervious focused item. Also update navigation to depend on
2658 SelectedIndex rather than FocusedItem, just as .Net does.
2661 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2663 * ListBox.cs: Both FindString and FindStringExact methods must do an
2664 case insensitive search, should allow the last valid index to be
2665 passed in the overload taking an initial index, and should also
2666 continue searching from the top back to the specified index when it
2669 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
2671 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
2672 redraw issue, and allows RichTextBox to draw colored text even while
2673 disabled or readonly.
2675 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
2677 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
2678 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
2679 and doesn't grey text in a disabled RichTextBox.
2681 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
2683 * RichTextBox.cs: Apply patch from Luke Page that adds better support
2684 for many RTF commands: quad alignment, separate formatting for blocks
2685 inside groups, and ParDef support. Makes the test case from bug #324589
2688 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
2690 * LineTag.cs: Fix an error in the new Draw method that caused
2691 a crash when rendering the document on bug #324589.
2693 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
2695 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
2696 TextControl.cs: Apply patch from Luke Page that adds support
2697 for URL links in RichTextBox.
2698 [Fixes enhancement #342516]
2700 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
2702 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
2703 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
2705 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2707 * ListBox.cs: When a key gets pressed, try to find a string
2708 if the key is a character or a digit.
2711 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
2713 * TableLayoutPanel.cs: Remove some unused variables.
2715 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
2717 * DateTimePicker.cs: Commit patch from Luke Page that ensures
2718 we don't end up at an invalid date when we click the up/down
2719 spinner to change the month or year. Fixes bug #348682.
2721 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
2723 * Application.cs: Calling Exit in 2.0 should chain to the
2724 Exit (CancelEventArgs) version so it can be cancelled.
2725 * Form.cs: Create a flag to allow raising the Closing
2726 events to be skipped. We raise them once in Application.Exit
2727 and don't want to raise them again when the Form is actually
2728 closed. [Fixes bug #349073]
2730 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
2732 * ToolStripDropDown.cs: Guard against an NRE when there
2733 hasn't been a mainform set in the application context.
2736 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2738 * ListBox.cs: When SetBoundsCore gets called, besides
2739 calling UpdateScrollBars, update the value of
2740 last_visible_index, since we could need to show more items
2741 than before, and we need to let the paint routines know that.
2744 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2746 * ListView.cs: Add DesignerSerializationVisibility attribute to
2747 InsertionMark property.
2748 * ListViewItem.cs: Add same attribute to Position property.
2750 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2752 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
2755 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
2757 * ThemeWin32Classic.cs: Don't draw the background on a
2758 flat button if there is a background image.
2761 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2763 * ListBox.cs: If we remove the item currently selected,
2764 remove it not only from SelectedItems, but also
2765 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
2766 the items count decreased and focused_item has bigger value than that.
2768 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
2770 * Control.cs: Perform our layout after we resize ourselves
2771 if we had to adjust our AutoSize. Missed commit for bug
2774 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
2776 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
2777 we can provide an implementation of AutoSize.
2780 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2782 * ListBox.cs: Add the internal overload Sort (bool paint),
2783 to indicate whether we actually need a paint or we will
2784 call Refresh ourselves. This way we don't request a paint
2785 _before_ having an updated and valid layout.
2788 2007-12-12 Andreia Gaita <avidigal@novell.com>
2790 * XPlatUIX11.cs: Send paint messages when updating a systray icon
2791 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
2792 properly invalidated.
2795 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2797 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
2798 don't simply assign it to our internal group field, but instead
2799 use our Group property, which should do all the neccessary work
2800 required to support groups. Fixes an issue reported to me (mail) by a
2801 guy using this new feature.
2803 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
2805 * Control.cs: Use Scale instead of ScaleControl to ensure the
2806 whole hierarchy gets scaled.
2809 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
2811 * DateTimePicker.cs: Don't set the internal MonthCalendar's
2812 Parent property. Doing this causes the control to be hosted by
2813 the Form instead of being a popup window.
2816 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
2818 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
2819 at an index higher than Count, just use Add instead of Insert.
2822 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
2824 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
2825 DrawPictureBox, this is handled by Control.PaintBackground.
2828 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
2830 * MenuAPI.cs: When process menu keys return true by default only if menu is
2831 active. Fixes bug #342892.
2833 2007-12-09 Andreia Gaita <avidigal@novell.com>
2835 * Control.cs: check if windows are actually mapped before
2836 trying to zorder. Fixes #342509, #346955
2838 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2841 * ListViewInsertionMark.cs:
2842 * ThemeWin32Classic.cs: Implement the drawing side of the
2843 new 2.0 ListView.InsertionMark property.
2845 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
2847 * CurrencyManager.cs: Silence some debug spew.
2849 2007-12-07 Geoff Norton <gnorton@novell.com>
2851 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
2852 masks for our children as well as siblings to avoid having to query
2853 Quartz for this information.
2854 * XplatUICarbon.cs: Implement a delegate based system to pass
2855 information to System.Drawing. Implement Async methods. Remove
2856 the hack for the resize thumb and imlpement a transparent Grow Box.
2857 Rework the messaging system to proplery create window's and messages,
2860 2007-12-06 Andreia Gaita <avidigal@novell.com>
2862 * X11Keyboard.cs: Use Xutf8LookupString to support international
2863 characters under alternate codepages. Patch from #340878
2865 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2867 * ListView.cs: When doing layout computations, set position in the
2868 ListView instances (we cache the position just as .Net does).
2869 * ListViewItem.cs: New internal setter method for Position. Also set
2870 position field as also available in 1.1, since we are going to use it
2871 now in the common case.
2873 2007-12-06 Andreia Gaita <avidigal@novell.com>
2875 * Control.cs: When removing controls, get the actual container
2876 to notify about active control changes. Fixes 341314.
2878 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2880 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
2882 2007-12-05 Andreia Gaita <avidigal@novell.com>
2884 * Control.cs: When updating the zorder, ignore windows that are not
2885 mapped. Fixes #342509
2887 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2889 * ListViewItem.cs: Actually implement serialization on this class.
2891 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
2893 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
2894 LinkCollection. Spaces to tabs, and removed extra tabs.
2896 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
2898 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
2899 tests to fail (hopefully).
2901 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
2903 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
2904 the image margin so custom renderers can correctly place it.
2906 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
2908 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
2909 so custom renderers can correctly place it.
2911 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
2913 * Application.cs: Let WM_CHAR messages flow through to controls
2914 hosted in Strips. [Fixes bug #343972]
2916 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
2918 * ToolStripManager.cs: Guard against an NRE I ran into.
2920 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
2922 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
2923 a Link is manually added to the Links collection, we need to set
2924 its owner, so it can invalidate properly.
2927 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2929 * ListView.cs: When changing ListViewItem.Position (which calls
2930 ListView.ChangeItemLocation), invalidate not only the area
2931 corresponding to the main item, but also to the area occupied
2932 by the items being moved.
2934 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2936 * ListView.cs: When changing the position of a given item,
2937 don't use item bounds, but item areas (which includes the item spacing
2938 between them). Also, use first/last position if the requested
2939 position is outside bounds (as .Net does). Invalidate the previous and
2940 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
2941 in a specific position, instead of directly accessing Items collection
2942 (this is done to get the right item - remember an Item can have a
2943 different position in the grid than in the Items collection).
2945 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
2947 * MessageBox.cs: Calculate text area instead of just top left, this rect
2948 area will be used in DrawString. Fixes bug #343364.
2950 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
2952 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
2953 screen width. Partially fixes bug #343364.
2955 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
2957 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
2958 code inside recalculate, it makes code more simple.
2960 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
2962 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
2963 between update or add icon. Fixes bug #324344.
2965 2007-11-21 Andreia Gaita <avidigal@novell.com>
2967 * XPlatUIX11.cs: Do not treat tool windows as if they have no
2968 window manager, since that stretches the drawing area to include
2969 the window decorations, and they get hidden. Reverts r84444 and fixes
2970 #335849 and #342790 (mdi and pdn3 regression)
2972 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2974 * ListView.cs: When setting focused item, try to give focus to the
2975 previous one _only_ if the previous one remains valid.
2978 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
2980 * Application.cs: Revert r89650, as it broke a common case to fix
2981 an obscure case. Fixes bug #342606.
2983 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
2985 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
2987 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
2989 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
2990 alignment. [Fixes #324228]
2992 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
2994 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
2997 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
2999 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
3000 it prevent problems when empty captions. [Fixes #342141]
3002 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
3004 * Label.cs: Use Size instead of None. Fixes bug #342077.
3006 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3008 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
3010 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
3012 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
3013 but there isn't a MdiContainer.
3016 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
3018 * TextControl.cs: Don't recalculate document if the recalc_start and
3019 recalc_end hasn't changed.
3022 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
3024 * DataGridViewTextBoxCell.cs: Removed CWL.
3026 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3028 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
3030 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
3032 * TextControl.cs: Missed some code for bug 341534 to trigger a
3033 recalculation when the font changes.
3035 2007-11-16 Andreia Gaita <avidigal@novell.com>
3037 * Control.cs: When updating the zorder, check if the child to update is
3038 the same control that is set to always be on top (i.e., scrollbars), and
3039 just put it on top directly. Fixes BadMatch error on pdn3
3041 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3043 * ListView.cs: Throw the needed exceptions for FindNearestItem.
3045 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
3047 * Control.cs: Don't perform a new layout when a label changes its text,
3048 cause label handles its own autosizing.
3051 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3053 * ListView.cs: Implement 2.0 FindNearestItem methods.
3055 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
3057 * ToolStripPanel.cs: Make Join at least add the control to the panel,
3058 even if the rest of what Join does isn't supported. Add some more
3059 support for vertical toolbars.
3060 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
3061 [Fixes the application breaking parts of bug #341998]
3063 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
3065 * ToolStripItem.cs: When determining if we have a check/image margin,
3066 we need to look at ShowCheckMargin as well as ShowImageMargin.
3068 2007-11-15 Geoff Norton <gnorton@novell.com>
3070 * XplatUIOSX.cs: Rename to...
3071 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
3072 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
3074 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
3076 * KeysConverter.cs: The default values should be an array of Keys, not
3077 strings. Also, the array has more values for 2.0.
3080 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
3082 * Application.cs: Change ExecutablePath to use
3083 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
3086 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
3088 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
3089 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
3090 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
3091 be ignored. Create a new GetLineEnding that can specify which types of
3092 line endings to look for. On Insert, only create new lines for \n and \r\n.
3095 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
3097 * TextBoxBase.cs: As we loop through each line changing the font, tell
3098 the document that the line needs to be recalculated. Fixes bug #341534.
3100 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
3101 [Another round of refactoring]
3102 * Line.cs: Add DeleteCharacters.
3103 * LineTag.cs: Add Delete.
3104 * TextBoxBase.cs: Update to use new methods.
3105 * TextControl.cs: Refactor the Delete* methods.
3107 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
3109 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
3110 the patch. [Fixes #324856]
3112 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3115 * ListViewItem.cs: Add an initial implementation of
3116 2.0 ListViewItem.Position getter.
3118 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3120 * ListView.cs: Add a reordered_items_indices array, to allow us
3121 to have a different sorting than that of Items (the sorting in Items
3122 could not match the actual sorting in screen). This is needed to
3123 implement a pair of 2.0 features.
3124 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
3125 actual position in the ListView grid, since it could have a position
3126 different than its Index (position in ListViewItemCollection).
3128 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
3130 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
3131 not draw partial lines.
3132 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
3133 LineLimit flag from the base is preserved.
3134 Fixes the windows part of bug #338965.
3136 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
3138 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
3139 so that it can be canceled in KeyPress.
3142 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3144 * ListView.cs: In ItemControl, reset mouse-handling related
3145 fields even if we dont' have items (we still should reset them when
3146 we had items but then called Items.Clear). Partially based in a patch
3150 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
3152 * Application.cs: In ProductVersion first try AssemblyFileVersion
3153 before falling back to assembly version. Fixes bug #339787.
3155 2007-11-08 Andreia Gaita <avidigal@novell.com>
3157 * HtmlElement.cs: Implement InnerText setter.
3158 * WebBrowserBase.cs: Implement Navigated event support.
3159 Add flag to track when the browser "document" is ready to be retrieved.
3160 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
3161 Make sure browser document is ready before retrieving it.
3162 Clean up cached objects (document) when moving to a new page through
3163 any of the navigation methods.
3164 Use the new Mono.WebBrowser.INavigation interface to control navigation.
3165 Implement OnNavigated event.
3167 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
3169 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
3170 DrawLinkLabel, this is handled by OnPaintBackground.
3171 Fixes bug #339565, part II.
3173 2007-11-07 Andreia Gaita <avidigal@novell.com>
3175 * Control.cs: Revert r88915. Selecting text on a textbox depends on
3176 getting a Select call on click, so this call needs to be here for now.
3179 2007-11-07 Geoff Norton <gnorton@novell.com>
3181 * OSXStructs.cs: Add the kEventClassApplication constants.
3182 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
3183 application is deactivated otherwise Menu overlays linger on top of
3184 other application windows.
3186 2007-11-07 Geoff Norton <gnorton@novell.com>
3188 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
3189 dont support cursors yet anyways. This allows Reflector to run.
3191 2007-11-07 Geoff Norton <gnorton@novell.com>
3193 * XplatUIOSX.cs: Implement DragSize.
3195 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3197 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
3198 ItemControl, request the focus, as .Net does. This is needed after
3199 Control does not request focus anymore when it receives a
3202 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
3204 * Label.cs: Make DrawImage internal so it can be called from Theme code.
3205 Remove the DrawImage call from OnPaint.
3206 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
3207 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
3208 but before we draw the text for DrawLabel and DrawLinkLabel.
3211 2007-11-05 Andreia Gaita <avidigal@novell.com>
3213 * Control.cs: Remove select call on click. Fixes #325809
3215 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3217 * ListViewItem.cs: Add 2.0 Position property getter.
3219 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3221 * ListView.cs: Add 2.0 BackgroundImageTiled property.
3222 Also, to make it work properly, change item's BackColor and
3223 BackgroundImageLayout as needed.
3224 * ThemeWin32Classic.cs: Don't fill any background rectangle
3225 in ListView.ItemControl when drawing items; just let the Control
3226 base implementation fill it.
3228 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3230 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
3231 as well as adding a custom 'dummy' Converter, as .net does.
3233 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3235 * PropertyGridView.cs: When clicking drop-down button,
3236 select an index in the listbox only if our standard values collection
3237 has one or more items.
3239 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3241 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
3244 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
3246 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
3247 the value is not changed. This ensure a pushed button remains in that
3248 state when clicked again. When switching the value of PropertySort
3249 between Categorized and CategorizedAlphabetical, do not update the
3250 grid items and do not fire a PropertyChangedEvent. When clicking the
3251 sorting buttons, do not modify the PropertySort value when switching
3252 between Categorized and CategorizedAlphabetical but only update the
3255 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
3257 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
3259 * PropertyGrid.cs: Also put Categorized button in pushed state when
3260 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
3261 for help description label.
3263 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3265 * ListView.cs: When calculating the biggest item for a given column,
3266 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
3269 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
3271 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
3272 value for PropertySort on 1.0 profile. PropertySortChanged event
3273 should only be fired on 2.0 profile. Fixed NullReferenceException
3274 in UpdateSortLayout when PropertyGrid contains no items.
3276 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
3278 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
3281 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3283 * ListViewItem.cs: Implement 2.0 IndentCount property.
3285 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3287 * X11Dnd.cs: When sending status in a dnd operation, compare current
3288 effect with the 'allowed' field instead of 'drag_data.Allowed', since
3289 the later is only created when a Winforms application is both the
3290 source and the target, but not when we are the target only.
3291 Fixes part of #324251.
3293 2007-11-01 Geoff Norton <gnorton@novell.com>
3295 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
3297 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
3298 children out of the drawing view on mac.
3299 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
3300 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
3302 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
3304 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
3305 on the non-hosted-control part of it shouldn't do anything.
3306 Fixes part of bug #327498.
3308 2007-11-01 Andreia Gaita <avidigal@novell.com>
3310 * WebBrowserBase.cs: revert previous change, resize can be called anytime
3312 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
3314 * Application.cs: When a toolstrip has the keyboard input loop, let messages
3315 it does not use flow through to controls that are hosted in menus.
3316 Same with mouse clicks.
3317 * Form.cs: Don't close all menus on click if the click is on a
3318 control hosted in a menu.
3319 Fixes part of bug #327498, and part of bug #325969.
3321 2007-10-31 Andreia Gaita <avidigal@novell.com>
3323 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
3325 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
3327 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
3328 Addresses an issue raised in bug #336218.
3330 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
3332 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
3333 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
3335 2007-10-30 Andreia Gaita <avidigal@novell.com>
3337 * ContainerControl.cs: Check if the active control is a
3338 child of a removed control and update active_control accordingly.
3341 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
3343 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
3344 or the MaxDate. Fixed bug #337693.
3346 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
3348 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
3349 after calling SetWindowLong for a form, to force an immediate NC refresh.
3350 Fixes first part of bug #325150.
3352 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
3354 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
3355 simple. Fixes the last part of bug #322668.
3357 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
3359 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
3360 needs to be TopMost as well, or else the MessageBox is under the form.
3361 Patch by George fixes bug #325300.
3363 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3365 * X11Dnd.cs: When starting a new drag operation, reset the static
3366 'dropped' field to false (previously the implementation didn't reset
3367 it and got confused after the first drag).
3370 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3372 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
3373 items instead of re-creating them all. For this purpose we now cache
3374 both CategoryGridEntry items and the GridEntries for the main object's
3376 * GridItem.cs: Make SetParent method abstract.
3377 * GridEntry.cs: Override the SetParent method (already there, but now
3381 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3383 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
3384 depending on its depth (as .Net does). Update the needed values in
3385 MouseDown handler. Also draw the plus/minus rect after the label,
3386 so we don't draw on top of it.
3388 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
3390 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
3391 processed by forms or controls when menu is active. [Fixes #333548]
3393 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
3395 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
3396 parent doesn't have focus. This was causing ToolStripTextBoxes to take
3397 focus on mouse over.
3399 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
3401 * TextControl.cs: Code cleaning, simplifying.
3403 2007-10-24 Geoff Norton <gnorton@novell.com>
3405 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
3406 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
3408 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
3410 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
3411 the cap is maxvalue, not actually 0. [Fixes bug #336218]
3413 2007-10-24 Andreia Gaita <avidigal@novell.com>
3415 * SendKeys.cs: apply jpobst's patch to bug #332409
3417 2007-10-23 Andreia Gaita <avidigal@novell.com>
3419 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
3420 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
3423 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3425 * PropertyGridView.cs: If a property has an UIEditor available,
3426 make the drop-down/editor button available only if the property
3429 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3431 * PropertyGridView.cs: Don't make the grid item textbox
3432 editable when a drop-down control is available, but
3433 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
3434 true. The same bur the color of the grid item value's label.
3436 2007-10-22 Geoff Norton <gnorton@novell.com>
3438 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
3439 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
3440 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
3441 driver. Padd the bottom of all real windows so the resize thumb doesn't
3442 obscure scroll/status bars.
3444 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
3446 * WindowsFormsSection.cs: Implement.
3448 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
3450 * MdiClient.cs: Maximize new active mdi child when a maximized child is
3451 closed see #325434 patch.
3453 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
3455 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
3458 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3460 * PropertyGridView.cs: When showing the textbox for a grid item,
3461 have two local variables to store the read-only and non-editable
3462 status of a grid item (we were previously using just one variable
3463 to do this, when actually they are slightly different).
3464 Fixes part of #325023.
3466 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3468 * PropertyGridView.cs: When showing a drop-down list, try to get the
3469 values using TypeConverter.ConvertTo (to convert to a string). Fixes
3472 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3474 * PropertyGrid.cs: When updating a property and populating sub grid
3475 items, remove the previous ones, and invalidate the specific area.
3476 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
3477 area behind a grid item.
3478 * GridItemCollection.cs: Add an internal Clear method, to allow us to
3479 clean the items if needed (specially for controls implementing
3480 ICustomTypeDescriptor and returning a variable number of properties).
3483 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
3485 * TextControl.cs: Clean up and document the Insert function.
3487 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
3489 * TextControl.cs: Make sure we know our start point for updating the view
3490 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
3493 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
3495 * ListView: Couple of corcompare fixes.
3497 2007-10-17 Geoff Norton <gnorton@novell.com>
3499 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
3500 the title caption of real window.
3502 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
3504 * ErrorProvider.cs: Add the error provider's internal window to a
3505 containercontrol when the parent changes. [Fixes bug #329714]
3507 2007-10-17 Geoff Norton <gnorton@novell.com>
3509 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
3510 When we make a new window; restore the old active window - fixes dialogs.
3512 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3514 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
3515 when modifying a property, and if found then invalidate as
3517 Fixes part of #324865.
3519 2007-10-17 Geoff Norton <gnorton@novell.com>
3521 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
3522 highly experimental. Fixed coordinate translation. Fixed window locations.
3523 Initial support for clipping. Implemented NC areas and menus. Support for
3524 launching from command line from Will Johansson (wjohansson@atacomm.com).
3525 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
3526 wjohansson@atacomm.com)
3527 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
3528 Hwnds now track the existence of all of their children for Mac clipping.
3529 * XplatUI.cs: Re-enabled the native driver on the Mac.
3531 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
3533 * Line.cs: Move the InsertString function to here.
3534 * TextControl.cs: Cleanup some duplicate code, move some InsertString
3535 functionality to Line.
3537 2007-10-17 Geoff Norton <gnorton@novell.com>
3539 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
3541 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
3543 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
3544 always setting value to true.
3545 * Form.cs: When changing AcceptButton, notify new and original button.
3547 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
3549 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
3550 a custom control that implements IButtonControl instead of an actual
3551 button. [Fixes bug #334244]
3553 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
3555 * Form.cs: Change SelectActiveControl to internal, we need to call it in
3558 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
3559 active control when activate a new mdi window.
3563 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
3565 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
3569 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
3571 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
3572 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
3573 so we always recalculate the whole document instead of just the new part.
3576 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
3578 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
3579 when the mouse was to the left of the first character in the line.
3581 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
3583 * TextBox.cs, TextBoxBase.cs: When setting the document's password
3584 character, use the property instead of the variable so that the
3585 UseSystemPasswordChar property is taken into account.
3588 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3590 * FolderBrowserDialog.cs: When a node is right clicked and the "New
3591 folder" contex menu appears, actually add the new folder to it, even
3592 if the node is not currently selected. Still use SelectedNode in case
3593 there wasn't found a node under the pointer.
3596 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3598 * ListViewItem.cs: When retrieving the focused state, the index check
3599 should be done only when ListView is in virtualmode, as it is an
3600 expensive check for normal mode.
3602 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3604 * ListViewItem.cs: Make the focus state information be stored
3605 in the ListView, not in the items. This is done to match the MS
3606 behaviour for items that are not yet part of a ListView control;
3607 besides that, since just one item can be focused at the same time,
3608 we save a little space in our items.
3609 Fixes part of #331643.
3611 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
3613 * ComboBox.cs: When focus is lost, deselect the text. When setting
3614 text of control, select all text. Do not hide selection when control
3615 does not have focus. Fixes bug #333663.
3617 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
3619 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
3620 instead of ArgumentException when SelectionLength is set to negative
3621 value. Added same check to SelectionStart. Code formatting.
3623 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
3625 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
3626 or SelectionStart. Code formatting.
3628 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3630 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
3631 indicating that there was not a previous drag-and-drop operation going
3633 Fixes part of #325071.
3635 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3637 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
3638 AllowedEffect, don't let the drop operation happen.
3641 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
3643 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
3645 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
3647 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
3650 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
3652 * Line.cs: Add a method that finds the tag that contains an x-coord.
3653 * LineTag.cs: Add a method that finds the character at an x-coord using
3654 a binary search, the old way was a linear search.
3655 * TextControl.cs: Change FindCursor to use the above new methods.
3657 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3659 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
3660 value different than AllowedEffect). This should be possible to
3661 indicate that dragging is not possible in some control/area.
3663 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
3665 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
3666 descent internally when font changes instead of outside code being responsible
3668 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
3669 instead of accessing internal variables.
3671 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
3673 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
3674 remove special treatment for ArrangeIcons since it is already arranged.
3676 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
3678 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
3679 the Win32 backend uses Color.
3680 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
3681 Refactor to store a Color instead of a Brush for Color.
3683 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
3685 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
3686 away. I didn't realize I needed this when I refactored these earlier.
3688 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
3690 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
3691 store a Color structure and use the ResPool for back color instead of
3692 holding onto brushes.
3694 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
3696 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
3699 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
3701 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
3702 to recalculate its size. Fixes a part of bug #331052.
3704 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
3706 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
3707 button. Fixes a part of bug #331052.
3709 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
3711 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
3713 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
3717 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
3719 * TextBoxTextRenderer.cs: Don't make this a static class, as static
3720 doesn't exist in 1.1. (Thanks jb!)
3722 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
3724 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
3725 class to allow us to use different backends on different platforms.
3726 Linux uses the current [Draw|Measure]String backend. Windows uses
3727 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
3728 of GDI+. This leads to better looking text and more accurate measurements
3729 on Windows, fixing many of the reported issues.
3730 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
3732 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3734 * FolderBrowserDialog.cs: When running on Windows,
3735 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
3736 since we must match both "C:" and "C:\" forms. A little hackish, but
3740 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3742 * ListView.cs: When calling EndEdit (after editing an item),
3743 create a new instance of LabelEditEventArgs to keep clean the fields
3744 in case we get a new call to BeginEdit; also do Application.DoEvents
3745 to have focus in synch. This is a fix similar to TreeView's #325244.
3747 2007-10-07 Andreia Gaita <avidigal@novell.com>
3749 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
3750 * WebBrowserBase.cs: Added dialog support, calling the
3751 WebBrowserDialogs classes for each specific dialog type.
3753 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3755 * ListView.cs: When the last item is focused and is removed,
3756 move the focus to the previous item (in Items order). This is what MS
3760 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3762 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
3763 instead of the opposite (RemoveAt call Remove). This is a better
3764 approach since we don't need to to a pair of traversals when using
3767 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3769 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
3770 check that the node actually has nodes, and if not, move to the
3771 parent node instead.
3774 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3776 * TreeView.cs: Move the previous change to the general case (to
3777 call Application.DoEvents in cases where the method was called by
3780 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3782 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
3783 call Application.DoEvents. This is neccessary when we get a call to
3784 BeginEdit from an AfterLabelEdit handler, because the focus always
3785 goes to the TreeView, even if we try to give it to our
3786 LabelEditTextBox. The call do Application.DoEvents seems to
3787 synchronize the focus, basically.
3790 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3792 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
3793 should be false. This also removes some nasty recursive paths. Fixes
3796 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
3798 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
3799 state to normal. Also resize window when cascading. Fixes #325433.
3801 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
3803 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
3804 DefaultForeColor, as drawing empty colored lines isn't very useful.
3805 [Fixes the not drawn lines part of bug #324358]
3807 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
3809 * TextControl.cs: Move Line and LineTag classes into separate files to
3810 make things easier to find.
3811 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
3812 * RichTextBox.cs: Capitalize LineTag.Length property access.
3813 - This is purely an organizational/formatting change, no logic changed. -
3815 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
3817 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
3820 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
3822 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
3825 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
3827 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
3828 prevent calling of OnBackColorChanged. Fixes #325321.
3830 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
3832 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
3833 because control can be disabled because owner is disabled.
3835 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
3837 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
3838 string.Empty, test failed from previous change.
3840 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
3842 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
3843 is null, not String.Empty. See bug #323038.
3845 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
3847 * TextControl.cs: Change the margins to match MS a little better.
3848 Still not perfect for X11 due to some DrawString differences, but
3849 is still an improvement over the old stuff.
3850 Partially fixes #324467.
3852 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3854 * FolderBrowserDialog.cs: When using MyComputer as
3855 RootFolder, let absolute paths be considered as valid ones. Also, use
3856 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
3857 for Windows compatibility.
3858 Partially fixes #325247.
3860 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3862 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
3863 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
3864 method, since it causes the dialog to not select folders directly
3865 under the root path (when setting SelectedPath property).
3867 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3869 * TreeNode.cs: When calling Expand/Collapse and need to call
3870 ExpandBelow/CollapseBelow respectively, take into account
3871 partially visible nodes (previously Expanding/Collapsing
3872 a partially visible node in the bottom was not updating its +- sign).
3874 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3876 * TreeView.cs: When calling Expand on a TreeNode, and we need to
3877 expand nodes below (ExpandBelow), scroll the entire Viewport
3878 area if the node is above it and not visible (instead of scrolling
3879 the area from node's Bottom, which applies only when the node is
3883 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3885 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
3886 node in the bottom area (as .Net does). This is done to preserve the
3887 scroll position when ExpandAll is called before handle is created for
3888 the 1.1 profile (bottom area, as opposed to top area in 2.0).
3891 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3893 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
3894 bottom area if we are in fact not using the vertical scroll bar.
3897 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
3899 * Control.cs: Comment out a double buffering optimization that doesn't
3900 take into account invalidates created in OnPaint, causing the control
3901 to never be redrawn. It would take quite a bit of work to work around
3902 this, but I left it commented with an explanation for later possible
3906 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
3908 * Control.cs: Ask parent to perform a layout if control is AutoSize and
3910 * RadioButton.cs: Implement GetPreferredSizeCore.
3913 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
3915 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
3918 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
3920 * Application.cs: Move the sync context stuff to Run instead of RunLoop
3921 so that it doesn't get uninstalled on modal forms.
3922 * Control.cs: Install a sync context when a control is created.
3923 * WindowsFormsSyncronizationContext.cs: Create a private static control
3924 to invoke on. This is easier than trying to find a created control we
3928 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
3930 * Application.cs: Install a WindowsFormsSynchronizationContext in the
3931 run loop, and uninstall it when done.
3932 * WindowsFormsSynchronizationContext.cs: Implement.
3933 [Fixes the common case in bug #327608]
3935 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
3937 * DataGridViewCellCollection.cs: Added argument checks for indexers.
3938 Use case-insensitive lookup of column name in indexer. Code
3941 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3943 * TreeNode.cs: When collapsing or expanding a node, check whether its
3944 change will affect the visible area (we were previously doing a
3945 IsVisible check, but that check is not enough since children nodes
3946 could be still visible). Fixes part of #325266.
3948 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
3950 * TreeView.cs: Always select the first node when the TreeView gets
3951 focus if there is no currently selected node.
3954 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
3956 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
3957 node being selected is null.
3958 [Patch from Yves Bastide fixes bug #326858]
3960 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3962 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
3963 whether all the parent nodes are expanded.
3964 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
3965 call RecalculateVisibleOrder if all previous nodes are expanded.
3966 Before that we were doing a IsVisible check, but sometimes the node
3967 is not in the visible area, but _should_already be ready, because of
3968 all previous nodes are expanded. Fixes #325259.
3970 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
3972 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
3973 portion of the item is clicked.
3975 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
3977 * TextControl.cs: Do not tell the system to move the cursor if the
3978 textbox isn't focused. Fixes part of bug #322668.
3980 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
3982 * ComboBox.cs: When there are no items, do not show the dropdown if
3983 the down arrow is clicked. Fixes part of bug #322668.
3985 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
3987 * ToolStripComboBox.cs: Manually set the size of this control in the
3988 constructor, as it doesn't seem to be the same as DefaultSize.
3989 Fixes a failing monobuild test.
3991 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
3993 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
3994 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
3996 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
3998 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
3999 Desktop. This lets it work for people who have moved their desktops
4000 from the default location on windows. For people who have not, both
4001 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
4003 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4005 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
4006 but when the base constructor sets this, the control is null. Set it
4007 again in the constructor. Fixes a failing monobuild test.
4009 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4011 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
4013 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
4016 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4018 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
4019 will handle it themselves.
4020 * ToolStripItem.cs: When deciding what the text of a tooltip should
4021 be, use the Text property instead of the text field.
4022 * ToolStripTextBox.cs: Handle tooltips.
4023 [Fixes bugs #325417 and #325973]
4025 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4027 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
4028 left click. Fixes the easy part of bug #325969.
4030 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4032 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
4033 bug #325406, but set a minimum for StatusStrip to 22 to keep
4034 bug #325390 fixed. I think this minimum would have been figured
4035 up automatically if the grip was actually a ToolStripItem, but it
4038 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4040 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
4041 as this is apparently the actual value used by .Net. Also apply
4042 ItemPadding in Details view only, and decrease the general width padding,
4043 to have only the needed. This should fix #324340 in Windows too.
4045 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4047 * ListViewItem.cs: Don't Invalidate item if parent is inside
4048 a BeginUpdate/EndUpdate block. This prevents to have differences
4049 between the ListView and items state, as well as avoid some exceptions
4051 * ListView.cs: Make 'updating' field internal.
4053 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
4055 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
4056 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
4057 size if appropriate.
4058 Fixes reopened bug #325414.
4060 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
4062 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
4063 * ToolStripItem.cs: Invalidate before and after our new autosize when
4065 Fixes reopened bug #325390.
4067 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
4069 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
4070 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
4073 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
4075 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
4077 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4079 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
4080 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
4083 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
4085 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
4086 item to select when the ToolStrip is selected.
4087 * ToolStripControlHost: Realign the control when the bounds or visibility
4089 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
4090 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
4092 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
4093 base.OnPaint. Was causing text not to be drawn.
4095 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
4097 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
4099 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4101 * TreeView.cs: When creating the label edit text box,
4102 set is initially to Visible = false. This is done to
4103 prevent a confusion in the layout which makes it to lose
4104 focus when shown the first time. Fixes part of #82592.
4106 2007-09-13 Andreia Gaita <avidigal@novell.com>
4108 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
4110 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4112 * ToolStrip.cs: Take Margin into account when calculating preferred
4113 size. Also, allow preferred size to get smaller than the explicit
4115 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
4116 First step towards fixing bug #82747.
4118 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4120 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
4121 full row select background over the plus/minus glyph. Also, turn
4122 off the focus rectangle for full row select since MS doesn't seem
4123 to ever paint it. [Fixes bug #81839]
4125 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4127 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
4128 This was causing keyboard opened dropdowns to lose focus.
4131 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4133 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
4134 ClientRectangle instead. [Fixes bug #82838]
4136 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4138 * SplitContainer.cs: We can't reset Visible on every layout because
4139 someone may have set Visible = false explicitly on a SplitterPanel.
4140 Make sure when we switch orientation the SplitterDistance does not
4141 change. Fixes two failing tests.
4143 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4145 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
4146 TextRenderer, since the latter is only available in 2.0.
4148 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
4150 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
4151 * SplitContainer.cs: Implement FixedPanel layouting.
4153 2007-09-12 Andreia Gaita <avidigal@novell.com>
4155 * WebBrowserBase.cs: setup shutdown routine
4157 2007-09-12 Andreia Gaita <avidigal@novell.com>
4159 * Application.cs: Let keyboard events that are targetted
4160 to non-mwf windows hosted inside mwf (as in, webbrowser),
4161 propagate properly. Fixes keyboard handling on the webbrowser.
4163 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4165 * ListView.cs: When handling MouseUp event and we are
4166 highligting a node with the mouse right button, don't trigger
4167 Before/AfterSelecting event, since we are not actually selecting
4170 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4172 * TreeView.cs: When editing a node, modify the edit text box
4173 depending on the text length (as you are typing), like MS does.
4175 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
4177 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
4178 Override GetPreferredSizeCore to perform calculations. Remove custom
4179 autosize logic. [Fixes bug #82739]
4181 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
4183 * TextBoxBase.cs: Modified should default to false.
4185 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
4187 * Control.cs: Update the anchoring distances even when layout is supspended.
4188 Patch provided by George fixes bug #82805.
4190 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
4192 * Control.cs: Provide a setter for ExplicitHeight.
4193 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
4194 remove the hacks in here for requested_height.
4197 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
4199 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
4200 Maximum to lower that its current Value caused an ArgumentException by setting
4201 the Value to the new Maximum.
4203 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
4205 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
4206 handle moves to the closest tick when it is being dragged.
4209 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
4211 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
4212 can't let them count as real items when calculating where to merge in the
4213 user's items. [Fixed bug #82786]
4215 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
4217 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
4218 who want to add a menu item directly onto a toolstrip.
4219 [Fixes bug #82775, part II]
4221 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
4223 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
4224 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
4225 don't set it to available.
4226 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
4227 [Fixes bug #82727, part II]
4229 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
4231 * StatusStrip.cs: Change item placement to None if not visible.
4232 * ToolStripItem.cs: Invalidate when InternalVisible changes.
4233 These should have been committed to fix 82723, but I missed them.
4235 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
4237 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
4238 Click, and that it is only called once.
4239 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
4240 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
4244 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4246 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
4248 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
4249 instead of 8, just like above. Partially fixes #82734.
4251 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4253 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
4256 * ListView.cs: Remove extra space between rows in Details view (match
4258 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
4261 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
4263 * Application.cs: Modified ProductVersion to return value of
4264 AssemblyInformationVersion if available, and fallback to assembly
4265 version. Fixes bug #82746. Code formatting.
4266 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
4269 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4271 * Control.cs: When updating ZOrder for a child control,
4272 take into account the implicit ones (we need it in our controls
4273 using them). Fixes #82642.
4275 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
4277 * ToolStripItem.cs: Add support for animated images.
4280 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
4282 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
4283 visible. [Fixes bug #82727]
4285 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4287 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
4288 so we repaint using the new size. [Fixes bug #82723]
4290 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4292 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
4293 option. [Fixes bug #81779]
4295 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4297 * TreeView.cs: Override HandleClick because the StandardClick style is
4298 set to false. According to MSDN (and testing), the click events should
4299 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
4301 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4303 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
4304 the border will disappear. Fixes reopened #82653.
4306 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4308 * Control.cs: If the control is autosize, and its preferred size changes
4309 when it lays out its children, tell its parent so it can be re-layed out.
4310 Fixing some of the fallout from r85433.
4312 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4314 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
4315 and CheckBox share some code.
4317 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4319 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
4320 the TrackBar, not every mouse move. [Fixed bug #82718]
4322 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4324 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
4325 under 2.0 rendering. [Fixes bug #82657]
4327 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4329 * TreeView.cs: If we found a TreeNode to display a context menu, but
4330 it doesn't have one to show, let the TreeView display its menu
4331 instead. [Fixes bug #82680]
4333 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4335 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
4336 OnPaintInternal instead. Give the internal TextBox a Border property
4337 so it can draw itself more correctly. [Fixes bug #82653]
4339 2007-09-06 Zoltan Varga <vargaz@gmail.com>
4341 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
4343 2007-09-05 Everaldo Canuto <everaldo@simios.org>
4345 * ComboBox.cs: Adjust combobox button state to reflect current state when
4346 back to enabled = true. Fixes first issue of #82654.
4348 2007-09-05 Everaldo Canuto <everaldo@simios.org>
4350 * Control.cs: Fix last patch regression, prevent forms to update zorder when
4351 setting visible property.
4353 2007-09-05 Everaldo Canuto <everaldo@simios.org>
4355 * Control.cs: Update zorder after control creation in SetVisibleCore, it
4356 fix zorder for controls initially created as non visible. Fixes #82667.
4358 2007-09-04 Everaldo Canuto <everaldo@simios.org>
4360 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
4361 mimic win32 look. Fixes #82656.
4363 2007-09-01 Zoltan Varga <vargaz@gmail.com>
4365 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
4366 Stubs for new net 3.5 classes.
4368 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4370 * ListViewItem.cs: In ListViewItemCollection operations calculate
4371 Layout for owner as well as invalidate it. Fixes part of #82642.
4373 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
4375 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
4376 when returning Enabled. [Fixes bug #82651]
4378 2007-08-30 Everaldo Canuto <everaldo@simios.org>
4380 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
4382 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4384 * ListView.cs: Put item padding info in a single place
4385 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
4387 * ThemeWin32Classic.cs:
4388 * Theme.cs: Likewise.
4390 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4392 * ListView.cs: When a ListViewSubItem instance is invalidated,
4393 invoke Invalidate on parent ListViewItem, not parent ListView.
4396 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
4398 * ListView.cs, ListViewItem.cs: corcompare stuffs.
4400 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
4402 * BindingMemberInfo.cs: Implement == and != operators.
4404 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
4406 * HtmlElementEventArgs.cs: Implement properties.
4408 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
4410 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
4412 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
4414 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
4415 Add (string,string,string) to implement the imagekey. It turns out, we
4416 use the requested imagekey whereas .Net does not. So I broke ours to match
4419 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
4421 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
4423 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
4425 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
4427 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
4429 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
4430 up-to-date. Fixes bug #82618.
4432 2007-08-29 Everaldo Canuto <everaldo@simios.org>
4434 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
4435 reflect document changes. Fixes #82367.
4437 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4439 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
4440 as well as add new ones. This should make work the BackgroundImage
4441 property for ListView again.
4443 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
4445 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
4446 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
4447 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
4449 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
4451 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
4454 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
4456 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
4457 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
4459 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
4461 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
4462 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
4464 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
4466 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
4468 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
4470 * GridEntry.cs: Implement GetService.
4472 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
4474 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
4475 for label editting, make sure we focus back on the TreeView.
4478 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4480 * ListView.cs: Add some 2.0 overrides.
4482 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
4484 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
4485 because getter dont returns right value before handle creation. Thanks
4486 to George. Fixes #82569.
4488 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
4490 * Theme.cs: Revert last patch, it causes error under win32.
4492 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
4494 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
4495 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
4496 logical Desktop rather than the physical file system location. Fixes #82603.
4498 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
4500 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
4501 for the patch. Fixes #82568.
4503 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4505 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
4508 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4510 * ListViewInsertionMark.cs: New stubbed class.
4512 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
4514 * FolderBrowserDialog.cs: When adding folder, immediately create the
4515 directory with temporary name and rename the directory when editing
4516 finishes. This matches MS. Ensure the node for the new folder is
4517 selected and LabelEdit is disabled, when editing is either finished
4520 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
4522 * TreeView.cs: When editing label of node, ensure node is visible.
4524 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
4526 * PropertyGridView.cs: Set the value only if it has changed.
4528 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4530 * ListView.cs: Some more code refactoring to add support sorting
4531 with groups (now for Details view). Remove unused code also.
4533 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
4535 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
4536 Not a big fan of reacting immediately to a field in an EventArg, but that's
4537 the way it's done. (This is part of the previous commit that got left out.)
4539 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
4541 * FolderBrowserDialog.cs: Removed need for separate description field.
4542 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
4543 has focus when dialog box is displayed again, regardless of what
4544 button was pressed the previous time. Set RootFolder and SelectedPath
4545 each time dialog box is displayed. This ensures the treeview is
4546 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
4547 when it does not have focus. Added support for more special folders.
4549 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
4551 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
4552 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
4553 it resets the edit_args.
4554 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
4557 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
4559 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
4560 button to match MS. Provide more meaningful exception message for
4561 invalid RootFolder value. Use zero-length string when SelectedPath
4562 is set to null. Allow non-rooted paths in SelectedPath, but ignore
4563 them in FolderBrowserTreeView. Allow folders to be created in
4564 RootFolder. Fixes bug #82576.
4566 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4568 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
4569 since we need to take into account the group headers and the margin
4571 * ListViewGroup.cs: Add a rows field to store the number of rows per
4574 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
4576 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
4577 Anyways, let's just follow the lead.
4579 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
4581 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
4582 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
4583 controls in GetPreferredSizeCore.
4584 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
4587 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
4589 * PrintDialog.cs: Need to instantiate the form variable here too.
4591 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4593 * ListView.cs: Do some reorganization to support sorting in groups,
4594 by doing the layout sequentially in ListView.Items. Also add support
4595 for the Default Group, which should be available for items with no
4597 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
4598 for storing layout info also.
4599 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
4600 collection, as well as providing internal members to do a traversal
4601 including the default group (needed when doing layout/drawing).
4602 * ThemeWin32Classic.cs: When drawing group headers use internal
4603 ListViewGroupCollection members to take into account the default
4606 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
4608 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
4610 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
4612 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
4613 been created. If handle is created, we want arror keys. If we are editing
4614 a node, we want things like enter, esc, home, end, page up, page down.
4615 Allows Esc to work for FolderBrowserDialog.
4617 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
4619 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
4620 they close when ESC is pressed. Thanks Andy!
4622 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
4624 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
4625 This way we can tell if this is a CommonDialog provided with mono, or one
4626 that is being implemented outside by a developer. If it is an external one,
4627 the developer is responsible for showing their own form. We were showing
4628 our blank form after the developer showed his.
4629 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
4630 PageSetupDialog.cs: Instantiate form variable in our constructor.
4633 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
4635 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
4636 and always return true. [Fixes bug #81616]
4638 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
4640 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
4641 TextBox. [Fixes bug #82549]
4643 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
4645 * FileDialog.cs: When Save/Open is clicked and no filename is selected
4646 or entered then do not close the dialog. Fixes bug #82539. Removed
4649 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
4651 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
4652 code to this method. It is calling every time filter changes. This method
4653 will help to fix the bug #80887.
4655 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
4657 * CheckBox.cs: Implement AutoSize calculation.
4659 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
4661 * CheckBox.cs: Use new 2.0 rendering for 2.0.
4662 * Theme.cs: Method declarations for 2.0 rendering path.
4663 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
4665 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4667 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
4669 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4671 * ListViewGroupCollection.cs: Implement AddRange the right way, to
4672 only call Redraw on the parent one time.
4674 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
4676 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
4677 GetClipboardContent.
4678 * DataGridViewCell.cs: Implemented GetClipboardContent,
4679 GetEditedFormattedValue, GetFormattedValue.
4680 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
4682 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
4684 * TableLayoutStyleCollection.cs: corcompare fix.
4686 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
4688 * DataObject.cs: Implemented retrieval of convertible / not convertible
4691 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
4693 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
4694 ourselves. This ensures the entire old bounds are repainted, in case our new
4695 size is smaller. [Fixes bug #82518]
4697 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
4699 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
4700 flag to make fast handle of mouse events, without this the mouse move is
4701 handled in some manner, whether it is a mouse move or not. Fixes #81588.
4703 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4705 * ListView.cs: When doing layout calculations don't use a ref
4706 param to keep the current item; instead use its Index value (this
4707 is specially important when doing the layout with Groups
4708 and Items being sparse). Also don't take into account items added to
4709 the Group but not yet added to the main ListView.Items collection.
4711 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4713 * ListViewGroupCollection.cs: Forgot to mimic an issue
4714 in the indexer (don't assign the ListView owner for new values).
4716 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4718 * ListViewGroupCollection.cs: Make the string indexer use
4719 the int based indexer to re-use code, instead of duplicate the code.
4720 Also Redraw as needed and take into account null values.
4722 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
4724 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
4727 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
4729 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
4730 when other buttons are clicked or navigated to.
4732 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
4734 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
4735 it's XplatUIX11 that attaches them.
4737 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
4739 * DataGridView.cs: If a column has been added, recreate the editing row.
4742 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
4744 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
4745 of the tag to draw. Makes disappearing text show up again.
4747 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
4749 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
4750 Contents. Fixes #82487.
4752 2007-08-19 Andreia Gaita <avidigal@novell.com>
4754 * Added HtmlElement.cs, HtmlElementCollection.cs,
4755 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
4757 2007-08-19 Andreia Gaita <avidigal@novell.com>
4759 * BindingSource.cs: Implement this, dispose and getenumerator.
4760 * DataGridViewRowCollection.cs: Move the InvalidOperationException
4761 out of AddInternal, throw it only on public Add calls. The
4762 UsingWebBrowser sample was blowing up with this when setting the
4763 DataSource after adding DataBindings, so it's likely that .net
4764 only throws this exception when Add is called directly.
4766 * ToolStripControlHost.cs: Return the hosted control's text
4767 property, and not the ToolStripItem one (it would always return
4770 * HtmlDocument.cs: Implement GetElementById and All
4771 * WebBrowser.cs: Remove exception on set_DocumentStream.
4773 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
4775 * Form.cs: Fix the max and min value for opacity (0~1).
4777 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
4780 * DataGridTableStyle.cs: Default header font is now null, on getter it
4781 returns datagrid font when is null. On setter permits null.
4784 - When ResetHeaderFont set header font to null.
4785 - On EndInit set grid_style.DataGrid.
4787 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
4789 * TabControl.cs: Fix regression in default padding x.
4791 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
4793 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
4795 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
4797 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
4798 not 2. Fixes #82229.
4800 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
4802 * TabControl.cs: Fix tab size when image height is less than text height.
4803 Partially fixes #81837.
4805 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
4807 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
4808 "alt + tab". It works only for Win32, for X11 theres no way to remove window
4809 from taskbar and keep it on "alt_tab". Fixes #81722.
4811 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
4813 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
4814 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
4815 Fixes #80877 and #79418.
4817 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
4819 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
4820 between position and one of the screen borders. Fixes #82349.
4822 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
4824 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
4825 the MessageBox in the taskbar. Fixes #82457.
4827 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
4829 * MessageBox.cs: Fix form size when icon is set and text height is bigger
4830 than icon. Fixes #82468.
4832 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
4834 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
4835 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
4836 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
4837 Refactored HandleNCCalcSize somewhat to avoid code duplication.
4838 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
4839 FormBorderStyle to decide if we're calculating a new size from the
4840 client size or not. CreateParams: Don't fake tool windows, only the X11
4841 backend manages toolwindows manually.
4843 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
4845 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
4846 ObjectDisposedException.
4848 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
4850 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
4851 in OnLoad should not have any effect. [Fixes bug #82470]
4853 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
4855 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
4856 paint for controls that create their own ToolTipWindow instead of
4857 going through ToolTip.
4859 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
4861 * ToolTip.cs: Make Hide internal instead of public to match MS API.
4863 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4865 * ListViewGroupCollection.cs: Use generic List instead of an
4866 ArrayList, since this collection is 2.0 only.
4868 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
4870 * ToolTip.cs (Hide): Made public to make the build work (should
4871 this not be public?).
4873 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
4875 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
4877 * ToolTip.cs: Add an internal Visible property to facilitate transition.
4879 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
4881 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
4882 PopupEventHandler.cs: Make these internal for 1.1.
4883 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
4884 use ToolTipWindow internals.
4885 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
4886 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
4888 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4890 * X11Dnd.cs: Add a null check.
4892 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4894 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
4895 nothing else succeeds. Fixes #82453.
4897 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4899 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
4900 rectangle if we're painting to another window than the one the paint
4901 message was generated on. Simplify the code somewhat, which makes
4902 PaintEventEnd also simpler.
4904 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4906 * Control.cs: When changing parent of a form, let the form decide whether
4907 XplatUI.SetParent should be called or not.
4908 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
4909 recreating the handle. If the new parent's handle isn't created, don't
4910 recreate our handle, just destroy it. CreateParams: Check if the
4911 parent's handle is created before fetching it.
4913 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4915 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
4916 Update calls to PaintEventStart/End to take a Message argument.
4917 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
4918 take a Message argument.
4919 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
4920 Message argument, and handle the case where we don't paint to the window
4921 for which the paint message was generated.
4923 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4925 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
4926 Marshal.GetLastWin32Error. Plug nasty memory leak in
4927 PaintEventStart/End, we were creating a DC we weren't releasing.
4929 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4931 * ListView.cs: Add Groups support in Details view. Also have a small
4932 method to do the layout of the group header. Don't use a separate
4933 method to do the groups calculation in Icons view, since our methods
4934 are now a little simpler.
4935 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
4937 * ThemeWin32Classic.cs: Likewise.
4939 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
4941 * Application.cs: Add FilterMessage method and rework our message loop
4944 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
4946 * Application.cs: Add some methods and stub a few methods that are
4947 pretty much never used.
4949 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
4951 * TreeNode.cs: Add some serialization methods.
4953 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4955 * ListView.cs: In ListViewItemCollection have a
4956 'is_main_collection' field to not modify ListViewItem.ListView
4957 when using it as ListViewGroup.Items (and not ListView.Items)
4958 and also don't modify selection state (.Net behaviour).
4959 Instead, set group for items contained in a ListViewGroup.Items collection.
4960 * ListViewItem.cs: Simplify some code in Group setter.
4961 * ListViewGroup.cs: use the new .ctor to pass the current instance
4962 to the ItemsCollection.
4963 * ListViewGroup.cs: Set the ListView property for ListViewGroup
4964 instances when adding/removing. Also make Remove use RemoveAt, which
4965 should perform better.
4967 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
4969 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
4970 that crept into the 1.1 profile.
4972 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
4974 * ToolBarButton.cs: Implement ImageKey.
4976 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
4978 * ToolBar.cs: Implement ScaleControl/ScaleCore.
4980 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
4982 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
4983 created, it might have gotten destroyed since we last checked. Fixes
4986 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
4988 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
4989 tooltip will hide when mouse is moved off the control.
4992 2007-08-11 Andreia Gaita <avidigal@novell.com>
4994 * WebBrowserBase.cs, WebBrowser.cs: add implementation
4995 using Mono.Mozilla for loading and navigating webcontrol
4997 The initial implementation was done on
4998 /trunk/mozembed/tests/browser , and copied here.
5000 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
5002 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
5003 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
5005 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
5007 * DataGridView.cs: Add support for an editing row. Fixes #82226.
5008 RowTemplateFull: throw an exception if a column doesn't have a template.
5009 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
5010 add the row just before it.
5011 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
5013 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
5014 DataGridView field to be able to reach the grid's editing row.
5016 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
5018 * ToolTip.cs: If the control's handle hasn't been created when it has a
5019 tooltip set on it, don't check to see if we need to show the tooltip. This
5020 check was causing the control's handle to be created.
5023 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
5025 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
5027 Handle Not Created -1 0
5031 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
5033 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
5036 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
5038 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
5039 * ToolTip.cs: Implement some properties and owner draw.
5041 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5043 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
5044 show them again, since setting visibility causes a paint, causing an
5045 endless loop (instead use a temporary and set it all when it's known if
5046 they should be shown or not). Fixes #79265.
5048 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5050 * DataGridView.cs: Only do a full column/row selection if a header was
5051 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
5052 isn't pressed, deselect everything before selecting something.
5054 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5056 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
5057 behaviour according to bug #81075 - they are returned in the order they
5058 are selected. Fix HitTest to check if the point is within any of the
5059 headers. Allow for row/column selection when in ColumnHeader or
5060 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
5061 the row and column to call when their selected state changes, and
5062 updated selected_[rows|columns] whenever SetSelected* is called.
5063 * DataGridViewBand.cs: Initialize isRow correctly. Call
5064 SetSelected[Row|Column]CoreInternal when the selected state changes, and
5065 add a SelectedInternal to avoid StackOverflows.
5066 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
5067 ReadOnly no matter what.
5068 * DataGridViewSelectedColumnCollection.cs,
5069 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
5070 the items in reverse order (just as MS does...)
5072 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
5074 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
5075 itself, not part of a mnemonic. [Fixes bug #82378]
5077 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5079 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
5080 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
5081 the DGV, the column, the row, or the cell itself is readonly.
5083 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
5085 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
5087 * FileDialog.cs: Same.
5088 * TextRendered.cs: Same.
5089 * FolderBrowserDialog.cs: Same.
5090 * TextBoxBase.cs: Same.
5091 * Application.cs: Same.
5093 * ThemeClearLooks.cs: Same.
5095 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
5097 * XplatUI.cs: Added RunningOnUnix property to be used by controls
5098 instead of duplicating these checks everywhere.
5099 * FileDialog.cs: Use case-insensitive comparison for populating the
5100 DirComboBox when not running on unix. Fixes bug #82385.
5101 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
5104 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5106 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
5107 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
5108 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
5109 cell and column selection with ctrl and shift pressed. Call the correct
5110 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
5111 the corresponding virtual method (PaintBackground to paint background,
5113 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
5114 either the column, row or the cell itself is selected.
5115 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
5117 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
5118 here. When the row is selected, don't select all cells. Each cell now
5119 queries the row to see if the row is selected.
5121 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5123 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
5126 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5128 * ListView.cs: In ListViewItemsCollection check that owner is
5129 not null before trying to access it (this happens quite often
5130 using Groups). Also don't duplicate calls by calling CollectionChanged
5133 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
5135 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
5136 when we are dismissed to clear keyboard mnemonics.
5137 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
5138 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
5139 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
5140 was activated by keyboard or the OS tells us to always draw them.
5141 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
5142 [Fixes bugs #82376, #82377]
5144 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
5146 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
5147 shot at having it because Alt was pressed.
5148 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
5149 the first real menu item.
5150 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
5151 a mnemonic if Text is null.
5154 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5156 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
5157 search do check whether the item is already contained in the
5158 collection or not; instead check if the owner of the item is the same
5159 as ours. Also, remove a redundant check in the same method.
5161 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
5163 * Control.cs: Allow the clip region to be set back to null.
5164 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
5165 [Fixes button still showing up in bug #82370 when Show Through is turned off]
5167 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
5169 * GridEntry.cs: Add a null check.
5170 * PropertyGrid.cs: When checking for existing grid entries, ignore category
5171 entries. Fixes #82297.
5173 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
5175 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
5178 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
5180 * ListBox.cs: Implement ScaleControl.
5182 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5184 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
5186 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
5187 parent has a menu strip. Fixes #81689.
5189 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5191 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
5192 moments, so apply some fuzzy logic to determine if the mouse is still
5193 inside a control or not. Fixes #82288 (for the third time).
5195 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5197 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
5198 Don't create the child if it has been disposed already (may happen if
5199 the user closes the form the Load event).
5201 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5203 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
5206 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5208 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
5209 might call us after we've been destroyed, in which case our own private
5210 parent field is null. Fixes #82326.
5212 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
5214 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
5215 check for setting the dropdown's owner.
5217 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
5219 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
5220 before removing system menu items.
5222 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
5224 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
5226 * MdiControlStrip.cs: Added. These are the menu items used in mdi
5228 * ToolStrip.cs: Add a null check to mnemonics.
5229 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
5231 [Fixes most of bug #81689]
5233 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
5235 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
5237 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
5239 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
5241 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
5243 * DataGridViewCell.cs: EditType: returns
5244 DataGridViewTextBoxEditingControl always.
5246 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
5248 * TextRenderer.cs: Remove the LineLimit string format flag from the
5249 DrawString fallback method so that things like buttons that aren't
5250 tall enough to draw a full line will still draw part of the text.
5251 [Fixes part of bug #82272]
5253 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
5255 * DataGridView.cs: Implemented AutoResizeColumn(s).
5256 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
5257 according to the Alignment.
5258 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
5259 Implement alignment and padding when painting.
5260 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
5262 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
5264 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
5267 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
5269 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
5272 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
5274 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
5275 hide GetPreferredSize from public API.
5276 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
5277 * ToolStripItem.cs: Stub out drag and drop methods and events.
5278 * ToolStripManager.cs: Stub out Save/LoadSettings.
5279 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
5280 * ToolStripPanel.cs: Fix corcompare error.
5281 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
5282 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
5283 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
5285 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
5287 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
5288 bounds height instead of PreferredHeight. Puts things back the way
5289 they were for height while still fixing the width. Fixes broken unit
5292 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
5294 * Binding.cs: Implement 2.0 constructors and add a null check.
5296 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
5298 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
5299 and fix row index (off by one).
5301 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
5303 * PropertyGridView.cs: Remove debug output.
5305 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
5307 * Control.cs: We need to reset the is_created flags when the handle is
5308 destroyed. Fixes #82187.
5309 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
5310 client coordinates if the window doesn't have a parent.
5311 Win32GetParent returns the parent or the owner, and for top-level
5312 windows with no parent (but with an owner) we were calculating the
5313 location from the location of the owner.
5314 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
5315 form has been disposed.
5316 * MdiClient.cs: Add a null-check.
5318 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
5320 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
5321 actually do auto-sizing. Override the internal GetPreferredSizeCore
5322 so we can provide an implementation that returns the current width
5323 and preferred height. Allows anchor = right to work with TextBox 2.0.
5326 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5328 * ListView.cs: Add support for navigating items in Groups mode, by
5329 creating a big matrix containing all rows and cols of all groups. When
5330 are in other mode than Details, pressing Up should have a similar
5331 behaviour as that one of Down (moving to the next available column if
5332 current one doesn't have an item in the requested row). Also, don't
5333 proceed to use groups if ShowGroups is false.
5334 * ListViewGroup.cs: Add an internal int field to store the starting
5335 row of the group (used by the big matrix used for navigating the
5337 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
5340 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
5342 * ToolStripDropDown.cs: When we do Show, start with the
5343 DefaultDropDownDirection, but if our popup menu is going to off-screen,
5344 modify the direction to keep it on screen. [Fixes bug #82210]
5346 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
5348 * FileDialog.cs: Accept any FilterIndex value, and store it
5349 unmodified. When FilterIndex is less than 1, or greater than number
5350 of filters, then default to first filter. Only add filter extension to
5351 file if user did not specifiy an extension. When type of dialog is
5352 OpenFileDialog and DefaultExt is set, then only use filter extension
5353 if: CheckFileExists is true and no file wih the default extension
5354 exists, or CheckFileExists is false, and user specified file does not
5355 exist. When CheckFileExists is true, then add first extension of
5356 selected filter that matches existing file. Perform checks for
5357 existing file, overwrite and create after extension has been added to
5358 file name. When CheckFileExists is true and type is SaveFileDialog,
5359 then only consider first filter extension if DefaultExt is set.
5360 When CheckFileExists is true, then ignore DefaultExt if file with that
5361 extension does not exist. Also perform check for existing file when
5362 type is SaveFileDialog. Changed some field to constants.
5364 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5366 * ListView.cs: Take into account the region used by header
5367 control when doing the vertical scroll (this way we invalidate
5368 the precise area, and don't get any dirty one).
5370 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
5372 * FileDialog.cs: Check for valid filterIndex on button open/save.
5375 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5377 * ListView.cs: Update some layout calculations in details view
5378 and clean the code in a pair of assignations.
5380 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
5382 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
5383 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
5384 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
5385 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
5387 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
5389 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
5390 performance of thread-safe Graphic methods. (Thanks rolf!)
5392 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5394 * ListView.cs: When doing the layout calculations, don't calculate
5395 scroll bars before handle is created. This is unnecessary and also
5396 calculating them before handle creation item causes a number of random
5397 bugs (which begin to appear after Chris' big patch for handle creation
5400 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
5402 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
5403 for things that don't have a Graphics object. Currently, things just use
5404 the static Hwnd.bmp_g which is not thread safe.
5406 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
5408 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
5409 dialog. Fixes #82187.
5411 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
5413 * DataGridViewElement.cs: Initialize state.
5414 * DataGridView.cs: Forward a few Mouse events to cells. Add
5415 GetRowInternal and GetCellInternal that doesn't unshare rows.
5416 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
5417 don't use the index, but look it up. Add
5418 DataGridViewControlCollection.RemoveInternal to remove controls
5419 that Remove won't remove (scrollbars, edit control).
5420 * DataGridViewColumn.cs: Initialize State correctly.
5421 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
5422 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
5424 * DataGridViewRowCollection.cs: Implemented shared rows.
5425 * DataGridViewRow.cs: Throw exceptions as MS do.
5426 * DataGridViewCell.cs: A few properties are implemented by a
5427 Get<Property> method, so move implementation there and remove the
5428 NIEX in the method. Add a bunch of OnXInternal that DataGridView
5429 calls when necessary.
5430 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
5431 complicates matters.
5432 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
5435 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
5437 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
5438 the children controls. Instead, we will just set up the proper docking for the
5439 children controls so we don't have to worry about it. [Fixes bug #82188]
5441 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
5443 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
5444 canceling and correct Before/AfterLabelEdit properties as layed out in bug
5445 81847. [Fixes bug #81847]
5447 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
5449 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
5450 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
5451 an explicit size based on the design-time size of the text. Since our fonts
5452 may not match this explicit size, we tend to cut off the ends of people's labels.
5454 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
5456 * Menu.cs: Add some missing methods to MenuItemCollection.
5458 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5460 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
5461 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
5462 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
5463 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
5464 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
5465 * DataGridViewElement.cs: State defaults to Visible.
5466 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
5467 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
5469 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5471 * Control.cs: Minor 1.1 corcompare fix.
5473 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
5475 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
5476 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
5478 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5480 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
5481 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
5482 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
5483 DataGridViewSelectedColumnCollection.cs,
5484 DataGridViewSelectedRowCollection.cs: Corcompare work.
5486 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
5488 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
5489 it is autoset by VS2005 designer and the effect is barely noticeable.
5491 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
5493 * TreeView.cs: Implement HitTest.
5495 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5497 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
5498 manually adding and removing the control from the Controls
5500 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
5501 EditingControlInternal property that tracks the editing control.
5502 Always keeping the scrollbars in the Controls collection, as MS
5503 testing confirms is the right behaviour.
5505 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5507 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
5508 according to MSDN and new test.
5510 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
5512 * TreeNode.cs: Implement ToolTipText.
5513 * TreeView.cs: Implement tooltips, NodeMouse* events.
5515 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
5517 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
5519 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
5521 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
5522 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
5524 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
5526 * Control.cs, Form.cs, ContainerControl.cs,
5527 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
5528 for misc properties.
5530 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
5532 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
5533 * TreeView.cs: Implement StateImageList.
5535 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5537 * Form.cs: Don't check if the current form is the active form before
5538 activating it. Fixes #81904.
5540 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5542 * Form.cs: Don't check if the current form is the active form before
5543 activating it. Fixes #81904.
5545 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5547 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
5549 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5551 * Form.cs: Don't try to position the form after loading if the form was
5552 disposed. Fixes #81969.
5554 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5556 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
5557 properties. Had to change ToolBar into ToolStrip, which required a
5560 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5562 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
5563 resized, fixes part of #79829 (vertical lines in toolbar).
5564 PropertyGrid: Refactored Populate* to something that's easier to
5565 follow at least for me, as well as splitting it up into several new
5566 methods, required to update only subitems when something has
5567 changed by a popup editor or listbox. Don't use events to check
5568 when any values are changed, since the events are unreliable (we're
5569 changing the objects the events are registered with, and if the
5570 event handling requires the objects to be immutable (objects stored
5571 in hashtables for instance), the events will never be raised).
5572 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
5573 everytime we change a value, since events are unreliable.
5574 DropDownButtonClicked: For the same reason don't compare objects to
5575 check if it has changed or not, it would require all objects to
5576 derive Equals. Fix dialog location on windows, MS is doing weird
5577 things when creating parented forms.
5578 * GridEntry.cs: Add a SelectedObject setter.
5580 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
5582 * TreeNode.cs: Add some corcompare attributes.
5583 * TreeNodeCollection.cs: Implement 2.0 stuffs.
5584 * TreeView.cs: Implement some 2.0 stuffs.
5586 2007-07-18 Andreia Gaita <avidigal@novell.com>
5588 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
5591 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
5593 * ListBox.cs: Implement custom tab offsets.
5595 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
5597 * ToolStripContentPanel.cs: Support System renderer.
5598 * ToolStripControlHost.cs: Set RightToLeft to default to No.
5600 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
5602 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
5604 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
5606 * CheckBox.cs: Chain TextAlign to base implementation instead of
5607 maintaining another one.
5609 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
5611 * ButtonBase.cs: Fix an incorrect string constant.
5613 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
5615 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
5616 of creating one for measuring strings.
5618 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
5620 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
5621 Implement MaxItemSize.
5623 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
5625 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
5626 for DeviceContext. Instead, use the static one available in Hwnd.
5627 Informal tests show this saves about 500k on formtest.exe.
5629 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
5631 * ContainerControl.cs: Implement 2.0 AutoScaling.
5633 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5635 * ComboBox.cs: Work around bug #82120 (bug in mcs).
5637 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
5639 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
5640 Darken the focus color.
5642 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
5644 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
5646 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
5647 X, Y instead of a rect for drawing text.
5648 - For ControlPaint.DrawCheckBox, center the check a little better when the
5649 checkbox is odd width. When drawing a flat checkbox, use a white background
5650 when state != inactive.
5651 [Fixes bugs #82097, 82100]
5653 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
5655 * ListControl.cs: When changing CurrencyManager, disconnect event
5656 handlers from previous one. Fixes bug #81771. Code formatting.
5658 2007-07-15 Andreia Gaita <avidigal@novell.com>
5660 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
5661 full preview invalidation from layout invalidation, and only invalidate
5662 the layout when setting zoom or other properties. Invalidation should
5663 always be done even when resetting properties with the same values as
5664 what is there. Fixes #81744 and #79830.
5666 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5668 * ListView.cs: Implement initial support for Groups. Split some of the
5669 LayoutIcons code to render a partial list of the items (needed by
5670 items contained in ListViewGroup instances). Let the
5671 ListViewItemsCollection.ListView property be modifiable (needed when
5673 * ListViewGroup.cs: Use a Bounds property rather than a Location
5674 one. Also invalidate the bounds when they get changed.
5675 * ThemeWin32Classic.cs: When drawing items, also draw the group header
5676 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
5679 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5681 * ListView.cs: When space gets pressed and CheckBoxes is true,
5682 don't invoke the Begin and EndUpdate methods. We are generating
5683 a redraw of the entire control without need to do so.
5685 2007-07-13 William Holmes <billholmes54@gmail.com>
5687 * Control.cs: Changing logic in FindFlatForward and
5688 FindFlatBackward to handle multiple Controls with
5690 This fixes bug 81687.
5692 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
5694 * OSFeature.cs: Enable IsPresent.
5696 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
5698 * Control.cs: Don't do anything in WmShowWindow if the control has been
5699 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
5700 control is created, put on a form, the control is disposed (the
5701 form is never shown), and then we get a MapNotify, triggering a
5703 * Form.cs: Exclude the current form when sending Deactivate to all
5705 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
5706 there was a race condition because assigning the handle raises
5707 events, we can get more messages, therefore trying to assign the
5708 handle again, which would fail if any of those event handlers
5709 closed/disposed the control.
5711 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
5713 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
5715 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
5717 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
5718 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
5720 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
5722 * DateTimePicker.cs: If there's no part format specifier, return an
5725 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
5727 * FlatButtonAppearance.cs: Throw NotSupportedException for a
5728 Transparent BorderColor.
5730 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
5732 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
5733 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
5734 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
5735 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
5736 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
5737 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
5738 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
5740 * X11Structs.cs: Remove warnings, add ToString implementations.
5742 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
5744 * XplatUIX11.cs: Translate min/max size according to the actual min/max
5745 size, and not the current size. Fixes #81798.
5747 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
5749 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
5750 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
5751 to the control yet).
5753 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
5755 * PropertyGridTextBox.cs: Add a method that sends any forwarded
5756 mousedowns to the contained textbox.
5757 * X11Structs.cs: More ToString implementation.
5758 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
5761 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
5763 * PropertyGridView.cs: Add a null-check, fixes a few tests.
5765 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
5767 * TableLayoutPanelCellPosition.cs: TypeConverter.
5769 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
5773 * PropertyGridTextBox.cs: Propagate any color changes to all contained
5775 * PropertyGridView.cs: A few color fixes.
5777 2007-07-10 Jackson Harper <jackson@ximian.com>
5779 * TextControl.cs: Remove some old unused text formatting stuff.
5781 2007-07-10 Jackson Harper <jackson@ximian.com>
5783 * TreeView.cs: Update full row select invalidation to match the
5784 newer DrawSelection... method.
5785 - Make sure to invalidate the entire width when selecting a new
5786 node, if we have full row selection enabled.
5788 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
5790 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
5791 display of properties again.
5793 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
5795 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
5796 to existing collections.
5798 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
5800 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
5801 that changed between 1.1 and 2.0.
5803 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
5805 * PowerStatus.cs: Added. This is just a data class, it is filled
5806 in by SystemInformation.
5808 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
5810 * Message.cs: Add op_Equality and op_Inequality.
5812 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
5814 * MenuStrip.cs: Finish corcompare work.
5816 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
5818 * LinkArea.cs: Add op_Equality and op_Inequality.
5820 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
5822 * Application.cs: Add MessageLoopCallback delegate.
5824 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
5826 * ListBox.cs: First set of 2.0 stuffs.
5828 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
5830 * Control.cs: Make an internal Height property we can override
5831 without messing up the public API.
5832 * ListBox.cs: Override HeightInternal to always return the size
5833 the user set. [Fixes bug #80466]
5835 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
5837 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
5838 paint cell borders if we haven't calculated where they go yet.
5839 [Fixes bugs #82040 and #82041]
5841 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5843 * ListView.cs: In Details view, set the location of item_control
5844 in the (0,0) position (and the header_control is thus on the
5845 item_control). This way the Bounds of the Items are relative to the
5846 ListView control (before this, they had a Bounds value without the
5847 header_control offset, which wasn't matching .Net). Fixes #82004.
5849 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5851 * ListControl.cs: When DataSource is set to null, pass an empty
5852 array of object to SetItemsCore. This is done to clean the items
5853 in the ListContol children. Fixes #81788.
5855 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
5857 * ListControl.cs: Add 2.0 stuffs.
5859 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
5861 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
5862 Refresh is overkill for just about every repaint request.
5864 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
5866 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
5867 so remove my custom Get method and fix the property getter.
5869 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
5871 * Label.cs: DefaultMargin for 2.0.
5873 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
5875 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
5876 reported issue where other controls with mnemonics would steal strokes
5877 from a selected ComboBox.
5879 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
5881 * ScrollOrientation.cs: Make internal for 1.1.
5882 * ScrollEventArgs.cs: Add 2.0 stuffs.
5884 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
5886 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
5887 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
5888 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
5890 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5892 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
5894 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5896 * ListView.cs: Implement the so-incredibly broken 2.0
5897 VirtualItemsSelectionRangeChanged event.
5899 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5901 * ListView.cs: When enter is pressed and selection is non empty,
5902 an OnItemActivate event must be fired.
5904 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5906 * ListView.cs: Store the FocusedItem information as an
5907 int instead of a ListViewItem (needed by VirtualMode).
5908 Update the calls to SetFocusedItem to pass an index instead of
5910 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
5911 the Focused state from the owner ListView.
5913 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5915 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
5916 property. Also, invalidate previous focused item in the mentioned
5917 property (match .Net).
5919 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5921 * ListView.cs: Implement 2.0 FocusedItem property setter.
5923 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5925 * ListView.cs: Implement 2.0 TopItem property setter.
5927 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
5929 * StatusStrip.cs: The default renderer is System.
5930 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
5931 if the user specifies it.
5932 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
5933 if we are ManagerRenderMode.
5934 * ToolStripMenuItem.cs: Calculate our text color better.
5935 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
5936 from Professional to the base class based off working with the System renderer.
5937 * ToolStripSystemRenderer.cs: Added.
5939 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5941 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
5943 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
5945 * ToolTip.cs: Implement 2.0 Tag property.
5947 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5949 * ListView.cs: Implement 2.0 HitTest methods.
5951 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5953 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
5954 item is under the pointer or not (sugar). Also remove the TODO
5955 regarding to the cursor changes in OneClick activation.
5956 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
5957 the subitems use the parent's HotFont if UseItemStyleForSubItems is
5958 true; otherwise don't show the underline style.
5960 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5962 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
5963 the code to retrieve the item at position only one time. Also
5964 change cursor when Activation is ItemActivation.OneClick as well
5965 as invalidate the item if HotTracking is true (to show/hide the
5966 underline style). Add an internal HotItemIndex property to retrieve
5967 the current hot item's index.
5968 * ListViewItem.cs: Add an internal HotFont property to cache the
5969 font used when HotTracking is true and the pointer moves within the
5971 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
5972 HotFont depending on the hot state of the item.
5974 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5976 * ListView.cs: Implement 2.0 HotTracking property.
5978 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
5980 * ToolStripControlHost.cs: If our hosted control never got created,
5981 don't try to dispose it. [Fixes bug #81909]
5983 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
5985 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
5987 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
5989 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
5991 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5993 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
5995 * DrawListViewColumnHeaderEventArgs.cs:
5996 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
5997 using the DrawText () methods.
5999 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
6001 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
6002 background which got erased in my changes yesterday.
6004 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6006 * ListViewItem.cs: Actually set bounds for subitems in Details view
6008 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
6009 can invoke from the owner draw routines if we need it. Also, add
6010 support for Owner draw in Details view.
6012 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
6014 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
6015 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
6016 ShowImageMargin setting, properly align text in a ToolStripLabel
6017 hosted on a ToolStripDropDown.
6019 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
6021 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
6022 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
6024 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6026 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
6028 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
6030 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
6031 location to match ToolStripMenuItems.
6033 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6035 * DrawListViewColumnHeaderEventArgs.cs:
6036 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
6037 column headers in ListView.
6039 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
6041 * UserControl.cs: Implement AutoSize.
6043 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6045 * DrawListViewItemEventArgs.cs:
6047 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
6050 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
6052 * ToolStripDropDownItemAccessibleObject.cs: Added.
6053 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6054 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
6055 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
6056 ToolStripTextBox.cs: corcompare work.
6058 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
6060 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
6061 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
6062 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
6065 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
6067 * OSFeature.cs: Add IsPresent.
6068 * PrintPreviewControl.cs: Add RightToLeft.
6069 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
6070 * SplitterPanel.cs: Add AutoSizeMode.
6072 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
6074 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
6075 * MdiClient.cs: Add 2.0 ScaleControl.
6076 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
6077 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
6079 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
6081 * Form.cs: Implement some scaling methods, stub some RTL methods,
6084 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
6086 * Control.cs: corcompare work.
6087 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
6089 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
6091 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
6092 ControlPaint 2.0 stuffs.
6094 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6096 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
6098 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6100 * UpDownBase.cs: Add 2.0 stuffs.
6102 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6104 * NumericUpDown.cs: Add 2.0 stuffs.
6106 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6108 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
6110 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6112 * ErrorProvider.cs: Implement 2.0 stuffs.
6114 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6116 * DomainUpDown.cs: Implement 2.0 stuffs.
6118 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6120 * CheckedListBox.cs: Fix RefreshItems signature.
6122 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6124 * PictureBox.cs: Implement 2.0 stuffs.
6126 2007-06-12 Andreia Gaita <avidigal@novell.com>
6128 * TabControl.cs: Check if there are tabpages before checking
6129 the selected index - fix #81802 (font changes raise a ResizeTabs
6130 call on controls.add, which blew up nicely with no tabpages)
6132 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6135 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
6137 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6140 * ListViewItem.cs: In VirtualMode the selection information
6141 resides in the ListView, rather than in the Items. Also, throw
6142 InvalidOperationExceptions when VirtualMode is being used and
6143 CheckedItemCollection is accessed.
6145 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
6147 * ComboBox.cs: Add ScaleControl.
6149 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
6151 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
6153 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
6155 * GroupBox.cs: Add 2.0 stuffs.
6157 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
6159 * Panel.cs: Add autosize properties/event.
6161 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
6164 - When we remove a control, remove it from the collection before performing the layout.
6165 - Setup an internal property for explicit_bounds.
6166 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
6167 - Perform a layout when we set a new AutoSizeMode.
6169 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
6171 * ScrollableControl.cs: Add 2.0 stuffs.
6173 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
6175 * ScrollBar.cs: Add 2.0 stuffs.
6177 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
6179 * Splitter.cs: Add 2.0 stuffs.
6181 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
6183 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
6184 to have BindingContext simply use base implementation.
6186 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
6188 * ColumnHeader.cs: corcompare fix.
6190 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
6192 * Button.cs: corcompare fixes.
6193 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
6195 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
6197 * Button.cs: Override GetPreferredSizeCore.
6198 * ButtonBase.cs: PerformLayout after changing properties that can affect
6199 AutoSize. Simplify some mouse/keyboard code.
6200 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
6201 * MouseEventArgs.cs: Make Location internal for 1.1.
6202 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
6203 * Theme.cs: Add CalculateButtonAutoSize.
6204 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
6206 2007-06-05 Miguel de Icaza <miguel@novell.com>
6208 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
6210 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6212 * ListViewItem.cs: We can't cache Bounds in VirtualMode
6213 since we can get different item instances every time we retrieve it.
6215 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6217 * ListView.cs: Work around for #81602, since an unkown an pretty
6218 infrequent condition appears only in some systems (old linux boxes, it
6221 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
6223 * Button.cs: Completely reformat and a little refactor to bring
6224 this closer to Mono circa 2007.
6226 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
6228 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
6229 to be ButtonBase.Invalidate.
6231 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
6233 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
6235 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
6237 * ButtonBase.cs: Completely reformat and a little refactor to bring
6238 this closer to Mono circa 2007.
6240 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
6242 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
6243 values for autosize. Fixes #80137.
6245 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
6247 * Control.cs: Don't perform layout when AutoSize changes.
6248 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
6249 directly when autosizing, use SetBounds with BoundsSpecified.None.
6250 Fixes unit tests my last commit broke.
6252 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
6254 * Control.cs: Perform layout when AutoSize changes.
6255 * Form.cs: Implement AutoSizing.
6257 2007-06-01 Chris Toshok <toshok@ximian.com>
6259 * DataGrid.cs: remove the XXX'ed check at the top of
6260 ProcessGridKey. fixes #80464.
6262 2007-06-01 Chris Toshok <toshok@ximian.com>
6264 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
6265 adding idempotent (add/remove in Edit()), and also make sure we
6266 don't add it until after we set the text, so it's not tripped in
6267 Edit(). Fixes unit test regression.
6269 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
6271 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
6272 change is user explicit, not when the layout engine moves stuff. Fixes
6273 anchoring to bottom and right. [Fixes bug #81790]
6275 2007-06-01 Andreia Gaita <avidigal@novell.com>
6277 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
6279 2007-06-01 Andreia Gaita <avidigal@novell.com>
6281 * ContainerControl.cs:
6282 Fire enter event for common ancestor if it is not a ContainerControl.
6283 Send focus to the active_control and not the 'value', the active
6284 control might have been changed in one of the events fired.
6285 Definitely fixes #80159.
6287 2007-06-01 Andreia Gaita <avidigal@novell.com>
6289 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
6291 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6293 * PropertyGrid.cs: Anchor the help description to the bottom of the
6294 help panel and refactor SelectGridItem into a
6295 SelectGridItemInternal that can be set to null (and update it to
6296 clear the help texts when it is set to null). Set root item to null
6297 when there's no SelectedObject. Fixes #80438.
6298 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
6299 when we're recalculating after a resize (only).
6301 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6303 * ListView.cs: Implement 2.0 RedrawItems method.
6305 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6307 * ListControl.cs: Disconnect PositionChanged and ItemChanged
6308 handlers from previous data manager when DataSource is set to
6311 2007-05-31 Jackson Harper <jackson@ximian.com>
6313 * TextBoxBase.cs: These seem to be the correct values.
6315 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
6317 * FileDialog.cs: When close dialog with ok set filterindex using combobox
6318 value. Fixes #81784.
6320 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
6322 * Control.cs: Implement 2.0 scaling methods.
6324 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6326 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
6327 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
6330 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6332 * ProgressBar.cs: Implemented missing 2.0 members.
6334 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6336 * Control.cs: Corcompare issues.
6337 * MessageBox.cs: Implemented missing 2.0 functions.
6339 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6341 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
6342 Implemented more 2.0 members.
6344 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6346 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
6347 null (strange, but it seems to happen when running unit tests).
6349 2007-05-30 Andreia Gaita <avidigal@novell.com>
6351 * ContainerControl.cs: Set active_control even earlier, before
6352 firing any events, and undo it if validation returns false.
6354 2007-05-30 Andreia Gaita <avidigal@novell.com>
6356 * ContainerControl.cs: Raise Validation and Enter/Leave events
6357 even if there is no Form and set active_control earlier, just
6358 before firing Enter events (toshok's patches). Fixes #80647.
6360 2007-05-30 Jackson Harper <jackson@ximian.com>
6362 * TextControl.cs: Redid the pageup/pagedown a little to simplify
6363 things and fix bug #81311.
6365 2007-05-30 Jackson Harper <jackson@ximian.com>
6367 * X11Dnd.cs: Now that we have our own event loop, we need to
6368 cancel when we get a mouseup but it won't be accepted.
6370 2007-05-30 Chris Toshok <toshok@ximian.com>
6372 * DataGrid.cs (set_CurrentCell): guard against negative
6375 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
6376 array index syntax instead of looping over the property names.
6378 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
6379 and set IsInEditOrNavigateMode to false there.
6381 2007-05-30 Jackson Harper <jackson@ximian.com>
6383 * TreeView.cs: Make sure we don't get a bad visible order when
6384 setting to the top node. Fixes some misc crashing in
6387 2007-05-30 Andreia Gaita <avidigal@novell.com>
6389 * UserControl.cs: Add 2.0 AutoSizeMode
6391 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
6393 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
6395 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
6397 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
6398 lines. Fixes #80285.
6400 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
6402 * DataGridColumnStyle.cs: Add char trimming column header text format.
6404 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
6406 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
6409 2007-05-29 Jackson Harper <jackson@ximian.com>
6411 * TreeNode.cs: Fix off by one on calculating whether or not a node
6414 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
6416 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
6417 * ScrollableControl.cs: Force an UpdateDistances when we move the
6421 2007-05-29 Andreia Gaita <avidigal@novell.com>
6423 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
6424 update the page setup screen.
6426 2007-05-29 Andreia Gaita <avidigal@novell.com>
6428 * PageSetupDialog.cs: Fix landscape mode.
6430 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6432 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
6433 IconSizeHorizontalSpacing.
6435 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6437 * ListView.cs: The declaration of prev_tooltip_item should be inside
6438 a NET_2_0 conditional (avoid a warning).
6440 2007-05-28 Andreia Gaita <avidigal@novell.com>
6442 * PageSetupDialog.cs: Implement PrintPreview control to display
6443 the preview thumbnail. Change unit conversion to use
6444 PrinterUnitConvert methods.
6446 Note: there is a huge bug in ms.net where the default margins are
6447 interpreted as centimeters (?), when in fact they are set in inches. When
6448 loading the page setup dialog initially (ms.net), the default margins
6449 are set to 1 inch, and the dialog shows them with value 10, when in fact
6450 it should be 25 (properly converted). Our dialog doesn't have this bug.
6452 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
6454 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
6456 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6459 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
6462 2007-05-28 Andreia Gaita <avidigal@novell.com>
6464 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
6465 an IntPtr on csc (it builds fine on mcs, could it be a compiler
6466 bug?), convert the ptr to Int32 first.
6468 2007-05-28 Jackson Harper <jackson@ximian.com>
6470 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
6471 recieved, we will exit the dnd tracking loop.
6473 2007-05-28 Jackson Harper <jackson@ximian.com>
6475 * X11Dnd.cs: Keep tracking until the xdnd finished event is
6476 recieved. TODO: I should probably stick a timer on the dropped
6477 event, and finish the drag if the XDND Finished event never shows
6478 (because some apps don't seem to send it).
6480 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
6482 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
6485 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
6487 * MonthCalendar.cs: Only mark the keypresses we actually handle as
6490 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
6492 * MonthCalendar.cs: Set the size after initializing all the relevant
6493 variables. Fixes #81742.
6495 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
6497 * KeyEventArgs.cs: Fix typo.
6499 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
6501 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
6502 to match MS. Fixed MinDate to only accept value less than or equal
6503 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
6504 Removed TODO's that are now verified by unit tests.
6506 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
6508 * TreeNodeCollection.cs: Minor corrections to exceptions to match
6511 2007-05-25 Jackson Harper <jackson@ximian.com>
6513 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
6514 it's own message loop.
6515 * XplatUIX11.cs: Remove some of the dnd hooks
6517 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
6519 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
6520 instead of MinimizedWindowSize.
6522 2007-05-25 Jackson Harper <jackson@ximian.com>
6524 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
6526 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
6528 * KeyEventArgs.cs: Added SuppressKeyPress.
6529 * Control.cs: Added support for SuppressKeyPress.
6531 2007-05-24 Andreia Gaita <avidigal@novell.com>
6533 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
6534 problems with PieChart. suppress_validation should not be a counter,
6535 if there are several BeginInit calls, the first EndInit will
6536 activate validation. Fix exceptions thrown by set_Value.
6537 * UpDownBase.cs: ValidateText only if it's the user editing it.
6539 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6541 * ListControl.cs: FilterItemOnProperty should return the filtered
6542 item proeprty even if DataSource is null. The same applies for
6543 GetItemText. Fixes #80427.
6545 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
6547 * Control.cs: If a control doesn't have a parent when it's Dock is
6548 set, but it has children, it needs to do a layout. Fixes some nested
6549 controls issues. [Fixes bug #81199]
6551 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
6553 * ComboBox.cs: If there are few items in the drop down list, make it
6554 the exact size the items need, no bigger. Fixes #81612.
6556 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
6558 * Application.cs: When we have captured the keyboard for a menu,
6559 check for mouse down events in case we need to close the menu.
6560 * Control.cs, Form.cs: Remove mouse down checks for menus.
6562 2007-05-24 Jackson Harper <jackson@ximian.com>
6564 * TextControl.cs: Handle tabs in non multiline mode a little
6567 2007-05-24 Jackson Harper <jackson@ximian.com>
6569 * TextControl.cs: We need to manually break apart tabbed text and
6570 move the tabs, since the system.drawing tabbing mechanism relies
6572 * TextBoxBase.cs: Move the caret properly when the user enters a
6575 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
6577 * ContainerControl.cs: Don't check CanSelect before calling
6579 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
6580 release a KeyboardActive on click if it's not ours.
6582 2007-05-23 Andreia Gaita <avidigal@novell.com>
6584 * ColumnHeader.cs: Add TypeConverter
6586 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6588 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
6590 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6592 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
6594 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6596 * LinkLabel.cs: Implement public Padding property.
6598 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6600 * LinkLabel.cs: Implement public FlatStyle.
6602 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
6604 * Control.cs: Apply patch from George to call parent.PerformLayout
6605 when Visible is changed. [Fixes bugs #81118, 81718]
6607 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6609 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
6611 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6613 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
6615 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6617 * ContextMenu.cs: Implement Collapse.
6619 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
6621 * ToolBarButton.cs: Implement Name.
6623 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
6625 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
6626 use current_item, it prevents some NRE. Fixes #81675.
6628 2007-05-22 Andreia Gaita <avidigal@novell.com>
6630 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
6631 without updating the text.
6633 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
6635 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
6636 without calling DeleteObject. [Should fix bug #81709]
6638 2007-05-22 Jackson Harper <jackson@ximian.com>
6640 * RichTextBox.cs: Set the line endings correctly, when flushing
6643 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
6645 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
6648 2007-05-22 Jackson Harper <jackson@ximian.com>
6650 * TreeView.cs: Setting top with a null node should set to the very
6653 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
6655 * Form.cs: ShowDialog: destroy the handle when message loop is
6656 finished, matches MS behaviour. Refactor parts of WmClose into
6657 RaiseCloseEvents, that only raises events if they haven't already
6658 been raised. Fixes #81688 and #81521.
6659 * Application.cs: Don't call close on the form when exiting a modal
6660 loop, it will raise all the (Form)Closed/Closing events again if
6661 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
6662 which doesn'r raise any events it they have been raised before.
6664 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
6666 * Control.cs: Add OnPrint.
6667 * ToolStrip.cs: Add GetChildAtPoint.
6668 * ToolStripContainer.cs: Add OnRightToLeftChanged.
6669 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
6671 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
6673 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
6675 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
6677 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
6678 isn't visible anymore. Fixes #81651.
6680 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
6682 * Control.cs: WmShowWindow: Update children's z-order after setting
6683 their parent. SetParent may show the window, thereby corrupting
6684 z-order, since the window will be shown on top.
6685 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
6686 multiple (and redundant) WM_SHOWWINDOW messages.
6687 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
6688 event has already been raised.
6689 * Form.cs: Change is_changing_visible_state to a counter, since
6690 SetVisibleCore can be called recursively. CreateHandle: when
6691 creating mdi children, send (De)Activated events.
6692 * MdiClient.cs: Update use of is_changing_visible_state.
6693 * Application.cs: OnThreadException: Surround exception handling with
6694 try/finally to ensure we always reset the error-handling state
6697 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
6699 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
6702 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6704 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
6705 SmallIcon views, now that we have a standarized horizontal spacing.
6707 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
6708 4, just like the other views (Match .Net).
6710 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
6712 * Control.cs: Delay calculating anchor distances until we actually layout.
6713 Always query the WM for the actual size and location it put us at instead of
6714 only when we send negative values.
6715 [Fixes bugs #81694, 81695]
6717 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
6719 * Application.cs: Avoid a possible stack overflow when trying to exit
6722 2007-05-19 Marek Safar <marek.safar@gmail.com>
6724 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
6727 2007-05-19 Andreia Gaita <avidigal@novell.com>
6729 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
6730 * NumericUpDownAcceleration.cs,
6731 NumericUpDownAccelerationCollection.cs: Added 2.0
6734 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
6736 * RichTextBox.cs: Recalculate the document after the ScrollBars
6737 property is changed. Fixes bug #81681.
6739 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
6741 * DataObject.cs: Implement 2.0 methods.
6743 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6745 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
6746 in the center of the checkbox, not in the left-top corner.
6749 2007-05-18 Jackson Harper <jackson@ximian.com>
6751 * RichTextBox.cs: Recalculate the document after the scrollbars
6752 property is changed.
6753 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
6756 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
6758 * CreateParams.cs: Make HasWindowManager marginally faster.
6759 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
6760 into Hwnd so that other drivers can use it as well.
6761 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
6762 the default location from Hwnd. Fixes MDI client windows always
6763 showing up at (0,0) in Windows (Win32 won't set the default
6764 location since the window styles aren't correct).
6766 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
6768 * TreeView.cs: Modified DoubleBuffered to just use the base
6771 2007-05-18 Jackson Harper <jackson@ximian.com>
6773 * TreeView.cs: Set the top node to the last child node when
6775 - When we get focus, if there is no selected node, use the top
6778 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
6780 * KeysConverter.cs: Add CanConvertTo.
6781 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
6782 * LinkConverter.cs: Added.
6784 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
6786 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
6787 it prevents error when file dont have write access. Fixes #81669 and #81667.
6789 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
6791 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
6792 button text. Fixes #79640.
6794 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
6796 * Control.cs: According to MSDN controls created in the designer theres
6797 keyboard accelerators visible by default. So included check for design
6798 in ShowKeyboardCuesInternal.
6800 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
6802 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
6805 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
6807 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
6808 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
6810 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
6812 * Control.cs: Finish implementation of UI State using WmChangeUIState
6813 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
6814 in some controls to check for show_keyboard_cues to draw accell keys "_".
6816 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6818 * ListBox.cs: When calculating the horizontal scrollbar
6819 in single column mode, don't use values less than 0 for
6820 Maximum. Fixes #81474.
6822 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6824 * ListBox.cs: Throw the some missing exceptions in
6825 ListBox.ObjectCollection methods.
6827 2007-05-17 Jackson Harper <jackson@ximian.com>
6829 * TextBoxBase.cs: Recalculate the document when the word wrap
6830 value has changed. This fixes 81488.
6832 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
6834 * Clipboard.cs: Implement missing GetText overload.
6836 2007-05-17 Chris Toshok <toshok@ximian.com>
6838 * Control.cs (CheckDataBindings): remove the binding_context arg
6841 * CurrencyManager.cs (OnItemChanged): fix this now that
6842 BindingManagerBase is fixed. also remove the comment telling where
6843 the fix should go. We set transfering_data to true/false around
6844 the call to PushData to keep UpdateIsBinding from being called.
6845 (ListChangedHandler): remove the extra OnMetaDataChanged call for
6846 PropertyDescriptorAdded in the 1.1 case. The extra call is
6847 actually generated by System.Data generating 2 metadata changed
6848 events of its own per column add. The fix should go there. Add a
6849 comment to that affect in our test's Assert.Ignore.
6851 * BindingManagerBase.cs: Rework PullData and PushData slightly.
6852 we keep a boolean flag (transfering_data) that keeps us from
6853 calling UpdateIsBinding multiple times if we re-enter either of
6856 * ControlBindingsCollection.cs (AddCore): remove the
6857 binding_context arg to binding.Check.
6859 * Binding.cs (IsBinding): don't check if we're binding here, just
6860 return our cached value. we update it in UpdateIsBinding.
6861 (Check): don't take the binding_context arg, we'll just use our
6862 control's. Also, for some reason MS doesn't use the data member
6863 field when getting the bindingmanager for this binding. it just
6864 uses the datasource. Make this method callable multiple times,
6865 and only do the is_null_desc stuff if manager.Position != -1 (so
6866 we don't get an exception accessing manager.Current).
6867 (UpdateIsBinding): move the code from IsBinding here.
6868 (PositionChangedHandler): call Check here to we can initialize
6869 things that require a non- -1 position.
6871 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
6873 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
6876 2007-05-17 Andreia Gaita <avidigal@novell.com>
6878 * TabControl.cs: Add 2.0 methods and events, including
6879 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
6880 * TabPage.cs: Add 2.0 methods
6882 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
6884 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
6885 keyboard_cues is properly handled by message method.
6887 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
6889 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
6891 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
6893 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
6895 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
6898 - WmUpdateUIState added to handle state changes, it make call to
6899 OnChangeUICues event.
6900 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
6903 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
6905 * ImageKeyConverter.cs: Added.
6906 * TreeViewImageKeyConverter.cs: Added.
6908 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6910 * ToolTips.cs: Update Text if SetToolTip is called for a control
6911 already showing the tooltip, as well as restarting its timer; show
6912 tooltip if we are inside the control bounds by the time of calling
6913 SetToolTip. Inside ShowTooltip remove the check to not show the
6914 tooltip again for the active control (it is allowed by .Net to
6915 show the tooltip on the same control multiple times).
6917 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
6919 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
6921 2007-05-16 Andreia Gaita <avidigal@novell.com>
6923 * ContainerControl.cs: only process tab key if there are no
6924 modifier keys present, otherwise the control does the
6925 tab processing, if it needs to. Fixes #81622
6926 * TabControl.cs: Fixes calculation for which tab to select on
6929 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
6931 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
6933 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
6935 * Control.cs: Make IsInputCharInternal to allow controls to
6936 override it and still match MS API.
6937 * TextBoxBase.cs: Override IsInputCharInternal and always
6941 2007-05-15 Jackson Harper <jackson@ximian.com>
6943 * TextBox.cs: Disable some of the menu options when using a
6946 2007-05-15 Jackson Harper <jackson@ximian.com>
6950 * RichTextBox.cs: Some new 2.0 methods
6952 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
6954 * FileDialog.cs: On 1.0 profile, do not support multidotted
6957 2007-05-14 Jackson Harper <jackson@ximian.com>
6959 * TextBoxBase.cs: Implement some of the new 2.0 methods.
6960 * RichTextBox.cs: We need to override these methods on 2.0.
6961 * MaskedTextBox.cs: These are implemented now
6962 * TextControl.cs: This was off by one.
6964 2007-05-14 Jackson Harper <jackson@ximian.com>
6966 * TextControl.cs: Because the line endings are including in the
6967 text, we don't need to add them in anymore.
6969 2007-05-11 Everaldo Canuto <everaldo@simios.org>
6971 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
6972 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
6974 2007-05-11 Everaldo Canuto <everaldo@simios.org>
6976 * ToolBar.cs: Adjust size to default size when button theres no text and
6977 image, it fixes remaining issues from #81524.
6979 2007-05-11 Everaldo Canuto <everaldo@simios.org>
6982 - When not flat call redraw to recalculate sizes on creare handle to match
6984 - Revert 77220 because it causes some regressions in toobar
6987 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6989 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
6990 now actually enters a usable state.
6992 2007-05-11 Everaldo Canuto <everaldo@simios.org>
6994 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
6995 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
6998 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7000 * ToolBar.cs: Save default_size on create handle to use later for buttons
7001 without text, needed to mimic win32 behavior.
7003 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7005 * ToolBar.cs: Fix button layour to best fit width or height according to
7006 vertical or not. Fixes #81524.
7008 2007-05-10 Everaldo Canuto <everaldo@simios.org>
7010 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
7011 toolbar size info because different styles theres different sizes.
7014 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7016 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
7017 if we are using checkboxes, checked is true, and we have less
7018 than two images in StateImageList; for the 1.1 in the same scenario
7019 draw the first image if we have at least one image in StateImageList.
7020 Fixes part of #81191.
7022 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
7024 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
7025 the owner's Items collection on merge.
7027 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
7029 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
7030 * ToolStripItemCollection.cs: Lots of fixes to when events get called
7031 and parent/owner gets changed based on gert's unit tests.
7033 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7035 * MaskedTextBox.cs: Started implementing parts of it.
7037 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7039 * ListView.cs: When clicking the checkbox on the items
7040 take into account the double clicks even if we have only
7041 one image in StateImageList (only for 1.0/1.1). Also
7042 generate an extra change of checked state when we receive
7043 the second click on checkbox (match .Net behaviour).
7044 Fixes part of #81191.
7046 2007-05-10 Everaldo Canuto <everaldo@simios.org>
7048 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
7050 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
7052 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
7053 even if OnLoad is overriden and base.OnLoad is not called.
7056 2007-05-10 Andreia Gaita <avidigal@novell.com>
7058 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
7059 shame. (I blame my ever-persisting and annoying cold)
7061 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
7063 * ListView.cs: Don't eat navigation keys. Let them flow through to
7064 KeyDown/KeyPress routines. [Fixes bug #81569]
7066 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
7068 * ListView.cs: When handling keys for selecting the item based off
7069 keyboard input, do not consider keys pressed with Alt or Control. Also,
7070 correctly handle keys when the Shift key is down. [Fixes bug #81578]
7072 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
7074 * Control.cs: When using UseWaitCursor, we have to store the requested
7075 Cursor to use when UseWaitCursor is turned off.
7077 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
7079 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
7081 * Application.cs: Use PreProcessControlMessage instead of
7083 * PreProcessControlMessage.cs: Make internal for 1.1.
7085 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7087 * Control.cs: Add InternalContains focus property, which hast the same
7088 functionality of ContainsFocus, but also including implicit controls.
7089 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
7090 since we need to know if the focus is contained in our implicit
7091 ItemControl when calculating Layout. Fixes part of #80888.
7093 2007-05-08 Everaldo Canuto <everaldo@simios.org>
7095 * ToolTip.cs: Remove center form string alignment as it must be align to
7098 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
7100 * ToolStripItemCollection.cs: Set the new item's parent and owner
7101 in Insert like we do in Add. [Fixes bug #81568]
7103 2007-05-08 Jackson Harper <jackson@ximian.com>
7105 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
7106 - Off by one error in SetTop
7107 - Disable DoubeBuffering
7109 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
7111 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
7112 control as much as necessary in order to make it entirely visible,
7113 instead of centering the control in the container (matches MS
7114 behaviour). CalculateCanvasSize: we need to take the current scroll
7115 position into account when calculating the maximum canvas,
7116 otherwise the following scenario will fail: resize so that the
7117 scrollbars appear, use the scrollbars to scroll, resize again
7118 smaller, and now the canvas size is too small. Recalculate: when
7119 showing scrollbars make sure they start off at 0, and try to scroll
7120 the active control into view. Fixes #79540. HandleScrollBar: don't
7121 scroll anywhere if the scrollbar isn't visible.
7123 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7125 * ListView.cs: When focus changed, call Layout/Invalidate
7126 in the focused item to update the selected state (should show
7127 entire label when ListView is focused, and a part of it if is not).
7128 * ListViewItem.cs: When doing layout for LargeIcon, take into account
7129 for displaying the entire label not only the Focused state of the
7130 item, but also the Focused state of the ListView (match .Net
7133 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7135 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
7136 Implement UseWaitCursor.
7138 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7139 Applying contributed patch from Sergey Volk.
7141 * Clipboard.cs: Implement SetDataObject retry logic and new overload
7143 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
7145 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7147 * Control.cs: Implement DrawToBitmap.
7149 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7150 Applying contributed patch from Stefan Noack.
7152 * Control.cs: Add [Get|Set]AutoSizeMode.
7154 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7156 * MdiClient.cs: Unmerge menus when the last child is closed.
7158 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7160 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
7161 * ToolStripManager.cs: Call Merge on DropDowns.
7164 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7166 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
7168 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
7169 visibility. We can't create forms visible, since we have to set the
7170 owner before making the form visible (otherwise Win32 will do
7171 strange things with task bar icons). The problem is that we set the
7172 internal is_visible to true before creating the control, so
7173 is_changing_visible_state is the only way of determining if we're
7174 in the process of creating the form due to setting Visible=true -
7175 this works because SetVisibleCore explicitly makes the form
7176 visibile afterwards anyways. Fixes #80775.
7178 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7180 * ThemeWin32Classic.cs: When drawing ListViewItems,
7181 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
7182 or LargeIcon _and_ item is not focused (match .Net behaviour).
7184 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
7186 * Control.cs, Form.cs: Fix some obsolete method warnings.
7188 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
7190 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
7191 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
7193 2007-05-04 Andreia Gaita <avidigal@novell.com>
7195 * ContainerControl.cs: Fix active_control attribution when going
7196 up the parent chain so that the first parent container gets the control
7197 and the rest of the parent containers get the child containers (skips
7198 non-containers). Fixes #80729
7200 2007-05-04 Randolph Chung <tausq@debian.org>
7202 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
7205 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7207 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
7208 takes a size parameter, since the CreateParam's size isn't true for
7209 minimized forms. Fixes #81518,
7211 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7213 * Form.cs: Add OnDeactivateInternal.
7214 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
7216 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7218 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
7219 accessing the parent. Fixes #81508.
7221 2007-05-03 Chris Toshok <toshok@ximian.com>
7223 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
7224 2.0 block, pass listposition + 1 to ChangeRecordState when a row
7225 was added before the current listposition. Fixes the
7226 TestInsertRowBeforeCurrent unit test.
7228 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
7230 * Application.cs: Add RaiseIdle.
7231 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
7232 XplatUIX11.cs: Implement RaiseIdle.
7234 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
7235 corcompare work: N - Z
7239 * ScrollableControl.cs
7243 * SystemInformation.cs
7245 * TableLayoutControlCollection.cs
7246 * TableLayoutPanel.cs
7251 * ToolStripComboBox.cs
7252 * ToolStripContainer.cs
7253 * ToolStripContentPanel.cs
7254 * ToolStripDropDown.cs
7255 * ToolStripDropDownItem.cs
7256 * ToolStripDropDownMenu.cs
7258 * ToolStripItemCollection.cs
7259 * ToolStripMenuItem.cs
7261 * ToolStripSplitButton.cs
7264 * TreeNodeCollection.cs
7265 * TreeNodeMouseHoverEventArgs.cs
7268 2007-05-01 Everaldo Canuto <everaldo@simios.org>
7270 * ContextMenu.cs: Add public method Show with alignment property to 2.0
7271 stuff. Thanks aatdark for the patch.
7273 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
7275 * GridItem.cs: Implement 2.0 Tag property.
7277 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
7279 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
7280 count instead of Nodes.Length. [Fixes bug #81448]
7282 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
7284 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
7287 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
7288 corcompare work: A - M
7289 * BindingNavigator.cs
7294 * FlowLayoutPanel.cs
7300 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
7302 * Application.cs: Give toolstrips a chance to process mnemonics.
7303 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
7304 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
7305 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
7307 2007-05-01 Jackson Harper <jackson@ximian.com>
7309 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
7311 - Don't set the BoundsSpecified
7313 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
7315 * Application.cs: When using the toolstrip shortcut mechanism, allow the
7316 message to pass through to a regular control if it hosted by a toolstrip.
7317 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
7318 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
7320 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
7322 * TextRenderer.cs: Use the flags argument when using the MeasureString
7325 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
7327 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
7328 the MDI menu item. [Fixes bug #81483]
7330 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
7332 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
7333 string. When setting Name to null, use zero-length string instead.
7335 2007-04-29 Andreia Gaita <avidigal@novell.com>
7337 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
7338 DeselectTab). Implement missing 2.0 TabPageCollection methods
7339 (Add, ContainsKey, RemoveByKey, IndexOfKey)
7341 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
7343 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
7345 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
7347 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
7348 Fixes bug #81479. Include details of exception when LoadFile fails.
7350 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
7352 * DrawListViewSubItemEventArgs.cs: Added missing setter
7354 2007-04-27 Andreia Gaita <avidigal@novell.com>
7356 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
7357 Hide methods (not complete). Implement missing 2.0 OnPopup event.
7359 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7361 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
7362 removed in ly last commit (it was breaking the Label edit feature).
7364 * ThemeWin32Classic.cs: When drawing a ListViewItem use
7365 StringAlignment.Near for LineAlignment (match .Net).
7367 2007-04-27 Andreia Gaita <avidigal@novell.com>
7369 * TabControl.cs: Change SetTab so it adds the tabpage to the list
7370 of controls if it isn't already there - was blowing up when doing
7371 tabcontrol.TabPages[i]=new TabPage().
7372 SetTab now does a replace by removing the page at the index.
7373 Add a new InsertTab method that inserts a page in a given index
7374 instead of replacing.
7375 Implements TabPageCollection.Insert(int, TabPage).
7377 2007-04-27 Chris Toshok <toshok@ximian.com>
7379 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
7380 internal handler that can be invoked from our subclasses.) Also,
7381 add a comment to PushData about how we need to fix it.
7383 * CurrencyManager.cs: tons of changes here. trying to get things
7384 matching the behavior of .net wrt event orders (ItemChanged,
7385 CurrentChanged, PositionChanged.) I've implemented a private .net
7386 symbol (ChangeRecordState) that appears in stack traces because
7387 it's actually easier to do this than to effective inline all its
7388 various behaviors at every call site.
7390 * RelatedPropertyManager.cs: guard against an exception here by
7391 not using parent.Current if the position is set to -1 (if the
7392 parent datasource is cleared, for instance).
7394 * Binding.cs: don't parse data in PushData (this might be wrong,
7395 but it jives with MS's behavior.) Also, don't call PushData when
7396 we get a CurrentChanged event.
7398 2007-04-27 Andreia Gaita <avidigal@novell.com>
7402 WebBrowserSiteBase.cs,
7403 HtmlDocument.cs: Added stubbed out classes, no real implementations
7406 2007-04-27 Everaldo Canuto <everaldo@simios.org>
7408 * MainMenu.cs: In draw method without parameters call draw method with
7409 PaintEvent, another one (just rect) adjust rectangle and we dont need it
7410 as Rect property is already adjusted. Fixes #80694.
7412 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
7414 * Application.cs: Need to handle keyboard menu deselection here.
7415 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
7416 navigation, allowing keyboard to work on X11.
7417 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
7419 2007-04-27 Everaldo Canuto <everaldo@simios.org>
7421 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
7422 menu bar. It fixes some drawing issues in menu bar.
7424 2007-04-27 Everaldo Canuto <everaldo@simios.org>
7426 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
7427 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
7428 when <alt> key is pressed.
7430 2007-04-26 Everaldo Canuto <everaldo@simios.org>
7432 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
7433 example just set visible to false and make this prevent from other problems.
7434 In SystrayAdd always remove pending expose. Fixes #81072.
7436 2007-04-26 Marek Safar <marek.safar@gmail.com>
7438 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
7441 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
7443 * ListView.cs: Added three missing 2.0 events and corresponding
7444 EventHandlers. Added the OwnerDraw property.
7445 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
7447 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
7449 * DrawListViewItemEventArgs.cs
7450 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
7452 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
7454 * TextControl.cs: Fixed typo in constructor
7456 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
7458 * Application.cs: Create a shortcut path so that currently selected
7459 MenuStrips can intercept keyboard events without having focus.
7460 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
7461 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
7462 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
7463 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
7464 generate WM_SYSCOMMAND message in X11 for other platforms.
7465 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
7466 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
7467 * ToolStripSplitButton.cs: Add DefaultItem property.
7469 2007-04-26 Everaldo Canuto <everaldo@simios.org>
7471 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
7472 fixes some menu draw problem on Windows with border diferent from default
7473 it also fixes #81403.
7475 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
7477 * Form.cs: Refactor WndProc into separate methods, just like Control is
7480 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
7482 * Control.cs: set_Text: move the call to the driver into a seperate
7483 virtual method so that Form can override it.
7484 * MaskedTextBox.cs: Corcompare fixes.
7485 * Form.cs: Override UpdateWindowText and only update the styles if the
7486 form has been shown (fixes #81405).
7488 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
7490 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
7491 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
7492 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
7493 the form lost focus or another control was clicked.
7495 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
7497 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
7500 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
7502 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
7503 DrawListViewItemEventHandler.cs,
7504 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
7506 * X11Structs.cs: More ToString implementation.
7508 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
7510 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
7511 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
7513 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
7515 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
7517 * FormCollection.cs: Don't add a form if it's already in the
7519 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
7520 according to behaviour and MSDN. The ownerWin32 is the active
7521 window at the moment when we call ShowDialog, not the context's
7522 main form (the context's main form may open another form that opens
7523 a form with ShowDialog, the win32 owner is the second form). Add
7524 and remove forms to the Application.OpenForms in other places to
7525 better match MS behaviour. Add an IsActive property that raises
7526 On(de)Activated only if the active state has changed (we were
7527 raising OnDeactivated before OnActivated while creating forms).
7528 * Application.cs: Refactor Enabling/Disabling of windows for modal
7529 dialog loops out to separate methods, and restore the thread
7530 context when we quit the method. Fixes #81407.
7532 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7534 * ListView.cs: In ItemControl.HandleClicks, also fire
7535 2.0 MouseClick or MouseDoubleClick events on the parent,
7536 not only the Click/DoubleClick events.
7538 2007-04-24 Andreia Gaita <avidigal@novell.com>
7540 * TableLayoutSettings.cs:
7541 - Added a GetControls method and a support structure to help the
7542 TypeConverter to enumerate the controls for serialization.
7543 - Added a new serialization constructor.
7544 - Added a isSerialized flag initialized to true on the
7545 serialization constructor so that the TableLayoutPanel.LayoutSettings
7546 setter does not throw the designed NotSupportedOperation exception
7547 when the object is built through deserialization.
7548 - Implemented GetObjectData
7550 * TableLayoutPanel.cs: Added check on LayoutSettings.
7552 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7554 * ListView.cs: Report Click and DoubleClick events to the parent
7555 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
7556 from breaking the click count state when using dialog forms (Control
7557 reports the clicks in a similar fashion). In the previous behaviour
7558 the last WM_LBUTTONUP message in a double click was sent to the
7559 ListView's form, instead of the ListView, which was breaking the click
7560 count for it. Fixes #80387.
7562 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
7564 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
7566 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
7568 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
7569 us from created dropdowns for menu items that do not have subitems.
7570 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
7571 Check HasDropDownItems before calling DropDown so a dropdown will not be
7572 created if it isn't needed.
7574 2007-04-24 Jackson Harper <jackson@ximian.com>
7576 * TreeView.cs: Set the first node to the selected node when we get
7577 focus if there is no selected node.
7579 2007-04-24 Andreia Gaita <avidigal@novell.com>
7581 * MimeIcon.cs: remove using blocks so that image streams are
7582 not disposed of. Fixes #80151
7584 2007-04-24 Jackson Harper <jackson@ximian.com>
7586 * TextBoxBase.cs: Fixup the height of textboxes when the control
7589 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
7591 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
7592 for each ToolStripItem when the parent's RightToLeftChanged is called.
7594 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7596 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
7598 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
7599 property, so that the setter can be overriden too.
7600 * TextBox.cs: Change GetContextMenuInternal() to use
7601 ContextMenuInternal.
7603 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7605 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
7608 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7610 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
7613 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7615 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
7616 avoid duplicate work. Mostily skeleton code, it's not working at
7619 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
7621 * NotifyIcon.cs : stub for MouseClick event
7622 * Application.cs: stub for SetUnhandledExceptionMode
7624 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
7626 * BindingNavigator.cs : Initial (partial) implementation
7628 2007-04-23 Jackson Harper <jackson@ximian.com>
7630 * TreeView.cs: Do not create the treeview's handle when setting
7631 the scroll position.
7632 - ExpandAll needs to compute the scrollbars so it knows which
7633 position to set the bar too.
7635 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
7637 2007-04-23 Jackson Harper <jackson@ximian.com>
7639 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
7642 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
7644 * ToolStripItem.cs: Make GetImageSize internal.
7645 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
7646 need to draw an item. Fixes a reported issue where images on menus
7647 that were not 16x16 were drawing incorrectly.
7649 2007-04-21 Miguel de Icaza <miguel@novell.com>
7651 * Padding.cs: Use the converter, fixes the resgen2 issue with
7654 2007-04-21 Jackson Harper <jackson@ximian.com>
7656 * TreeView.cs: Dont try to unhighlight the selected node if there
7657 isn't a selected node.
7659 2007-04-21 Jackson Harper <jackson@ximian.com>
7665 * TreeView.cs: Use the InternalBorderStyle property to set the
7666 initial border style, this forces the client rectangle to be sized
7669 2007-04-20 Jackson Harper <jackson@ximian.com>
7671 * TreeView.cs: Simplify scrolling to the last node after expanding
7673 - Fix some off by ones with setting the bottom.
7675 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
7677 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
7678 that. We were incorrectly doing it the other way around. Also,
7679 update ClientSize if we change the BorderStyle before the control
7682 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
7684 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
7685 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
7686 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
7687 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
7688 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
7689 Caption to CaptionHeight.
7690 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
7691 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
7692 and FixedFrameBorderSize to return value from current XplatUI driver.
7693 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
7694 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
7695 and FixedFrameBorderSize using win32 API. Renamed Caption to
7697 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
7698 * SystemInformation.cs: Fixed typo in BorderSize.
7700 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
7702 * XplatUI.cs: Added MenuAccessKeysUnderlined.
7703 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
7704 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
7706 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
7707 value from XplatUI driver.
7708 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
7709 SystemParametersInfo.
7710 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
7712 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
7715 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7717 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
7719 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7721 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
7723 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
7725 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
7726 MenuStrips that contain ToolStripSeparators.
7728 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7730 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
7731 DefineStdCursorBitmap.
7732 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
7733 has been created off a standard cursor. This is used to get a
7734 bitmap of the standard cursor when Draw or DrawStretched is called
7735 in order to draw the cursor.
7736 * X11Structs.cs: Added XcursorImage and XcursorImages.
7737 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
7738 DefineStdCursorBitmap.
7739 * Cursors.cs: Update all relevant creations of Cursor to use the new
7740 internal constructor.
7742 2007-04-19 Jackson Harper <jackson@ximian.com>
7744 * TextBox.cs: Move the has_been_focused into the base control, so
7745 some of the text adding methods can manipulate it (probably time
7746 for a better name for this flag too).
7747 - Call a new version of selectall that doesn't scroll
7748 * TextBoxBase.cs: When we append text, if the document is empty,
7749 don't scroll. If the document has text already, we scroll to the
7750 end of the appended text.
7751 - When the text is changed, we reset the has_been_focused, so the
7752 next time the control gets focused, all the text is selected.
7754 2007-04-19 Jackson Harper <jackson@ximian.com>
7756 * TextControl.cs: Move the margins to the document, add a method
7757 so the margin sizes can be updated.
7758 * TextBoxBase.cs: When the border style is changed, update the
7761 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
7763 * Control.cs: Respect DefaultPadding.
7764 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
7765 padding into account.
7766 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
7768 2007-04-19 Jackson Harper <jackson@ximian.com>
7770 * TextControl.cs: Oops, we need to use the ClientRect not the
7773 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7775 * ListView.cs: In ItemControl.ItemsMouseDown, take into
7776 account the double clicks when CheckBoxes are used and
7777 the pointer is inside the checkbox. Fixes part of #81191.
7779 2007-04-18 Jackson Harper <jackson@ximian.com>
7781 * TextControl.cs: Pressing the end key shouldn't move the caret
7782 past the line ending.
7783 * TextBoxBase.cs: We can still delete if we are in the line
7784 ending and the combine will just kill the existing line ending.
7786 2007-04-18 Jackson Harper <jackson@ximian.com>
7788 * TextControl.cs: We can't move lines, then invalidate their
7789 bounds, we need to get the old bounds and combine that with the
7791 * TextBoxBase.cs: Before combining two lines for a delete, we need
7792 to invalidate the area of the old line, since that will be moved
7793 in the combine operation.
7795 2007-04-18 Everaldo Canuto <everaldo@simios.org>
7797 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
7798 with transparent background. Fixes #80482.
7800 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
7802 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
7803 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
7806 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
7808 * CreateParams.cs: Add a couple of helper methods and do a less string
7809 concatenation in ToString.
7810 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
7811 overload that takes a Control parameter, since this method may be
7812 called before a control is assigned to the hwnd (from
7813 CreateWindow), and update CreateWindow to use the new overload. In
7814 GetMenuOrigin subtract the title bar from the y position if the
7815 form has a window manager (since we're painting it and not X).
7816 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
7817 CreateParams to calculate the origin (since border sizes may vary).
7818 In ScreenToMenu only subtract the title height if we actually have
7820 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
7821 mdi children never have menus of themselves.
7822 * InternalWindowManager.cs: Implement menu handling like form does.
7823 Added GetMenuOrigin to calculate the menu origin, can't use the
7824 CreateParams from the form like normally since it's lying.
7825 * Hwnd.cs: Implement GetBorderSize better (in the sense more
7826 windows-like) and add Inflate and comparison operators to the
7827 Borders type. When calculating MenuOrigin and it's a form with a
7828 window manager, use the window manager to calculate it.
7830 2007-04-17 Chris Toshok <toshok@ximian.com>
7832 * Control.cs (CreateControl): turns out in 2.0 we don't need this
7833 OnBindingContextChanged thing here. It's only generated from
7834 ContainerControl.OnCreateControl. Fixes a newly written unit test
7835 - BindingTest.BindingContextChangedTest4.
7837 2007-04-17 Jackson Harper <jackson@ximian.com>
7839 * ScrollBar.cs: When setting values, make sure the current
7840 position stays within the new values range.
7842 2007-04-17 Chris Toshok <toshok@ximian.com>
7844 * Control.cs (CreateControl): talk about a bizarre corner case.
7845 Don't emit OnBindingContextChanged here if we're a parentless
7846 control (i.e. if we're a form.). Fixes
7847 BindingTest.BindingContextChangedTest2.
7849 2007-04-17 Everaldo Canuto <everaldo@simios.org>
7851 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
7852 from win32. Fixes #81255.
7854 2007-04-17 Everaldo Canuto <everaldo@simios.org>
7856 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
7857 already present in CalculateButtonTextAndImageLayout.
7859 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7861 * XplatUIX11.cs: When setting min/max size for a window we need to
7862 translate the coordinates to x coordinates. Create an overload of
7863 SetWindowMinMax that takes a CreateParams handling this, and change
7864 SetWMStyles to call this function (can't use Control.FromHandle in
7865 the SetWindowMinMax to get the control/CreateParams from the handle
7866 because the handle might not have been assigned to the control
7869 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7871 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
7872 if StateImageList is non-null and it has less than two items (match MS
7873 behaviour). Also, in HandleNavKeys handle the Space key, calling
7874 the new ToggleItemsCheckState method, which tries to change the
7875 checked state of the selected items. Fixes part of #81191.
7877 2007-04-16 Jackson Harper <jackson@ximian.com>
7879 * RichTextBox.cs: namespace cleanup.
7881 2007-04-16 Everaldo Canuto <everaldo@simios.org>
7883 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
7885 2007-04-16 Everaldo Canuto <everaldo@simios.org>
7888 * Control.cs: Call invalidate in set_Region.
7890 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
7893 2007-04-16 Jackson Harper <jackson@ximian.com>
7895 * TextBoxBase.cs: When enter is pressed, we need to update all
7896 lines below the current.
7898 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
7900 * MdiClient.cs: Implement implicit menu merging for MDI
7901 children. When a child form is active, if it has a menustrip
7902 and the parent form has a MainMenuStrip, automatically merge
7905 2007-04-15 Andreia Gaita <avidigal@novell.com>
7907 * TabControl.cs: Refactored sizing methods to not repeat
7908 code all over the place. Tab bounds are now calculated
7909 as if alignment is top and single line, and only when
7910 setting the bounds are the positions adjusted according
7911 to alignment. Replaced hardcoded positions, spacings and
7912 paddings by getting the values the ThemeEngine.
7915 * Theme.cs: Change TabControl properties and methods so
7916 that all start with TabControl*. Added more properties
7917 to help remove hardcoded values on tabcontrol.
7918 Add CPDrawBorder3D declaration so the Theming classes
7921 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
7923 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
7924 on the Theming namespace, and call the appropriate methods here.
7925 Change CPDrawBorder3D to public.
7927 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7929 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
7930 the control after firing the OnMouseUp event, instead of sending
7931 the message before the mentioned event. This is so we can match the
7932 MS behaviour. Fixes part of #80385.
7934 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
7936 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
7937 RightToLeft property.
7939 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
7941 * ToolStrip.cs: Add properties and internal methods to support merging.
7942 * ToolStripItem.cs: Add MergeAction and MergeIndex.
7943 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
7944 not trigger reparenting or layouts.
7945 * ToolStripManager.cs: Add Merge and RevertMerge methods.
7946 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
7947 is hosting the overflow menu.
7949 2007-04-13 Jackson Harper <jackson@ximian.com>
7951 * TextControl.cs: Set the line ending correctly for the first
7954 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
7956 * Theme.cs: Update GetMethod to get the new definition for
7957 KnownColors.Update (and fix theme color updates).
7959 2007-04-12 Everaldo Canuto <everaldo@simios.org>
7961 * MessageBox.cs: Fix some test and button position.
7963 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7965 * Form.cs: Consider the implicit controls in
7966 GetRealChildAtPoint. We need it since this method
7967 is called on Form when handling the some messages in
7968 WndProc, and need to consider those implicit ones too.
7971 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
7973 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
7974 if there are no ShortcutKeys set.
7975 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
7976 set, use it when painting.
7978 2007-04-12 Jackson Harper <jackson@ximian.com>
7980 * TextControl.cs: Fix some off-by-one issues in line duplication
7981 and insertion in the undo manager. Also, overwrite the first tag
7982 of a line on insert, if it is just a zero lengthed tag. This
7983 prevents us from getting an extra stranded tag at the beginning of
7986 2007-04-11 Everaldo Canuto <everaldo@simios.org>
7988 * Label.cs: Remove check for handle created in CalcAutoSize, we need
7989 to calculated proper size including when handle was not created yet.
7991 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
7993 * MdiWindowManager.cs: When moving a form, allow the form to be moved
7994 when the mouse is outside of it's parent's client rectangle. Fixes
7995 #79982 (take 3, part 2).
7997 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7999 * X11Structs.cs: Add a few ToString() overrides.
8000 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
8001 the window location in a window-manager independent way. Reworked
8002 FrameExtents, it now actually works. Reworked AddConfigureNotify
8003 and ReparentNotify handling to use GetTopLevelWindowLocation
8004 instead of the earlier, more hacky solution. Reworked SetWMStyles,
8005 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
8006 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
8007 for all other windows (fixes #81281 part 1), a toolwindow is hidden
8008 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
8009 and generally refactored to do as few calculations as possible
8012 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
8014 * Theme.cs: Change "reflective-contract" between MWF and SD to
8015 minimize # of calls, avoid Color serialization and avoid updating
8016 every "known colors" each time a single one is updated.
8018 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
8020 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
8021 when not readonly and the text is explicitly set. Code style updates.
8022 * DataGridTableStyle.cs: Removed extra line.
8023 * DataGrid.cs: Code style updates. Removed extra whitespace.
8024 * DataGridColumnStyle.cs: Code style updates. Removed extra
8027 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8029 * XplatUIX11.cs: Added comment that "fixes" #80021.
8031 2007-04-09 Jackson Harper <jackson@ximian.com>
8033 * TextControl.cs: We don't need this -1 on the line count anymore.
8035 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
8037 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
8038 entered value to underlying type, and convert it back to a string to
8039 apply formatting. Modified GetFormattedValue to use TypeConverter
8042 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
8044 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
8045 Use SubItems property when we want to ensure there's at least one
8046 subitem. Modified SubItems property to ensure there's always at least
8047 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
8048 the NRE's reported by MS.
8050 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
8052 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
8053 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
8054 Spaces to tabs. Removed extra tabs.
8056 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
8058 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
8059 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
8061 2007-04-06 Jackson Harper <jackson@ximian.com>
8063 * TextBoxBase.cs: When a delete removes a line, recalculate all
8064 lines below that line (they need to get offsets setup correctly)
8067 2007-04-05 Jackson Harper <jackson@ximian.com>
8069 * TextControl.cs: We need to invalidate across the width of the
8070 document when we are invalidating multiple lines.
8071 * TextBoxBase.cs: Don't delete into the line ending.
8073 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8075 * ListView.cs: Restore the check for the MouseHover event
8076 in ListView. It looks like the ListView fires more than one MouseHover
8077 event when HoverSelection is true _only_ in weird-corner scenarios, but
8078 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
8081 2007-04-05 Mike Kestner <mkestner@novell.com>
8083 * ListView.cs : raise MouseDown before updating selection.
8084 [Fixes #80373 tab 1&3]
8086 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
8088 * ToolStripRenderer.cs: Add static method to mirror image.
8089 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
8090 and RightToLeftAutoMirrorImage.
8091 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
8093 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
8095 * ToolStripSplitStackLayout.cs: Support Alignment property.
8096 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
8098 2007-04-05 Jackson Harper <jackson@ximian.com>
8100 * TextControl.cs: Move around the line endings when crossing line
8102 - When combining lines, strip the ending text off the first line.
8104 2007-04-05 Jackson Harper <jackson@ximian.com>
8107 * TextBoxBase.cs: Try to never move the cursor into the line
8110 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
8112 * ToolStripItem.cs: Make sure we aren't firing mouse events when
8113 the item is disabled. Also add a few missing methods.
8115 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8117 * ListView.cs: We don't need the MouseEnter/MouseLeave check
8118 to fire just one MouseHover event when HoverSelection is true, since
8119 .Net does fire more than one MouseHover event in that scenario. Also,
8120 fix the selection in HoverSelection, by invoking UpdateMultiSelect
8121 if MultiSelect is true, instead of only setting ListViewItem.Selected.
8122 Finally, we need to reset the Hover logic in MouseMove, even when we
8123 don't have a selected item.
8125 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
8127 * ToolStrip.cs: Add several missing methods, properties, and events.
8129 2007-04-04 Chris Toshok <toshok@ximian.com>
8131 * DataGridTextBoxColumn.cs: set the bounds of the text box to
8132 (0,0,0,0) in Commit, as MS does.
8134 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
8135 make sure we set CurrentRow on a row header click *before* calling
8136 Select. This moves the current cell (and the textbox) to the new
8137 row. The call to Select then hides the textbox, giving us the
8138 correct behavior. Fixes #80362.
8140 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
8141 (ListChangedHandler): reorder the position/current changed events,
8142 and call UpdateIsBinding in the ItemAdded case.
8144 * GridColumnStylesCollection.cs: add some columns events, one of
8145 which raises the CollectionChanged event.
8147 2007-04-04 Jackson Harper <jackson@ximian.com>
8149 * TextControl.cs: When we delete multiple selection lines
8150 invalidate the selection area, don't need to do that for single
8151 lines because the final update view will handle it.
8153 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
8155 * Control.cs: When we CreateControl, we need to also create all of the
8156 control's children. The child's OnLoad must also fire before the parent's
8157 OnLoad. Fixes the toolbox size in PDN.
8159 2007-04-04 Jackson Harper <jackson@ximian.com>
8161 * TextBoxBase.cs: When the user presses enter, insert a line
8162 ending into the text. (Maybe this would be a good spot for
8163 Environment.NewLine).
8164 * TextControl.cs: Remove undo manager hack, line endings get
8165 inserted properly now.
8167 2007-04-04 Everaldo Canuto <everaldo@simios.org>
8170 - Remove unneeded parameters in UpdateCursor.
8171 - Fix UpdateCursor to check if menu is active.
8172 - Call UpdateCursor when menu deactivate my click.
8173 [Fixes remaining issues from #80410]
8175 2007-04-04 Everaldo Canuto <everaldo@simios.org>
8177 * Control.cs: GetRealChildAtPoint method added, it make an
8178 recursive child control search for the point.
8180 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
8183 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
8185 2007-04-03 Everaldo Canuto <everaldo@simios.org>
8187 * Form.cs: Fix mouse position when send back mouse event after closes
8190 2007-04-03 Everaldo Canuto <everaldo@simios.org>
8192 * Form.cs: Simplify the BUTTONDOWN for active tracker.
8194 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
8196 * Control.cs: Fix an issue where if a user resized a control inside
8197 a sizing method like OnResize, we would overwrite their explicit
8198 value. Also, only call DefaultSize once in the constructor instead
8199 of 4 times. Also, do not call SetBoundsCore from SetBounds if
8200 nothing actually changed.
8202 2007-04-03 Jackson Harper <jackson@ximian.com>
8204 * TextControl.cs: Don't attempt to copy text for lines with no
8205 text in them (technically this shouldn't happen, but we aren't
8206 always inserting line endings when we should be).
8208 2007-04-03 Jackson Harper <jackson@ximian.com>
8210 * TextBoxBase.cs: Calculate the scrollbars before calculating the
8211 document, because this sets some of the document size properties
8214 2007-04-03 Jackson Harper <jackson@ximian.com>
8216 * TextBoxBase.cs: We need to calculate maximums even if this is
8217 not a multiline control, because the maxs are used for scrolling.
8218 - Display the caret after doing a page up/down, we need to
8219 manually display it because a proper CaretMoved event isn't
8220 triggered (this is because of the way the math is done to
8221 determine how far to scroll).
8223 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
8225 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
8226 (ToolBar was relying on SetBoundsCore to default the values sent
8227 base off of BoundsSpecified.)
8229 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
8231 * DateTimePicker.cs: Change Text so that when a null value or empty
8232 string is assigned to the test we always raise ValueChanged and
8233 TextChanged (earlier implementation would only raise ValueChanged
8234 if the current date value was different from DateTime.Now).
8236 2007-04-03 Andreia Gaita <avidigal@novell.com>
8238 * ButtonBase: Call update after invalidation, fixes #80194
8240 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
8242 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
8245 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
8247 * XplatUIX11.cs: SetWMStyles: If the control is a form with
8248 FormBorderStyle = None, don't give the window any decorations.
8251 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
8253 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
8254 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
8255 to check for is a mix of several styles (such as WS_CAPTION for
8257 * Control.cs: Don't paint an area bigger than the client area when
8258 painting the background colour. Add an internal GetCreateParams.
8259 Update calls to XplatUI.CalculateWindowRect due to API change.
8260 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
8261 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
8262 the size if it hasn't been handled by any windows. When creating
8263 and moving windows, X wants the location of the entire window, but
8264 the size of the client window, so add
8265 TranslateClientRectangleToXClientRectangle,
8266 TranslateWindowSizeToXWindowSIze and
8267 TranslatedXWindowSizeToWindowSize to cope with this, and call them
8268 before every window creation and move. Update CalculateWIndowRect
8269 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
8270 In AddConfigureNotify don't do anything if the hwnd is a zombie
8271 (fixes the BadWindow we were getting while running the tests),
8272 always calculate the offsets when it's a parentless window, not
8273 only when reparented, and translate the window size, since we're
8274 getting the client size of the whole window, excluding entire
8276 * Theme.cs: Added BorderSizableSize.
8277 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
8278 anymore. Update calls to XplatUI.CalculateWindowRect due to API
8280 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
8281 change. Fake the window styles here instead of in XplatUIWin32 so
8282 that all back-ends get the same window styles (and it's Form that's
8283 deciding when to use wm, not the Win32 backend anyways)
8284 * Hwnd.cs: Completely reworked GetWindowRectangle and
8285 GetClientRectangle - they are now passed a CreateParams and they
8286 only use Style and ExStyle to determine the rectangles (they should
8287 now work just like Win32AdjustWindowRectEx - though quite a few
8288 special cases are probably missing). They should also be 100%
8289 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
8290 == rect), and all numbers (borders, menu sizes) are taken from the
8291 current theme. Added a GetBorders helper function that will return
8292 the borders for any given CreateParams (including captions and
8293 menus), and GetBorderSize that returns the given border size only.
8294 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
8295 Hwnd.GetClientRectangle.
8297 2007-04-02 Chris Toshok <toshok@ximian.com>
8299 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
8300 logic between the values we present to the user and the values
8301 which are stored in the column's property. Also, don't call
8302 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
8304 2007-04-02 Jackson Harper <jackson@ximian.com>
8306 * TextBoxBase.cs: Scroll faster!
8308 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
8310 * StatusStrip.cs: Layout fixes for PDN.
8311 * ToolStrip.cs: Set item's available to true, and placement to main when
8313 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
8314 changing in setter before doing any work, add InternalVisible.
8315 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
8316 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
8319 2007-04-02 Jackson Harper <jackson@ximian.com>
8321 * TextBox.cs: LBUTTON does not make the textbox select all of it's
8324 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8326 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
8327 Makes ToolStripComboBoxes show up again.
8329 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8331 * ListView.cs: Add a hover_pending field in ListView
8332 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
8333 cycle (we are resetting the MouseHover logic in XplatUI
8334 to handle HoverSelection). Fixes #80429.
8336 2007-04-02 Jackson Harper <jackson@ximian.com>
8338 * TextControl.cs: Make sure the attributes get set on the last
8340 - Still have to do the end tag if we have stepped all the ways to
8343 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
8345 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
8346 on an internal libgdiplus call when the information is already
8347 available via the public API.
8349 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8351 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
8352 control is removed from a control collecftion.
8353 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
8354 Fixes FormPropertyTest (failed on rare occasions).
8355 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
8356 of Win32SetParent (when changing from no parent to a parent it
8357 might add the new parent's location in screen coordinates to this
8359 * Form.cs: Rework ChangingParent once again, now the handle is
8360 recreated whenever a FormWindowManager is added or removed (that is
8361 whenever a normal form is parented or abandoned). Also change
8362 CreateParams so that all non-toplevel windows always get the
8363 specified sice (StartupPosition is never considered for
8364 non-TopLevel forms).
8365 * ContainerControl.cs: Add ChildControlRemoved, the container control
8366 needs to be notified when a control is removed from it's
8367 collection, in the case the removed control is the active control.
8369 2007-04-02 Jackson Harper <jackson@ximian.com>
8371 * RichTextBox.cs: Use the new methods for setting the font and
8372 color, these methods set the specified attribute without
8373 overriding the other attributes.
8375 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
8377 * ToolStripPanel.cs: Fixes for better layouts in PDN.
8379 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
8381 * TextBox.cs: Added internal ChangeBackColor method to special-case
8382 Color.Empty. Added check for invalid ScrollBars value.
8383 * TextBoxBase.cs: Added internal ChangeBackColor method.
8384 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
8385 internal ChangeBackColor method to special-case Color.Empty. Added
8386 check for invalid ScrollBars value.
8388 2007-03-30 Everaldo Canuto <everaldo@simios.org>
8390 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
8392 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
8394 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
8395 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
8396 [Based on submitted patch from Olivier Duff.]
8398 2007-03-30 Jackson Harper <jackson@ximian.com>
8400 * TextBox.cs: Only select all on initial focus if the user has not
8401 specified a selection area.
8403 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
8405 * UserControl.cs: Override CreateParams.
8407 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
8411 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
8412 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
8413 check for is a mix of several styles (such as WS_CAPTION for instance).
8414 * Control.cs: Don't paint an area bigger than the client area when painting
8415 the background colour. Add an internal GetCreateParams. Update calls to
8416 XplatUI.CalculateWindowRect due to API change.
8417 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
8418 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
8419 hasn't been handled by any windows. When creating and moving windows, X
8420 wants the location of the entire window, but the size of the client
8421 window, so add TranslateClientRectangleToXClientRectangle,
8422 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
8423 to cope with this, and call them before every window creation and move.
8424 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
8425 removing DeriveStyles). In AddConfigureNotify don't do anything if the
8426 hwnd is a zombie (fixes the BadWindow we were getting while running the
8427 tests), always calculate the offsets when it's a parentless window, not
8428 only when reparented, and translate the window size, since we're getting
8429 the client size of the whole window, excluding entire window.
8430 * Theme.cs: Added BorderSizableSize.
8431 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
8432 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
8433 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
8434 Fake the window styles here instead of in XplatUIWin32 so that all
8435 back-ends get the same window styles (and it's Form that's deciding when
8436 to use wm, not the Win32 backend anyways)
8437 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
8438 they are now passed a CreateParams and they only use Style and ExStyle
8439 to determine the rectangles (they should now work just like
8440 Win32AdjustWindowRectEx - though quite a few special cases are probably
8441 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
8442 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
8443 sizes) are taken from the current theme. Added a GetBorders helper
8444 function that will return the borders for any given CreateParams
8445 (including captions and menus), and GetBorderSize that returns the given
8447 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
8448 Hwnd.GetClientRectangle.
8450 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
8452 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
8453 layout of the mdi children is handled by CreateParams. Fixes
8456 2007-03-29 Everaldo Canuto <everaldo@simios.org>
8458 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
8461 * Form.cs: When active tracker mouse down is not processed, send event
8462 back to control inside mouse position. [Fixes #81227]
8464 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
8466 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
8467 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
8468 stealing focus from the active form on Windows. (Control will be made
8469 visible in ShowWindow.)
8471 2007-03-29 Mike Kestner <mkestner@novell.com>
8473 * ImageList.cs : add internal Changed event.
8474 * ListView.cs : hook up to StateImageList.Changed to perform
8475 invalidations when the the state icon list changes. [Fixes #81191]
8477 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
8479 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
8480 to prevent tooltips from stealing focus from the active form on Windows.
8482 2007-03-29 Everaldo Canuto <everaldo@simios.org>
8484 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
8486 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
8488 2007-03-29 Everaldo Canuto <everaldo@simios.org>
8490 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
8493 2007-03-29 Jackson Harper <jackson@ximian.com>
8495 * TextControl.cs: When deleting text from non multiline textboxes,
8496 we need to update the entire document, because line offsets will
8499 2007-03-29 Everaldo Canuto <everaldo@simios.org>
8501 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
8502 added to theme, now we can create themes that uses diferent notify engines
8503 like notification-daemon from galago project or growl for Mac OS.
8505 2007-03-28 Everaldo Canuto <everaldo@simios.org>
8507 * NotifyIcon.cs: Prevent Balloon to show in task bar.
8509 2007-03-28 Everaldo Canuto <everaldo@simios.org>
8511 * XplatUIX11.cs: Prevent system to open more than one balloon.
8513 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
8514 some compiler warning messages.
8516 2007-03-28 Everaldo Canuto <everaldo@simios.org>
8520 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
8522 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
8523 implemented, this methods is used by NotifyIcon.BalloonWindow class.
8525 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
8528 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8530 * ListViewItem.cs: Forgot to make Invalidate internal.
8532 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8534 * ListView.cs: Add a InvalidateSelection method to
8535 invalidate methods which are currently selected, and call
8536 it when setting FullRowSelect and HideSelection, instead of
8539 2007-03-28 Chris Toshok <toshok@ximian.com>
8541 * XplatUIX11.cs (UnmapWindow): reindent this block.
8543 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
8544 the selection_start if we're moving the selection (that is, not
8545 extending it). Fixes bug #80461.
8547 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
8549 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
8550 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
8551 create private ControlCollection.
8553 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
8555 * Control.cs: We need to call OnVisibleChanged for our implicit
8556 children as well as our normal children. Fixes scrollbars in
8557 comboboxes not showing up.
8559 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
8561 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
8562 the check for IsHandleCreated first. The check in CreateHandle is not
8563 good enough because CreateHandle can be overriden, and the override
8564 should not be called if the handle is already created.
8566 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
8568 * ToolStrip.cs: Remove MonoTODO for tooltips.
8569 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
8570 * ToolStripContainer.cs: Add custom ControlCollection class.
8571 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
8572 * ToolStripDropDown.cs: Add some missing properties/methods.
8573 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
8574 * ToolStripItem.cs: Remove MonoTODO for tooltips.
8575 * ToolStripManager.cs: Add IsShortcutDefined.
8576 * ToolStripOverflow.cs: Override LayoutEngine.
8577 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
8578 * ToolStripSeparator.cs: Add ImageKey.
8580 2007-03-28 Jackson Harper <jackson@ximian.com>
8582 * TextControl.cs: If a char delete removes a line ending, we need
8583 to update the ending style.
8584 - Make sure the line ending calcs get called.
8586 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
8588 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
8589 it was making the new code not work. Fixed a typo in the new code
8590 as well. Fixes #79826.
8592 2007-03-27 Everaldo Canuto <everaldo@simios.org>
8595 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
8596 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
8597 - SystrayBalloon method implemented.
8598 [Add support for notifyicon balloon on win32, #79149]
8600 2007-03-27 Mike Kestner <mkestner@novell.com>
8602 * ThemeWin32Classic.cs : update StateImageList selection to mirror
8603 the ms behavior when only one image is added to the list.
8606 2007-03-27 Jackson Harper <jackson@ximian.com>
8608 * TextControl.cs: Improvements to non multiline line ending
8611 2007-03-27 Everaldo Canuto <everaldo@simios.org>
8613 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
8615 2007-03-27 Everaldo Canuto <everaldo@simios.org>
8618 - Balloon message handling added.
8619 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
8621 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
8622 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
8623 to SystrayBalloon to me like other Systray method, also a
8624 handle parameter added.
8626 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8628 * ListView.cs: Show scrollbars even when items.Count == 0
8629 but the columns Width is bigger than the ListView.Width.
8630 Also, when columns.Count == 0 set layout_wd and layout_ht
8631 to the ClientRectangle values, so we don't show any scrollbar
8634 2007-03-27 Everaldo Canuto <everaldo@simios.org>
8636 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
8638 2007-03-27 Jackson Harper <jackson@ximian.com>
8640 * RichTextBox.cs: The RTF library decodes the text properly for us
8643 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8645 * ListView.cs: Display HeaderControl even when columns.Count == 0.
8646 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
8647 ListView header (HeaderControl), instead of Control.BackColor.
8649 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
8651 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
8652 Fixes tab control issues where controls would not show up because they
8653 never received their OnVisibleChanged call.
8655 2007-03-27 Everaldo Canuto <everaldo@simios.org>
8657 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
8660 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
8662 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
8663 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
8664 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
8665 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
8666 the handle. Fix WindowState by using the internal variable until we are
8667 sure that we've been shown.
8668 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
8672 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
8674 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
8675 (at least borders). Fixes #79386 on Linux (with a small difference
8676 in behaviour: when trying to resize a caption-less window metacity
8677 shows the sysmenu. Resizing is still possible though).
8678 * XplatUIWin32.cs: When setting window styles send request an extra
8679 WM_NCCALCSIZE when it's a form without title (due to no text and no
8680 caption), since Win32 seems to calculate it wrong the first time we
8681 get the message, though the second time things work as they should.
8682 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
8683 newly reparented window might show up unparented. Update
8684 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
8685 there's no title text. Fixes #79386.
8687 2007-03-27 Mike Kestner <mkestner@novell.com>
8689 * ListBox.cs : don't perform invalidations if the handle hasn't been
8690 created. [Fixes #80753]
8692 2007-03-27 Mike Kestner <mkestner@novell.com>
8694 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
8697 2007-03-26 Everaldo Canuto <everaldo@simios.org>
8699 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
8700 needed to implement Balloon.
8702 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8704 * ListViewItem.cs: In the constructors that take
8705 an array of strings, don't use ListViewSubItemCollection.AddRange
8706 method to add items, since we need to have a different behaviour (in
8707 the constructors we add an item for each null string, opposed to
8708 the behaviour of AddRange, which adds nothing).
8710 2007-03-26 Andreia Gaita <avidigal@novell.com>
8712 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
8714 2007-03-26 Jackson Harper <jackson@ximian.com>
8716 * TextControl.cs: Draw and measure line endings when in non
8718 - When searching the text, count the end of the last line as a
8721 2007-03-26 Jackson Harper <jackson@ximian.com>
8723 * RichTextBox.cs: The selection_start and selection_end don't
8724 really track the correct tags for the selection. So we'll manually
8725 compute the correct tag here.
8727 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8729 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
8730 and Continuous styles. Fixes #79469.
8732 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
8734 * ToolStrip.cs: Implement Tooltips.
8735 * ToolStripItem.cs: Create internal method for determining tooltip.
8737 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
8739 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
8741 2007-03-26 Everaldo Canuto <everaldo@simios.org>
8743 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
8744 it prevents a problem thak keeps icon visible after application
8747 2007-03-26 Everaldo Canuto <everaldo@simios.org>
8749 * NotifyIcon.cs: Balloon properties and methods created.
8751 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
8752 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
8754 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
8756 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
8758 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
8760 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
8761 parameter indicates which aspects were explicit/user-set.
8762 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
8764 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
8766 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
8767 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
8768 SmallChange, and Value (2.0).
8769 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
8771 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8773 * ListView.cs: Always set item_control.Width in LayoutDetails
8774 if View is Details. Setting it later in CalculateScrollBars
8775 in a not-so-corner scenario (the sum of columns width is
8776 not bigger than the ListView width when handle is created, and then
8777 that sum gets bigger by increasing the width of the columns)
8778 causes a very weird recursion path (which shouldn't be happening,
8779 since header_control sets it in CalculateScrollBars too). This bug
8780 appeared after Chris' fixes for handle created issues, so probably
8781 it's related to some handle-creation time.
8783 2007-03-23 Chris Toshok <toshok@ximian.com>
8785 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
8786 case where there's an add row, just so we don't end up in a case
8787 where it's not displayed (this happens when the row is partially
8788 obscured). Fixes bug #79574.
8790 2007-03-23 Jackson Harper <jackson@ximian.com>
8794 * RichTextBox.cs: Preserve line endings in the lines text buffer,
8795 also added an enum that represents the line ending type.
8797 2007-03-23 Andreia Gaita <avidigal@novell.com>
8799 * NumericUpDown.cs: Fix logic so Text and Value properties are not
8800 messed with in every method call, but only from DownButton,
8801 UpButton, UpdateEditText() and ValidateText. Fixes #80346
8803 2007-03-23 Chris Toshok <toshok@ximian.com>
8805 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
8806 format objects if the format spec is "". Fixes bug #80889.
8808 2007-03-22 Miguel de Icaza <miguel@novell.com>
8810 * ToolStripPanel.cs (Join): added stubs to build PDN3
8812 * Control.cs (AutoScrollOffset): Add.
8814 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
8815 property, its only implemented for Win32, on X11 it defaults to
8816 some hardcoded value.
8818 * ToolStripItem.cs (AllowDrop): Add property
8820 2007-03-22 Mike Kestner <mkestner@novell.com>
8822 * ListView.cs : in FullRowSelect Details mode, only enable box
8823 selection if the user clicks over the "item" column outside of the
8824 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
8826 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8828 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
8829 handle is not created yet.
8830 * Form.cs: Select: Don't call CreateHandle if the handle is already
8831 created, avoids a stack overflow on Windows when we are recreating
8833 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
8834 they are made visible, and override AfterTopMostControl to keep
8835 them on top when other controls are brought to front.
8836 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
8837 or force_*scroll_visible is true (old implementation always shows
8838 scrollbars when needed, no matter what auto_scroll was set to).
8839 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
8840 IsHandleCreated check.
8842 2007-03-22 Andreia Gaita <avidigal@novell.com>
8844 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
8845 row or col separator.
8846 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
8848 2007-03-22 Everaldo Canuto <everaldo@simios.org>
8850 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
8852 2007-03-22 Everaldo Canuto <everaldo@simios.org>
8854 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
8855 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
8856 every time. Fixes #80410.
8858 2007-03-22 Chris Toshok <toshok@ximian.com>
8860 * BindingSource.cs (AddNew): partially implement.
8862 remove a couple of NotImplementedException's
8863 to get bug #81148 closed.
8865 2007-03-22 Everaldo Canuto <everaldo@simios.org>
8870 - UpdateCursor method added to update the screen cursor.
8871 - GetAvailableCursor method added to return cursor for enabled tree,
8872 it searches for cursor on control and it's parent's for enabled control.
8873 - Call UpdateCursor method on setter of Cursor property.
8874 - On setter of Enabled call UpdateCursor when it is false, we need to
8875 change cursor to normal (or to this parent cursor) because cursor
8876 setting theres no effect to disabled controls.
8877 - Some minor source changes to follow the coding style guidelines.
8879 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
8882 2007-03-22 Chris Toshok <toshok@ximian.com>
8884 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
8887 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8889 * XplatUIX11.cs: Implement default locations for forms.
8890 * Form.cs: Completely rework startup location for forms. Fixes #79964.
8891 * Hwnd.cs: Add previous_child_startup_location (to track the current
8892 startup location for any child forms of the current form) and
8893 previous_main_startup_location (to track the startup location for
8894 the current toplevel form).
8896 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
8898 * Control.cs: Don't trigger a layout if an implicit control is added
8899 that isn't visible. Also, don't notify the owner when an implicit control
8900 is added. (Owners shouldn't even know about their implicit controls.)
8902 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
8904 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
8905 to save some re-layouts.
8907 2007-03-21 Everaldo Canuto <everaldo@simios.org>
8909 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
8912 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
8914 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
8915 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
8917 2007-03-21 Mike Kestner <mkestner@novell.com>
8919 * ListView.cs : disable selection update for non-left button clicks
8920 with mods and over selected items. [Fixes #80524]
8922 2007-03-20 Jackson Harper <jackson@ximian.com>
8925 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
8928 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8930 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
8931 very probably a more complicated calculation there. Update the
8932 textbox' ForeColor and BackColor when the ComboBox' colors are
8933 changed. Change the border change in LayoutComboBox to only affect
8934 the textbox, not all the calculations there. Seems to fix most of
8937 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8939 * ComboBox.cs: Handle Home and End keys as well as all combinations of
8940 modifiers + navigation keys as input keys, enables advanced text
8941 selection in the combobox (like Shift+Left Arrow for instance).
8942 ComboTextBox now overrides Focused and returns whatever
8943 ComboBox.Focused returns, since it really should be focused
8944 whenever the ComboBox is. Fixes #80795. Also make the border around
8945 the text box one pixel bigger, as mentioned in #79436.
8947 2007-03-20 Jackson Harper <jackson@ximian.com>
8949 * TreeView.cs: Don't offset the images, this was causing some
8950 artifacts when expanding/collapsing with images that were the
8951 exact height of the treenode.
8953 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8955 * TrackBar.cs: Query the theme for the correct value when the mouse
8956 moves and the thumb is pressed.
8957 * Theme.cs: Added TrackBarValueFromMousePosition
8958 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
8959 implementation was updating the trackbar value when drawing, now
8960 the drawing methods only draw. Fixes #80900. Refactored the
8961 calculations out to TrackBarValueFromMousePosition and
8962 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
8963 according to the mouse position whenever it wants to. Changed the
8964 light coloured pen when drawing the thumb from ControlLight to
8965 ControlLightLight, because the ControlLight is the same colour as
8966 the background so the 3D effect is lost.
8968 2007-03-20 Everaldo Canuto <everaldo@simios.org>
8970 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
8971 defined. Fixes #80784.
8973 2007-03-20 Marek Habersack <mhabersack@novell.com>
8975 * ContextMenuStrip.cs: align with the change introduced in
8978 2007-03-20 Everaldo Canuto <everaldo@simios.org>
8980 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
8981 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
8984 2007-03-19 Chris Toshok <toshok@ximian.com>
8986 * Control.cs (WmPaint): don't make use of the Handle property
8987 after an event is emitted, as the user could have closed the
8988 form/destroyed the control. Store the Handle in a local variable
8989 and make use of that. Fixes bug #80768.
8991 2007-03-20 Everaldo Canuto <everaldo@simios.org>
8993 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
8994 behavior in X11 environments.
8996 2007-03-20 Everaldo Canuto <everaldo@simios.org>
8998 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
8999 because on setter of topmost we dont call SetTopmost when handle is not
9002 2007-03-20 Jackson Harper <jackson@ximian.com>
9004 * TextControl.cs: Need to use SelectionLength () not
9005 selection_length, since that var is reset to -1.
9006 - Draw the caret when we don't have focus.
9007 * TextBox.cs: The selectall actually doesn't occur until the first
9009 * TextBoxBase.cs: Need to update the caret position after a
9012 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9014 * ListView.cs: Enable scrolling when using Tile view.
9016 2007-03-20 Everaldo Canuto <everaldo@simios.org>
9020 * XplatUIDriver.cs: Abstract SetOwner method created.
9022 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
9023 must be implemented and was masked as todo.
9025 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
9028 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
9029 cheking for null owner to remove transient. The SetTopmost will be change
9032 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
9033 SetTopmost. Now owned forms will work properly in win32 and X11.
9035 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9037 * MdiWindowManager.cs: Update function name.
9038 * Form.cs: After closing a form MdiParent is always null.
9039 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
9040 better what it should do: necessary book-keeping when the form is
9041 closed, it should not close the form itself.
9043 2007-03-19 Andreia Gaita <avidigal@novell.com>
9045 * ListViewItem.cs: Fix back and fore color. The subitems only
9046 use their own colors if they are set, otherwise use the listview's
9047 colors. Don't set default colors on constructor for subitem.
9050 2007-03-19 Mike Kestner <mkestner@novell.com>
9052 * ListView.cs : make box selection for Details views with
9053 FullRowSelect conform to MS behavior when clicking in the "item"
9054 column and clicking outside the defined columns.
9055 [Fixes case 5-6 of #80374]
9057 2007-03-19 Chris Toshok <toshok@ximian.com>
9059 * ScrollableControl.cs: create the controls from within the ctor,
9060 but don't actually add them until our handle is created. this
9061 fixes a NRE possibility jpobst found (if you override OnLayout in
9062 a subclass, it's called before your ctor). Also, add a
9063 IsHandleCreated guard to UpdateSizeGripVisibility as well.
9065 2007-03-19 Jackson Harper <jackson@ximian.com>
9067 * TextBox.cs: Reduce the amount of invalidation we do.
9068 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
9069 some of them are true by default on MS.
9070 - Add some functions to reduce the amount of invalidates we do.
9071 * TextControl.cs: Less invalidation.
9073 2007-03-19 Chris Toshok <toshok@ximian.com>
9075 [ Fixes #81773, and *seems* to fix #81553 as well ]
9077 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
9078 AccumulateDestroyedHandles. We need to do it *after* we send
9079 WM_DESTROY, as the user's code can access Control.Handle in
9080 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
9081 move the WM_DESTROY/zombie handling to before the call to
9082 XDestroyWindow. For some reason without this ordering
9083 FormTest.RecreateHandle hangs. This ordering is semantically
9084 equivalent, however, as XDestroyWindow is async anyway.
9086 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
9088 * RichTextBox.cs: Reset backcolor_set after setting default.
9090 2007-03-19 Chris Toshok <toshok@ximian.com>
9092 * ScrollableControl.cs: the scroll position should not effect the
9093 canvas size. commit patch from georgegiolfan@yahoo.com, which
9094 fixes some really bizarre behavior on resizing. Fixes bug #80778.
9096 2007-03-19 Chris Toshok <toshok@ximian.com>
9098 * ScrollableControl.cs: clean this up a bit. create the
9099 scrollbars in the ctor and just show/hide them as needed. Also,
9100 make hscroll_visible/vscroll_visible internal to Recalculate, and
9101 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
9102 everywhere else. This seems to fix the scrollbars appearing
9103 beneath the content for me (i have *no* idea why that is,
9106 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
9108 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
9109 some redundacy for stuff in Anchor and Dock that base will take care of.
9112 2007-03-19 Mike Kestner <mkestner@novell.com>
9114 * ListView.cs : make box selection for Details views without
9115 FullRowSelect dependent on the text bounds, not item bounds.
9116 * ListViewItem.cs : add an internal property to obtain the TextBounds
9117 in Details view. [Fixes case 1-4 of #80374]
9119 2007-03-19 Andreia Gaita <avidigal@novell.com>
9121 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
9122 we're < 2.0. #78448 && #80316
9124 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
9126 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
9127 have the same style available as the previously selected one. Also,
9128 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
9130 2007-03-19 Jackson Harper <jackson@ximian.com>
9132 * TextControl.cs: Add an alignment property that all new lines
9134 - Make sure to use the align shift when calculating the line's X
9136 * TextBox.cs: Set the alignment on the document as well as on all
9139 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
9141 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
9142 throw if setting the parent of an mdichild that already has an
9143 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
9144 AssemblyProductAttribute in the assembly, use the type's namespace (as
9145 MS seems to do). CreateControl: don't create the handle if the control
9146 is not visible (according to MS behaviour and spec). SetTopLevel: Only
9147 create handle if the control is not a form. Change FocusInternal to
9148 virtual so that it can be overriden by Form.
9149 * TextBox.cs: Update call to FocusInternal.
9150 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
9151 form is not a toplevel form when it's a mdi child, so update is_toplevel
9152 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
9153 hasn't been created. Show (IWin32Window): Don't allow this overload for
9154 toplevel windows. CenterToParent/CenterToScreen/Select: create the
9155 handle as MS does. SetVisibleCore: if called on a MdiChild and the
9156 parent isn't visible yet, save the visibility and restore it when the
9157 parent is made visible.
9158 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
9159 methods, since the visibility of the scrollbars can be changed from
9160 several places, not only from AutoScroll.
9163 2007-03-19 Jackson Harper <jackson@ximian.com>
9165 * RichTextBox.cs: Enable shortcuts by default.
9166 * TextBoxBase.cs: Add conditional shortcuts.
9168 2007-03-19 Everaldo Canuto <everaldo@simios.org>
9170 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
9172 2007-03-19 Chris Toshok <toshok@ximian.com>
9176 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
9177 swallow the message we're waiting on, instead of delivering it, as
9178 this is only used for the WM_SHOWWINDOW raised from
9179 MapWindow/UnmapWindow, and the message needs to be generated
9180 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
9181 before doing the Map/Unmap. Also make sure that the Hwnd is still
9182 alive after the message has been handled.
9184 *before* the window is shown.
9186 * Control.cs (CreateControl): guard a few more things inside the
9187 if (!is_created) block, as we might end up being called again -
9189 (WmShowWindow): call CreateControl if we're showing the control.
9191 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
9193 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
9194 controls without a handle if they have any parent with a handle. In
9195 Dispose add a check whether the handle is created or not before
9196 calling BeginInvoke, this removes the need of the extra disposing
9197 parameter (which was bogus anyway since it didn't prevent the
9198 invoke from happening, it only skipped the check for an existing
9199 handle, meaning that the invoke would call on an inexistent
9202 2007-03-19 Everaldo Canuto <everaldo@simios.org>
9204 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
9207 2007-03-18 Everaldo Canuto <everaldo@simios.org>
9210 - Fixed a problem that dont show help button for messages with 3 buttons.
9211 - Refactory button size and position calculations, now dont use fixed
9212 values, also fixed button sizes (#80043) and form's border space.
9213 - AddButton method created, now all other AddButton methods call this one.
9214 - Some other source code cosmetic changes.
9216 2007-03-18 Jackson Harper <jackson@ximian.com>
9218 * RichTextBox.cs: Don't do this all fonts must match check if
9219 there is only one char selected.
9221 2007-03-18 Jackson Harper <jackson@ximian.com>
9223 * TreeView.cs: ScrollWindow works properly now, so we don't need
9224 to screw around with the scroll area. This fixes some artifacts
9225 when expanding and collapsing.
9227 2007-03-18 Jackson Harper <jackson@ximian.com>
9229 * TextBoxBase.cs: Allow updating the selection position when the
9230 cursor is outside the textarea, but we have a capture.
9231 * TextControl.cs: A special case for when the cursor is outside
9232 the bounds of the TB.
9234 2007-03-18 Jackson Harper <jackson@ximian.com>
9236 * TextBoxBase.cs: Remove image pasting code for now. There is no
9237 way to get an image on the clipboard right now anyways.
9239 * RichTextBox.cs: Use the new RTF Picture class for pictures.
9241 2007-03-18 Everaldo Canuto <everaldo@simios.org>
9244 - Set window properties in constructor intead of on CreateParams.
9245 - Remove topmost from Window ExStyle.
9246 - Set ShowInTaskbar to false.
9247 - Set form border to FixedDialog.
9248 - Some cosmetic changes and remove unneeded comments.
9249 - It fixes itens 2,3 and 4 of bug #80043.
9251 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
9253 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
9254 none was explicitly set. Fixes part of bug #79949.
9256 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
9258 * ToolStripComboBox.cs: Add AutoComplete*.
9260 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
9262 * ToolStripComboBox.cs: Add FlatStyle.
9264 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
9266 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
9267 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
9269 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9271 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
9272 CheckBox.cs, RadioButton.cs, BindingSource.cs,
9273 DataGridColumnStyle.cs: Remove warnings.
9275 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9277 * Menu.cs: MergeMenu: Check menu argument for null before looping over
9279 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
9280 visibility of mdi child forms. FormSizeChangedHandler: update the
9281 maximized size if size has changed while maximized.
9282 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
9283 creating the handle.
9284 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
9285 avoid creating the handle if not created.
9286 * XplatUI.cs: Update debug output.
9287 * XplatUIStructs.cs: Added ToString's for a couple of structs.
9289 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
9291 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
9293 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
9294 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
9295 Implement keyboard shortcuts.
9297 2007-03-15 Everaldo Canuto <everaldo@simios.org>
9299 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
9300 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
9301 ColorDialog and all derived classes.
9303 2007-03-15 Everaldo Canuto <everaldo@simios.org>
9305 [ Fixes bug #79828 ]
9308 - Rename ToolBarButtonInfor to ToolBarItem.
9309 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
9310 - Maintain an array of ToolBarItem, used instead of ToolBarButton
9311 collection to be able add same button more than one time on a toolbar.
9312 - Refactory all properties and methods to use ToolBarItem.
9315 - Remove all propeties and methods that is now in ToolBarItem.
9316 - Rectangle propery now gets the rectangle from first ToolBarItem to
9317 mimic win32 behavior.
9318 - Size calculation and layout methods also removed.
9320 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
9321 ToolBarItem instead of ToolBarButton to right drawing buttons when
9322 same button/separator was added more than one time to ToolBar.
9324 * ThemeNice.cs: Same as above.
9326 2007-03-15 Andreia Gaita <avidigal@novell.com>
9328 * XplatUIX11.cs: Fire extra MouseMove events right after
9329 MouseDown and MouseUp, emulating win32's <censored> behaviour
9330 for apps that rely on it.
9332 2007-03-15 Jackson Harper <jackson@ximian.com>
9335 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
9336 it is drawn on the controls client window and there is no NC
9338 - Set the background color to gray on 2.0 when we are readonly.
9340 2007-03-15 Chris Toshok <toshok@ximian.com>
9342 [ Fixes bug #81144 ]
9344 * XplatUIX11.cs: implement VirtualScreen independently of
9345 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
9348 2007-03-15 Chris Toshok <toshok@ximian.com>
9350 * Hwnd.cs: add an internal field for the cached_window_state.
9352 * XplatUIX11.cs: cache the window state, invalidating the cache
9353 (and thus re-querying the X server) only when we see an update to
9354 the _NET_WM_STATE property.
9356 2007-03-15 Chris Toshok <toshok@ximian.com>
9358 * BindingSource.cs: get a lot of the unit tests working.
9360 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
9362 * Control.cs: Modify UpdateStyles to store distances when bounds >=
9363 0 instead of just bounds > 0. [Fixes bug #80912]
9365 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
9367 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
9370 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
9372 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
9373 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
9374 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
9375 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
9377 2007-03-15 Chris Toshok <toshok@ximian.com>
9381 * Control.cs: add Ivan's fix for 81101, with a slight modification
9382 - you can set control.Target to null.
9384 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
9386 * ToolStripItem.cs: If our OwnerItem is null, we can't use
9387 HideDropDown, use Hide instead to prevent an NRE.
9390 2007-03-14 Jackson Harper <jackson@ximian.com>
9392 * TextBoxBase.cs: Mess with the creation stuff a little. We need
9393 to calculate the document before the handle is created, in some
9394 cases. (Actually just one case).
9396 2007-03-14 Jackson Harper <jackson@ximian.com>
9398 * TextBoxBase.cs: Need to display the caret after letting the base
9399 wndproc handle the focus methods, because the caret display
9400 methods check the focus state.
9401 - Try to display the caret after updating it's position with SelectWord.
9402 - Don't need to do an immediate update on this recalc, since there
9403 will be an invalidate anyways.
9405 2007-03-14 Jackson Harper <jackson@ximian.com>
9407 * TreeView.cs: Some workarounds so that we can match event order a
9410 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
9412 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
9413 #80803. Avoid NullReferenceException when Control does not have
9414 parent. Fixed different blinkstyle issues. Only subscribe to Tick
9415 event a single time. Only draw error icon when control is created and
9416 visible. Fixes failing unit tests.
9418 2007-03-14 Andreia Gaita <avidigal@novell.com>
9420 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
9421 Selecting events. Fire Leave and Enter events when changing tabs.
9423 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
9425 * TreeView.cs: Add TreeViewNodeSorter.
9426 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
9428 2007-03-14 Chris Toshok <toshok@ximian.com>
9430 * Form.cs: go ahead and remove the RecreateHandles that jpobst
9431 removed earlier and I had him add back it. It turns out metacity
9432 *does* in fact handle the MOTIF_WM_HINTS property changing, it
9433 just doesn't redraw the window titlebar until you resize the
9434 window. This also means we aren't recreating the entire window
9435 hierarchy on X when you change this property. And it looks better
9438 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9441 * ListView.cs: Collecting selection information
9442 is now done in SelectedIndexCollection rather than in
9443 SelectedListViewItemCollection. This is done so we can
9444 have the selection information code in one single place
9445 (virtual mode selection information entirely depends on
9446 SelectedIndexCollection).
9448 2007-03-13 Miguel de Icaza <miguel@novell.com>
9450 * ErrorProvider.cs: Add stubs for ISupportInitialize
9452 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9454 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
9455 in the right order with the right values, from the Checked property,
9456 just as MS does (instead of triggering them from ListView).
9458 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
9460 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9462 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
9463 the correct handler in OnItemCheck method (ItemCheckEventHandler
9464 instead of EventHandler). This used to throw an InvalidCastException.
9466 2007-03-13 Jackson Harper <jackson@ximian.com>
9468 * TextBoxBase.cs: Calculate the document before the handle is
9469 created, so there isn't an extra invalidate called.
9471 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
9473 * Form.cs: Don't set owner in ShowDialog until we are sure
9474 that we aren't going to throw an exception. [Fixes bug #80773]
9476 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
9478 * TreeView.cs: Make it compile.
9480 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
9482 * Control.cs: Another place we don't call SizeFromClientSize.
9483 * Form.cs: Another place we don't call SizeFromClientSize.
9486 2007-03-12 Jackson Harper <jackson@ximian.com>
9488 * TreeView.cs: Basically emulating some strangness here with
9489 exanding nodes and setting node positions when windows aren't
9491 - Also attempting to walk the node tree less than previously, and
9492 just use visible order calculations for determining offsets.
9493 - oops made scrolling backwards.
9494 * TreeNode.cs: We need to start nodes with a zero visible order,
9495 because the order calcs are based on the first nodes order.
9497 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
9499 * Form.cs: Don't exit the program if RecreateHandle is called on
9502 2007-03-12 Chris Toshok <toshok@ximian.com>
9504 * XEventQueue.cs: remove the use of PostQuitState.
9506 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
9507 WM_QUIT message in GetMessage, return false (and if we're in the
9508 nested WaitForHwndMessage, repost the WM_QUIT message).
9510 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
9512 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
9513 or the MaximizeBox properties. [Part of bug #80640]
9515 2007-03-12 Everaldo Canuto <everaldo@simios.org>
9517 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
9520 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
9522 * ToolStripItem.cs: Fix some tests I broke by checking Visible
9525 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
9527 * FileDialog.cs: Use text of File name combobox to determine what
9528 files the user selected. Added tokenizer to parse the file names.
9531 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
9533 * Control.cs: We can't call SizeFromClientSize in the constructor,
9534 but we still need to do the same work, so make an internal version.
9537 2007-03-12 Jackson Harper <jackson@ximian.com>
9541 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
9544 2007-03-12 Jackson Harper <jackson@ximian.com>
9546 * TextBoxBase.cs: Now that the handles are being created a little
9547 later, we need to make sure that the document is recalculated when
9548 the handle is created.
9550 2007-03-11 Everaldo Canuto <everaldo@simios.org>
9552 * Theme.cs: GetLinkFont abstract method added.
9555 - Remove CalcTrimRectangle, no longer needed.
9556 - Factor also remove, position issues must be fixed in libgdiplus.
9557 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
9558 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
9559 care about font used to draw links.
9560 - Set TabStop to true when control is "Selectable", control is selectable
9561 when have one or more links. Fixes #80501 (test case is also added).
9562 - Set the LinkArea values after links change, LinkArea values must be
9563 based in first link position and size, a test case was created.
9564 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
9565 the attribute must be true LinkArea.Length > 0. The same was applied to
9568 * ThemeWin32Classic.cs:
9569 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
9571 - Use CPDrawStringDisabled to draw disabled text instead of hard code
9573 - Draw focus rectangle for every parts focused, including parts that
9574 is on another line, its because regions returns various rectangles
9575 and not only one. Needed to mimic W32 look.
9576 - Uses Graphics.Clip to delimite region painted, it mean that now
9577 complete text is passed to DrawString, with this we solve layout
9578 issues without create another text renderer.
9579 - Uses Region.Intersect to fix some flickers problems, now only needed
9580 parts will redrawed.
9581 - This changes fixes #79614 and some other unreported issues, on Linux
9582 some layout problems still remain, the problem is under
9583 MeasureCharacterRanges but it is an libgdiplus bug.
9585 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
9587 * TextBox.cs: Set for foreground color.
9588 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
9589 this is already done in Control.
9591 2007-03-10 Jackson Harper <jackson@ximian.com>
9593 * TextBox.cs: Set the background color, but reset the
9594 backcolor_set flag which is just for the user setting the
9597 2007-03-09 Chris Toshok <toshok@ximian.com>
9599 * Control.cs: really remove the call to XplatUI.SetVisible from
9600 CreateHandle(), like I said I did when I merged the branch.
9602 * BindingSource.cs: implement some more of this stuff.
9604 2007-03-09 Jackson Harper <jackson@ximian.com>
9606 * TextBox.cs: Don't explicitly set our background colors.
9608 * TextBoxBase.cs: Draw readonly text.
9609 - Need to invalidate when backcolor or readonly are changed.
9611 2007-03-09 Jackson Harper <jackson@ximian.com>
9613 * TextBoxBase.cs: Don't set the forecolor until the handle is
9615 - Do not raise OnPaint, and removed some old debug code.
9617 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
9619 * ScrollableControl.cs: Fix mouse wheel scrolling.
9621 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
9623 * Control.cs: Wire up MouseDoubleClick event.
9625 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
9627 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
9629 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
9630 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
9631 item is added. This logic was moved to ToolStrip.OnItemAdded.
9634 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9636 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
9638 2007-03-08 Jackson Harper <jackson@ximian.com>
9640 * TreeView.cs: Show the correct image for selected node (this used
9641 to work, not sure how the code got deleted). Also implemented 2.0 feature
9644 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9647 * ListViewItem.cs: Cache index in items when retrieving them
9650 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
9652 * ToolStripItem.cs: Don't return the explicit_size if we are using
9653 AutoSize. Fixes invalidation issue when user has explicitly set a
9654 size and has AutoSize = true.
9656 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
9658 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
9660 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
9662 * DataGridView.cs: Remove event handler from DataView when a
9663 DataTable is used as DataSource.
9665 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
9667 * Control.cs: Create internal setter for client_size to allow it to be
9668 set without triggering resizing code.
9669 * Form.cs: Calculate client_size in constructor, only change client_size
9670 in FormBorderStyle property if Handle has been created.
9671 [Fixes #80574, #80791]
9673 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
9675 * SystemInformation.cs: Add TerminalServerSession.
9677 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
9679 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
9682 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
9684 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
9685 Handle before we were supposed to. Now checks ActivateOnShow property
9687 * Control.cs: Add internal ActivateOnShow property.
9688 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
9690 * Hwnd.cs Remove no longer needed no_activate field.
9692 2007-03-07 Jackson Harper <jackson@ximian.com>
9694 * TreeView.cs: Implement owner draw tree nodes. And a couple more
9696 * DrawTreeNodeEventHandler.cs: Add
9697 * DrawTreeNodeEventArgs.cs: Correct default value.
9699 2007-03-07 Chris Toshok <toshok@ximian.com>
9701 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
9702 to be called before NativeWindow.WndProc. Put the HwndCreating
9703 magic there to hook up our Hwnd's to handles.
9705 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
9707 * DataGridView.cs: Comment out debug code.
9709 2007-03-07 Chris Toshok <toshok@ximian.com>
9711 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
9712 to make the rest of the world happy]
9714 * Control.cs (CreateHandle): there's no need to call
9715 XplatUI.SetVisible here, it's effectively done by
9716 XplatUI.CreateWindow on X now, and always was on windows.
9718 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
9719 shortcircuit out of the loop if we have a message loop running on
9722 [Changelog from merge]
9724 2007-03-05 Chris Toshok <toshok@ximian.com>
9726 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
9727 causes handle creation.
9729 2007-02-28 Chris Toshok <toshok@ximian.com>
9731 * ApplicationContext.cs: Add a flag to make sure we only raise the
9732 ThreadExit event once (ExitThreadCore can be indirectly called
9733 from a few places.) I don't like the additional flag, but it
9734 makes the event ordering/count correct.
9736 * Application.cs (MWFThread.LoopCount): don't use an enumerator
9737 without locking the collection. An enumerator doesn't give us any
9738 protection from modification anyway. Lock the thread hash and
9739 replace the complicated enumerator loop with a foreach.
9740 (Application.CloseForms): make internal so it can be called from
9741 ApplicationContext. This should probably be moved to MWFThread.
9742 (Application.ExitThread): don't call MWFThread.Current.Exit()
9743 here. just call XplatUI.PostQuitMessage. We'll exit the thread
9744 when the runloop exits (in response to WM_QUIT.)
9745 (Application.RunLoop): add a comment (and check) for
9746 context.MainForm being null after setting context.MainForm.Visible
9747 = true. This is because you're perfectly free to dispose of a
9748 form in VisibilityChanged. Chalk this up to another case where we
9749 need to synchronously generate WM_ACTIVATE from Control.Show.
9750 Also, add handling for WM_QUIT here so we'll exit the loop.
9752 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
9753 fact that we don't wait if we're only unmapping the whole_window
9754 makes me a bit nervous, but it doesn't seem to cause any problems
9757 also, add a comment about the stupid, broken and wrong resetting
9758 of PostQuitState to false in GetMessage().
9760 In PostQuitMessage, we need to add a WM_QUIT message to the
9761 thread's queue. We use the FosterParent to get the right
9764 Lastly, in SetVisible, we need to unmap both windows, since the
9765 waiting only happens when we're unmapping the client window. So
9766 now, the *only* time we unmap just the whole_window is in the hack
9767 for resizing a control to 0,0.
9769 2007-02-21 Chris Toshok <toshok@ximian.com>
9771 * Application.cs (CloseForms): rewrite this so that we don't
9772 modify the list while we're traversing it.
9774 2007-02-20 Chris Toshok <toshok@ximian.com>
9776 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
9778 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
9779 handle is created. otherwise we'll create it here.
9780 (VerticalScrollEvent): same here.
9782 * Application.cs (CloseForms): call Form.Dispose, don't post
9785 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
9786 here. Application should Dispose() of the Form's.
9788 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
9790 (MapWindow,UnmapWindow): only actually do the waiting for
9791 SHOWWINDOW if the control we're dealing with is a Form.
9792 (CreateWindow): if the control isn't a form, SendMessage
9793 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
9795 * Control.cs (SetVisibleCore): always use is_visible here, not
9796 value. If we use value, we can end up re-setting something
9797 visible if, for instance, you do Control.Hide() in a delegate
9798 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
9800 2007-02-20 Chris Toshok <toshok@ximian.com>
9802 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
9803 the message we need. PeekMessage returning false should not be a
9804 condition under which we exit the loop.
9806 2007-02-15 Chris Toshok <toshok@ximian.com>
9808 * Control.cs (Refresh): only refresh if we've got a handle and are
9810 (CreateAccessibilityInstance): CreateControl() here.
9811 (UpdateChildrenZOrder): complicate the code loop even more by
9812 taking into account controls that haven't had their handle
9813 created, and those that aren't visible. But on the flip side,
9814 simplify the code by splitting it into two loops. one which
9815 builds up the list of child controls we're interested in, and the
9816 other that sets the z order of those children.
9818 2007-02-14 Chris Toshok <toshok@ximian.com>
9820 * Control.cs: Control.AccessibilityObject causes the control to be
9821 created, not just the handle.
9823 2007-02-14 Chris Toshok <toshok@ximian.com>
9825 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
9826 problem on X where a window might have its handle created (and be
9827 visible) while the window is unmapped. calling XConfigureWindow
9828 on an unmapped window is bad, and generates X errors.
9830 2007-02-13 Chris Toshok <toshok@ximian.com>
9832 * Control.cs (CreateHandle): don't loop over our children setting
9833 their parent here. do it when in WndProc when we're shown.
9834 (UpdateChildrenZOrder): make this internal so we can call it from
9836 (WndProc): for WM_SHOWWINDOW, reparent the child control after
9837 creating its handle. Also, remove the calls to PerformLayout from
9838 here. they're done in ScrollableControl.OnVisibleChanged. Also,
9839 OnVisibleChanged only seems to be called directly here for the
9840 toplevel control. It's propagated down the window hierarchy by
9841 calls to child.OnParentVisibleChanged.
9842 (OnVisibleChanged): don't do layout here - it's done (oddly
9843 enough, according to a glance at stack traces on ms.net..) in
9846 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
9847 z order of our children before calling PerformLayout.
9849 2007-02-12 Chris Toshok <toshok@ximian.com>
9851 [big change, fixes #80020]
9853 * AccessibleObject.cs: we need to make owner internal again to fix
9854 some of ControlAccessibleObject.
9856 * Control.cs: lots of changes here. add support for WM_CREATE,
9857 for which we generate OnHandleCreated. Remove the OnHandleCreated
9858 call from CreateHandle. Also add support for WM_SHOWWINDOW where
9859 we create child controls. leave the MonoTODO's for the
9860 accessibility calls, but fix the exceptions so the tests pass.
9862 Add the InvalidOperationExceptions to Invoke methods, and remove a
9863 couple of InvokeInternal methods we aren't using.
9865 Also, add a couple of CreateHandle calls in places where we know
9866 the handles are being created but our code doesn't reference
9869 Make SetVisibleCore call OnVisibleChange if the handle isn't
9870 created. If the handle is created, we rely on XplatUI.SetVisible
9871 generating the event synchronously.
9873 Lastly, make sure we don't use this.Handle inside CreateHandle,
9874 because we can call back into client (and that code can dispose of
9877 * XplatUIStructs.cs: misc/cleanup.
9879 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
9880 although we don't populate the wParam properly.
9881 (CreateWindow): generate WM_CREATE.
9882 (MapWindow,UnmapWindow): make these calls synchronous, at great
9883 performance expense (particularly in the unmap case), to match
9886 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
9888 (set_MdiParent): don't recreate the handle unless it's been
9891 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
9894 * NativeWindow.cs: this is probably the weirdest part of the
9895 patch. We need a way to link up the window being created to the
9896 WM_CREATE message. Since we can only be creating one window at a
9897 time on a given thread, we keep track of a per-thread reference so
9898 we can dispatch it properly. We also need to keep track of the
9899 Hwnd currently being created so that the win32 backend doesn't
9902 * XplatUIWin32.cs: a similar change to the one we made in
9905 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
9907 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
9908 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
9909 to draw the menu shortcut string.
9911 2007-03-07 Jackson Harper <jackson@ximian.com>
9913 * TreeNode.cs: Add the 2.0 collapse method.
9915 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
9917 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
9919 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
9921 * DataGridView.cs: Change DataSource will clear column and row
9922 lists. Call Invalidate() to reflect DataSource change.
9924 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
9926 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
9927 and a new row is added to it.
9929 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
9931 * DataGridView.cs: Add columns when DataSource is en empty list but
9932 is a System.Data.DataView (from a System.Data.DataTable).
9934 2007-03-06 Andreia Gaita <avidigal@novell.com>
9936 * Label.cs: Implement AutoEllipsis (2.0)
9938 2007-03-06 Jackson Harper <jackson@ximian.com>
9940 * TreeView.cs: Implement 2.0 TopNode setter property.
9941 - Use a local var instead of the skipped_nodes field for computing
9942 how many nodes to skip. Otherwise we won't scroll because the
9943 valuechanged handler checks if skipped_nodes is equal to the new
9945 - Implement 2.0 Sort method.
9946 - Add useless 2.0 DoubleBuffer property
9947 - Implement 2.0 LineColors property. Lets you change the color of
9948 the lines in the tree. Terribly useful for creating non cohesive
9950 - Implement 2.0 image key feature.
9952 2007-03-06 Jackson Harper <jackson@ximian.com>
9954 * TreeView.cs: We can't get the bounds of the nodes before raising
9955 the AfterSelect event, because that event could change the node's
9956 bounds (scrolling, font change, etc).
9958 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
9960 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
9961 * Form.cs: Don't recreate handle when creating FormWindowManager, just
9962 update window styles. In CreateParams us VisibleInternal instead of
9963 VIsible to get the actual visible flag set for this form.
9964 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
9965 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
9966 handle the case when the form is already maximized, in which case
9967 it should be restored. Fixes #81043.
9969 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
9971 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
9973 2007-03-05 Jackson Harper <jackson@ximian.com>
9975 * TreeViewHitTestInfo.cs: implement.
9977 2007-03-05 Jackson Harper <jackson@ximian.com>
9979 * InternalWindowManager.cs: class status fix.
9981 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
9983 * InternalWindowManager.cs: All windows that have a parent
9984 are confined to their parent when they're being moved.
9987 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
9989 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
9990 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
9992 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9994 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
9995 buttons invisible before deciding which ones should be visible
9996 (fixes minimize/maximize buttons showing up in toolwindows). Remove
9998 * InternalWindowManager.cs: Remove warning.
10000 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10002 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
10003 to throw an InvalidOperationException is virtual mode is being used.
10005 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
10007 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
10008 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
10009 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
10010 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10011 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
10012 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
10014 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10016 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
10017 driver.KeyboardDelay from XplatUI.KeyboardDelay
10018 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
10019 (patch by Sergey Volk)
10021 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10023 * ToolWindowManager.cs: Added, contains logic for
10025 * CreateParams.cs: Add a few helper methods and an
10026 internal variable to know which control the CreateParams belongs
10028 * Control.cs: Call Form.ChangingParent when the
10029 parent is about to be changed.
10030 * XplatUIX11.cs: DeriveStyles (): Set
10031 caption_height for all windows that have captions and are children.
10032 Update to use ToolWindowManager instead of InternalWindowManager
10034 * XplatUIWin32.cs: Set fake window styles for all
10035 windows that have window managers.
10036 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
10037 now duplicated for mdi windows when they are
10038 maximized, first for the buttons the window itself has, then for
10039 the buttons that appear in the menu bar. Makes things a little
10040 easier). Updated UpdateWindowDecorations, SetWindowState and the
10041 mouse eventhandlers accordingly.
10042 * Form.cs: Add ChangingParent (), contains the
10043 logic of what should happen when the parent changes. In MdiParent
10044 don't set things that ChangingParent () is doing. When handling
10045 WM_CLOSE, we can close the form if there are any other modal forms
10046 and the current form is a descendent of the modal form.
10047 * InternalWindowManager.cs: A lot of refactoring,
10048 the title buttons are now extracted to a separate container class
10049 that takes care of all button code (clicks, tooltips, etc). Moved
10050 Iconic|Maximized|Normal Bounds properties to this class from
10051 MdiWindowManager, so that the window state logic can succeed for
10052 other than mdi wm's. Implemented general window state change logic.
10053 Moved CreateButtons to ThemeWin32Classic, since the theme might
10054 override which buttons are available when as well as the exact
10056 * FormWindowManager.cs: Added, contains logic for
10058 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
10059 which buttons go where (and if they are at all visible).
10060 Removed special handling of maximized windows, since they aren't special.
10061 In DrawManagedWindowDecorations don't try to draw the text if it is
10063 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
10064 use whatever the wm gives us.
10066 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
10068 * ButtonBase.cs: Add 2.0 properties.
10069 * Button.cs: Override Draw for 2.0.
10070 * Control.cs: Add Entered and Selected properties.
10071 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
10072 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
10073 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
10075 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
10077 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
10079 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
10081 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
10083 * XplatUIWin32.cs: Register a new class with Windows each time we get
10084 a new ClassStyle. [Fixes bugs #79432, #80817]
10085 * Controls.cs: Set the correct ClassStyle in CreateParams.
10086 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
10088 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
10090 * ListView.cs: Add fireEvent argument to ReorderColumn since the
10091 ColumnReordered event must not be signaled when modifying DisplayIndex
10092 of a ColumnHeader. Added internal ReorderColumns method which takes
10093 care of drawing, and updating the internal DisplayIndex of the
10094 ColumnHeader. Added AddColumn method which is invoked from
10095 ColumnHeaderCollection when adding or inserting columns, and which
10096 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
10097 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
10098 Recalculated dispay indices after removing a ColumnHeader.
10099 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
10100 match MS. Allows last display index to be returned after ListView
10101 is disposed. Update actual location of ColumnHeader when DisplayIndex
10104 2007-03-01 Everaldo Canuto <everaldo@simios.org>
10106 * LinkLabel.cs: Improve CalcTrimRectangle.
10108 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
10110 2007-02-28 Everaldo Canuto <everaldo@simios.org>
10112 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
10113 get rectangle as a result value.
10115 2007-02-28 Everaldo Canuto <everaldo@simios.org>
10117 * LinkLabel.cs: Theres some diferences between rectangle return from
10118 MeasureCharacterRanges and the area used for DrawString to fix this
10119 CalcMeasurementFactor method was created, it calcules the diferences
10120 to be use later to adjust rectangle in draw operations. Fixes #80473.
10122 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
10123 to adjust draw rectangle.
10125 2007-02-27 Everaldo Canuto <everaldo@simios.org>
10127 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
10128 text and some other changes to reduce and optimize source code.
10130 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
10132 * RadioButton.cs: Implement 2.0 event.
10133 * RelatedImageListAttribute.cs: Implement new class.
10135 2007-02-27 Everaldo Canuto <everaldo@simios.org>
10137 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
10139 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
10141 * CheckBox.cs: Implement 2.0 functionality.
10143 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10145 * ListView.cs: Refactor Add and AddRange methods of
10146 ListViewItemCollection, to not update the ListView
10147 everytime an item is added in AddRange. Also move the update
10148 code to a new CollectionChanged method, and call it
10149 from other methods that need it as well (this should also fix some
10150 bugs when Sorting is used).
10152 2007-02-27 Jackson Harper <jackson@ximian.com>
10154 * TextControl.cs: Try to never let the caret stay in a non-text
10156 * TextBoxBase.cs: Update the caret.
10158 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
10160 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
10161 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
10162 delete POINT structure, duplicate of one in XplatUIStructs.
10163 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
10165 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
10167 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
10168 edit box since otherwise the Label would immediately be set (even if
10169 the user did not modify the label). In OnKeyDown set Handled to true
10170 if Return or Escape was pressed. In ColumnHeaderCollection unlink
10171 columns that are to be removed. In ListViewItemCollection unlink items
10172 that are to be removed.
10174 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
10176 * TextRenderer.cs: If we set a GDI clip region, we need to clear
10177 it when we are done. [Fixes bug #80949]
10179 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
10181 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
10183 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10185 * ListView.cs: I forgot to commit the changes for ListView
10186 in my previous patch.
10188 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
10190 * Clipboard.cs: Partially implement an overload of SetDataObject.
10191 * Form.cs: Implement ShowWithoutActivation.
10192 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
10194 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10196 This is a first set of changes to make the Virtual mode works,
10197 by avoiding the retrieval of ListViewItem instances until
10200 * ListView.cs: Store item position in the ListView instead of the
10201 ListViewItem, this way we don't request the Bounds property of
10202 ListViewItem inside the ListView calculations, as well as cache the item
10203 size in item_size field. Store indexes instead of ListViewItem
10204 instances in the matrix used by icon view. Add a ItemMatrixLocation
10205 struct to hold the row and col info of the matrix info.
10207 * ListViewItem.cs: Don't store the location anymore, and only cache
10208 the rectangles for GetBounds. Use the ListView.GetItemLocation
10209 method to retrieve the actual location.
10211 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
10213 * TextRenderer.cs: Add clipping support, thanks to George.
10216 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
10218 * ListViewItem.cs: Cancel label edit when item is removed from
10220 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
10221 event before the edit textbox is displayed. Added CancelEdit method
10222 which is used end to editing while ignoring the value set by the
10223 user. In EndEdit, set focus to ListView to avoid losing focus to
10224 other controls. In ListViewItemCollection.Clear, cancel editing of
10225 any of the items. In Remove, cancel editing of item being removed.
10226 Avoid udplicate code by modifing RemoveAt to invoke Remove.
10228 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
10230 * FileDialog.cs: Update FSEntry when move is successful. Fixes
10233 2007-02-23 Everaldo Canuto <everaldo@simios.org>
10235 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
10236 compatible with non X11 systems. Fixes #80901.
10238 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
10240 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
10241 whether the item should be unselected and reselect. We do no want this
10242 when we're starting to edit the label. Do not fire the
10243 SelectedIndexChanged event from ListView when its already been fired
10244 by modifying ListViewItem.Selected. Fixes bug #80943.
10246 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
10248 * TextRenderer.cs: Previos commit logic was backwards.
10250 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
10252 * TextRenderer.cs: Don't add padding on MeasureText if we were
10253 sent the NoPadding flag.
10255 2007-02-23 Everaldo Canuto <everaldo@simios.org>
10257 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
10258 after DrawButton. To prevent image overlaps button borders SetClip and
10259 ResetClip added before and after draw image. Fixes #79129.
10261 2007-02-23 Everaldo Canuto <everaldo@simios.org>
10263 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
10264 window size, it fix problem when you run under win32 that theres
10265 Size diferent than ClientSize. Also fix controls size and positions
10266 to mimic Win32. Fixes #80837.
10268 2007-02-22 Everaldo Canuto <everaldo@simios.org>
10270 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
10271 menu area to fix some problems for non X11 systems. Fixes #80613.
10273 2007-02-22 Jackson Harper <jackson@ximian.com>
10275 * TreeNode.cs: When a node is expanded, set its is_expanded flag
10276 even if it doesn't have any children.
10278 2007-02-22 Jackson Harper <jackson@ximian.com>
10280 * TreeView.cs: Calculate the top node 'on the fly', this
10281 eliminates issues where you need to click on the tree before
10282 scrolling it to get the top node computed correctly.
10283 * TreeNodeCollection.cs: We don't need to mess with the top node
10286 2007-02-22 Jackson Harper <jackson@ximian.com>
10288 * DataGridViewRow.cs: Fix typo so height can actually be set.
10289 Patch by Peter Grimm.
10291 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
10293 * FileDialog.cs: Fixed support for renaming files and directories.
10294 * ListView.cs: Do not lose focus when edit is canceled. Process
10295 Escape as regular key (to prevent closing of dialogs).
10297 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
10299 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
10300 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
10302 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
10304 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
10305 did not modify label.
10306 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
10307 modified the text. Reset Label when user presses Escape in edit mode.
10308 Move focus to ListView after having cancelled or finished editing the
10311 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
10313 * ComboBox.cs: Removed unnecessary initializations. Marked items field
10314 private. Clear textbox when Text is set to null and SelectedIndex is
10316 * FileDialog.cs: Removed unnecessary initializations. Removed
10317 workarounds for ComboBox bugs that are now fixed. Modified
10318 DefaultExt, InitialDirectory and Title property to change null to
10319 zero-length string in getters. Avoid directly accessing fields.
10321 2007-02-20 Jackson Harper <jackson@ximian.com>
10323 * TextControl.cs: Remove RecalAlignments call, that was some
10324 debugging leftovers.
10325 - Don't use the line indent when we shouldn't.
10326 * RichTextBox.cs: Add support for paragraph left indents.
10328 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10330 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
10331 Seems like the class status pages doesn't catch params differences.
10333 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
10335 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
10337 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
10339 * ComboBox.cs: Setting Text should have no effect if item text of
10340 selected item exactly matches value. First lookup text using
10341 case-sensitive comparison, and fallback to case-insensitive comparison.
10342 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
10343 allow startIndex to be last index. Changed ArgumentOutOfRangeException
10344 paramname to match MS. Restart from first item if string is not found
10345 after startIndex. Fixed paramname of ArgumentNullException that is
10346 thrown for null value in ObjectCollection.Contains.
10348 2007-02-19 Everaldo Canuto <everaldo@simios.org>
10350 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
10352 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10354 * ListControl.cs: In SelectedValue use value.Equals to compare for
10355 equality instead of ==, otherwise it will fail for strings.
10358 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10360 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
10361 since the caret won't show up unless ShowSelection is true.
10364 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10366 * Application.cs: When disabling all forms but the main form, do not
10367 disable any descendants of the main form (such as mdi children or
10368 other parented forms). Fixes #80822 on Windows.
10369 * Form.cs: If we have a parent, set the WS_CHILD style.
10370 * Control.cs: Update the window styles if the control whose parent has
10371 changed is a form (the WS_CHILD style has to be switched).
10373 2007-02-19 Everaldo Canuto <everaldo@simios.org>
10375 * XplatUIStructs.cs: MsgUIState structure added.
10377 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
10379 * FileDialog.cs: Removed need for separate fileName field. On 2.0
10380 profile, do not check filename(s) for illegal character if filename(s)
10381 were set non-interactively but always check on 1.0 profile. Fixed NRE
10382 in DefaultExt and only strip off first leading dot. Improve exception
10383 message when invalid Filter is set. Do not ignore InitialDirectory if
10384 it does no exist. Store specified Title, and if empty use default
10385 title (depending on type of dialog). Added an internal DialogTitle
10386 property for retrieving dialog title. Fixed logic of displayed dir to
10387 more closely match MS. Avoid setting ComboBox.Text to a zero-length
10388 string as its buggy.
10389 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
10390 FileName is a zero-length string (it can never be null). Override
10391 DialogTitle property to set default title of dialog box.
10392 * SaveFileDialog.cs: Override DialogTitle property to set default
10393 title of dialog box.
10395 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
10397 * FileDialog.cs: Modify default text of filename and filetype labels
10398 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
10399 after we've updated the SelectedIndex. Fixes part of bug #80887.
10400 * SaveFileDialog.cs: Set text of filetype label.
10402 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10404 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
10405 label field. Needed by latest Jackson's fixes for ListView.
10407 2007-02-16 Andreia Gaita <avidigal@novell.com>
10409 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
10410 print preview images.
10412 2007-02-16 Jackson Harper <jackson@ximian.com>
10414 * ListView.cs: Make AfterLabelEdit work correctly.
10415 * FileDialog.cs: After changing the name of the folder, we have to
10416 make sure that it is created, or that we pop up an error because
10419 2007-02-16 Jackson Harper <jackson@ximian.com>
10421 * X11Dnd.cs: Implement aliases on mime handlers, so things like
10422 System.String are mapped to text.
10423 - Handle dataobjects, getting all the possible formats out of them
10424 - We dont need the drag event args before we give feedback. This
10425 allows feedback cursors to be immediate before selections have
10428 2007-02-16 Jackson Harper <jackson@ximian.com>
10430 * TextBoxBase.cs: Modified the method for inserting images to
10431 taking a line and position instead of tag and position.
10432 * RichTextBox.cs: Handle PngBlip data by inserting the png image
10434 * TextControl.cs: Allow images to be inserted as the first tag of
10436 - Fix some off by one issues when we assume the first tag is a
10437 text tag, not an image tag.
10439 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10441 * ListView.cs: Set focus to ListView when ItemControl gets a
10442 WM_RBUTTONDOWN message, to mimic .Net behaviour.
10443 Fixes part of #80467.
10445 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
10447 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
10448 validate Text input (if null or empty string reset Value to default
10449 value). Fixes #80830.
10451 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10453 * ListView.cs: Set owner as null for columns and items when
10454 Dispose is invoked. Fixes #80607.
10456 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
10458 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
10459 showing DropDowns, don't show a Grip when doing Flow layout.
10460 [This fixes the toolbox in PDN 2.72.]
10461 * ToolStripItem.cs: Add Anchor property and some internal properties to
10462 reduces needed changes to FlowLayout.
10463 * ToolStripOverflow.cs: Remove unused variable.
10464 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
10465 use it in the layout calculations.
10467 2007-02-13 Everaldo Canuto <everaldo@simios.org>
10469 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
10470 reported in #79640.
10472 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
10475 2007-02-13 Everaldo Canuto <everaldo@simios.org>
10477 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
10478 MeasureString format, it can make button very large in some cases, it is
10479 strange but is what win32 do.
10481 2007-02-13 Everaldo Canuto <everaldo@simios.org>
10483 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
10486 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
10487 rendering, the value is based on MenuAccessKeysUnderlined.
10489 2007-02-13 Everaldo Canuto <everaldo@simios.org>
10491 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
10494 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
10496 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
10497 and use MenuAccessKeysUnderlined instead.
10499 2007-02-13 Andreia Gaita <avidigal@novell.com>
10501 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
10502 A selected control would not get a Focus call if:
10503 - the default active control of the container is the same as
10504 the one that was selected
10505 - we are switching from one container to another
10506 Under these conditions, the container being selected already has
10507 an active_control, which is the same as the one being activated,
10508 so set_ActiveControl would always return and not send the Focus
10509 call. Fix to check if the currently active control of the container
10510 is actually focused.
10512 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
10514 * StatusStrip.cs: Implement the spring layout.
10515 * ToolStripControlHost.cs: Make sure the hosted control's visibility
10516 always matches the host.
10517 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
10518 and TextAfterImage.
10520 2007-02-13 Andreia Gaita <avidigal@novell.com>
10522 * Control.cs: Code reorganization only.
10523 - Reorganize the WndProc cases so that each case has it's own handling method,
10524 to help with the no-line-numbering stack traces.
10525 - Formatting changes (it's vstudio's fault, really :p)
10527 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10529 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
10530 Thread.CurrentUICulture to match DateTimePicker's (and MS)
10533 2007-02-12 Jackson Harper <jackson@ximian.com>
10536 * TextBox.cs: By default we have a non multiline document
10537 - use the multiline property instead of the internal variable
10538 * TextBoxBase.cs: Treat multiline and non multiline the same in
10540 - Use the documents multiline flag instead of tracking it ourself
10541 * TextControl.cs: Attempt at getting multiline to match MS
10542 behavior. Lines now track an offset, which is either their X or Y
10543 offset depending on whether or not we are in multiline mode.
10544 - Update all the methods to understand that lines have an X value.
10545 - Fix crash in Undo::Duplicate when empty lines are deleted.
10547 2007-02-12 Everaldo Canuto <everaldo@simios.org>
10549 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
10550 code moved to properties PreferredHeight and PreferredWidth. It solve the
10551 all problems when preferred sizes must be recalculated. Fixes #80801.
10553 2007-02-12 Everaldo Canuto <everaldo@simios.org>
10555 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
10556 font height when compatible_text_rendering is false. Partially fix #80801.
10558 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
10560 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
10562 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
10564 * Form.cs: Improved exception messages in ShowDialog.
10566 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
10568 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
10569 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
10570 if not set. Fixes bug #80764. Avoid accessing current_settings field
10573 2007-02-08 Everaldo Canuto <everaldo@simios.org>
10575 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
10578 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
10579 public in 2.0 and for easy maintenance and dont break compatibility it is
10582 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
10584 * ToolStripItem.cs: Implement using images from ImageList.
10586 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10588 * DateTimePicker.cs: Change default date-formatting culture from
10589 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
10590 seems to be the way MS does it.
10592 2007-02-08 Andreia Gaita <avidigal@novell.com>
10594 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
10595 (the 6 was cut off on the right side)
10597 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
10599 * Form.cs: Tell MenuStrips to close when the form is clicked.
10600 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
10601 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
10602 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
10603 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
10604 support for Overflow, where items that do not fit are automatically
10605 reparented to a drop down menu.
10606 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
10607 Also: fixes bug #80747.
10609 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10611 * ComboBox.cs: Remove warning (unused code).
10612 * ScrollableControl.cs: Remove warning for 1.1 profile.
10614 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10616 * Form.cs: Remove a warning.
10618 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10620 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
10621 'g' specifier, not documented anywhere, but seems to always show up
10622 as a single space (might have something to do with the DateTime 'g'
10623 specifier, which is the era format, but since DateTimePicker can't
10624 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
10625 won't crash if the format has an unmatched quote. Now shows
10626 single-character formats correctly. Fixes #80744.
10628 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
10630 * StatusStrip.cs: Stretch property needs to call base.Stretch,
10631 not this.Stretch to fix stack overflow. [Fixes bug #80760]
10633 2007-02-07 Chris Toshok <toshok@ximian.com>
10635 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
10636 background color. it overwrites the background image we've
10637 already painted. Fixes #80599.
10639 2007-02-07 Chris Toshok <toshok@ximian.com>
10641 * DataGrid.cs: return immediately from Edit() when there are no
10642 columns. Fixes #80662.
10644 2007-02-07 Chris Toshok <toshok@ximian.com>
10646 * MessageBox.cs: fix #80625. don't always show the Help button in
10647 2.0. use the displayHelpButton parameter to determine if we
10648 should show it. Also, make the internal show_help field private.
10650 2007-02-07 Chris Toshok <toshok@ximian.com>
10652 * Control.cs (SetVisibleCore): check in the proposed patch for
10653 80604, and set is_visible before calling CreateControl.
10655 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
10657 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
10658 MonoInternalNote. This is added automagically by VS2005, so let's not crash
10661 2007-02-06 Everaldo Canuto <everaldo@simios.org>
10663 * MenuAPI.cs: hotkey_active internal field added, it is required because
10664 we need to know when hotkeys must be draw, before this change a keystate
10665 Navigating was used but we can have menu in navigating state without
10666 hotkeys. Fixes #80694.
10668 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
10670 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
10672 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
10673 corresponding events and methods to be internal for 1.1 profile and
10674 public for 2.0 profile (required by SizeGrip).
10675 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
10676 implicit control list). Don't set the size nor the location of the
10677 SizeGrip anymore as it's not needed.
10678 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
10679 draw directly on the captured control (fixes #80656). Removed
10680 ShowGrip (it wasn't used anywhere), redraw (always true), added
10681 GetDefaultSize and GetDefaultRectangle to calculate defaults.
10682 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
10683 be called from SizeGrip.
10685 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
10687 * Timer.cs: Throw ArgumentException if Interval <= 0.
10689 2007-02-05 Jackson Harper <jackson@ximian.com>
10691 * TreeView.cs: We need to check scrollbar visibility when window
10692 visibility is updated, because non visible trees don't ever add
10694 * Cursor.cs: We want the override cursor to be reset to NULL when
10695 we set current cursor to the default cursor.
10697 2007-02-05 Jackson Harper <jackson@ximian.com>
10699 * TextControl.cs: Don't have crlfs when we are non multiline.
10700 - Consolidate the line position.
10702 2007-02-05 Jackson Harper <jackson@ximian.com>
10704 * X11Keyboard.cs: BACK+CTRL gets a special char code.
10706 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10708 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
10709 handling LeaveNotify->NotifyUngrab in order to send
10710 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
10711 after calling XUngrabPointer, so we call WindowUngrabbed directly
10712 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
10713 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
10714 MouseCaptureChanged correctly. Also create handles if changing
10715 Capture (matches MS behaviour).
10717 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10719 * SizeGrip.cs: Make the last change 2.0 only.
10721 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10723 * SizeGrip.cs: If resizing and the capture is lost, revert any size
10724 changes to initial size (fixes #80597).
10726 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10728 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
10730 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10732 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
10733 background) and only allow dragging if enabled. This way the
10734 sizegrip can be used to fill the open square that otherwise would
10735 have been shown in the bottom right corner of ScrollableControl
10736 when ScrollableControl is not suppose to support sizing.
10737 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
10738 sizegrip is shown and enabled, and hook up with necessary events.
10740 2007-02-01 Chris Toshok <toshok@ximian.com>
10742 * DataGridTextBoxColumn.cs: clean up the
10743 GetFormattedString/GetColumnValueAtRow combination of functions.
10744 Also fix UpdateUI, and the initial state of
10745 IsInEditOrNavigateMode.
10747 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
10748 aren't supposed to scroll the textbox here, we're supposed to
10749 scroll the datagrid.
10751 2007-02-01 Chris Toshok <toshok@ximian.com>
10753 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
10754 setting the position.
10756 2007-02-01 Chris Toshok <toshok@ximian.com>
10758 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
10759 here, since the most recent focus fixes keep us from generating
10760 the Leave event when our textbox gets focus.
10761 (Edit): we should be passing null for the column style's
10762 instantText parameter.
10764 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
10766 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
10767 raised. Fixes menu text/icons not showing up in PDN.
10769 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10771 * Control.cs: Remove code in constructor that makes every
10772 control with WS_CHILD set have initial location -1, -1.
10774 2007-01-31 Jackson Harper <jackson@ximian.com>
10776 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
10778 * XplatUIX11.cs: Give teh keyboard to teh dnd.
10780 2007-01-31 Jackson Harper <jackson@ximian.com>
10782 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
10783 - Remove some debug code.
10785 2007-01-31 Jackson Harper <jackson@ximian.com>
10787 * XplatUIX11.cs: If you set the override cursor during a grab, it
10788 should actually override the grab cursor. This comes into play
10789 when you are setting custom cursors in a DND feedback method.
10791 2007-01-31 Jackson Harper <jackson@ximian.com>
10793 * X11Dnd.cs: Add support for handling the QueryContinue and
10794 GiveFeedback events.
10795 - Cancel drag and drop actions when the escape key is clicked.
10796 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
10797 can handle the ESCAPE key.
10798 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
10799 done when dnd events are continued after the button is released.
10800 - Add a new helper method so that dnd can translate key events.
10802 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
10804 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
10805 make it more obvious what is happening.
10807 2007-01-30 Jackson Harper <jackson@ximian.com>
10809 * XplatUIX11.cs: Don't break when handling button release in drag
10810 and drop operations. We need that BUTTONUP message to get through
10811 so capture is released.
10812 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
10813 this is handled automatically when the mouse is down.
10815 2007-01-30 Jackson Harper <jackson@ximian.com>
10817 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
10818 is closed, so we need to make sure that we aren't changing the
10819 dialog result when the OK (Open or Save) button has been clicked
10820 and we are closing the window ourselves. Note we don't need to
10821 worry about the cache being written in this case, because it was
10822 already done in the previous FilOk call.
10824 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
10826 * DateTimePicker.cs: Remove a warning.
10827 * ComboBox.cs: Remove a couple of warnings.
10829 2007-01-29 Chris Toshok <toshok@ximian.com>
10831 * XplatUIX11.cs: don't crash, and remove the icon if the user has
10832 set one, if SetIcon is passed a null icon.
10834 2007-01-29 Andreia Gaita <avidigal@novell.com>
10836 * TextBox.cs: Redraw when the password characters changes
10837 * TextControl.cs: Check if textbox has a password char and draw
10838 a line of password chars instead of the text in the line. LineTag gets
10839 an extra Draw() method which allows document.Draw to override the text
10840 that will be drawn. Removes 1024 char limitation on length of passworded
10843 2007-01-29 Jackson Harper <jackson@ximian.com>
10845 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
10846 single chars is not.
10848 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
10850 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
10851 one pixel. Fix a StackOverflowException caused by an overload wrongly
10854 2007-01-26 Everaldo Canuto <everaldo@simios.org>
10856 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
10857 also remove ProcessArrowKey and put the code inside ProcessKeys.
10859 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
10861 * PaddingConverter.cs: Added.
10863 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10865 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
10866 ShowPanels is false (fixes #80600). Only draw up to 127 characters
10867 of text (fixes #80601). For panels clip the text to draw to the
10868 panel (fixes #80603).
10870 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10872 * ComboBox.cs: Fixed implementation of ResetText.
10874 2007-01-25 Jackson Harper <jackson@ximian.com>
10876 * TextControl.cs: For the last char of a line we need to use the
10877 line size, not that chars width, since it won't actually be
10878 computed since the right side of a char is based on the start of
10879 the left side of the next char, and the next char does not exist.
10881 2007-01-25 Chris Toshok <toshok@ximian.com>
10883 * Splitter.cs: fix the new unit tests, and reindent some switch
10886 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10888 * ComboBox.cs: Implemented 2.0 methods and events.
10889 * TextBoxBase.cs: Added OnTextUpdate, so that
10890 ComboBox.ComboTextBox can inform ComboBox of it.
10892 2007-01-25 Jackson Harper <jackson@ximian.com>
10894 * TextControl.cs: Respect ShowSelection when deciding whether or
10895 not to display the caret, this allows comboboxes to have carets
10896 when the combotextbox does not have focus.
10898 2007-01-25 Jackson Harper <jackson@ximian.com>
10900 * TextControl.cs: Add a Suspend/Resume for updating, basically the
10901 same as the Suspend/Resume for recalc, except this will do actual
10903 - New Undo manager, works much like the MS version.
10905 * TextBoxBase.cs: The Cut operation is undoable.
10907 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10909 * TextBoxBase.cs: Don't antialias text. Makes it look way better
10910 on Windows (no difference on Linux).
10912 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10914 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
10915 we don't want to activate any windows. Fixes #79433.
10917 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
10919 - ButtonBase.cs: Fix capitalization of parameter: disposing.
10922 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
10925 - Move to using System.ComponentModel.EventHandlerList
10926 - Replace Refresh with Invalidate
10927 - Clear the mime filecache on closing
10928 - Some other memory reducing work. After beeing closed FD now uses
10929 only about 300 KB for the fdo mime stuff plus the memory of the
10931 * Mime.cs: Changed coding style and removed unnecessary commented
10932 code. Some more memory memory reducing work.
10934 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10936 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
10937 a few other missing 2.0 properties.
10938 * Theme.cs: Added DrawFlatStyleComboBox.
10939 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
10941 2007-01-24 Chris Toshok <toshok@ximian.com>
10943 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
10944 wake_waiting flag, not just when there's data to be read. if we
10945 don't, then future wakeup's won't reach us and we'll be doomed to
10946 wait for the entire 1 second timeout forever (unless there are X
10949 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
10951 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
10952 until you pass Items.Count, not Items.Count - 1 like 1.1.
10954 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
10956 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
10958 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
10960 * ToolStripContainer.cs: The recent Dock fix exposed that I was
10961 adding the panels in the wrong order.
10963 2007-01-24 Jackson Harper <jackson@ximian.com>
10965 * TextBoxBase.cs: When we move the caret we also need to move the
10966 selection, this fixes some random crashing after doing select
10967 text, unselect, delete a char, paste.
10969 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10971 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
10973 2007-01-23 Everaldo Canuto <everaldo@simios.org>
10975 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
10976 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
10977 * ToolBar.cs: Force redraw in BackgroundImageChanged.
10979 2007-01-23 Everaldo Canuto <everaldo@simios.org>
10982 - Implement support for vertical toolbars. Fixes #80539;
10983 - Call LayoutToolBar when resize, it fix some other problems in layout.
10984 - Rename requested_height to requested_size, as we can have width on it
10985 when toolbar is vertical.
10986 - Create a private property "Vertical" that uses Dock to verify when
10987 toolbar is vertical or not.
10988 - Set ControlStyles when change Dock property.
10989 - Refactory in LayoutToolBar to have better variables names and to support
10991 - Fixes default value for ButtonSize when button count is equal zero, size
10992 must be (39, 36) test case writed.
10994 2007-01-23 Chris Toshok <toshok@ximian.com>
10996 * Control.cs: fix the checks so that they work correctly for mdi
10999 2007-01-23 Chris Toshok <toshok@ximian.com>
11001 * Control.cs: ControlCollection seems to have super-secret
11002 abstraction breaking knowledge of Mdi containers. allow MdiClient
11003 to add toplevel controls.
11005 2007-01-23 Chris Toshok <toshok@ximian.com>
11007 * Control.cs: throw an ArgumentException if a toplevel control is
11008 added to our control collection from ControlCollection.Add, as
11009 well as from ControlCollection.IList.Add. This fixes the
11010 ControlSetTopLevelTest.TestTopLevelAdd unit test.
11012 Also, in ControlCollection.IList.Add, don't through an
11013 ArgumentNullException, throw an ArgumentException, when value ==
11014 null. This matches MS.
11016 2007-01-23 Chris Toshok <toshok@ximian.com>
11018 * BindingSource.cs: initial, incomplete, implementation of
11021 2007-01-23 Jackson Harper <jackson@ximian.com>
11024 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
11025 that I can fix a broken unit test (TextBoxTest::ClearUndo)
11027 2007-01-23 Everaldo Canuto <everaldo@simios.org>
11029 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
11031 2007-01-23 Andreia Gaita <avidigal@novell.com>
11033 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
11034 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
11035 IndexOfKey() for 2.0
11037 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11039 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
11040 to prevent it from changing z-order.
11041 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
11042 leave UI updates in MdiWindowManager.
11043 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
11044 1 sized (NC handling goes weird on Linux otherwise).
11045 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
11046 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
11047 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
11048 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
11049 and SetWindowState(s) to allow for changing the size of an activated child
11050 before activating it (reduces a lot of flicker).
11052 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
11054 * Form.cs: Changing FormBorderStyle has different semantics based
11055 on whether the Form is visible or not. If not visible, don't change
11056 the Size. But InvalidateNC needs to be called to force the window
11057 to pick up the changes and redraw itself. [Fixes bug #80574]
11059 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
11062 * ContainerControl.cs: ProcessCmdKey.
11063 * ErrorProvider.cs: new constructor.
11064 * Form.cs: fix AutoValidateEvent compiler warning.
11065 * Label.cs: fix OnAutoSizeChanged compiler warning.
11066 * MenuStrip.cs: fix CanOverflow compiler warning.
11067 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
11068 * TextBox.cs: Dispose.
11069 * ToolStrip.cs: CanOverflow, re-enable double buffering.
11070 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
11071 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
11072 * ToolStripItem.cs: Overflow, RightToLeft properties.
11074 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11076 * Form.cs: Move the layout of the main form to MdiWindowManager.
11077 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
11078 do a layout of the main window to update MdiClient's client area to
11079 the right area. Fixes #80533. Remove the calculation of nc size,
11080 it was just wrong and the correct one is the same as for
11081 InternalWindowManager.
11083 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
11085 * Control.cs: Setting Anchor or Dock needs to reset the other
11086 to its default. [Fixes bug #80556]
11088 2007-01-20 Chris Toshok <toshok@ximian.com>
11090 * CheckedListBox.cs: class status changes.
11092 * ScrollableControl.cs: same.
11094 * RichTextBox.cs: same.
11096 * ContainerControl.cs: same.
11098 * ListView.cs: same.
11100 * NotifyIcon.cs: same.
11102 * MenuStrip.cs: same.
11104 * RadioButton.cs: same.
11106 * CheckBox.cs: same.
11108 * PrintPreviewDialog.cs: same.
11112 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
11114 * TreeNode.cs: Apply Alan's patch for Name property.
11116 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11118 * Form.cs: Implemented SizeGripStyle.
11119 * SizeGrip.cs: Check for minimum and maximum size for the
11120 control being resized and only resize if size has actually
11123 2007-01-19 Chris Toshok <toshok@ximian.com>
11125 * DataGridColumnStyle.cs: stop setting _readonly in the
11126 PropertyDescriptor setter. fixes a unit test failure.
11128 also, rename ParentReadOnly to TableStyleReadOnly, and have it
11129 just consult our table style (if we have one). We don't need to
11130 consult the datagrid readonly attribute because that's passed in
11131 as the _ro arg to Edit. this simplifies things a little.
11133 * DataGrid.cs: use CurrentColumn instead of
11134 current_cell.ColumnNumber just to simplify some of the code.
11136 switch the order of some things in the CurrentCell setter to keep
11137 the previous cell from getting a textbox again -
11138 EnsureCellVisibility causes scrolling to happen, which calls Edit.
11139 So we need to set the new cell before calling it.
11141 call Edit in OnEnter, as does Microsoft.
11143 also, make sure the current table style isn't the one we create
11144 initially when checking to see if it's different than the one
11145 we're setting it to in BindColumns (this fixes #80421).
11147 * GridTableStylesCollection.cs: table styles can have "" for a
11148 mapping name. part of the fix for #80421.
11150 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
11151 Edit significantly.
11153 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
11155 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
11156 and less GDI object leaky-er.
11158 2007-01-18 Andreia Gaita <avidigal@novell.com>
11160 * LinkLabel.cs: Add opaque control style
11162 2007-01-18 Jackson Harper <jackson@ximian.com>
11164 * TextControl.cs: Calculate width properly.
11165 - Don't store the tag's X offset, this can be figured out very
11167 - When getting the caret tag make sure to get the last empty tag.
11169 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
11171 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
11174 * Control.cs: Color.Empty shouldn't count for previous transparent
11177 2007-01-18 Jackson Harper <jackson@ximian.com>
11181 * TextControl.cs: Starting to merge in some pieces of my older
11182 undo work. Basically just some slight cleanup of the undo API.
11184 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11186 * TrackBar.cs: Fix signature of RightToLeftLayout.
11187 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
11188 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
11189 * Application.cs: Implemented UseWaitCursor.
11191 2007-01-18 Jackson Harper <jackson@ximian.com>
11193 * TextControl.cs: We can't skip tags if any part of the tag is
11196 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
11198 * ContainerControl.cs: Override OnLayout.
11200 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
11202 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
11204 * ContextMenuStrip.cs: Make sure context menu is shown on top of
11207 2007-01-18 Chris Toshok <toshok@ximian.com>
11209 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
11210 (leftover from the container_selected days, I'd wager). fixes bug
11213 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
11215 * Control.cs: Apply patch from George to fix the new testcase on
11216 bug #80451. We can't just check for Color.Transparent, we need
11217 to check if the back color's alpha channel is < 255.
11219 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
11221 * Form.cs: Move setting show_icon = true to before the constructor
11222 so that the base constructor has that information when it calculates
11223 the form's size. Was causing forms to be (6, 6) bigger than they
11224 were supposed to be. Thanks for catching this Rolf!
11226 2007-01-18 Jackson Harper <jackson@ximian.com>
11228 * TextControl.cs: When replacing a selection we need to invalidate
11229 from the initial selection start, because selection start is moved
11230 to the end of the replacement.
11232 2007-01-18 Andreia Gaita <avidigal@novell.com>
11234 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
11236 2007-01-18 Chris Toshok <toshok@ximian.com>
11238 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
11241 2007-01-17 Everaldo Canuto <everaldo@simios.org>
11243 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
11244 layout methods and properties from ToolBarButton must be available
11245 into ToolBarButtonInfo.
11247 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
11249 * Control.cs: If the control has a transparent background, we
11250 need to refresh it when it moves and when it's parent's background
11251 image changes. [Fixes bug #80451]
11253 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
11255 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
11257 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
11259 * XplatUIWin32.cs: Implement proper double buffering for Windows.
11260 [Fixes bug #80447, and probably speeds up things as well]
11262 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11264 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
11265 * XplatUIWin32.cs: We need to recalculate NC size after changing
11266 window style to toolwindow (otherwise the client rectangle will be
11267 3 pixels to small for some reason).
11268 * MdiWindowManager.cs: Revert NC size calculations to match how
11269 they are calculated only based on window styles (to match
11270 Win32AdjustWindowRectEx, since otherwise when setting size or
11271 location, Control will call Win32AdjustWindowRectEx to update client
11272 size, which would provoke a paint, then we'd get a NCCALCSIZE and
11273 calculate a different value of client size causing another paint
11275 * InternalWindowManager.cs: When moving or resizing a window only
11276 update size or location if they actually changed.
11277 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
11278 (seems to match Windows behaviour better). Cleaned up
11279 ManagedWindowDecorations to draw what's needed and nothing else
11280 (was drawing borders and lines where they shouldn't be)
11281 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
11282 (style = 0xFFFF) and takes into account caption height when
11283 calculating window rectangle.
11285 2007-01-16 Everaldo Canuto <everaldo@simios.org>
11287 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
11288 can be added to toolbar multiple times, we need to maintain a list of
11289 button information for each positions.
11291 2007-01-16 Everaldo Canuto <everaldo@simios.org>
11293 * ToolBar.cs: Some small stetic changes.
11295 2007-01-16 Jackson Harper <jackson@ximian.com>
11297 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
11298 that allow us to have nested recalc = false blocks.
11299 - Add paste support for images in the RichTextBox
11300 * RichTextBox.cs: flush the text after the color is changed, so
11301 the change takes effect.
11302 - Use SuspendRecalc
11303 - Some extra debugging info
11304 * TextControl.cs: Tags no longer track their length, it is just
11305 computed from the next tags length, this makes things a little
11306 simpler and reduces places that we have to track length changes.
11307 - Refactored the linetag class a little so we could make it
11308 a base class for different kinds of tags
11309 - Created a image tag, a tag that can have a single image inserted
11311 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
11312 that we can call suspend multiple times.
11313 - Add some debugging methods
11315 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11317 * MdiClient.cs: Add ActivatePreviousChild for
11318 mdi child window navigation.
11319 * Form.cs: Use MdiClient.ActivateNextChild/
11320 ActivatePreviousChild instead of Form.SelectNextControl
11321 to select the next/previous child since
11322 SelectNextControl doesn't do it in the same order
11323 as mdi children should do it.
11325 2007-01-16 Chris Toshok <toshok@ximian.com>
11327 * Control.cs: remove container_selected field.
11329 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11331 * MdiClient.cs: Update main form's ActiveChild when
11332 updating keyboard focus for the mdi child.
11334 2007-01-16 Jonathan Pobst <jpobst@novell.com>
11336 * Control.cs: PreferredSize fix.
11338 * Form.cs: Add several 2.0 events, properties, and methods.
11340 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
11342 * Form.cs: Provide meaningful message when MdiParent is assigned a
11343 Form that is not an MdiContainer.
11345 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11347 * MdiClient.cs: Update main form's ActiveChild when
11348 activating a mdi child.
11350 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11352 * MdiWindowManager.cs: Fix NRE when merging menus and main form
11353 doesn't have a menu.
11355 * Form.cs: Request NCRecalc after creating a mdi child window.
11356 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
11357 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
11359 * MdiClient.cs: Add new method SendFocusToActiveChild that either
11360 sends keyboard focus to the active child, or to the MdiClient
11361 if there are no child forms.
11363 2007-01-15 Chris Toshok <toshok@ximian.com>
11365 * ListView.cs: drop the *Internal overrides, just do our work in
11366 ItemControl's WndProc instead.
11368 * UpDownBase.cs: a few large changes. Fix up the Selectable state
11369 of the various controls, and forward the events properly (in the
11370 same manner as MS) from the textbox to the UpDown. Also the
11371 ActiveControl of the UpDownBase gets set properly now. Finally,
11372 we don't call UpdateEditText from the ctor. Fixes bug #79957.
11374 * NumericUpDown.cs: set Text in the ctor.
11376 * DomainUpDown.cs: call UpdateEditText in the ctor.
11378 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
11379 so even a Selectable = false textbox can be focused if you click
11382 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
11383 just add their handling in their respective WndProc's. Also add
11384 an explicit FocusInternal method that doesn't consult CanFocus
11385 before calling Select(this).
11387 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
11388 do our work in WndProc instead.
11390 * TabControl.cs: same.
11392 * ComboBox.cs: same.
11394 2007-01-15 Everaldo Canuto <everaldo@simios.org>
11396 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
11399 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11402 * ThemeWin32Classic.cs: Don't draw the item text outside
11403 item bounds in Details view, as well as use trimming.
11406 2007-01-15 Jonathan Pobst <jpobst@novell.com>
11408 * Form.cs: Implement Form.ShowIcon.
11410 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
11411 null, which when combined with the DlgModalFrame window style removes
11412 the icon from the title bar.
11414 2007-01-15 Jonathan Pobst <jpobst@novell.com>
11416 * Control.cs: Call OnMouseClick after OnClick. (2.0)
11418 2007-01-15 Everaldo Canuto <everaldo@simios.org>
11420 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
11421 menu when mdi child windows theres a menu, uses insert to get icon
11422 at first position. Partially fix #80006.
11424 2007-01-15 Jonathan Pobst <jpobst@novell.com>
11426 * Clipboard.cs: Implement 2.0 methods.
11428 2007-01-15 Everaldo Canuto <everaldo@simios.org>
11430 * Menu.cs: Implement Insert method of MenuItemCollection class
11433 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11435 * ListView.cs: Implement 2.0 FindItemWithText method.
11437 2007-01-11 Everaldo Canuto <everaldo@simios.org>
11439 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
11440 to calculate menu bar size. Fixes #80290.
11442 2007-01-11 Everaldo Canuto <everaldo@simios.org>
11444 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
11446 2007-01-11 Chris Toshok <toshok@ximian.com>
11448 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
11451 2007-01-11 Chris Toshok <toshok@ximian.com>
11453 * LinkLabel.cs: make sure to call base.Select in our Select method
11454 if it turns out we're going to be selected (i.e. if we have a link
11455 that is going to receive focus). That way our container's
11456 ActiveControl is updated properly.
11458 2007-01-11 Chris Toshok <toshok@ximian.com>
11460 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
11461 they have 1 or more links. this fixes the crash gert reported.
11463 2007-01-11 Andreia Gaita <avidigal@novell.com>
11465 * ContainerControl.cs: Remove ContainerSelected flag, not needed
11468 * Control.cs (Controls.Add): Check if control to be added to the collection
11469 is a top level control, and throw an ArgumentException if it is.
11470 Remove ContainerSelectedFlag, not needed anymore.
11472 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
11473 top most control doesn't activate the form. This fixes a problem in the
11474 MessageBox, where the default button wouldn't get focus because the form
11475 was activated before being Loaded - when the Owner is set, SetTopMost is
11476 called, and it would activate it.
11478 2007-01-11 Jonathan Pobst <jpobst@novell.com>
11480 * Button.cs: When clicked and setting the parent form's DialogResult,
11481 use FindForm instead of Parent, since parent could be a container
11482 control and not the Form. Fixes bug #80495.
11484 2007-01-10 Chris Toshok <toshok@ximian.com>
11486 * Form.cs: move the call to SendControlFocus into the same
11489 2007-01-10 Chris Toshok <toshok@ximian.com>
11491 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
11492 It breaks in the face of the new ActiveControl stuff, and should
11495 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
11496 activecontrol's focus if it's not already set, after we set
11497 ActiveControl, but before we call OnActivated. Re-fixes #79667
11498 after the previous focus/active control fixes regressed it.
11500 * Control.cs: reindent some code.
11502 2007-01-10 Chris Toshok <toshok@ximian.com>
11504 * Splitter.cs: clearing some outstanding changes from my tree.
11505 Replace all accesses (not writes) to the internal dock_style field
11506 with the Dock property.
11508 2007-01-10 Chris Toshok <toshok@ximian.com>
11510 * Control.cs: make FireEnter, FireLeave, FireValidating, and
11511 FireValidated virtual.
11513 * Form.cs: override and don't chain up calls to FireEnter and
11516 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11518 * ListView.cs: Add more text padding space when using
11519 auto resize for columns (the previous value didn't work fine).
11521 * ThemeWin32Classic.cs: Update text position inside columns,
11522 to match the appeareance of .Net.
11524 * ColumnHeader.cs: When using auto resize, only the Width should
11525 depend on the sub items, not the Height. Also, set width after
11526 auto resizing (the value of Width should never remain as -1 or -2).
11528 2007-01-10 Chris Toshok <toshok@ximian.com>
11530 * Application.cs: fix compilation errors when debug is enabled.
11532 2007-01-10 Chris Toshok <toshok@ximian.com>
11534 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
11535 add some nice ascii art pictures and explanation of the process).
11536 (GetMostDeeplyNestedActiveControl): new utility function we need
11537 because our ActiveControl can refer to a child container with its
11540 * Form.cs (OnActivated): remove the call to SelectActiveControl
11541 from here, since you can override this method and not chain up,
11542 and winforms still sets the active control.
11543 (OnCreateControl): also remove the unnecessary SelectActiveControl
11545 (WndProc): it's actually called from the WM_ACTIVATE block, just
11546 before calling OnActivated.
11548 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
11549 inside the else. the ActiveControl setter will end up setting
11550 focus on @control. This keeps us from setting it again (and
11551 generating an extra LostFocus/GotFocus pair).
11552 (Select (bool, bool)): reindent.
11554 2007-01-10 Jonathan Pobst <jpobst@novell.com>
11556 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
11557 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
11558 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
11559 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11560 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
11561 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
11562 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
11563 ToolStripTextBox.cs: Another wave of corcompare work.
11565 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11567 * ColumnHeader.cs: Implement 2.0 AutoResize method using
11568 the Width property.
11570 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
11571 methods by callling Column.AutoResize method on columns.
11573 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
11575 * Control.cs: Provide proper implementations of PreferredSize
11576 and GetPreferredSize (2.0).
11578 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
11580 * Form.cs: Remove one character (!) to make my previous OnClosing
11581 stuff work for modal windows like MessageBox.
11583 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11586 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
11587 ListView.Columns to get the last displayed column. Fixes #80452.
11589 2007-01-09 Everaldo Canuto <everaldo@simios.org>
11591 * Label.cs, LinkLabel.cs: Source code identation fixes.
11593 2007-01-08 Everaldo Canuto <everaldo@simios.org>
11595 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
11596 we dont need to invalidate only borders because when we invalidate four
11597 border lines the invalidate's generates a complete redraw of button,
11598 because it now invalidate a complete rect some other redraws operations
11599 are fixed. Fixes #80196.
11601 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
11602 Remove ToolBarInvalidateEntireButton as it is not used.
11604 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
11606 * Form.cs: Make sure that both OnClosing and OnFormClosing are
11607 called for 2.0 profile.
11608 * CloseReason.cs: Make class internal for 1.1.
11610 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
11612 * ToolStripManager.cs: Implement FindToolStrip functionality.
11613 * ToolStrip.cs: Register and unregister with ToolStripManager.
11615 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
11617 * Control.cs: This was messy. 2.0 moves much of ControlCollection
11618 to ArrangedElementCollection. Implemented this with as few #if's as
11619 possible (which is still too many).
11621 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
11623 * Control.cs: Implement SizeFromClientSize() [2.0].
11625 2007-01-07 Everaldo Canuto <everaldo@simios.org>
11627 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
11628 use Theme.BorderSize to calculate area instead of static value 1,
11629 by the way use new BorderStaticSize instead Border3DSize when
11630 border_static is true. Fixes #79537.
11632 * XplatUIOSX.cs: Fix call to GetClientRectangle.
11634 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
11637 2007-01-06 Everaldo Canuto <everaldo@simios.org>
11639 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
11641 2007-01-06 Everaldo Canuto <everaldo@simios.org>
11643 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
11644 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
11647 - border_static field added, it will used to define when a control
11648 theres 3D border but it must be static (thin).
11649 - In GetWindowRectangle use Theme.BorderSize to calculate area
11650 instead of static value 1, by the way use new BorderStaticSize instead
11651 Border3DSize when border_static is true.
11653 * XplatUIX11.cs, XplatUIOSX.cs:
11654 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
11656 * Theme.cs: BorderStaticSize field added.
11658 2007-01-05 Everaldo Canuto <everaldo@simios.org>
11660 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
11662 2007-01-05 Everaldo Canuto <everaldo@simios.org>
11664 * Control.cs: Under InternalBorderStyle call RecreateHangle to
11665 mimic same behavior than win32 that set border only in CreateParams,
11666 it fix problems under CreateParams overrides. Fix #79442 and partial
11669 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
11670 of thi control you must call recreate handle.
11672 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
11673 need to do anything as RecreateHangle will take care about borders.
11675 2007-01-05 Mike Kestner <mkestner@novell.com>
11677 * ListView.cs: hack to eliminate Lost/Got focus notifications on
11678 cycles between the ItemControl and parent. Fixes #80388.
11680 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
11682 * Control.cs: Lazy init layout engine. Do not directly use
11683 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
11685 2007-01-05 Chris Toshok <toshok@ximian.com>
11687 * DataGrid.cs: don't forceably rebind columns in SetDataSource
11688 unless our list manager has changed (i.e. unless we have reason to
11689 believe our columns have changed). Fixes #80422.
11691 also, disable the call do BindColumns in
11692 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
11693 1.1 the event isn't raised in response to a column addition on a
11696 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
11698 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
11699 that inheritors can not call it if they choose. Fixes bug #80456.
11701 2007-01-05 Andreia Gaita <avidigal@novell.com>
11703 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
11704 doesn't blow up with a null exception on marshalling.
11706 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
11708 * Control.cs: Implement several 2.0 protected properties and methods.
11709 Ensure that all necessary events are being called when properties
11712 2007-01-05 Mike Kestner <mkestner@novell.com>
11714 * ListView.cs: implement PgUp/PgDn for Details view. Also
11715 fixes First/LastVisibleIndex to use the item_control.ClientRect
11716 instead of the parent control. Fixes #80378.
11718 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
11720 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
11721 determine whether to use yard-pound or not (bug #78399).
11723 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
11725 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
11726 problems. So it is time to bring back the old popupbutton colors.
11728 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11731 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
11732 property by using the internal information of the
11733 columns order in ListView.
11735 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
11737 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
11738 Add 2.0 Tag properties.
11740 * LinkArea.cs: Add 2.0 ToString method.
11742 2007-01-03 Chris Toshok <toshok@ximian.com>
11744 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
11745 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
11746 when we're editing, which fixes #80047.
11748 2007-01-03 Chris Toshok <toshok@ximian.com>
11750 * Form.cs: apply patch contributed by Dominik Seichter. fixes
11753 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
11755 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
11756 property and implementation.
11758 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
11759 for MdiWindowListItem property.
11761 * ToolStripDropDown.cs: Don't consider hidden menu items while
11762 laying out the menu.
11764 2007-01-03 Andreia Gaita <avidigal@novell.com>
11766 * SendKeys.cs: window handle is not needed in win32, so just
11767 get the active window for X after parsing keys and don't use
11768 it when building the message; it is passed by parameter to the
11769 Xplat method and used there to build the message instead. Also,
11770 wait for events to be processed on SendWait, as opposed to Send,
11771 which doesn't wait :) Playing with threads and Send() completely
11772 hangs on ms.net, only SendWait() works.
11775 X11Display.cs: Check for valid window handle.
11777 2007-01-03 Jackson Harper <jackson@ximian.com>
11779 * TextControl.cs: Need to prevent wrap calculations when replacing
11780 text (this was there before i removed it accidently).
11781 - Don't update the cursor during the positioning, just set it to
11782 selection_start at the end of the operaion.
11784 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11787 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
11789 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11791 * MonthCalendar.cs: Added Click and DoubleClick events again,
11792 but this time they only hide Control's Click and DoubleClick.
11794 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
11796 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
11797 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
11799 2007-01-02 Jackson Harper <jackson@ximian.com>
11801 * TextBoxBase.cs: We move the caret with the split now, so we
11802 don't need to explicitly move the caret after splitting. This
11803 fixes the caret bumping down an extra line on Enter.
11805 2007-01-02 Miguel de Icaza <miguel@novell.com>
11807 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
11810 * ScrollableControl.cs: Add Scroll event.
11812 2007-01-02 Mike Kestner <mkestner@novell.com>
11814 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
11815 to fix all hdr height padding codepaths. Fixes #80207.
11817 2007-01-02 Chris Toshok <toshok@ximian.com>
11819 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
11820 setting it to the Control defaults anyway, and it being after the
11821 Dock set was screwing up layout.
11822 (set_Dock): don't short circuit out of setting base.Dock. Also,
11823 no need to call UpdateStatusBar here, as it'll be re-layed out if
11826 2007-01-02 Mike Kestner <mkestner@novell.com>
11828 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
11829 to header height for width == -1. Fixes the rest of #80207.
11831 2007-01-02 Mike Kestner <mkestner@novell.com>
11833 * ListView.cs: rework the mouse event forwarding everaldo added
11834 to translate the coordinates to the parent control not
11835 raise the parent events until after we've done our work. Hover
11836 needs more work, in the case where HoverSelection is on, because
11837 the item control receives more than one MouseHover per Enter
11838 event, so we need to ensure only the "first" hover gets forwarded.
11839 Opening a minor bug for that.
11841 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
11843 * CheckedListBox.cs: Fixed SelectionMode to match MS.
11844 * ListControl.cs: Implemented AllowSelection property. Removed extra
11846 * ListBox.cs: Implemented AllowSelection property.
11848 2007-01-02 Everaldo Canuto <everaldo@simios.org>
11850 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
11851 SelectedItem, it prevent for errors when you must disable item
11852 before perform click. Fixes #80409.
11854 2007-01-02 Everaldo Canuto <everaldo@simios.org>
11856 * MenuAPI.cs: Prevent second level and beyond submenus to close
11857 until first level when move out side of popup.
11859 2007-01-02 Everaldo Canuto <everaldo@simios.org>
11862 - Down submenu positin in three pixels.
11863 - Closes sub menu when mouse leaves from menu. Fixes #80402.
11865 2007-01-02 Everaldo Canuto <everaldo@simios.org>
11867 * ThemeWin32Classic.cs:
11868 - Fix popup menu size adding one pixel on the top.
11869 - Down menu item border from two to one to mimic Win32.
11870 - Some source identation fixes.
11872 2007-01-01 Everaldo Canuto <everaldo@simios.org>
11874 * ThemeWin32Classic.cs: Use float numbers to calculate size and
11875 position of menu arrows, it fix wrong arrow size.
11877 2007-01-01 Everaldo Canuto <everaldo@simios.org>
11879 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
11880 instead of line, it simplify draw operation and fix it using 3D
11881 borders to mimic Win32.
11883 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
11885 * StatusStrip.cs: Add implementation of the sizing grip.
11887 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
11888 StatusStrip rendering.
11890 2006-12-31 Chris Toshok <toshok@ximian.com>
11892 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
11893 override the layout style (anchor/dock) of the control. assign to
11894 Dock instead. Fixes bug #80416.
11896 * ToolStrip.cs: same.
11898 2006-12-31 Andreia Gaita <avidigal@novell.com>
11900 * ContainerControl.cs: Use ContainerSelected flag to check if
11901 a Container is directly selected, or if Select is called on a
11902 non-container. If a container is directly selected, focus events
11903 should not be raised.
11904 Apply #80411 patch to throw exception on set_ActiveControl if
11905 control is the same as the current one.
11907 * Control.cs: Use ContainerSelected flag (see above).
11908 Add invalidation check to raise event but not invalidate if
11910 Apply #80411 patch.
11913 2006-12-31 Everaldo Canuto <everaldo@simios.org>
11915 * MenuAPI.cs: After click, dont close popup menu when menu is
11916 ContextMenu. Fixes #80399.
11918 2006-12-30 Chris Toshok <toshok@ximian.com>
11920 * ContainerControl.cs: make sure we throw the exception if the
11921 container control doesn't contain the control we're setting
11924 2006-12-30 Chris Toshok <toshok@ximian.com>
11926 * Control.cs (SetTopLevel): fix the exception raised by
11927 SetTopLevel for child controls.
11928 (set_Anchor): call UpdateDistances when setting the anchor type.
11929 This fixes bug #80336.
11931 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
11933 * Theme.cs: For now, revert back to 8pt font.
11935 2006-12-29 Everaldo Canuto <everaldo@simios.org>
11937 * MenuAPI.cs: Set popup as active when open a ContextMenu.
11940 2006-12-29 Chris Toshok <toshok@ximian.com>
11942 * Control.cs: reorder the code in OnResize to give the same event
11945 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
11947 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
11948 TileHorizontally and TileVertically.
11950 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
11952 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
11953 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
11954 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
11955 Corrected copyright and email adress.
11957 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
11959 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
11960 of Exception in FullPath property if no TreeView is associated with
11963 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
11965 * Theme.cs: Marked default_font as private, and initialize it in ctor
11966 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
11968 * ThemeGtk.cs: Removed default_font intialization.
11969 * ThemeWin32Classic.cs: Removed default_font initialization.
11971 2006-12-28 Chris Toshok <toshok@ximian.com>
11973 * Control.cs: fix a couple of place where we were creating handles
11974 more aggressively than we should be. Fixes ControlRefresh unit
11977 2006-12-28 Chris Toshok <toshok@ximian.com>
11979 * Control.cs: contrary to what the comment said, Control.Dock does
11980 not supercede Control.Anchor - the last one you assign to decides
11981 the layout behavior. so we need to keep track of which was the
11982 last set. Also, fix some of the affected property arguments in
11983 PerformLayout calls, and remove an redundant parent.PerformLayout
11986 Add a VisibleInternal property, which returns is_visible. We
11987 can/should get rid of all the usage of this field elsewhere.
11989 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11991 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
11992 control style, not DoubleBuffer. Added UseDoubleBuffering property
11993 that indicates whether doublebuffering is enabled and supported.
11994 (comment from and code based on Gert Driesen's patch in #80324).
11997 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11999 * Control.cs: Fixed a NRE.
12001 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12003 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
12006 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12008 * Control.cs: Rewrote double buffering, now a seperate
12009 class handles all the buffering, no Graphics is disposed of
12010 until the painting is finished (earlier implementation
12011 would crash if the control was resized in the OnPaint,
12012 since it would cause the double buffer to be recreated
12013 and the old one disposed), a separate Graphics is
12014 created for every paint (MS behaviour and anyways the state
12015 of the Graphics would have to be saved and restored otherwise)
12017 * XplatUIDriver.cs:
12019 * XplatUI.cs: Added and implemented GetOffscreenGraphics
12020 so that we can get the graphics for the back buffer without
12021 having to create a new one and remove the offscreen_dc parameter
12022 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
12024 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12026 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
12027 Also make virtual all the key-related methods.
12029 * ListViewItem.cs: Make virtual the key related methods for
12030 ListViewSubItemCollection.
12032 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12036 * ThemeWin32Classic.cs:
12037 * Theme.cs: Initial support for Tile view in ListView,
12038 as well as the implementation of the required bits for it (Item
12041 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12043 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
12044 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
12045 Provide useful exception messages.
12047 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
12049 * TrackBar.cs: Remove a warning.
12050 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
12051 when used by DateTimePicker, fixes #80287. This also requires that
12052 MonthCalendar implements it's own drawing for the yearly updown control,
12053 otherwise the Capture tracking would be too complicated. Removed the Click
12054 and DoubleClick events (according to comments they were hiding the base class
12055 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
12056 raise these events, not that they cannot be raised. It is possible to raise
12057 them by calling OnClick and OnDoubleClick). Added two internal fields in
12058 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
12059 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
12060 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
12061 event, no longer needed.
12063 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12065 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
12066 true if new value differs from current value.
12068 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12070 * Control.cs: ControlCollection.Count must be public. Fixed build of
12073 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12075 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
12077 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12079 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
12081 2006-12-26 Everaldo Canuto <everaldo@simios.org>
12083 * Control.cs: Invalidates control including when Width and Height is
12084 equal zero or is not visible, only Paint event must be care about
12085 this. Fixes #79913.
12087 2006-12-26 Chris Toshok <toshok@ximian.com>
12089 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
12090 more corcompare work.
12092 * DataGridView.cs: fix compiler warning.
12094 * ColumnHeader.cs: some corcompare work, and also take the
12095 opportunity to make the internal fields private.
12097 * ListView.cs: fix the fallout from the above field change.
12099 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
12101 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
12102 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
12103 ToolStripTextBox.cs: Fixes to events and corcompare.
12105 2006-12-26 Everaldo Canuto <everaldo@simios.org>
12107 * ListView.cs: Call owner.OnMousexx event to propagate events from
12108 item to ListView. Fixes #80367.
12110 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
12112 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
12113 if value is less than one. ItemHeight should not be set to a value
12114 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
12115 Removed extra tabs.
12117 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
12119 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
12120 * ToolStripStatusLabel.cs: Add Spring for Moma.
12122 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
12124 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
12125 Fixed code formatting. Removed debug code.
12126 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
12128 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
12130 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
12131 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
12132 ArgumentOutOfRangeException if ColumnCount is negative. In
12133 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
12134 less than 4 or higher than 32768.
12135 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
12136 Fixed FormatProvider to return CurrentCulture unless explicitly set.
12137 Fixed IsFormatProviderDefault to return true if FormatProvider has
12138 not been explicitly set.
12140 2006-12-25 Chris Toshok <toshok@ximian.com>
12142 * Application.cs: add a couple of 2.0 events.
12144 2006-12-25 Chris Toshok <toshok@ximian.com>
12146 * Control.cs: fix compiler warning.
12148 * AxHost.cs: corcompare fixes.
12150 * ApplicationContext.cs: corcompare fixes.
12152 2006-12-25 Chris Toshok <toshok@ximian.com>
12154 * Control.cs: only update dist_right/dist_bottom if the
12155 width/height is > 0. this fixes anchored controls being resized
12156 smaller until they disappear and then resized larger again.
12158 2006-12-25 Chris Toshok <toshok@ximian.com>
12160 * Control.cs: a couple of changes. Remove dist_left and dist_top,
12161 since they're nothing more than X/Left and Y/Top, respectively.
12163 Also, move back to a per-control Bitmap/Graphics for
12164 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
12165 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
12168 2006-12-25 Miguel de Icaza <miguel@novell.com>
12170 * MessageBox.cs: Implemented overload that takes a new "bool
12171 displayHelpButton" by adding a new internal field "show_help".
12172 When clicked this will raise the HelpRequested on the owner or the
12175 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
12176 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
12178 * ListView.cs: Add support ColumnWidthChanged and
12179 ColumnWidthChanging.
12181 Add support for ColumnReordered event.
12182 (ReorderColumn): Add NET_2_0 specific support for cancelling the
12185 Very nice codebase!
12187 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
12189 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
12191 2006-12-24 Chris Toshok <toshok@ximian.com>
12193 * GridTablesFactory.cs: 2.0 corcompare work.
12195 * ToolStripContainer.cs: add "override" to
12196 ContextMenuStripChanged, and remove the local event object.
12198 * ToolStripDropDown.cs: same with a couple properties.
12200 * ToolStripPanel.cs: same with AutoSizeChanged event.
12202 * TextBoxBase.cs: add "override" to AutoSizeChanged.
12204 * Form.cs: add the remaining 2.0 events, and do some corcompare
12207 * DateTimePicker.cs: add "new" to padding.
12209 * ButtonBase.cs: use Control's use_compatible_text_rendering.
12211 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
12213 * DataGridView.cs: PaddingChanged is overridden.
12215 2006-12-24 Chris Toshok <toshok@ximian.com>
12217 * Control.cs: corecompare work here too.
12219 * DataGridViewElement.cs, DataGridView.cs,
12220 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
12221 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
12222 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
12223 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
12226 2006-12-24 Miguel de Icaza <miguel@novell.com>
12228 * Control.cs: Switched the error message on the console for a
12229 todo. A review of the code will have to cope with this anyways
12230 (since its a large feature, it is in our radar) and it was
12231 producing too much output when running PDN.
12233 * ToolStripComboBox.cs: Set the text when the SelectedIndex
12234 changes. Applications depend on this (PDN 2.72)
12236 2006-12-23 Chris Toshok <toshok@ximian.com>
12238 * TableLayoutSettings.cs: finish up the corcompare work for this
12241 2006-12-23 Chris Toshok <toshok@ximian.com>
12243 * Control.cs: make SetImplicitBounds internal, do some futzing
12244 with LayoutEngine so that it's available in 1.1, and remove the
12245 entire duplicated code mess from PerformLayout. Use
12246 System.Windows.Forms.Layout.DefaultLayout instead.
12248 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
12250 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
12252 * Form.cs: Add MainMenuStrip property.
12254 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
12256 * Control.cs: Add ContextMenuStrip property and implementation.
12257 Fix ContextMenu implementation to show menu centered on control when
12258 activated using the keyboard instead of showing at screen (0,0).
12260 * ToolStripDropDown.cs: Fix needed overload of Show ().
12262 2006-12-23 Everaldo Canuto <everaldo@simios.org>
12264 * Menu.cs: Name property added for 2.0 profile.
12266 2006-12-23 Everaldo Canuto <everaldo@simios.org>
12268 * Menu.cs: Update information about FindMenuItem, method to be
12271 2006-12-23 Everaldo Canuto <everaldo@simios.org>
12273 * MenuAPI.cs: When deselect items deselect also selected subitems.
12275 2006-12-23 Everaldo Canuto <everaldo@simios.org>
12277 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
12278 FindSubItemByCoord to found itens that is not active, also an
12279 cheking added to FindSubItemByCoord to search for items only
12280 in visible popup windows. Fixes #80274.
12282 2006-12-22 Everaldo Canuto <everaldo@simios.org>
12284 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
12285 internal property, it be care about change ExStyle.
12287 2006-12-22 Andreia Gaita <avidigal@novell.com>
12289 * ContainerControl.cs: set activeControl for parent forms up the
12290 tree when the new activecontrol is a container.
12291 When validating the active control, if it is a container, also
12292 raise up the validation for it's active control. Fixes #80280
12294 * Control.cs: Add internal property flag and check to prevent
12295 Focus events from getting raised when Select() is called for
12296 a ContainerControl. There are still too many focus events being
12297 raised at the moment though.
12298 Cleaned up the code a bit.
12300 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12302 * Control.cs: Added all missing 2.0 events.and
12303 fixed a couple of corcompare issues.
12304 * TrackBar.cs: Implemented missing 2.0 bits.
12305 * MonthCalendar.cs,
12306 * DateTimePicker.cs,
12307 * MdiClient.cs: Fixed some corcompare issues.
12309 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
12311 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
12312 SplitterPanel.cs: corecompare work.
12314 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
12316 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
12317 Clean up warnings for BackgroundImageChanged and PaddingChanged
12318 events now that they are implemented in Control.cs.
12320 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
12322 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
12324 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
12325 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
12326 of TableLayoutPanel and supporting cast.
12328 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
12331 - GrabWindow now confines the mouse pointer to the confine window.
12332 - Added Win32ClipCursor and Win32GetClipCursor.
12335 - Added CaptureWithConfine to be able to capture and confine
12338 * InternalWindowManager.cs:
12339 - Call CaptureWithConfine instead of Capture if we're an
12340 MdiChild (fixes #79982).
12342 2006-12-21 Chris Toshok <toshok@ximian.com>
12344 * DataGrid.cs: guard against the initial state of selection, where
12345 selection_start == -1. make sure we only select from index >= 0.
12348 2006-12-21 Chris Toshok <toshok@ximian.com>
12350 * Control.cs: we don't need to be so draconian with
12351 UpdateDistances, and we thusly don't need to call it before
12352 calling PerformLayout in ResumeLayout. Fixes bug #80289.
12354 2006-12-21 Daniel Nauck <dna@mono-project.de>
12357 TextBox.cs: Implemented AutoComplete properties.
12359 2006-12-20 Chris Toshok <toshok@ximian.com>
12361 * DataGridView*.cs: some corecompare work.
12363 2006-12-20 Jackson Harper <jackson@ximian.com>
12365 * XplatUIX11.cs: We need to hide the caret when deleting it,
12366 otherwise you get carets left lying around everywhere.
12367 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
12368 prevents getting some weird half drawn caret tracers when
12370 * TextControl.cs: Attempt to reduce the number of times we need to
12371 recreate the caret.
12373 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
12375 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
12377 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12379 * DateTimePicker.cs:
12380 - Implemented missing 2.0 bits.
12381 - Changed some default values to match MS.
12383 2006-12-20 Jackson Harper <jackson@ximian.com>
12385 * TextBoxBase.cs: When changing the font across the document we
12386 can't recalculate after changing each line, since that will cahnge
12388 - PreferredHeight is a little different than i thought.
12389 - When backspacing, move the caret before we do the actual char
12390 delete, because when that delete crosses a wrap boundary the
12391 positional information will change.
12393 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12395 * Control.cs: Added some missing 2.0 bits:
12396 BackgroundImageLayout, BackgroundImageLayoutChanged,
12397 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
12398 add IBindableComponent and IDropTarget implementation.
12400 * MonthCalendar.cs:
12401 - Added all missing 2.0 features:
12402 BackgroundImageLayout, RightToLeftLayout,
12403 OnHandleDestroyed, RightToLeftLayoutChanged,
12404 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
12406 - Rewrote all the BoldDate code, it was completely broken.
12407 - Fixed all the tests (the tests can now be re-enabled, the
12408 problems were not with the tests, but with the control, it was
12411 * DateTimePicker.cs: Changed the location where the
12412 MonthCalendar is shown.
12414 2006-12-19 Chris Toshok <toshok@ximian.com>
12416 * DataGridView.cs: add IDropTarget implementation.
12418 * ToolStripPanel.cs: add IDropTarget implementation.
12420 2006-12-19 Jackson Harper <jackson@ximian.com>
12422 * TextControl.cs: soft now means something different than what it
12423 used to mean, we want to move the caret regardless of whether or
12424 not this break was soft (would we really have wanted the caret
12425 to not move with the break in the old context?)
12426 * TreeView.cs: Make sure we factor in the vert scrollbar when
12427 calculating the horizontal scrollbar's maximum.
12429 2006-12-19 Andreia Gaita <avidigal@novell.org>
12431 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
12432 check for keywords in alternate casing, close bug #80049.
12434 2006-12-19 Chris Toshok <toshok@ximian.com>
12436 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
12437 methods (which all do nothing).
12439 * IDropTarget.cs: add the 4 missing methods.
12441 2006-12-19 Chris Toshok <toshok@ximian.com>
12443 * TableLayoutRowStyleCollection.cs: corcompare work.
12445 * TableLayoutSettings.cs: same.
12447 * TableLayoutStyle.cs: same.
12449 * TableLayoutColumnStyleCollection.cs: same.
12451 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
12453 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
12454 TableLayoutPanel I've had in my local tree for way too long.
12456 2006-12-19 Miguel de Icaza <miguel@novell.com>
12458 * TableLayoutSettings.cs: Finish the public API (still needs all
12459 the logic to update on changes).
12461 * TableLayoutPanelCellPosition.cs: new file.
12463 * TableLayoutRowStyleCollection.cs,
12464 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
12465 TableLayoutSettings.cs: Track the final 2.0 table api.
12467 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12469 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
12470 and Image List 2.0 members for ColummnHeader.
12471 * ListView.cs: Add key-related 2.0 methods for
12472 ColumnHeaderCollection.
12474 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
12476 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
12477 ArgumentNullException if items argument is null. Ignore null item in
12478 arrays. Removed extra tabs.
12480 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
12482 * MonthCalendar.cs: Fixed InvalidCastException.
12484 2006-12-19 Jackson Harper <jackson@ximian.com>
12486 * TextControl.cs: Don't increment the position here.
12487 - When calculating char positions only add in the line break size
12488 for hard line breaks.
12490 2006-12-19 Andreia Gaita <avidigal@novell.org>
12492 * SendKeys.cs: Changed some things to match ms.net behaviour
12493 when parsing shifted capital letters.
12495 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
12496 Add window handle as parameter to SendInput. X11 needs the
12497 window handle, and the handle being passed to it in the keys
12498 queue is the active control handle (which windows needs), not
12501 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
12502 to support SendKeys on X.
12504 * X11Keyboard: Implement helper method to lookup a linux keycode
12505 given the virtual keycode. Added table of keycode-2-virtualkey
12506 values to support this.
12508 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12510 * ListView.cs: Add support for SelectedIndexCollection
12511 and SelectedItemCollection 2.0 methods. Implement support
12513 * ListViewItem.cs: Add support for ListViewSubItemCollection
12514 2.0 methods. Also, fix an incorrect behavior of AddRange method
12515 (it shouldn't call Clear).
12516 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
12518 2006-12-19 Jackson Harper <jackson@ximian.com>
12521 * TextBoxBase.cs: New args for FormatText
12522 * TextControl.cs: Rewrote the main drawing method, this version
12523 feels a little easier to understand and debug to me. Hopefully it
12524 does to others also
12525 - Fix FormatText to OR in the new formating values. Added
12526 FormatSpecified param, basically this works in the same way as
12527 BoundsSpecified in Control.
12528 - Set the caret properties when the caret is positioned.
12529 - When wrapping text make sure that we calculate the width of the
12531 - when calculating alignments we might have wrapped down to the
12532 next line, so don't search for an individual tag, search for the
12534 - We need to invalidate the selection area when we replace the
12537 2006-12-19 Daniel Nauck <dna@mono-project.de>
12539 * Application.cs: add Restart () 2.0 support
12541 2006-12-18 Everaldo Canuto <everaldo@simios.org>
12543 * MenuItem.cs: Invalidate menu item rectangle after change Enable
12544 property. Fixes #80268.
12546 2006-12-18 Everaldo Canuto <everaldo@simios.org>
12548 * MenuAPI.cs: Dont trigger select event when closes top menu
12549 item. Fixes #80270.
12551 2006-12-18 Everaldo Canuto <everaldo@simios.org>
12553 * MenuAPI.cs: When you click on menuitem only trigger onselect
12554 event for top menu itens. Fixes #80271.
12556 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12558 * MdiWindowManager.cs: Make IconicBounds depend on
12559 the bottom of MdiClient, not the top (fixes #80267)
12561 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12563 * MdiClient.cs: Added missing 2.0 attribute
12565 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12567 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
12568 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
12570 2006-12-18 Everaldo Canuto <everaldo@simios.org>
12572 * MenuAPI.cs: Fix click when menuitem is not popup,
12573 this regression was caused by last commit (#80272).
12575 2006-12-17 Everaldo Canuto <everaldo@simios.org>
12577 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
12578 fire click event or close menu. Fixes #80272.
12580 2006-12-17 Daniel Nauck <dna@mono-project.de>
12582 * ListViewHitTestInfo.cs: add
12584 2006-12-17 Daniel Nauck <dna@mono-project.de>
12586 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
12587 * FlatButtonAppearance.cs: add
12588 * DockingAttribute.cs: add
12590 2006-12-17 Chris Toshok <toshok@ximian.com>
12592 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
12593 and rebind our columns when it does - this way, if you make
12594 changes to the DataTable (or set the Table attribute on a DataView
12595 after setting it as the DataGrid's DataSource, the changes are
12596 made visible.) Fixes bug #80107.
12598 2006-12-17 Daniel Nauck <dna@mono-project.de>
12600 * ListViewGroup.cs: add internal Location property for layouting.
12601 * Theme.cs: add abstract ListViewGroupHeight function.
12602 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
12604 2006-12-16 Andreia Gaita <avidigal@novell.com>
12606 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
12607 Added reset of selected index to 0 when adding first tab page.
12610 * NumericUpDown.cs: Fix NET_2_0 check
12612 2006-12-16 Daniel Nauck <dna@mono-project.de>
12614 * ListViewGroup.cs: fixed DefaultValueAttribute value
12616 2006-12-16 Daniel Nauck <dna@mono-project.de>
12618 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
12620 2006-12-15 Miguel de Icaza <miguel@novell.com>
12622 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
12623 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
12624 ScrollableControl.cs: Add a handful of methods that are
12627 2006-12-15 Chris Toshok <toshok@ximian.com>
12629 * XplatUIWin32.cs: initial implementation of the Reversible
12630 drawing functions. there are some problems. DrawReversibleFrame
12631 doesn't seem to work at all for Dashed FrameStyle, and in the
12632 Thick case there are drawing errors at the corners (we probably
12633 need to bind Rectangle instead of doing moveto/lineto's.)
12635 2006-12-16 Andreia Gaita <avidigal@novell.com>
12637 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
12638 to send blocks of key messages. Send accumulates keys to send with Flush,
12639 while SendWait sends all keys immediately.
12641 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12642 XplatUIX11.cs, XplatUIX11-new.cs:
12643 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
12644 to Win32 SendInput.
12645 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
12647 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
12648 testing for ms.net on this class is very tricky, as the tests run too fast
12649 to allow the hook to release, essentially freezing the keyboard and the
12650 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
12653 2006-12-16 Daniel Nauck <dna@mono-project.de>
12655 * Padding.cs: fixed serialization compability to MS ("_var" field names),
12656 added missing attributes.
12658 2006-12-15 Daniel Nauck <dna@mono-project.de>
12660 * ListViewGroup.cs: Added missing attributes.
12661 * ListViewGroupCollection.cs: Added missing attributes.
12663 2006-12-15 Daniel Nauck <dna@mono-project.de>
12665 * ListViewItem.cs: fixed ListViewSubItem text property.
12667 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
12669 * Control.cs: Added missing 2.0 attributes
12671 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
12673 * MdiClient.cs: Added missing 2.0 attribute.
12674 * MonthCalendar.cs: Added some missing 2.0 attributes
12677 2006-12-15 Daniel Nauck <dna@mono-project.de>
12679 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
12681 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
12683 * MainMenu.cs: Add the new 2.0 constructor to help out people
12684 using the MainMenu in VS2005.
12686 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
12688 * MdiChildContext.cs: Removed it, no longer used.
12689 * MdiClient.cs: Added missing 2.0 attributes.
12691 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
12693 * InternalWindowManager.cs: Fix a NullRef with previous
12694 changes for toolwindows.
12696 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
12699 - Added AfterTopMostControl to allow for certain controls
12700 to always stay on top when normal controls are brought to
12704 - (DrawInversibleRectangle): Get window rectangle from Win32
12705 in stead of from control, since Win32 doesn't calculate
12706 screen coords correctly from control's Location if it
12707 have docked siblings.
12709 * MdiWindowManager.cs:
12710 - Correct the control menu popup location when clicked on
12711 the maximized form icon. (fixes #80223.1)
12712 - Don't show moving rectangle if mouse hasn't moved from
12713 the original clicked point.
12714 - Removed FormGotFocus handler (not used).
12715 - Calculate the control buttons location from the main
12716 window's size and not client size (fixes #79770).
12717 - Form is now closed when the form icon is double-clicked
12719 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
12721 * InternalWindowManager.cs:
12722 - Moved some MDI-only methods to MdiWindowManager.
12723 - Removed unused properties and methods.
12724 - Unified method naming for methods handling wm messages.
12725 - Moved all message handling to seperate methods for
12728 * ThemeWin32Classic.cs:
12729 - DrawManagedWindowDecorations now draws the title bar
12730 with a gradient brush.
12731 - Add a CPDrawButtonInternal that allows us to specify
12732 light, normal and dark colors for the buttons (control
12733 buttons for MDI children were drawn with the same light
12734 color as the background, therefore loosing the 3D effect).
12737 - Add a CapturedControl property that is used to
12738 determine the control to resize (defaults to parent).
12739 Needed for MdiClient, since its SizeGrip's parent is
12740 MdiClient, but the control to resize is the main form.
12743 - Set SizeGrip's CapturedControl to the main form in order
12744 to resize the main form and not the MdiClient.
12745 - Override AfterTopMostControl to leave the scrollbars
12748 2006-12-15 Daniel Nauck <dna@mono-project.de>
12750 * ListView.cs: fixed ListViewItemCollection AddRange and
12751 implemented ListViewItemCollection AddRange 2.0 support.
12753 2006-12-15 Daniel Nauck <dna@mono-project.de>
12755 * ListViewGroup.cs: Add.
12756 * ListViewGroupCollection.cs: Add
12757 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
12758 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
12759 stub for ImageKey 2.0 support.
12761 2006-12-14 Mike Kestner <mkestner@novell.com>
12763 * ListView.cs: add text padding to the autocalculation for columns
12764 of width -2. Fixes #80207.
12766 2006-12-14 Mike Kestner <mkestner@novell.com>
12768 * ListView.cs: add some index guarding for partial row navigation
12769 logic. Fixes #80250.
12771 2006-12-14 Mike Kestner <mkestner@novell.com>
12773 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
12774 are added or inserted to the collection. Fixes #81099.
12776 2006-12-13 Everaldo Canuto <everaldo@simios.org>
12778 * MenuAPI.cs: Closes menu when right click out side of popup
12779 it fix problem in ContextMenu and MainMenu. Fixes #80252.
12781 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12783 * ListViewItem.cs: Fix dumb error.
12785 * ListView.cs: Add Find and ContainsKey methods in
12786 ListViewItemCollection, and also return true for IsReadOnly
12787 and IsFixedSize (changes for 2.0).
12789 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
12791 * Control.cs: Allow Region to be set to null.
12793 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12795 * MdiWindowManager.cs: Remove unused (commented out) code.
12796 * Form.cs: When the MdiChild is maximized, the form needs
12797 WM_NCMOUSELEAVE, so request it.
12798 * InternalWindowManager.cs:
12799 - Added tooltips to control buttons.
12800 - Removed duplicated control button handling code.
12801 - Removed unused (commented out) code.
12803 2006-12-12 Everaldo Canuto <everaldo@simios.org>
12805 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
12806 was used because we must set cursor without trigger ChangeCursor event
12807 and without change Cursor control property. Fixes #79963.
12809 2006-12-12 Andreia Gaita <avidigal@novell.com>
12811 * Control.cs: Check if Region setter value is null, and ignore
12813 2006-12-12 Jackson Harper <jackson@ximian.com>
12815 * TextControl.cs: We were almost always drawing one more line then
12816 needed, since the GetLineByPixel will return the last line found
12817 at that pixel. In most cases though, we were invalidating up to
12818 the junction between two lines.
12819 - Improve debug code.
12821 2006-12-12 Chris Toshok <toshok@ximian.com>
12823 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
12824 and FillReversibleRectangle.
12826 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
12827 and FillReversibleRectangle.
12829 * XplatUIWin32.cs: add stubs which do nothing for
12830 DrawReversibleFrame, DrawReversibleLine, and
12831 FillReversibleRectangle.
12833 * XplatUIOSX.cs: add stubs which raise NIE for
12834 DrawReversibleFrame, DrawReversibleLine, and
12835 FillReversibleRectangle.
12837 * XplatUIX11.cs: add working implementation for
12838 DrawReversibleFrame, DrawReversibleLine, and
12839 FillReversibleRectangle.
12841 * ControlPaint.cs: implement DrawReversibleFrame,
12842 DrawReversibleLine, and FillReversibleRectangle, by calling into
12843 the appropriate XplatUI method.
12845 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12847 * Form.cs: Make MdiClient have the focus even if it's
12848 not selectable, since it should receive WM_KEY* and WM_MOUSE
12849 messages. Fixes #79907.
12851 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12853 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
12854 queried after the window is created.
12856 * XplatUIX11.cs: Added SendParentNotify to implement
12857 WM_PARENTNOTIFY logic. Fixes #79965.
12859 * Control.cs: Added MakeParam.
12861 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12863 * MdiClient.cs: Resume Layout before setting window
12864 states (fixes #80201).
12866 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12868 * MenuAPI.cs: Deselect a menu item after performing
12869 the click (fixes #80197).
12871 2006-12-11 Jackson Harper <jackson@ximian.com>
12873 * TextBoxBase.cs: We need to cap this value, since Maximum -
12874 ViewPortHeight can be less than zero.
12875 - Only do selection with the left mouse button.
12876 * TextBox.cs: Don't tell the world that we have a context menu.
12877 * Control.cs: New method so that we can control whether or not the
12878 context menu is visible outside MWF.
12880 2006-12-11 Everaldo Canuto <everaldo@simios.org>
12882 * ToolBarButton.cs: Fix text positon.
12884 2006-12-11 Miguel de Icaza <miguel@novell.com>
12886 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
12888 * Control.cs (DoubleBuffered): Add implementation.
12890 * Application.cs (OpenForms): Add.
12892 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
12894 * Form.cs: Use opacity instead of Opactiy to determine if we need
12895 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
12897 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
12899 * Control.cs: Fix NRE if Control.Site was set to null.
12901 2006-12-11 Chris Toshok <toshok@ximian.com>
12903 * Control.cs: ControlCollection.Remove should return if the arg is
12904 null, and ControlCollection.SetChildIndex should raise a ANE.
12906 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
12908 * Control.cs: Verify value set for Dock property. Code formatting
12911 2006-12-11 Jackson Harper <jackson@ximian.com>
12913 * TextControl.cs: Draw the caret and the selection when a flag is
12915 * TextBoxBase.cs: We want to draw the caret and the selection for
12916 TextBox but not for TextBoxBase.
12917 - If the window is resized and scrolling is no longer needed (the
12918 whole doc is visible) set the scroll position to zero.
12919 - The default SelectWord (the one TextBox uses) should move the
12920 caret to the end of the word.
12921 - SelectAll moves the caret to the end of the selection.
12922 * TextBox.cs: We don't selectall on focus, we just do it when the
12923 control is created.
12925 2006-12-11 Mike Kestner <mkestner@novell.com>
12927 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
12929 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12931 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
12933 * ListViewItem.cs: Add Name 2.0 property.
12935 2006-12-11 Andreia Gaita <avidigal@novell.com>
12937 * TabControl.cs: Set visibility on selected or default tab
12938 when tabcontrol handle is created, so that it's contents
12939 actually show up (duh). Fixes #80193
12940 Don't redraw the control if there is no handle created, as
12941 the selected index might be completely invalid. Added some tests
12944 2006-12-11 Everaldo Canuto <everaldo@simios.org>
12946 * ToolBar.cs: Uses maximun width and height of all buttons as
12947 button rectangle when ButtonSize specified, it looks strange but
12948 is what happens in Win32. Fixes #80189.
12950 2006-12-11 Jackson Harper <jackson@ximian.com>
12952 * TextControl.cs: Need to track undo levels ourself, since
12953 compound actions will mess them up.
12955 2006-12-10 Andreia Gaita <avidigal@novell.com>
12957 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
12958 SelectedIndex value is changed (even if it's not valid).
12959 Reset SelectedIndex to 0 when the handle is created and if
12960 the current index is invalid.
12961 Fixes SelectdeIndex unit tests and #80128
12963 2006-12-08 Chris Toshok <toshok@ximian.com>
12965 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
12966 calls EndEdit, it needs to be called before we set current_cell to
12967 its new value. Otherwise, we end up committing the value in the
12968 textbox to the new cell as well. Fixes bug #80160.
12970 2006-12-08 Chris Toshok <toshok@ximian.com>
12972 * Form.cs (set_CancelButton): if the button's DialogResult is
12973 None, set it to Cancel. Fixes bug 80180.
12975 2006-12-08 Jackson Harper <jackson@ximian.com>
12977 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
12978 to watch ourselves when setting the canvas size and setting the
12981 2006-12-08 Chris Toshok <toshok@ximian.com>
12983 * DataGrid.cs: comment out the two MakeTransparent calls for the
12984 time being so people using trunk (and not 1.2.2) on windows can
12985 actually use the datagrid. This deals with bug #80151.
12987 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
12989 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
12990 Graphics.DrawImage (image, int, int, int, int) overload instead
12991 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
12992 the dpi difference and was blurring images it drew.
12995 2006-12-08 Chris Toshok <toshok@ximian.com>
12997 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
12998 rowcnt is 0 (such as with an empty datasource), and make sure we
12999 initialize not_usedarea.Y to cells.Y, so we don't draw over the
13000 other areas (caption, parent row, etc, etc). Fixes bug #80095.
13002 2006-12-08 Chris Toshok <toshok@ximian.com>
13004 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
13007 2006-12-08 Chris Toshok <toshok@ximian.com>
13009 [ Fixes bug #80167 ]
13011 * ThemeWin32Classic.cs: don't draw the image if the button's flat
13012 style is FlatStyle.System.
13014 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
13015 ButtonBase.flat_style private, and switch uses of it to the public
13018 2006-12-08 Chris Toshok <toshok@ximian.com>
13020 [ Fixes bug #80121 ]
13022 * ThemeWin32Classic.cs: center the caption text in the datagrid
13025 * DataGrid.cs: lessen the amount we add to the caption height from
13026 6 to 2. 6 was making it huge.
13028 2006-12-08 Andreia Gaita <avidigal@novell.com>
13030 * UpDownBase: Handle MouseWheel call directly instead of capturing
13031 the inner textbox's OnMouseWheel. Fixes #80166
13033 2006-12-08 Jackson Harper <jackson@ximian.com>
13035 * TextControl.cs: We need to invalidate the textbox when we empty
13036 it (how had this not been discovered before?)
13038 2006-12-08 Jackson Harper <jackson@ximian.com>
13040 * TextBoxBase.cs: Reworked the mouse down code so I could get it
13041 to behave like MS, we now ignore the eventargs.Click and just
13042 track state ourself, which we were already doing anyways.
13043 - Constrain the double click handler to the double click size.
13045 2006-12-08 Chris Toshok <toshok@ximian.com>
13047 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
13048 direction if that scrollbar isn't shown. fixes bug #80158.
13050 2006-12-08 Andreia Gaita <avidigal@novell.com>
13052 * NumericUpDown.cs: Update value on getter. Fixes #79950
13054 2006-12-08 Chris Toshok <toshok@ximian.com>
13056 * MenuItem.cs: add back in the event cloning code. I didn't know
13057 how to do it in the face of the EventHandlerList work i'd done
13058 last week. Fixes bug #80183.
13060 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
13062 * Control.cs: Add an invalidate to the BackgroundImage setter.
13065 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
13067 * ToolStrip*: Add some small properties reported by MoMA, fix event
13068 firing and default properties based off of unit tests, and add some
13069 attributes based off of the class status page.
13071 2006-12-07 Jackson Harper <jackson@ximian.com>
13073 * TextBoxBase.cs: Take HideSelection into account when determining
13074 whether or not to show the selection.
13075 * RichTextBox.cs: After inserting the RTF into the document move
13076 the cursor to the beginning of the document.
13078 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
13080 * Control.cs: Remove static ArrayList "controls" which maintained
13081 a reference to every control created.
13082 * Application.cs: Create a static FormCollection to maintain a reference
13083 to every form created. Use it in places that formerly enumerated through
13084 the controls one looking for forms.
13085 * Form.cs: Add and remove self from above FormCollection.
13087 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
13089 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
13090 not libgdk (though it makes me wonder why I didn't have any
13093 2006-12-07 Chris Toshok <toshok@ximian.com>
13095 [ you had to know this was coming after that last commit...]
13097 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
13098 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
13099 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
13102 2006-12-07 Chris Toshok <toshok@ximian.com>
13104 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
13105 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
13106 all the behavior we need for double buffering.
13108 * XplatUIDriver.cs: implement the 3 double buffer methods using a
13109 client side Bitmap, just like the old Control-based double buffer
13110 code did. The methods are virtual, so each XplatUI driver
13111 subclass can replace the implementation to use a faster, platform
13114 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
13115 double buffer code, and clean things up a bit in the process.
13117 2006-12-06 Chris Toshok <toshok@ximian.com>
13119 * Control.cs: reindent WndProc.
13121 2006-12-06 Chris Toshok <toshok@ximian.com>
13123 [ I wanna be like BenM when I grow up ]
13125 * Hwnd.cs: create a single static Graphics object on the static
13126 Bitmap we create. use this for our text measurements.
13128 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
13129 This was causing us to allocate a backbuffer for every control,
13130 even when it wasn't flagged as double buffered. Instead use the
13131 single graphics instance. This might have implications for
13132 multithreaded applications. If we run into problems we can switch
13133 to creating 1 Graphics per control, on the static Hwnd bitmap.
13135 this change nets us a 7M savings in private dirty mappings when
13136 running FormsTest.exe.
13138 2006-12-06 Chris Toshok <toshok@ximian.com>
13140 * ListView.cs: the BackgroundImage override is just to set
13141 attributes. chain up to base.BackgroundImage.
13143 * RichTextBox.cs: same.
13145 * ToolBar.cs: same, but we need to also redraw the toolbar when it
13146 changes, so instead a handler for BackgroundImageChanged.
13148 * Control.cs: make background_image private.
13150 2006-12-06 Chris Toshok <toshok@ximian.com>
13152 * ScrollBar.cs: change the assignment of cursor to Cursor. not
13153 sure we even need this assignment, but roll with it for now.
13155 * Control.cs: make the cursor field private.
13157 2006-12-06 Chris Toshok <toshok@ximian.com>
13159 * Form.cs: we don't need to explicitly set ImeMode to
13160 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
13161 behavior in the face of ImeMode.Inherit.
13163 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
13164 change the ctor's assignment to use ImeMode instead of ime_mode.
13166 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
13167 ImeModeInherit. Only check for the parent's imemode (and return
13168 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
13169 This fixes the button unit test, which sets both ImeMode and
13170 DefaultImeMode to ImeMode.Disable.
13172 also make the ime_mode field private.
13174 2006-12-06 Chris Toshok <toshok@ximian.com>
13176 * Control.cs: make control_style private.
13178 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
13179 setting the styles to true, then setting them to false instead of
13180 reverting to their previous values.
13182 also, call SetStyle on the scrollbars instead of using
13183 control_style directly.
13185 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
13187 * FormCollection.cs: Implement. [2.0]
13189 2006-12-06 Chris Toshok <toshok@ximian.com>
13191 * Control.cs: make tab_stop private.
13193 * Label.cs: set TabStop, not tab_stop. reformat some event
13194 add/remove methods to make them more compact.
13196 2006-12-06 Chris Toshok <toshok@ximian.com>
13198 * RadioButton.cs: fix TabStop handling.
13200 2006-12-06 Chris Toshok <toshok@ximian.com>
13202 * TextBox.cs: remove the explicit assignments to has_focus.
13205 * ButtonBase.cs: remove the assignment to has_focus. Control will
13208 2006-12-06 Chris Toshok <toshok@ximian.com>
13210 * ButtonBase.cs: remove all uses of is_enabled from this code.
13211 it's always true when any of the code containing the checks is
13214 2006-12-06 Chris Toshok <toshok@ximian.com>
13216 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
13217 with different semantics (some are present in both 1.1 and 2.0
13218 profiles) so that we match MS's behavior in our unit tests.
13220 2006-12-06 Jackson Harper <jackson@ximian.com>
13222 * TextControl.cs: Make this operation undoable.
13223 * TextBoxBase.cs: Factor the border width into the preferred
13225 - implement Modified as per the spec.
13227 2006-12-06 Chris Toshok <toshok@ximian.com>
13229 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
13231 2006-12-06 Chris Toshok <toshok@ximian.com>
13233 * Control.cs: make right_to_left and context_menu fields private.
13235 2006-12-06 Chris Toshok <toshok@ximian.com>
13237 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
13238 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
13239 Control.child_controls private. switch all uses over to
13242 2006-12-06 Chris Toshok <toshok@ximian.com>
13244 * System.Windows.Forms/GroupBox.cs,
13245 System.Windows.Forms/AccessibleObject.cs,
13246 System.Windows.Forms/ErrorProvider.cs,
13247 System.Windows.Forms/Control.cs,
13248 System.Windows.Forms/UpDownBase.cs,
13249 System.Windows.Forms/ScrollBar.cs,
13250 System.Windows.Forms/DateTimePicker.cs,
13251 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
13252 System.Windows.Forms/ToolTip.cs,
13253 System.Windows.Forms/RadioButton.cs,
13254 System.Windows.Forms/LinkLabel.cs,
13255 System.Windows.Forms/Splitter.cs,
13256 System.Windows.Forms/TextBoxBase.cs,
13257 System.Windows.Forms/ToolStripTextBox.cs,
13258 System.Windows.Forms/ContainerControl.cs,
13259 System.Windows.Forms/ThemeWin32Classic.cs,
13260 System.Windows.Forms/SizeGrip.cs,
13261 System.Windows.Forms/ToolStripDropDown.cs,
13262 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
13263 private. switch all uses over to Control.Parent.
13265 2006-12-06 Chris Toshok <toshok@ximian.com>
13267 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
13268 Control does this before calling emitting these events.
13270 * TabControl.cs: same.
13272 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
13273 Control.client_rect.
13275 * ButtonBase.cs: use the ClientSize property instead of the
13278 * ScrollableControl.cs: same.
13280 * Control.cs: another pass at making properties private. also,
13281 move the initialization of tab_stop to the ctor.
13283 2006-12-05 Andreia Gaita <avidigal@novell.com>
13285 * TabControl.cs: Let the selected index be set freely if the
13286 control handle is not yet created.
13288 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
13290 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
13291 internal until I can rewrite DefaultLayout.
13292 * ToolStrip.cs: Fix build error and some general cleaning.
13293 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
13294 Fix build errors caused by making some of Control's fields private.
13296 2006-12-05 Jackson Harper <jackson@ximian.com>
13298 * TextControl.cs: Redo Insert a little so that it use IndexOf
13299 instead of Split, this prevents it from messing up on things like
13300 \n\n\n. Also more effecient since the split array doesn't need to
13302 * TextBoxBase.cs: AppendText doesnt handle multiline and non
13303 multiline text differently, this is the first of many fixes that
13304 will make multiline/non-multiline the same thing as far as the
13305 TextBoxBase is concerned.
13306 - Don't split the text and insert lines, this can lose some line
13307 endings (like is the last line a soft or hard break). Instead use
13309 - Fix an off by one when combining all the lines in the Text
13311 - Remove separate multiline handling from the Text getter/setter.
13313 2006-12-05 Chris Toshok <toshok@ximian.com>
13315 * ButtonBase.cs: a few changes:
13317 - don't reinitialize internal Control fields in the ctor when they
13318 have the same values as Control sets them.
13320 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
13321 this before calling those methods.
13323 - we don't need to call Refresh for anything. use Invalidate
13326 - OnEnabledChanged doesn't need to redraw at all - Control.cs
13327 calls Refresh in its OnEnabledChanged.
13329 - several of the events we were registered for in the ctor to
13330 redraw ourselves already include calls to Invalidate in the
13331 property setters that raise the events. remove the extra
13334 - reformat a switch statement that was 83274658 columns wide.
13336 2006-12-05 Mike Kestner <mkestner@novell.com>
13338 * ComboBox.cs: fix a unit test regression from a TextBox
13339 SelectionLength return of -1 when there's no selection.
13341 2006-12-05 Chris Toshok <toshok@ximian.com>
13343 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
13344 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
13345 cleaning up some of the internal Control fields being used by
13348 2006-12-05 Mike Kestner <mkestner@novell.com>
13350 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
13351 listbox after AddImplicit calls since it defaults to hidden. Add a
13352 hack to preserve requested heights across DropDownStyle changes.
13354 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
13356 * PropertyGrid.cs: Hide FindFirstItem method from public API.
13358 2006-12-05 Chris Toshok <toshok@ximian.com>
13360 * DataGridView.cs: fix compiler warnings.
13362 * PrintControllerWithStatusDialog.cs: same.
13364 * ToolBar.cs: same.
13366 * FolderBrowserDialog.cs: same.
13368 * Splitter.cs: same.
13370 * DataGridViewComboBoxCell.cs: same.
13372 * XplatUIWin32.cs: same.
13374 * PictureBox.cs: same.
13376 * Win32DnD.cs: same.
13378 * PageSetupDialog.cs: same.
13380 * FileDialog.cs: same.
13382 * PrintDialog.cs: same.
13384 * DataGridTextBoxColumn.cs: same.
13386 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
13388 2006-12-05 Chris Toshok <toshok@ximian.com>
13390 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
13391 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
13392 System.ComponentModel.EventHandlerList work.
13394 2006-12-05 Jonathan Chambers <joncham@gmail.com>
13396 * DrawTreeNodeEventArgs.cs: Added.
13398 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
13400 * InternalWindowManager.cs: Remove an unused field.
13402 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
13404 * InternalWindowManager.cs:
13405 - Save the point where the title bar is clicked.
13407 * MdiWindowManager.cs:
13408 - Only allow moving of the window as long as the
13409 clicked point on the title bar does not get out of
13410 MdiClient's rectangle. Fixes #79982.
13413 - Added Horizontal/VerticalScrollbarVisible.
13414 - Simplified the scrollbar sizing algorithm.
13415 - Cache the difference in scrolled value in
13416 H/VBarValueChanged and move the calculation out
13419 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
13421 * Control.cs: Make the Console.WriteLine in WndProc
13424 2006-12-05 Chris Toshok <toshok@ximian.com>
13426 * ToolStripManager.cs, ToolStripButton.cs,
13427 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
13428 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
13429 ToolStripSplitButton.cs, ToolStripSeparator.cs,
13430 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
13431 ToolStripProgressBar.cs, ToolStripContainer.cs,
13432 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
13433 to using System.ComponentModel.EventHandlerList.
13435 2006-12-04 Chris Toshok <toshok@ximian.com>
13437 * LinkLabel.cs: fix up compiler warnings.
13439 * TableLayoutSettings.cs: same.
13441 * TreeView.cs: same.
13443 * ToolBar.cs: same.
13445 * TabControl.cs: same.
13447 * RichTextBox.cs: same.
13449 * ListViewItem.cs: same.
13451 * PropertyGrid.cs: same.
13453 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
13457 * TextRenderer.cs: fix up compiler warnings.
13461 * Form.cs: corcompare fixes.
13463 * PictureBox.cs: fix up compiler warnings.
13465 * ImageListStreamer.cs: same.
13467 * TrackBar.cs: corcompare fix.
13469 * Control.cs: fix up compiler warnings.
13471 * SplitterPanel.cs: same.
13473 * NumericTextBox.cs: same.
13475 * ImageList.cs: same.
13477 * StatusStrip.cs: same.
13479 * ProgressBar.cs: corcompare fix.
13481 * ToolStripButton.cs: fix up compiler warnings.
13483 * ToolStripStatusLabel.cs: same.
13485 * ToolStripSplitButton.cs: same.
13487 * ToolStripSeparator.cs: same.
13489 * ToolStripProgressBar.cs: same.
13491 * ToolStripDropDownMenu.cs: same
13493 * ToolStripDropDown.cs: same.
13495 * ToolStripDropDownButton.cs: same.
13497 * ToolStrip.cs: same.
13499 * ToolStripControlHost.cs: same.
13501 * ToolStripContentPanel.cs: same.
13503 * ToolStripDropDown.cs: same.
13505 * ToolStripContainer.cs: same.
13507 * ToolStripPanel.cs: same, and add "new" where we need it to work
13508 with the new ArrangedElementCollection.
13510 * ToolStripItemCollection.cs: add "new" where we need it to work
13511 with the new ArrangedElementCollection.
13513 2006-12-04 Andreia Gaita <avidigal@novell.com>
13515 * TabControl.cs: Fix default tab selection to after TabControl
13516 gets focus and not before. Fixes #80128
13518 2006-12-04 Chris Toshok <toshok@ximian.com>
13520 * DataGridTableStyle.cs: remove the gross calling of
13521 datagrid.Refresh from here. It's a broken idea and it doesn't
13524 * DataGrid.cs: instead, just register/unregister from the
13525 DataGridTableStyle events in CurrentTableStyle. we play it
13526 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
13527 even though some would most likely not require it. Fixes bug
13528 #80115 (and one portion of #80117 as a side effect).
13530 2006-12-04 Chris Toshok <toshok@ximian.com>
13532 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
13533 so the textbox (if any) goes away. Fixes bug #80117.
13535 2006-12-04 Chris Toshok <toshok@ximian.com>
13537 * DataGridColumnStyle.cs: set the column's readonly property
13538 initially based on the property descriptor's IsReadOnly. Fixes
13541 2006-12-04 Chris Toshok <toshok@ximian.com>
13543 * ComboBox.cs: wrap the dropdown style changing work in
13544 SuspendLayout/ResumeLayout. Fixes bug #79968.
13546 2006-12-04 Jackson Harper <jackson@ximian.com>
13548 * TextBoxBase.cs: Fix off by one, since these are one-based.
13549 * TextBox.cs: Select all the text when we get focus. The TextBox
13550 does this but the RTB does not.
13552 2006-12-04 Chris Toshok <toshok@ximian.com>
13554 * DataGridTextBoxColumn.cs: remove some spew.
13556 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
13557 but some part of me is saying "it shouldn't be here.." At any
13558 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
13561 2006-12-04 Chris Toshok <toshok@ximian.com>
13563 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
13564 to reassign the propertydescriptor.
13566 2006-12-04 Jackson Harper <jackson@ximian.com>
13569 * TextControl.cs: Remove some unused variables. Maybe this will
13570 patch things up between mike and I.
13571 - don't split lines less then one char wide, if the viewport is
13572 that small text won't be visible anyways.
13574 2006-12-04 Jackson Harper <jackson@ximian.com>
13576 * TextBoxBase.cs: Default selection length is -1, need to do some
13577 more testing on windows to see when this is used for the property.
13578 - Redid the Lines [] property to that we properly remove soft line
13580 - added support for preserving carriage returns
13581 - CanUndo is not a variable like 'is undo enabled' it just returns
13582 true if there is undo operations available.
13583 - AppendText doesn't need to grab the last tag itself anymore,
13584 this happens automatically when we move the cursor.
13585 * TextControl.cs: Add CompoundActions to the undo class. This
13586 allows combining the other operations into one big option. ie a
13587 paste will combine { delete old, insert new, move cursor }
13588 - Add InsertString undo operation
13589 - New method for deleting multiline text
13590 - Add carriage returns to lines. So we can preserve carriage
13591 returns when text is 'roundtripped'
13593 2006-12-04 Chris Toshok <toshok@ximian.com>
13595 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
13596 minimum 0. Fixes the scrollbar exception in bug #80136.
13598 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13601 * MdiWindowManager: Removed unused fields and methods.
13603 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13605 * StatusBar.cs: Update all panels when a AutoSize=Contents
13606 panel needs updating.
13608 * StatusBarPanel.cs: Remove twidth and only use initialize.
13611 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13613 * Form.cs: When a form's MdiParent is set add it directly
13614 on top of the z-order in stead of relying on MdiClient's
13615 ActivateChild to do it. Fixes #80135.
13618 - Remove original_order, mdi_child_list is already doing
13620 - Create mdi_child_list on construction in
13621 stead of first use (avoids a few null checks).
13623 * MenuItem.cs: Use an already existing list of mdi children
13624 to get the correct order of children and remove the other
13627 2006-12-04 Chris Toshok <toshok@ximian.com>
13629 * PropertyGridView.cs: cached_splitter_location is only used in
13630 !DOUBLEBUFFER code.
13632 * PropertyGrid.cs: implement the ComComponentNameChanged event
13633 using Events, hoping that would fix the warning. Looks like a
13634 compiler bug instead (#80144).
13636 * PropertyManager.cs: remove unused method.
13638 2006-11-04 Everaldo Canuto <everaldo@simios.org>
13640 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
13641 include parentesis to fix expression evaluation. Fixes #79634.
13643 2006-11-02 Everaldo Canuto <everaldo@simios.org>
13646 - Changes to fix behavior in Menu control, some reported in #80097
13647 and other detected during behavior refactory like a select event
13649 - Remove unneded "if's" conditions.
13650 - Created an internal to flag when popup is active in control, we need
13651 it because in .NET you can have menu active but without popup active
13652 when you active menu using popup without visible items.
13653 - Mimic win32 behavior for Select and Popup events.
13654 - Dont open popup menu when you dont have visible subitems.
13655 - Do nothing when click on disabled menu item.
13656 - Some small changes to follow the coding style guidelines.
13657 - Unselect menu only when another control gives focus. Fixes #80097.
13658 - Remove unused code.
13660 * MenuItem.cs: internal VisibleItems method to check if menu
13661 theres visible subitems, it will be usefull to fix some
13662 behavior in Menu control.
13664 2006-11-01 Everaldo Canuto <everaldo@simios.org>
13666 * Timer.cs: Tag property for 2.0 profile.
13668 2006-12-01 Chris Toshok <toshok@ximian.com>
13670 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
13672 * Win32DnD.cs: comment out some unused fields.
13674 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
13675 some unused properties/methods.
13677 * XplatUIX11.cs: fix MousePosition so we override the base class's
13678 property instead of conflicting with it.
13680 * PictureBox.cs: comment out some unused fields
13682 * OSXStructs.cs: make some struct fields public.
13684 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
13685 MousePosition so we override the base class's property instead of
13686 conflicting with it.
13688 * X11Dnd.cs: comment out some unused fields
13690 * X11DesktopColors.cs: fix some struct field visibility to quiet
13693 * X11Dnd.cs: remove some debug code.
13695 * ThemeClearlooks.cs: comment out unused field.
13697 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
13699 * ThemeGtk.cs: comment out some unused pinvokes.
13701 * Timer.cs: remove some unused fields.
13703 * ThemeClearlooks.cs: comment out unused field.
13705 * UpDownBase.cs: comment out unused field.
13707 * DataObject.cs: comment out unused field.
13709 * DataGridBoolColumn.cs: reomve unused field.
13711 * DataGrid.cs: remove unused field.
13713 * Cursor.cs: remove old ToBitmap code.
13715 * ControlPaint.cs: remove unused method.
13717 * ScrollBar.cs: remove unused fields.
13719 * ComboBox.cs: remove unused field, and chain up to
13720 AccessibleObject ctor.
13722 * ListBox.cs: remove unused field.
13724 * ButtonBase.cs: wrap a couple fields in NET_2_0.
13726 * GridEntry.cs: remove unused fields.
13728 * Binding.cs: remove unused fields.
13730 * AxHost.cs: remove unused method.
13732 * ContainerControl.cs: remove unused field.
13734 * ScrollableControl.cs: remove unused fields.
13736 2006-12-01 Chris Toshok <toshok@ximian.com>
13738 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
13739 the Where/WhereString stuff. it's easy enough to CWL
13740 Environment.StackTrace.
13742 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
13743 unused private fields.
13745 2006-12-01 Jackson Harper <jackson@ximian.com>
13747 * TextControl.cs: Do not update the view while inserting multiline
13748 text. If we update the view we might wrap lines, before entering
13749 the new lines, which causes the new line insertion calculations to
13750 be totally fubared.
13751 - Remove an old TODO
13752 - Make debug output a little nicer
13754 2006-12-01 Chris Toshok <toshok@ximian.com>
13756 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
13758 2006-12-01 Chris Toshok <toshok@ximian.com>
13760 [ fix the majority of the CS0108 warnings we've been suppressing ]
13762 * TreeView.cs: mark BackgroundImageChanged as 'new'.
13764 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
13765 to "LayoutToolBar" to quiet mcs.
13767 * TabControl.cs: mark our ControlCollection class as 'new'.
13769 * TextBoxBase.cs: mark some events as 'new'.
13771 * Splitter.cs: TabStop is 'new'.
13773 * ControlBindingsCollection.cs: mark a few methods as new since
13774 they change the visibility from protected to public.
13776 * RadioButton.cs: DoubleClick -> base class, and remove unused
13779 * MonthCalendar.cs: ImeMode property -> base class, and mark many
13782 * NumericUpDown.cs: TextChanged -> base class.
13784 * CheckedListBox.cs: mark our ObjectCollection class as new to
13787 * FolderBrowserDialog.cs: make HelpRequest event new and have it
13788 muck with the base class.
13790 * StatusBar.cs: fix some mcs warnings about Update being the same
13791 name as a base class method.
13793 * RichTextBox.cs: mark some events as new, and make them do things
13794 to the base class impl.
13796 * UserControl.cs: mark TextChanged as new, and have it manipulate
13799 * UpDownBase.cs: mark some things new.
13801 * CheckBox.cs: mark DoubleClick "new", and add some text about
13802 what we need to look at.
13804 * Panel.cs: make the events "new", and manipulate the base
13805 version. these are just here for attributes.
13807 * AccessibleObject.cs: make owner private.
13809 * Control.cs: deal with AccessibleObject.owner being private.
13810 cache our own copy if we need it.
13812 * Button.cs: add "new" to the DoubleClickEvent.
13814 * ListBox.cs: no need to track our own has_focus here. let
13815 Control.has_focus do it for us. Also some other work to clear up
13816 warnings about not overriding base class methods of the same name.
13818 * ComboBox.cs: clear up some warnings about not override base
13819 class methods of the same name.
13821 2006-12-01 Chris Toshok <toshok@ximian.com>
13823 * Form.cs: flag a few things as "new" to quiet some of the mcs
13828 * PrintPreviewDialog.cs: same.
13830 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
13831 now DGV isn't so horrible on the class status page. also, move
13832 all events to using System.ComponentModel.EventHandlerList. my
13835 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
13837 * MdiWindowManager.cs:
13838 - Set form to active mdi child if shown,
13839 and update the active mdi child to the next
13840 remaining child in the z-order if the form is hidden.
13843 - Track if the form has been visible and if its
13844 visibility is beeing changed, so that the MdiClient
13845 can properly decide the ActiveMdiChild. The MdiClient
13846 cannot track this since the form can change visibility
13847 before MdiClient is created.
13850 - Don't activate anything of the parent form is changing
13852 - Rework ActiveMdiChild to only return visible mdi
13853 children and take into account several other corner
13856 2006-12-01 Chris Toshok <toshok@ximian.com>
13858 * IBindableComponent.cs: new 2.0 interface.
13860 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
13862 * DataGrid.cs: Font for caption area is bold by default.
13864 2006-12-01 Everaldo Canuto <everaldo@simios.org>
13866 * Menu.cs: Tag property for 2.0.
13868 2006-11-01 Everaldo Canuto <everaldo@simios.org>
13870 * ThemeWin32Classic.cs: Adjust menu separator drawing.
13872 2006-12-01 Chris Toshok <toshok@ximian.com>
13874 * TreeView.cs: doh, the Begin* events should be
13875 TreeViewCancelEventHandler.
13877 2006-12-01 Chris Toshok <toshok@ximian.com>
13879 * Form.cs: Form.ControlCollection already stores off the
13880 form_owner field. don't access the base class's internal "owner"
13883 * Control.cs: make all the fields in Control.ControlCollection
13884 private. there's no need for any internal fields here.
13886 2006-12-01 Chris Toshok <toshok@ximian.com>
13888 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
13889 OnHandleCreated. Fixes bug #80109.
13891 2006-12-01 Chris Toshok <toshok@ximian.com>
13893 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
13894 SplitContainer.cs, Control.cs, StatusStrip.cs,
13895 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
13896 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
13897 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
13898 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
13899 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
13900 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
13901 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
13902 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
13903 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
13904 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
13906 do most of the work to convert our code over to use
13907 System.ComponentModel.Component.Events for
13908 adding/removing/dispatching events.
13911 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
13913 * DataGridView.cs: Fix an ArgumentNullException reported
13914 twice today in IRC.
13916 2006-11-30 Mike Kestner <mkestner@novell.com>
13918 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
13919 grabbed listbox. Fixes #80036 and #80101.
13921 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13923 * Message.cs: Changed ToString() to match MS.
13925 2006-11-30 Jackson Harper <jackson@ximian.com>
13927 * TextBoxBase.cs: You can still change the selected text on a read
13929 * TextControl.cs: Lower magic number for wrap calculations. This
13930 lets text get closer to the right (far) edge.
13932 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
13934 * Control.cs: Tweak 2.0 layout properties.
13935 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
13936 * TextRenderer.cs: Add a new overload.
13937 * ToolStrip*: Huge amount of changes and new features.
13939 2006-11-30 Mike Kestner <mkestner@novell.com>
13941 * ComboBox.cs: fixes for LargeChange and Maximum to get the
13942 scroll range correct. Fixes #79994.
13944 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13946 * MdiWindowManager.cs: Update main form's text when
13947 a form is closed. (fixes #80038)
13949 2006-11-30 Everaldo Canuto <everaldo@simios.org>
13952 - Fix an regression in ButtonSize.
13953 - Get ImeMode default value change to "Disable".
13954 - Get ShowTooltips default value change to true, default value is
13955 "false" but after make a test in .NET we get "true" result as default.
13957 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
13959 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
13961 2006-11-29 Chris Toshok <toshok@ximian.com>
13963 * XplatUIWin32.cs (GetWindowTransparency): check return value of
13964 GetLayeredWindowAttributes. if it's 0, return 1.0, as
13965 SetWindowTransparency hasn't been called.
13967 2006-11-29 Chris Toshok <toshok@ximian.com>
13969 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
13971 (set_AllowTransparency): reorder things a little so that the
13972 WS_EX_LAYERED style is removed properly.
13974 2006-11-29 Chris Toshok <toshok@ximian.com>
13976 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
13978 * Form.cs: only call the XplatUI transparency method (get/set) if
13979 SupportsTransparency says it's supported. Otherwise fallback to
13980 doing nothing (in the set case) or returning the instance field we
13981 cache (in the get case).
13983 * XplatUIStructs.cs: add TransparencySupport flag enum.
13985 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
13986 change to SupportsTransparency.
13988 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
13989 TransparencySupport.None from SupportsTransparency.
13991 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
13992 TransparencySupport.Set from SupportsTransparency.
13994 * XplatUIWin32.cs: implement GetWindowTransparency calling
13995 GetLayeredWindowAttributes, and implement SupportsTransparency by
13996 checking whether or not both
13997 GetWindowTransparency/SetWindowTransparency are available
13998 entrypoints. We need to do this since SetWindowTransparency is
13999 available as of win2k, but GetWindowTransparency requires winxp.
14002 * XplatUI.cs: Add GetWindowTransparency, and change
14003 SupportsTransparency to allow for either/both Get/Set.
14005 2006-11-29 Chris Toshok <toshok@ximian.com>
14007 * DataGrid.cs: keep from going into an infinite loop redrawing a
14008 datagrid that has no datasource. Fixes bug #80033.
14010 2006-11-29 Chris Toshok <toshok@ximian.com>
14012 * MenuItem.cs: fix the NRE when we assign text (and therefore call
14013 Invalidate) before the mainmenu has been assigned to a control.
14015 2006-11-29 Chris Toshok <toshok@ximian.com>
14017 * DataGrid.cs: detect when we should be double the double click
14018 row/column autosize stuff, although that codepath has yet to be
14019 written. part of the work for bug #79891.
14021 2006-11-29 Chris Toshok <toshok@ximian.com>
14023 * Binding.cs (SetControl): fix unit test.
14025 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14027 * PageSetupDialog.cs: Validate the margins and set them in
14029 * NumericTextBox.cs: New class to mimic the behavior of the
14030 textboxes used in the printing dialogs.
14032 2006-11-29 Andreia Gaita <avidigal@novell.com>
14034 * Form.cs: Revert previous change (remove call UpdateBounds
14035 from form constructor), because it messes with the handle creation
14036 order, and that one needs lots and lots of love.
14037 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
14038 for valid printer and throw InvalidPrinterException if document
14039 is set but printer not valid), adding a MonoTODO. Once
14040 handle creation is done properly, we can put this back in.
14042 2006-11-28 Everaldo Canuto <everaldo@simios.org>
14044 * MenuItem.cs: Create a invalidate method for menu item, to be
14045 calling from set text, it make text changes to imadiate update
14046 on screen. Fixes #80013.
14048 2006-11-28 Everaldo Canuto <everaldo@simios.org>
14050 * ToolBar.cs: Fixes and simplify toolbar button layout, it
14051 fixes bug #80070 and some other problem on toolbar buttons
14054 2006-11-28 Everaldo Canuto <everaldo@simios.org>
14056 * ThemeWin32Classic.cs: Paint toolbar toggle button background
14057 with dotted brush. Fixes #79564
14059 2006-11-28 Andreia Gaita <avidigal@novell.com>
14061 * Form.cs: Removed call to UpdateBounds on Form
14062 constructor, it was causing a call to CreateHandle
14063 before it was supposed to.
14064 * PrintControllerWithStatusDialog: Applied patch
14065 by Chris Toshok to hide controller when there are
14066 no printers available.
14067 PrintDialog.cs: initialize printer settings to
14068 null - correct DefaultValues test #5
14069 * PrintPreviewControl.cs: Move PrintController
14070 initialization to GeneratePreview
14071 * PrintPreviewDialog.cs:
14072 - Remove Preview generation from Document_set(). It is
14074 - Throw InvalidPrinterException on CreateHandle if
14075 a Document is set but there are no printers or
14076 printer is not valid.
14077 * ThemeWin32Classic: don't paint PrintPreviewControl
14078 if there is nothing to paint
14080 2006-11-28 Miguel de Icaza <miguel@novell.com>
14082 * Form.cs: Add another popular method.
14084 * TabPage.cs: ditto.
14086 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14088 * MenuItem.cs: Fixed a warning.
14089 * InternalWindowManager: Fixed a warning.
14091 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14094 - When cloning a menu also clone MdiList and clone the
14095 window menu items properly (as the forms and menuitems
14096 are kept in an internal hashtable, these need updating
14098 - Rewrote the window menu code, menu items are added in the
14099 order the forms were added to their parent, and they are
14100 updated every time the window menu is shown (before the
14101 list was only generated once, in the current order of the
14102 forms, and would never be updated). A checkmark is shown
14103 next to the item corresponding to the active mdi child.
14105 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14107 * XplatUIStructs.cs:
14108 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
14111 - Added TME_NONCLIENT to TMEFlags.
14112 - Handles WM_NCMOUSEMOVE in GetMessage to
14113 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
14115 * MdiWindowManager:
14116 - Now merges mdi child menu to parent menu when maximized.
14117 - Recalculate NC areas of both mdi child and mdi parent.
14119 on window state and size changes.Fixes #79844 (3).
14120 - Handle WM_NCCALCSIZE to properly calculate borders.
14123 - Add/remove to the mdi containers list of mdi children
14124 in the order they are added.
14125 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
14126 to the maximized mdi child.
14128 * InternalWindowManager.cs:
14129 - Only execute a click on the control buttons on the mouse up,
14130 not on the mouse down. Show the state of the button
14131 (was only showing Normal state, never Pressed state). The
14132 pressed button now follows the mouse (if you click the Close
14133 button and move the mouse over the Maximize button, the
14134 Maximize button will be shown as pressed). Since Win32 does
14135 not generate WM_NCLBUTTONUP if you release the button outside
14136 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
14139 * ThemeWin32Classic.cs:
14140 - Draw a missing border around mdi child forms. Fixes #79844 (2).
14143 - Added a list of forms which contains the order the forms are
14144 added to the mdi parent.
14145 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
14146 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
14147 - If the active form changes set the scrollbars to the top
14148 of the Z order, otherwise the form could hide them.
14149 - Scrollbars are now sized according to ClientSize, not
14150 to Size, and they take into account the other scrollbar
14151 to determine maximum.
14153 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14156 * XplatUIDriver.cs:
14160 - Added RequestAdditionalWM_NCMessages for windows to
14161 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
14162 Currently only implemented in XplatUIWin32.
14164 2006-11-27 Chris Toshok <toshok@ximian.com>
14166 * Hwnd.cs: only add the hwnd to the windows hash in
14167 set_WholeWindow and set_ClientWindow if whole_window/client_window
14168 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
14170 2006-11-27 Mike Kestner <mkestner@novell.com>
14172 * ComboBox.cs: remove redundant OnDropDown call. It is called
14173 from the ComboListBox.ShowWindow code. Fixes #79969.
14175 2006-11-27 Chris Toshok <toshok@ximian.com>
14177 * Hwnd.cs: remove the setters for ExposePending and
14178 NCExposePending - noone uses them.
14180 2006-11-27 Jackson Harper <jackson@ximian.com>
14182 * TextControl.cs: new param for ReplaceSelection which determines
14183 whether we select the new selection, or set the cursor to the end
14184 of the new selection.
14185 * TextBoxBase.cs: Use new param for ReplaceSelection. When
14186 pasting, select the new text.
14187 * RichTextBox.cs: Use new param for ReplaceSelection.
14189 2006-11-27 Jackson Harper <jackson@ximian.com>
14191 * TextBoxBase.cs: Set the selection to the caret after the caret
14192 is moved, otherwise they get out of sync.
14194 2006-11-26 Everaldo Canuto <everaldo@simios.org>
14196 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
14199 2006-11-26 Everaldo Canuto <everaldo@simios.org>
14201 * ThemeWin32Classic.cs:
14202 - Fix toolbar drop down arrow position.
14203 - Fix drop down appearance when ToolBar.Appearance is normal,
14206 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
14208 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
14209 * Control.cs: Same.
14210 * UpDownBase.cs: Same.
14211 * ButtonBase.cs: Same.
14212 * ScrollBar.cs: Same.
14213 * TrackBar.cs: Same.
14214 * PictureBox.cs: Same.
14215 * UserControl.cs: Same.
14217 * ListControl.cs: Same.
14218 * TextBoxBase.cs: Same.
14219 * ListView.cs: Same.
14220 * RichTextBox.cs: Same.
14221 * TreeView.cs: Same.
14223 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
14226 - Text label for where
14227 - Text label comment was not shown
14229 2006-11-23 Everaldo Canuto <everaldo@simios.org>
14231 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
14233 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
14235 * InternalWindowManager.cs:
14236 - Handle WM_PARENTNOTIFY to activate the form
14237 if any child control is clicked.
14238 - The form is only sizable if not minimized.
14240 * MdiWindowManager.cs:
14241 - Save the IconicBounds if the form is moved.
14242 - Rework SetWindowState, now the window bounds
14243 are stored only if the old window state is Normal.
14246 - In SetWindowStates store the old window state if
14247 the window is maximized and restore window state if
14248 the window looses focus.
14249 - Don't handle any scrollbar value changes if
14250 initializing the scroll bars. Fixes #79771.
14251 - Reworked ArrangeIconicWindows. Current algorithm
14252 tests bounds agains all other minimized windows, if
14253 any intersections create new bounds (going left to
14254 right, bottom to top) and then test again. When
14255 successful the bounds are saved and never computed
14256 again. Fixes #79774.
14258 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
14260 * InternalWindowManager.cs: Added HandleTitleBarUp.
14262 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
14264 * NumericUpDown.cs: In .NET 1.1, user entered text is still
14265 hexadecimal in ParseUserEdit.
14268 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
14270 * MdiWindowManager.cs:
14271 - Handle a click on the form's icon to show the
14272 system menu (when maximized). Fixes #79775.
14273 - Change the existing click handler for the form's
14274 icon when not maximized to show on MouseUp.
14277 * Form.cs: In OnResize only layout the mdi child's
14278 parent if it actually has a parent. Might not if
14279 the window is closing.
14282 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
14284 * MdiClient.cs: Ignore active MDI client for text of parent, if
14285 child has no text set.
14287 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
14289 * ToolBar.cs: Fixed ToString to match MS.
14291 2006-11-22 Andreia Gaita <avidigal@novell.com>
14294 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
14295 update inner values on set. Fixes #79966.
14296 - Override OnLostFocus to update value on NET 2. Fixes #79950.
14297 - Fix hexadecimal parsing.
14299 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
14300 parent. Fixes #79957
14302 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14304 * Control.cs: After calling SetWindowsPos in SetBoundsCore
14305 the actual size has to be queried, since if height /
14306 width is negative Win32 changes it to 0.
14307 Fixes #79999 on Windows.
14309 * XplatUIX11.cs: Set height / width to 0 if negative
14310 in SetWindowPos. Fixes #79999 on Linux.
14312 2006-11-22 Everaldo Canuto <everaldo@simios.org>
14314 * ThemeWin32Classic.cs: Fix text redenring when button is
14317 2006-11-22 Everaldo Canuto <everaldo@simios.org>
14319 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
14320 and later navigate by mouse. Fixes #79528.
14322 2006-11-21 Everaldo Canuto <everaldo@simios.org>
14324 * ToolBar.cs: Set default value for TabStop to false in
14325 constructor, it fixes remaining behavior of bug #79863.
14327 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
14329 * MdiWindowManager.cs:
14330 * InternalWindowManager.cs:
14331 - Moved a few methods specific to Mdi from
14332 InternalWindowManager to MdiWindowManager.
14335 2006-11-21 Chris Toshok <toshok@ximian.com>
14337 * XplatUIOSX.cs: stub out InvalidateNC.
14339 * XplatUIWin32.cs: implement InvalidateNC using the call I found
14340 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
14342 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
14344 * XplatUIDriver.cs: add InvalidateNC abstract method.
14346 * XplatUI.cs: add InvalidateNC.
14348 2006-11-21 Everaldo Canuto <everaldo@simios.org>
14350 * ToolBar.cs: Invalidate complete button area when pressed status
14352 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
14353 * ThemeWin32Classic.cs: Increase vertical and horizontal position
14354 by 1 when button is pressed.
14356 2006-11-20 Everaldo Canuto <everaldo@simios.org>
14358 * ToolButton.cs: Invalidate middle of DropDown button when
14359 ToolBar theres DropDownArrows.
14360 * ThemeWin32Classic.cs: Change position of DropDown arrow and
14361 fix DropDown drawing operations.
14363 2006-11-20 Chris Toshok <toshok@ximian.com>
14365 * NativeWindow.cs: fix the formatting of functions ('{' on the
14366 following line), and enable the thread exception dialog.
14368 * Application.cs: remove the duplicate exception catching from
14371 2006-11-20 Everaldo Canuto <everaldo@simios.org>
14373 * Toolbar.cs: Triggers button click event when click on icon
14374 of dropdown ToolBarButton. Fixes #79912.
14376 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14379 * ThemeWin32Classic.cs:
14380 - Added a property WindowBorderFont to enable themeing
14381 of mdi child windows' Text.
14383 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14385 * InternalWindowManager.cs:
14388 * MdiWindowManager.cs:
14389 - If mdi child is maximized, set mdi parent's
14390 text to "Parent - [Child]". Fixes #79770.
14391 - If there is any maximized mdi child windows, only the active
14392 window (and any new windows) is maximized, the rest are normal.
14393 - On a WindowState change only save mdi child's window bounds
14394 if the old window state was normal. Fixes #79774.
14395 - The scroll bars are now calculated on hopefully all
14396 necessary events. Fixed #79771 / #79844->6 / #79906.
14397 - MdiClient.SizeScrollBars() now takes into account docked
14398 controls in the parent when calculating available space.
14399 - InternalWindowManager now always repaints the entire title
14400 area. Fixes #79844->1/4/5.
14401 - Added RequestNCRecalc on mdi child windowstate changes.
14404 2006-11-20 Mike Kestner <mkestner@novell.com>
14406 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
14407 in the MouseUp handler of the listbox and move the return handling
14408 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
14410 2006-11-20 Everaldo Canuto <everaldo@simios.org>
14412 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
14414 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
14416 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
14417 working in 1.2.x anymore. So, updated.
14419 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
14421 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
14422 NumberGroupSeparator of current culture instead of assuming en-US.
14425 2006-11-17 Mike Kestner <mkestner@novell.com>
14427 * Control.cs: Add the concept of implicit bounds setting so that
14428 dock/undock round trips preserve explicitly set size/locations.
14431 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
14433 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
14434 can't handle those filters. (Fixes bug #79961)
14436 2006-11-17 Chris Toshok <toshok@ximian.com>
14438 [ fixes the exit/crashes associated with #79835. it's clearly
14439 suboptimal though, we need to figure out a better way to solve
14442 * PrintPreviewControl.cs: deal with the new invalid printer
14445 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
14446 and return false (so CommonDialog.ShowDialog doesn't actually show
14449 * PrintDialog.cs: enable/disable the Ok button depending on
14450 whether or not the printer is valid.
14452 * CommonDialog.cs (ShowDialog): only actually show the form if
14453 RunDialog returns true.
14455 2006-11-17 Jackson Harper <jackson@ximian.com>
14457 * TextControl.cs: When soft splitting a line, mark it as a soft
14458 split line. Also carry over the current line break to the next
14461 2006-11-17 Chris Toshok <toshok@ximian.com>
14463 * XplatUIX11.cs: when scrolling a window with an invalid area, we
14464 only want to shift the part of the invalid area that overlaps the
14465 area we're scrolling. we also don't want to clear the invalid
14466 area unless the invalid area was entirely contained within the
14469 2006-11-16 Chris Toshok <toshok@ximian.com>
14471 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
14472 also make sure to free the memory returned by XGetWindowProperty
14475 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
14477 2006-11-16 Chris Toshok <toshok@ximian.com>
14479 * XplatUI.cs: add a new super secret way to get at the totally
14480 unsupported X11 backend.
14482 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
14484 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
14486 2006-11-16 Jackson Harper <jackson@ximian.com>
14488 * TreeView.cs: Allow more explicit setting of top node position
14489 for scrollbars. Slower algo, but more accurate.
14490 - CollapseAll should maintain the current top node.
14491 * TextBoxBase.cs: When positioning the caret, use the line, pos
14492 method, since the x, y method does not grab the correct tag, and
14493 the caret height never gets set correctly. (Maybe I should just do
14494 away with the caret having its own height, and always use the
14495 carets current tag for height).
14497 2006-11-16 Jonathan Pobst <monkey@jpobst.com
14499 [Fixes 79778, 79923]
14501 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
14502 Parent to the FosterParent instead.
14504 2006-11-16 Jackson Harper <jackson@ximian.com>
14506 * TreeView.cs: Need to recalc the topnode when we expand or
14507 collapse. The scrolling methods can't handle this on their own,
14508 since they use differences between the last scroll position, and
14509 those difference get completely messed up since we are expanding
14510 nodes. This problem should probably be fixed in the scrolling
14511 methods, so they can figure out exactly where they are, but this
14512 will slow things down a little.
14513 * ThemeWin32Classic.cs: Special case for groupboxes with empty
14514 strings, makes nunit-gui look a lot nicer.
14516 2006-11-16 Chris Toshok <toshok@ximian.com>
14518 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
14519 the broken multithreaded event handling we have in here. File
14520 this entry under "Why we should move to the new X11 backend".
14522 Any thread can make it into UpdateMessageQueue, which gets events
14523 from the X socket - some of which could belong to hwnds being
14524 managed by a different thread. We can also have multiple threads
14525 in UpdateMessageQueue at the same time, with each one reading from
14526 the X socket. This leads to many problems, with the following
14529 We can't use hwnd.Queue.Enqueue anywhere in here and must use
14532 The MotionNotify compression we do can't work across threads
14533 (without locking the entire queue, perhaps) since we call
14534 hwnd.Queue.Peek, so we just punt and don't compress motion events
14535 unless the owning thread is the one which got the X event.
14537 ConfigureNotify is another fun one, since it modifies the hwnd's
14538 bounds and then enqueues the event. We add a lock to Hwnd which
14539 is held when setting configure_pending to true (and enqueuing the
14542 There is a race wrt the wake socket. we need to make sure that
14543 only 1 thread is waiting on that socket, or else a thread could
14544 sleep waiting for data that never comes. It's difficult (but not
14545 impossible) to make happen, because it seems to require something
14546 like the following:
14548 1. Thread 1 polls on wake_receive
14550 2. poll returns saying there's data to be read on
14553 3. Thread 2 polls on wake_receive and immediately returns
14554 saying there's data to be read.
14556 4. Thread 2 reads the wakeup byte from wake_receive
14558 5. Thread 1 attempts to read the wakeup byte from
14561 6. Thread 2 exits (due to a form closing, perhaps).
14563 7. Thread 1 blocks forever.
14567 Fixing the Expose handling isn't done yet, and the races inherent
14568 in that piece of code are responsible for the drawing mistakes you
14569 see when generating expose events in a MT app (like NPlot). This
14570 one is the likely to be the hardest to bandaid, and it doesn't
14571 appear to cause anything but drawing problems. The other issues
14572 caused apps to exit or hang.
14574 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
14575 called from a different thread than the one that should be calling
14578 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
14580 2006-11-15 Chris Toshok <toshok@ximian.com>
14582 * Application.cs: null out the context's MainForm when we exit
14583 RunLoop. Fixes a newly checked in unit test as well as the last
14584 ODE from bug #79933.
14586 2006-11-15 Chris Toshok <toshok@ximian.com>
14588 * Form.cs (set_Owner): allow a null value so we can clear the
14590 (Dispose): set all our owned_form's Owner properties to null, and
14591 clear the owned_forms collection.
14592 (WM_CLOSE): clean up this a little bit.. still not right though.
14594 * ApplicationContext.cs: OnMainFormClosed should only call
14595 ExitThreadCore if the main form isn't recreating. Fixes unit
14598 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
14602 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
14604 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
14608 * Hwnd.cs: Add a flag to show a window, but not activate it, to
14609 keep popup window types from stealing focus from the main form
14612 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
14614 * MenuAPI.cs: Set above flag to true.
14616 2006-11-15 Chris Toshok <toshok@ximian.com>
14618 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
14619 the button being released is not in wParam.
14621 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
14623 * Form.cs: Add the released button to MouseEventArgs.Button
14624 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
14627 2006-11-15 Chris Toshok <toshok@ximian.com>
14629 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
14630 GetText(). untested because it's unused in our implementation.
14631 Control.Text always caches the text, even if
14632 ControlStyles.CacheText is not set.
14636 2006-11-15 Chris Toshok <toshok@ximian.com>
14640 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
14641 message. no hiding, no disposing.
14643 in the WM_CLOSE handler, hide the form if it's modal.
14645 2006-11-15 Chris Toshok <toshok@ximian.com>
14647 * XplatUIX11.cs: use AddExpose instead of sending a message.
14648 fixes textbox border drawing.
14650 2006-11-15 Chris Toshok <toshok@ximian.com>
14652 * PropertyGridView.cs: keep from crashing on mouse move/down when
14653 the property grid is empty.
14655 2006-11-14 Jackson Harper <jackson@ximian.com>
14657 * TextControl.cs: Make PageUp and PageDown more like the MS
14659 * TextBoxBase.cs: When we set the text property position the
14660 cursor at the beginning of the document.
14662 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
14664 * Form.cs: if a mdi child's WindowState has changed
14665 before it's creation, it would display wrong control
14668 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
14670 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
14673 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
14675 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
14676 the window gets to paint its borders even if the window is
14679 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
14680 otherwise the old control buttons would still be painted
14681 if the window gets bigger.
14683 * PaintEventArgs.cs: add an internal method so that the clip
14684 rectangle can be changed.
14686 2006-11-13 Chris Toshok <toshok@ximian.com>
14688 [ fixes bug #79745 ]
14690 * NotifyIcon.cs: lots of cleanup.
14692 * X11Structs.cs: add an enum for XEMBED messages.
14694 * XplatUIX11.cs: reindent one of the giant switch statements, it
14695 was taking up an additional tab stop, and this file is already way
14696 too wide for my laptop's screen.
14698 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
14699 we get it, resize the hwnd to the WMNormalHints max_width/height.
14701 2006-11-13 Jackson Harper <jackson@ximian.com>
14703 * TextBoxBase.cs: Compute the value changes for the mouse wheel
14706 2006-11-13 Chris Toshok <toshok@ximian.com>
14708 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
14709 #79898. force a reference to the Region to stick around so the
14710 unmanaged object isn't collected (rendering our handle in the MSG
14713 2006-11-13 Chris Toshok <toshok@ximian.com>
14715 * XplatUIX11.cs: fix #79917 for window managers which support
14717 using XStoreName on the raw utf8, and we need to convert to
14718 COMPOUND_TEXT if it's non-latin1.
14720 2006-11-13 Chris Toshok <toshok@ximian.com>
14722 * Form.cs (set_DialogResult): we need to set closing to false if
14723 we're setting our result to None. fixes bug #79908.
14725 2006-11-13 Jackson Harper <jackson@ximian.com>
14727 * TextControl.cs: When formatting text, compute the adjusted tag
14728 lengths correctly, using FindTag for the end tag instead of trying
14729 to figure it out outselves.
14730 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
14731 the item, ItemHeight doesn't work, because trees with large
14732 imagelists use those for their height
14733 * TreeView.cs: ActualItemHeight factors in the image height
14734 - compute left edge of checkboxes correctly
14735 - when expanding/collapsing move the bottom down one pixel, so we
14736 aren't moving part of the node
14738 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
14740 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
14741 stack in PaintEventStart so that it won't get disposed by the gc
14742 before reaching PaintEventEnd.
14744 2006-11-13 Jackson Harper <jackson@ximian.com>
14746 * TextBoxBase.cs: Don't select the word if we are on a line with
14748 - We don't need to position the caret on mouse up, since the mouse
14749 move handler should be doing this
14750 - When double clicking a blank line, the caret is advanced to the
14753 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
14755 * TreeNodeCollection.cs: Avoid duplicating indexer code.
14757 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
14759 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
14760 Fixes part of bug #79910.
14762 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
14764 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
14765 (bug #79903). Some minor string updates to match ms.
14767 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
14769 * FileDialog.cs: Don't add an extension if the filename
14770 already ends with that extension.
14772 2006-11-10 Jackson Harper <jackson@ximian.com>
14774 * TreeView.cs: Use the currently highlighted node for the
14775 BeforeSelect event.
14776 * TextBoxBase.cs: There is no need to expand selection on
14778 - CanUndo means 'is there any undo operations', not 'is undo
14779 allowed on this textcontrol. Fixed ClearUndo unit test.
14781 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
14783 * Button.cs: only perform click when button is Selectable (so as
14784 not to activate default buttons when they're disabled)
14786 * Control.cs: Rewrite of the SelectNextControl and related
14787 methods. HandleClick now selects next control if the current one
14790 * Form.cs: OnActivated selects next active control only if Load
14791 has already occurred. If Load hasn't run, there's no point in
14792 selecting here, Load might change the state of controls.
14794 * FocusTest.cs: Tests marked as working again for these fixes
14796 2006-11-10 Chris Toshok <toshok@ximian.com>
14798 * XplatUIX11.cs: a couple of fixes.
14800 - use XInternAtoms with almost all the atoms we need to register,
14801 instead of many, many calls to XInternAtom. should help a bit on
14802 startup time, at the expense of making the code look a little
14805 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
14806 isn't reparented (which seems to be a clue that we're running fon
14807 compiz) and they have an Owner form. This fixes the tool windows
14808 in paint.net when running under compiz.
14810 - when setting the opacity of a window, support both the case
14811 where the window has been reparented and also when it hasn't been.
14812 Since compiz/beryl doesn't seem to reparent windows, and these are
14813 the only window managers which support translucency, I'm not sure
14814 why we need the hwnd.reparented case at all.. but leave it in.
14815 now we get translucent windows in paint.net under compiz/beryl.
14817 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
14819 * FileDialog.cs: Always return the value for FilterIndex that
14820 was set. Internally convert it to values that make sense.
14822 2006-11-10 Everaldo Canuto <everaldo@simios.org>
14824 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
14826 2006-11-10 Everaldo Canuto <everaldo@simios.org>
14828 * Toolbar.cs: Change default value of DropDownArrows to true, the
14829 signature still using false to make it compatible with MS but the
14830 initial value is true. Fixes #79855.
14832 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
14834 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
14835 only available on Linux.
14837 2006-11-09 Everaldo Canuto <everaldo@simios.org>
14839 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
14840 reduce number of calls to redraw method during toolbar creation.
14842 2006-11-09 Mike Kestner <mkestner@novell.com>
14844 * ListView.cs : raise SelectedIndexChanged when an item is selected
14845 programmatically via the Item.Selected property. Gert's nice
14846 ListViewSelectedIndexChanged test fixture now runs clean.
14848 2006-11-09 Mike Kestner <mkestner@novell.com>
14850 * ListView.cs : raise SelectedIndexChanged when a selected item is
14851 removed from the item collection using Remove or RemoveAt.
14853 2006-11-09 Mike Kestner <mkestner@novell.com>
14855 * ListView.cs : raise SelectedIndexChanged once per selected item
14856 for compat with MS. Fixes #79849+.
14858 2006-11-09 Chris Toshok <toshok@ximian.com>
14860 * TabControl.cs: initialize row_count to 0, and set it to 1 when
14861 we need to (if we have any tab pages). Fixes unit test.
14863 2006-11-09 Chris Toshok <toshok@ximian.com>
14865 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
14866 width is 0, not 3. Fixes a unit test.
14868 2006-11-09 Mike Kestner <mkestner@novell.com>
14870 * ListView.cs : use Implicit scrollbars so that focus isn't
14871 stolen from the listview when they are clicked. Fixes #79850.
14873 2006-11-09 Chris Toshok <toshok@ximian.com>
14875 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
14876 have a root item. Fixes #79879.
14878 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
14882 - An ArgumentException is now thrown if a wrong filter
14883 is applied (matches ms). The previous filter doesn't change
14884 anymore if an exception is thrown.
14885 - Changing the FileName property also affects FileNames
14886 * ColorDialog.cs: The length of the CustomColors array is always
14887 16. It doesn't matter if we use a smaller array or null to update
14888 or change the custom colors property.
14889 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
14890 for RootFolder if we get a undefined value.
14892 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
14894 * StatusBarPanel.cs:
14895 - Width is set to MinWidth if Width is smaller than
14896 MinWidth. Fixes #79842.
14897 - MinWidth now always overrides Width (MSDN says MinWidth
14898 is set to Width when AutoSize = None, but they do not
14900 - Style has now the the correct default value.
14902 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
14905 - The control is completely invalidated on
14906 Got/LostFocus to draw the focus rectangle correctly.
14907 - When AutoSize then height is always 45 (width for
14908 vertical controls).
14910 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
14911 on the mouse when moved and it doesn't move when grabbed
14912 until the mouse moves as well. Also fixed some wrong
14913 calculations when clicking on the thumb (control thought
14914 click was outside of thumb and didn't grab it).
14915 Fixes some of the issues in #79718.
14917 2006-11-08 Everaldo Canuto <everaldo@simios.org>
14919 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
14921 2006-11-08 Chris Toshok <toshok@ximian.com>
14923 * PropertyGridView.cs: only call ToggleValue if the item is not
14926 2006-11-08 Jackson Harper <jackson@ximian.com>
14928 * TextBoxBase.cs: The RichTextBox and textbox have very different
14929 word selection methods. Implement the textbox's simple word
14930 selection here, and let the RichTextBox override and provide it's
14932 - Don't do extra selection on mouseup
14933 * RichTextBox.cs: Use the documents word selection algorithm, I
14934 think ideally, this function will be pulled into the
14935 RichTextBox.cs code someday.
14937 2006-11-08 Chris Toshok <toshok@ximian.com>
14939 * RootGridEntry.cs: new class to represent GridItemType.Root.
14941 * CategoryGridEntry.cs: reformat, and add boilerplate.
14943 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
14944 returns the UI parent anyway, and we need special handling to
14945 implement the GetTarget method in the face of it. Also, implement
14948 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
14949 a root grid item, and use that instead of PropertyGrid.grid_items.
14950 Also, make use of TypeConverters (and add limitted support for
14951 ICustomTypeDescriptors) when initially populating the grid.
14952 Arrays now show up more or less properly.
14954 2006-11-08 Chris Toshok <toshok@ximian.com>
14956 * Application.cs: set the modal dialog to non modal after we close
14957 it. Fixes bug #79866.
14959 2006-11-08 Jackson Harper <jackson@ximian.com>
14961 * TextControl.cs: When combining lines carry over the line end
14962 style from the end line.
14963 - Invalidate the selected area when setting it, if it is visible.
14964 * TextBoxBase.cs: Only rich text box can do full line selects.
14965 - Make sure to set the cursor position when there is a click,
14966 otherwise two clicks in separate areas could cause a large chunk
14969 2006-11-07 Everaldo Canuto <everaldo@simios.org>
14971 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
14974 2006-11-07 Everaldo Canuto <everaldo@simios.org>
14976 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
14977 time. Remove tooltips when ToolButton click events. Fixes #79856.
14979 2006-11-07 Everaldo Canuto <everaldo@simios.org>
14981 * MenuAPI.cs: Ignore right click for menu actions and fixes
14982 menu border when clicked. Fixes #79846.
14984 2006-11-07 Everaldo Canuto <everaldo@simios.org>
14986 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
14987 MouseState after create wParam for message, this fixes mouse button
14988 equal none in mouse up events.
14990 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
14992 * Control.cs : Focus() now calls Select to set the Container's
14993 Active Control and to give it focus. To avoid infinite recursion
14994 (because ActiveControl also calls Focus at one point), a check
14995 is made in Focus with the help of a new internal variable
14998 2006-11-07 Mike Kestner <mkestner@novell.com>
15000 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
15001 if there's a selection. Fixes #79849.
15003 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
15005 * PropertyGrid.cs: Avoid fixed height of help description label.
15006 Fixes part of bug #79829.
15008 2006-11-07 Chris Toshok <toshok@ximian.com>
15010 * XplatUIX11.cs: fix #79790 again, by using the
15011 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
15013 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15015 * ToolBar.cs: Fix left click checking.
15017 2006-11-07 Chris Toshok <toshok@ximian.com>
15019 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
15021 2006-11-07 Chris Toshok <toshok@ximian.com>
15023 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
15024 PropertyManager unit tests.
15026 * PropertyManager.cs: make property_name internal.
15028 2006-11-07 Chris Toshok <toshok@ximian.com>
15030 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
15031 pass a unit test. Also, don't set image_index to anything in
15032 response to setting the ImageList property.
15034 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15036 * ToolBar.cs: Ignore click events when mouse button is not a
15037 left button, only accepts other button for dropdown menus.
15040 2006-11-07 Chris Toshok <toshok@ximian.com>
15042 * DataGrid.cs: make the back and parent row buttons a little less
15045 2006-11-07 Jackson Harper <jackson@ximian.com>
15047 * TextBoxBase.cs: When converting to Text don't put line breaks in
15048 for soft line breaks.
15049 * TextControl.cs: There is an initial "fake" line in the document,
15050 this is now a soft break line, so that an extra line feed doesn't
15051 get added to the end of documents.
15053 2006-11-07 Chris Toshok <toshok@ximian.com>
15057 * CurrencyManager.cs: if the list is readonly, don't bother
15058 checking if IBindingList.AllowNew is true.
15060 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
15061 for non-DataRowView datasources.. or rather, make it not crash.
15062 (DataGridPaintRelationRow): make sure we limit the row painting to
15063 the area not covered by the row header, and make our cell width at
15064 least large enough to cover the relation area. This allows grids
15065 that have relations but no rows to render correctly.
15066 (DataGridPaintRowContents): same type of changes here.
15067 (SetDataSource): move back to always calling
15068 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
15069 navigating back through relations.
15070 (HitTest): handle the case where we have no cells but have
15071 relations. Right now we generate a hit in cell 0 of whatever the
15072 row is, not sure if this is strictly correct, but it works for our
15075 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
15076 bother doing anything.
15078 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
15080 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
15081 early version of StatusStrip. Not responsible for eaten
15082 application or firstborn children.
15084 2006-11-06 Chris Toshok <toshok@ximian.com>
15086 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
15087 call GetTabRect with a -1 index. Fixes #79847.
15089 2006-11-06 Jackson Harper <jackson@ximian.com>
15091 * TreeNodeCollection.cs: Update scrollbars after clearing.
15093 2006-11-06 Chris Toshok <toshok@ximian.com>
15095 * NumericUpDown.cs: fix the ToString method for some unit test
15098 2006-11-06 Chris Toshok <toshok@ximian.com>
15101 - set the initial SelectedGridItem if we can.
15103 - Exclude non-mergable properties only if we're merging > 1
15104 object. Merging 1 object isn't really merging, obviously.
15106 - Handle PropertySort.NoSort just like Alphabetical, which is
15107 wrong of course, but at least gets things on the screen.
15109 * PropertyGridView.cs:
15110 - Add method "FindFirstItem" which finds the first property grid
15111 item, so we can select it by default.
15113 - make use of GridEntry.CanResetValue.
15115 - Don't call RedrawBelowItemOnExpansion here anymore, the
15116 individual GridEntry's will do that.
15118 - Remove the ITypeDescriptorContextImpl internal class.
15121 - this class needs to implement ITypeDescriptorContext, as it's
15122 what MS's PropertyDescriptorGridEntry does, which means we can
15123 remove the ITypeDescriptorContextImpl internal class from
15124 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
15126 - keep a reference to our PropertyGridView, and move the call to
15127 RedrawBelowItemOnExpansion here from PGV. This means
15128 programmaticly setting Expanded actually does something visible.
15130 - add a CanResetValue() function which takes into account our
15131 possibly multiple "selected_objects" in the merged case. Shifting
15132 PropertyGridView to use this method fixes another unreported
15133 crasher found running the test for #79829.
15135 - when Top or Bounds is updated, make sure the PropertyGridTextBox
15136 is updated to reflect this.
15138 * CategoryGridEntry.cs: the ctor takes the PGV now.
15140 2006-11-06 Jackson Harper <jackson@ximian.com>
15142 * TextControl.cs: These are 1 based.
15143 * TextBoxBase.cs: When setting the selected text, don't change the
15144 selected text tags, this is done by ReplaceText, just position the
15145 cursor at the end of the new text.
15147 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
15149 * ListView.cs: Allow label edit only when, when LabelEdit is
15152 2006-11-06 Jackson Harper <jackson@ximian.com>
15154 * TextControl.cs: If a suitable wrapping position isn't found,
15155 just wrap right in the middle of a word.
15157 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
15159 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
15162 2006-11-06 Jackson Harper <jackson@ximian.com>
15164 * TreeView.cs: Can't use the VisibleCount property when setting
15165 scrollbar heights, because this doesn't take into account whether
15166 or not the horz scrollbar just came visible.
15168 2006-11-05 Everaldo Canuto <everaldo@simios.org>
15170 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
15171 activated. Fixes #79369, #79832.
15173 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
15175 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
15176 had to remove support for links that point to a directory. FileInfo
15177 returns no usefull information (means, the directory they point to)
15178 for such links. Replaced some empty string ("") with String.Empty.
15180 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
15182 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
15183 NullReferenceException when attempting to remove node that is not in
15184 collection. Throw NullReferenceException when null is passed to
15185 Remove. Allow first element of the collection to be removed. Fixes
15186 bug #79831. In GetEnumerator ().Current return null if positioned
15187 before the first element of the collection. In GetEnumerator ().Reset,
15188 position before first element of the collection.
15190 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
15192 * PropertyGrid.cs: To match MS, remove default title and description
15193 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
15196 2006-11-04 Chris Toshok <toshok@ximian.com>
15198 * Theme.cs: add a Clamp method, just for kicks.
15200 * ThemeWin32Classic.cs: clamp all color components to [0..255].
15202 2006-11-04 Chris Toshok <toshok@ximian.com>
15204 * Form.cs: if the form isn't visible, Close() does nothing.
15206 2006-11-03 Chris Toshok <toshok@ximian.com>
15208 * Form.cs (Close): if the form is modal, don't Dispose of it, only
15210 (WndProc): don't Dispose after handling the WM_CLOSE message.
15212 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
15213 them as such, instead of using casts from Control to Form. Also,
15214 don't Dispose of the modal dialog when we fall out of the loop -
15215 Close() it instead.
15219 2006-11-03 Chris Toshok <toshok@ximian.com>
15221 * Control.cs (Dispose): only go through the dispose thing if we're
15222 @disposing, and we haven't already been disposed. Fixes bug
15225 * Form.cs: no reason to call "base.Dispose()" here instead of
15228 2006-11-03 Mike Kestner <mkestner@novell.com>
15230 * ComboBox.cs : use ToString instead of casts in AddItem for
15231 sorting functionality. Fixes #79812.
15233 2006-11-03 Chris Toshok <toshok@ximian.com>
15235 * Application.cs: pave the way for actually using the thread
15236 exception dialog. it's ifdefed out at the moment.
15238 2006-11-03 Chris Toshok <toshok@ximian.com>
15240 * ThreadExceptionDialog.cs: until we get a better layout, actually
15241 hide the details textbox and label when we shouldn't see them.
15243 2006-11-03 Jackson Harper <jackson@ximian.com>
15245 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
15246 multiline textboxes anymore. This method also determines the
15247 width/height of a textboxes canvas area.
15248 - Sorta a revert of the last patch. For multiline just position
15249 the controls, then bail. This way the scrollbar width won't be
15252 2006-11-03 Everaldo Canuto <everaldo@simios.org>
15254 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
15255 it dont need. Fixes #79537.
15257 2006-11-02 Jackson Harper <jackson@ximian.com>
15259 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
15260 send the status after firing the DndOver event.
15262 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15264 * TrackBar.cs: Now orientation only switches height / width if
15265 the control's handle is created (Win32 does it like this). Also
15266 fixed a typo in ToString() for a test to pass, changed the
15267 exception thrown in set_LargeChange and set_SmallChange to
15268 match Win32 behaviour, and added TrackBar tests to the unit
15271 2006-11-02 Chris Toshok <toshok@ximian.com>
15273 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
15274 not _NET_WM_STATE_NO_TASKBAR.
15276 2006-11-02 Jackson Harper <jackson@ximian.com>
15278 * TextControl.cs: Increment count by one, since in the update view
15281 2006-11-02 Jackson Harper <jackson@ximian.com>
15283 * TextBoxBase.cs: Use client rectangle not bounds for checking if
15284 the mouse is in the client rectangle (duh).
15286 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15288 * TrackBar.cs: Fixed trackbar jumping around when clicking
15289 on it - the trackbar was not detecting correctly at which
15290 side of the thumb the click was done. (fixes #79718)
15292 2006-11-02 Everaldo Canuto <everaldo@simios.org>
15294 * ListBox.cs: scroll visible area when change SelectedIndex to
15295 a non visible area. Fixes #79481.
15297 2006-11-01 Jackson Harper <jackson@ximian.com>
15299 * TextControl.cs: When replacing the selection move the selection
15300 start/end/anchor to the end of the new text.
15302 2006-11-01 Jackson Harper <jackson@ximian.com>
15304 * XplatUIWin32.cs: When setting the parent change the controls
15305 visibility to it's visibility flag, not to it's old parents
15306 visibility (.Visible walks the parent chain).
15308 2006-11-01 Chris Toshok <toshok@ximian.com>
15310 * XplatUIX11.cs: revert the #79790 fix, as the simple.
15311 XSetTransientForHint fix breaks paint .net's tool windows. more
15312 work needed for that one.
15314 2006-11-01 Chris Toshok <toshok@ximian.com>
15316 * ScrollBar.cs: throw ArgumentException instead of Exception in
15317 LargeChange/SmallChange setters. fixes unit tests.
15319 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
15321 * ContainerControl.cs: reverted rev.67183 (which was itself
15322 a reversion of rev.66853... eh).
15324 * Control.cs: Fixes Reflector hang by changing Focus() call
15325 to what it was before rev.66643 (calling Select() here sets
15326 ActiveControl, which in some situations calls back Focus and
15327 eventually does a stack overflow). Temp fix.
15328 Changes to GetNextControl() to not look for children to select when
15329 parent cannot be selectable (so it looks for siblings instead)
15331 2006-10-31 Mike Kestner <mkestner@novell.com>
15333 * CheckedListBox.cs : off by one error in returned index from
15334 ObjectCollection.Add. Fixes #79758.
15336 2006-10-31 Chris Toshok <toshok@ximian.com>
15338 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
15339 calls for the textbox/spinner, to keep from recursing to the point
15340 where we crash. Fixes #79760.
15342 2006-10-31 Chris Toshok <toshok@ximian.com>
15344 * ListControl.cs (set_SelectedValue): don't throw exceptions on
15345 null/"" value, just return. matches ms's behavior and fixes some
15348 2006-10-31 Chris Toshok <toshok@ximian.com>
15350 * Control.cs (set_Capture): make a logic a little easier to
15353 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
15354 if it's being destroyed. A necessary fix surely, but a bandaid
15355 also, to fix the stuck capture problem in bug #78413.
15357 2006-10-31 Chris Toshok <toshok@ximian.com>
15359 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
15360 convention of clearing hwnd.ClientRect when we set the
15361 width/height (so it'll be recalculated by Hwnd).
15363 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
15365 * ContainerControl.cs: reversed Contains check from
15366 ActiveControl due to hanging problems. This fix
15367 partly regresses #79667 (button does not have
15368 initial focus), so this might be a symptom for
15369 a larger parenting problem (set_ActiveControl
15370 is being called but the child control does
15371 not have the parent set yet?)
15373 2006-10-31 Mike Kestner <mkestner@novell.com>
15375 * MenuAPI.cs : fix keynav when menu is click activated.
15377 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
15379 * ToolStrip*: Version 0.2.
15381 * MenuStrip.cs: Version 0.1.
15383 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
15385 2006-10-30 Chris Toshok <toshok@ximian.com>
15387 [ fixes the oversized notify icon issue in bug #79745 ]
15389 * NotifyIcon.cs: scale the icon down to the size we're given by
15390 the XplatUI layer (this would be faster if we did it once instead
15391 of whenever we paint..) Also, remove the WM_NCPAINT handling,
15392 since it's never invoked.
15394 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
15395 pixels high by default, so let's hardcode our systray icon to that
15396 size. The SYSTEM_TRAY protocol should really have a way for
15397 client apps to query for the correct icon size.. but oh well. A
15398 couple of patches to deal with the screwy client_window ==
15399 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
15400 instance, and also make sure we don't XSelectInput twice).
15402 2006-10-30 Chris Toshok <toshok@ximian.com>
15404 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
15405 recreating forms. Control recreation is the bane of my existence.
15406 Fix it in a way that keeps everyone happy.
15408 2006-10-30 Chris Toshok <toshok@ximian.com>
15410 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
15411 just non-CHILD ones. otherwise sometimes scrollbars end up with
15412 client_windows not being resized to the proper size (ReportBuilder
15413 shows this extremely well).
15415 2006-10-30 Chris Toshok <toshok@ximian.com>
15417 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
15418 for non-WS_EX_APPWINDOW windows. This is what keeps them from
15419 showing up in the gnome taskbar. Fixes bug #79790.
15421 2006-10-30 Chris Toshok <toshok@ximian.com>
15423 * ApplicationContext.cs: guard against a NRE.
15425 * Application.cs: null out the old MainForm for the context, so we
15426 don't try to use it again once it's disposed. Fixes bug #79783.
15428 2006-10-30 Chris Toshok <toshok@ximian.com>
15430 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
15431 BindingContext, set the data source directly, otherwise do the
15432 lazy approach - the actual ListManager will be created when we get
15433 a BindingContext. Fixes bug #79700.
15435 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
15437 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
15438 XplatUIX11.cs: Remove old 2 parameter SetVisible.
15440 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
15442 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
15444 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
15445 of SetVisible that allows a window to be shown, but not activated.
15446 This is needed on Windows for MenuStrip, and can probably be used
15447 with MainMenu and ComboBox to fix the focus stealing issues on
15450 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
15452 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
15454 * PictureBox.cs: Fix the output of the ToString method.
15456 2006-10-29 Chris Toshok <toshok@ximian.com>
15458 * Control.cs (get_TopLevelControl): fix bug #79781.
15460 2006-10-29 Chris Toshok <toshok@ximian.com>
15462 * ListControl.cs (set_DataSource): throw Exception here, not
15463 ArgumentException, to match MS behavior.
15465 2006-10-29 Chris Toshok <toshok@ximian.com>
15467 * Form.cs: remove the try-catch's around calls to GetWindowState.
15468 We can just check the return value.
15470 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
15473 * XplatUI.cs: Add note about additional return value for
15476 2006-10-29 Chris Toshok <toshok@ximian.com>
15478 * Control.cs (CreateHandle): when we create our handle, we also
15479 create the handles of our child controls. Fixes one of the
15480 Control unit tests (CH11).
15482 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
15484 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
15486 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
15488 * ThemeClearlooks.cs: A little speedup.
15490 2006-10-27 Chris Toshok <toshok@ximian.com>
15492 * Control.cs: implement Control.FromChildHandle in a way that
15493 matches the docs (and fixes the failed test.)
15495 2006-10-27 Chris Toshok <toshok@ximian.com>
15497 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
15500 * DataGrid.cs: implement ResetForeColor such that the tests
15503 2006-10-27 Chris Toshok <toshok@ximian.com>
15505 * ToolBarButton.cs: setting text/tooltiptext to null results in it
15506 being set to "". Fixes bug #79759.
15508 2006-10-27 Jackson Harper <jackson@ximian.com>
15510 * TextControl.cs: We need to clear the entire selection area when
15511 setting the start, otherwise multiline selections are still
15514 2006-10-26 Chris Toshok <toshok@ximian.com>
15516 * PropertyGridView.cs:
15518 - ifdef all the code specific to the double
15519 buffer case, and provide some alternatives in the non-doublebuffer
15520 code, which makes heavy use of XplatUI.ScrollWindow to move things
15521 around without having to invalidate (and cause flicker). There
15522 are still some drawing problems in the non-doublebuffered case, so
15523 DOUBLEBUFFER is defined by default.
15525 - Fix the way dropdowns are handled. now we explicitly watch for
15526 the events which might cause the dropdown to close, and break out
15527 of the nested event loop there. This gets rid of all Capture
15528 code, at the expense of the Msg special casing. Seems to work,
15529 though, and fixes bug #79743.
15531 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
15532 * Control.cs: SetIsRecreating now recreates implicitly added
15533 child controls as well. Finally fixes #79629. The flag passed to
15534 SetIsRecreating has also been removed since it wasn't used.
15536 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15538 * PageSetupDialog.cs: Clean some code, fix some bits,
15539 add some checks, and add a printer sub-dialog.
15541 2006-10-26 Chris Toshok <toshok@ximian.com>
15543 * PropertyGrid.cs: make set_SelectedObject call
15544 set_SelectedObjects, and move the duplicate logic to the
15545 SelectedObjects setter. Also, raise SelectedObjectsChanged.
15547 * PropertyGridView.cs: hide the textbox when we get a
15548 SelectedObjectsChanged event.
15552 2006-10-26 Chris Toshok <toshok@ximian.com>
15554 * PropertyGridView.cs: deal with the type converter not supporting
15555 GetStandardValues() or GetStandardValues() returning null, which
15556 is does in the default case. Fixes #79742.
15558 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
15560 * CheckedListBox.cs: nunit no longer crashes when selecting
15561 Project/Edit menu option
15563 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
15565 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
15566 is no menu selected. fixes #79739
15568 2006-10-25 Chris Toshok <toshok@ximian.com>
15570 * PropertyGridView.cs: factor out the splitter invalidation code
15571 into the SplitterPercent setter, and for kicks implement the
15572 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
15573 amount in either direction.
15575 2006-10-25 Chris Toshok <toshok@ximian.com>
15577 * PropertyGridView.cs: do some cleanup of the brush used to draw
15578 text - read only fields should be grayed out. not sure how to do
15579 this with the textbox, though. but the textbox's should also be
15580 readonly now at least. Also, hide/show the textbox when resizing
15583 * CursorConverter.cs: use System.Reflection when getting the
15584 properties of Cursors, as TypeDescriptor.GetProperties isn't
15585 returning static properties.
15587 2006-10-25 Chris Toshok <toshok@ximian.com>
15589 * PropertyGridView.cs: factor out the up/down handling, and reuse
15590 it for page up/down. also add End/Home support.
15592 2006-10-25 Chris Toshok <toshok@ximian.com>
15594 * PropertyGridView.cs:
15596 - ensure the selected grid item is visible in the scrolled area,
15599 - fix Keys.Down handling when you're on the last item in the
15602 2006-10-25 Mike Kestner <mkestner@novell.com>
15604 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
15605 clicks too. Fixes #79725.
15607 2006-10-24 Chris Toshok <toshok@ximian.com>
15609 * PropertyGrid.cs: use property.Converter instead of
15610 TypeDescriptor.GetConverter(property.PropertyType), so we catch
15611 TypeConverters declared on the property as well as on the
15612 PropertyType. Fixes bug #79678.
15614 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
15616 * MimeIcon.cs, Mime.cs:
15617 Fallback to the default platform handler if no shared mime info
15618 stuff exists (fixes #79693).
15620 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
15621 * ContainerControl.cs: Incorrect contains check in ActiveControl
15622 from previous fix (duh).
15624 2006-10-20 Chris Toshok <toshok@ximian.com>
15626 * PropertyGridView.cs: the dropdown should be MIN(number of items
15627 in list, 15). Fixes #79551.
15629 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
15630 Fixes #79384, #79394, #79652, #79667
15633 - Modal windows are now destroyed in the proper order for windows
15635 * ContainerControl.cs:
15637 - ActiveControl setter has more conditions on when to return:
15638 - if we're reselecting the active control, but it actually
15639 didn't have focus (window hidden or some such), it runs
15640 - if the active control being selected doesn't actually
15641 exist in the container, it returns
15645 - The ShowDialog now gets the current form as the owner when
15646 invoking without parameters, and correctly activates the owner
15651 - MessageBox now catches the Escape key to exit
15653 2006-10-20 Chris Toshok <toshok@ximian.com>
15655 * PropertyGridView.cs: fix a number of issues (bug #78565, and
15656 most of bug #79676):
15658 - you can navigate around the property grid with the arrow keys.
15660 - the dropdown is sized properly when the pg has a vertical
15663 - fix the indentation for subentries, and properly select the
15666 - fix the gray bar's drawing (only draw it to the last element,
15667 not for the height of the control. Also make sure we draw that
15668 last horizontal grid line.
15670 - use the same mechanism the datagrid uses wrt the editing textbox
15671 when scrolling/resizing/etc. Namely, we hide it first, do the
15672 operation, then show it again (if it's still visible).
15674 - aggressively remove a lot of unnecessary refreshes (and also
15675 calls to Invalidate(). call more limited variants, and only redraw
15680 - when we're populating the merged collection, fill in the UI
15681 parent with either the passed in item, or the category item we
15684 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
15686 * GridItem.cs: drop some fully qualified names.
15688 * GridEntry.cs: add a "UIParent", which is basically the parent
15691 * GridItemCollection.cs: add an IndexOf method.
15693 2006-10-20 Mike Kestner <mkestner@novell.com>
15695 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
15696 a working win32 NC invalidation mechanism, we can't invalidate
15697 menus. [Fixes #79705]
15699 2006-10-20 Mike Kestner <mkestner@novell.com>
15701 * ListBox.cs : don't update the VScrollbar if the list is empty,
15702 just hide it. [Fixes #79692]
15704 2006-10-20 Jackson Harper <jackson@ximian.com>
15706 * RichTextBox.cs: Handle some special chars better, and don't skip
15707 the entire group when we encounter a special char that we don't
15710 2006-10-18 Chris Toshok <toshok@ximian.com>
15712 * PropertyGridView.cs: address a number of issues from bug #79676,
15713 mostly of the cosmetic variety.
15715 - The highlight rectangle for indented items not extends all the
15718 - Indented items aren't indented so much.
15720 - the dropdown is properly sized width-wise if the pg has a
15721 vertical scrollbar.
15723 2006-10-18 Chris Toshok <toshok@ximian.com>
15725 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
15726 systray stuff is rather convoluted to begin with.
15728 systray icons are a single window for some reason (that I haven't
15729 figured out yet), and for them, client_window == whole_window.
15730 Given the way the tests are structured elsewhere to determine
15731 which paints are pending (client vs. nc), that situation will
15732 always yield PAINT, not NCPAINT. So, if we have a pending
15733 nc_expose and no pending expose, remove the hwnd from the paint
15734 queue, and also set nc_expose_pending to false, to keep us from
15735 blocking further expose's adding the hwnd to the paint queue.
15737 phew. like i said, a rather convoluted change. Fixes the
15738 notifyicon repaint issues in bug #79645.
15740 2006-10-18 Chris Toshok <toshok@ximian.com>
15742 * Form.cs: when getting the backcolor of the form, don't get
15743 base.BackColor, as this allows parents to influence the background
15744 color. This breaks mdi forms. Instead, if the background_color
15745 is empty, return the default.
15747 2006-10-18 Chris Toshok <toshok@ximian.com>
15749 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
15750 to being private instead of internal static.
15752 * Control.cs: remove all the stupid ParentWaitingOnRecreation
15753 crap, it wasn't working for more deeply nested controls anyway,
15754 and we already have the is_recreating flag - use that instead.
15755 Before calling DestroyHandle in RecreateHandle, recurse through
15756 the control tree setting it to true. this returns the recreate
15757 code to much of its original simplicity, while now guaranteeing we
15758 actually recreate everything we're supposed to. This change gets
15759 fyireporting actually showing mdi children.
15761 2006-10-17 Chris Toshok <toshok@ximian.com>
15763 * Form.cs: remove some debug spew, and collapse some duplicate
15764 code at the end of SetClientSizeCore.
15767 - add some more debug spew here too wrt Destroy handling.
15768 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
15769 in Control's handling of WM_DESTROY.
15770 - Remove the handling of zombie window DestroyNotifies from the
15771 event loop - we don't need it. Now the only DestroyNotifies we
15772 actually handle are ones generated by X.
15773 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
15774 match gtk's (functioning) handling of this. This keep metacity
15775 from leaving droppings in the form of wm borders with no window
15776 contents all over the place.
15779 - add a bunch of debug spew wrt control recreation.
15780 - fix a bug where we weren't tracking Visible properly on
15782 - fixed the WM_PAINT double buffer handling to support re-entrant
15783 calls (yes, i know it's gross, but it's happening to us).
15785 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
15786 * ThemeWin32Classic.cs: changed drawing of selected days
15787 to make them look better.
15789 2006-10-16 Chris Toshok <toshok@ximian.com>
15791 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
15792 drawing_stack. Nuke the ClientDC/NonClientDC properties.
15794 * XplatUIX11.cs: move away from using hwnd.client_dc and
15795 hwnd.non_client_dc and on to a stack of dc's (and in window's
15796 case, PAINTSTRUCT's), so we can deal with nested Paint calls
15797 without puking or not disposing of Graphics objects.
15799 * XplatUIOSX.cs: same.
15801 * XplatUIWin32.cs: same.
15803 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
15805 * FileDialog.cs: Don't call on_directory_changed inside
15806 OnSelectedIndexChanged (it changes the SelectedIndex too).
15807 Instead move it to OnSelectionChangeCommitted.
15809 2006-10-13 Chris Toshok <toshok@ximian.com>
15811 * XplatUIX11.cs: more Destroy work. the current code does the
15812 following things, in order:
15814 1. Enumerates all handles of all controls at or below the one
15815 being destroyed, in pre-order. As it is doing this, it marks the
15816 handles as zombie and clears all references to them.
15818 2. calls XDestroyWindow on the window passed in.
15820 3. SendMessage's WM_DESTROY to all he handles in the accumulated
15823 2006-10-13 Chris Toshok <toshok@ximian.com>
15825 * XplatUIX11.cs: set hwnd.zombie to true before calling
15826 SendMessage (WM_DESTROY). this keeps us from marking the new
15827 window a zombie, and also keeps us from calling sendmessage at
15830 2006-10-13 Jackson Harper <jackson@ximian.com>
15832 * TextControl.cs: Do not show the caret and selection at the same
15833 time. Reduces ugliness by 35%.
15835 2006-10-13 Chris Toshok <toshok@ximian.com>
15837 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
15838 zombie after we do the recursive call, so we actually do call
15839 SendMessage on the children controls.
15840 (GetMessage): if we find a pending paint event for a zombie hwnd,
15841 remove the hwnd from the paint queue, or else it will always be
15842 there (and we'll effectively loop infinitely)
15844 2006-10-13 Mike Kestner <mkestner@novell.com>
15846 * MenuItem.cs : add Selected format under keynav too.
15849 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
15851 * PropertyGrid.cs: Fixed some NRE's and small difference between our
15852 implementation and that of MS.
15854 2006-10-13 Chris Toshok <toshok@ximian.com>
15856 * Control.cs (OnInvalidated) only futz with the invalid_region if
15857 the control is double buffered. this fixes the apparent hang in
15858 the ListView unit tests. Someone needs to make the
15859 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
15861 2006-10-13 Chris Toshok <toshok@ximian.com>
15863 * PropertyGridView.cs:
15865 - do a little refactoring so that only one place calls
15866 dropdown_form.Hide, and that is CloseDropDown. make everywhere
15867 else call that. Also make it Refresh, since there are redraw bugs
15868 otherwise (we should take a look at that...)
15870 - do a little more refactoring work to share the body of code
15871 involved with the drop down. it was duplicated in the code
15872 dealing with the listbox handling and in the code dealing with the
15875 - add a Capture to the dropdown form's control once it's
15876 displayed, and add a MouseDown handler that checks to make sure
15877 the position is inside the control. If it's not, close the
15878 dropdown. This fixes #78190.
15880 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
15881 if the value is different than the initial value.
15883 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
15885 * Control.cs: see #78650
15886 - Fixed GetNextControl for several cases:
15887 - Changed FindFlatForward to return
15888 correct sibling control when more than one
15889 control has same TabIndex as the currently
15891 - Changed FindFlatBackward to loop children
15892 from last to first and apply same logic as in
15894 - Changed FindControlForward to search for
15895 children when control is not a container
15896 but has children, or search for siblings if
15897 control is a container...
15898 - Changed FindControlBackward to continue
15899 searching for child controls when hitting
15902 - Fixed Focus method to update ActiveControl
15903 (FocusTest.FocusSetsActive failure)
15906 - Focus rectangle now refreshes when gaining
15908 - Removed grab for Tab key on IsInputKey that
15909 was keeping tab navigation from working (#78650)
15911 2006-10-13 Chris Toshok <toshok@ximian.com>
15913 * PropertyGridView.cs:
15914 - Rewrite SetPropertyValue to loop over SelectedGridItem's
15917 - Deal with GridItem.Value == null a few places.
15920 - replace the PopulateGridItemCollection with a pair of methods
15921 which compute the intersection of all the properties in the
15922 SelectedObjects array. Fixes #79615.
15924 - Throw ArgumentException from set_SelectedObjects if there's a
15927 - Add GetTarget method which can be used to traverse up the
15928 GridItem.Parent chain. It depends on the assumption that
15929 selected_objects for different GridEntries are always in the same
15930 order (a safe assumption). Use this method and loop over all the
15931 selected objects in the entry when calling RemoveValueChanged and
15934 * GridEntry.cs: Make this handle multiple selected objects.
15935 .Value returns null if not all the selected objects share the same
15938 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
15939 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
15940 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
15941 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
15942 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
15943 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
15944 add additional functionality.
15946 2006-10-12 Mike Kestner <mkestner@novell.com>
15948 * ErrorProvider.cs : new ToolTipWindow ctor sig.
15949 * HelpProvider.cs : new ToolTipWindow ctor sig.
15950 * ToolTip.cs : remove ToolTip param from Window sig since it is
15952 * ToolBar.cs : add tooltip support. Fixes #79565.
15954 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
15956 * ComboBox.cs: move the events in set_SelectedIndex to
15957 after the call to HighlightIndex in order to avoid
15958 possible recursion and subsequent problems with the call
15959 to HighlightIndex and include a range check in
15960 set_HighlightIndex. Fixes #79588
15962 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
15964 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
15965 to ui thread's settings instead of sunday.
15966 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
15968 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
15970 * DateTimePicker.cs
15972 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
15973 and implement missing functionality (selecting different parts
15974 of the date and edit them individually with the keyboard).
15976 2006-10-11 Chris Toshok <toshok@ximian.com>
15978 * Control.cs (OnInvalidated): fix NRE relating to last change.
15980 2006-10-11 Chris Toshok <toshok@ximian.com>
15982 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
15983 atoms in _NET_WM_STATE here if the window is maximized. We need
15984 to do this because we're *replacing* the existing _NET_WM_STATE
15985 property, so those atoms will be lost otherwise, and any further
15986 call to GetWindowState will return Normal for a window which is
15987 actually maximized. Fixes #79338.
15989 2006-10-11 Jackson Harper <jackson@ximian.com>
15991 * TextControl.cs: Special case for setting selection end to
15992 selection start, we basically kill the anchor.
15993 - some todo comments.
15995 2006-10-11 Chris Toshok <toshok@ximian.com>
15997 * Control.cs: switch to using an "invalid_region" to track which
15998 parts of the image buffer need updating. This is more code than
15999 the simple fix from r66532. That version just attempted to always
16000 fill the entire buffer on redraw, which turns out to be
16001 inefficient when invalidating small rectangles. This version
16002 simply adds the invalid rectangle to the invalid region. When we
16003 get any WM_PAINT message we see if it can be filled using the
16004 image buffer, and if it can't (if the paint event's clip rectangle
16005 is visible in the invalid region) we first fill the image buffer.
16006 So, the image buffer is still a cache, we just fill it lazily.
16008 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
16009 need it any longer.
16011 2006-10-11 Chris Toshok <toshok@ximian.com>
16013 * XplatUIX11.cs (SetWindowPos): we need to update both position as
16014 well as size after calling XMoveResizeWindow. This keeps us from
16015 ignoring future SetWindowPos calls. Fixes the disappearing
16016 DateTimePicker in the ToolBarDockExample from bug #72499.
16018 2006-10-11 Chris Toshok <toshok@ximian.com>
16020 * TextBoxBase.cs: reorder things a bit when it comes to
16021 resizing-causing-recalculation. we were recalculating the
16022 document when our position was changed, which shouldn't happen.
16023 We only care about size changes. Clear up some more redundant
16024 recalculation calls while I'm at it. This makes the toolbar dock
16025 example snappy when you're just dragging toolbars around (since it
16026 causes a relayout whenever you move one.)
16028 2006-10-11 Chris Toshok <toshok@ximian.com>
16030 * ToolBarButton.cs (get_Rectangle): this only returns
16031 Rectangle.Empty if Visible == false, or Parent == null.
16032 Parent.Visible doesn't matter.
16034 2006-10-10 Chris Toshok <toshok@ximian.com>
16036 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
16037 by .net 1.1, so switch to an internal method instead.
16039 2006-10-10 Chris Toshok <toshok@ximian.com>
16041 * Control.cs (WM_PAINT): when a control is double buffered we draw
16042 initially to the ImageBuffer and then copy from there. But when a
16043 parent control which has child controls is double buffered, the
16044 initial drawing doesn't encompass the entire ClientRectangle of
16045 the parent control, so we end up with uninitialized bits (this is
16046 easily seen by dragging the top toolbar in
16047 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
16048 manually set the ClipRectangle of the paint_event (only the one we
16049 use to populate the ImageBuffer) to ClientRectangle. Fixes more
16050 of the nastiness in bug #72499.
16052 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
16053 which we use in Control.cs's WM_PAINT handling.
16055 2006-10-10 Jackson Harper <jackson@ximian.com>
16057 * TextBoxBase.cs: Finish off the autoscrolling stuff.
16059 2006-10-10 Chris Toshok <toshok@ximian.com>
16061 * Cursor.cs: Apply a slightly different patch to the one suggested
16064 2006-10-10 Jackson Harper <jackson@ximian.com>
16066 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
16067 not the parent form.
16068 * TextControl.cs: use difference in old line count vs new count to
16069 calculate how many lines were added, this takes into account soft
16070 line breaks properly.
16072 2006-10-10 Chris Toshok <toshok@ximian.com>
16074 * LinkLabel.cs: don't call MeasureCharacterRanges against a
16075 rectangle located at 0,0 and the size of the text. Use
16076 ClientRectangle instead. This fixes rendering of non-left aligned
16079 2006-10-10 Jackson Harper <jackson@ximian.com>
16081 * TextBoxBase.cs: When we set the selection start position the
16083 * TextControl.cs: Need to update the caret when we decrement it to
16085 - Make sure that the selection_visible flag gets reset to false if
16086 the selection isn't visible. Before this you could get it set to
16087 visible by changing the selection start, then changing the end to
16090 2006-10-09 Jackson Harper <jackson@ximian.com>
16092 * TreeView.cs: Don't update scrollbars when we aren't visible.
16093 * TreeNodeCollection.cs: Only need to update scrollbars if being
16094 added to an expanded visible node or the root node.
16096 2006-10-09 Chris Toshok <toshok@ximian.com>
16098 * XplatUIX11.cs (SendMessage): fix NRE.
16100 2006-10-09 Jackson Harper <jackson@ximian.com>
16102 * TextBoxBase.cs: Implement horizontal autoscrolling.
16103 * TextControl.cs: Add a movement types that allows moving forward
16104 and backwards without wrapping.
16106 2006-10-09 Mike Kestner <mkestner@novell.com>
16108 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
16109 with focus "expansion" of labels. Fixes #79532 and then some.
16110 * ThemeWin32Classic.cs : add LineLimit to ListView label format
16113 2006-10-09 Jackson Harper <jackson@ximian.com>
16115 * TextBoxBase.cs: Set the default max values to MaxValue since
16116 we use the scrollbar for autoscrolling and the default value is
16117 100. If we don't do this the caret won't keep up with typing
16118 after about 18 characters.
16119 * TextControl.cs: Make sure the selection is offset by the
16120 viewport x. This fixes selection when using auto scrolling.
16122 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
16124 * Form.cs: The active control should be selected after the
16125 OnLoad so that any child control initialization that affects
16126 the selection is done. Fixes #79406
16128 2006-10-06 Chris Toshok <toshok@ximian.com>
16130 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
16131 to have no evil effects.
16133 - Stop selecting StructureNotifyMask on non-toplevel windows.
16135 The only way children should be resized is by using the SWF api,
16136 and we already send WM_WINDOWPOSCHANGED messages in those cases.
16137 Toplevel windows can be interacted with via the window manager,
16138 and so we keep the input mask there.
16140 The other event StructureNotifyMask gives us (that we care
16141 about) is DestroyNotify. The code is already structured such
16142 that it assumes we won't be getting a DestroyNotify event for
16143 the window we pass to XDestroyWindow (which is what
16144 StructureNotifyMask is supposed to guarantee.) So, that code
16145 shouldn't be affected by this either.
16147 - Stop selecting VisibilityChangeMask altogether.
16149 We weren't doing anything with the resulting events anyway.
16151 This vastly reduces the number of X requests and events we see
16152 when resizing/laying out a large ui.
16154 2006-10-06 Chris Toshok <toshok@ximian.com>
16156 * ScrollableControl.cs (DisplayRectangle): we need to take into
16157 account the DockPadding regardless of whether or not auto_scroll
16158 == true. rework this slightly to this effect, and fix bug #79606,
16159 and part of #72499 (you can now see the drag handles and drag
16162 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
16164 * ListViewItem.cs: Collections of selected and checked items are now
16165 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
16166 we mark the collection "dirty".
16167 * ListView.cs: Marked collections readonly. Modified UpdateSelection
16168 to only clear SelectedItems when a new item is selected and MultiSelect
16169 is enabled. CheckedItems and SelectedItems now subscribe to Changed
16170 event of ListViewItemCollection, and mark its list dirty whenever
16171 that event is fire. This allows us to return selected/checked items
16172 in the same order as they are in the Items collection. This matches
16175 2006-10-06 Chris Toshok <toshok@ximian.com>
16177 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
16178 right mouse clicks. Fixes bug #79593.
16180 2006-10-06 Chris Toshok <toshok@ximian.com>
16182 * Splitter.cs: doh, fix splitters that don't want to cancel the
16183 movement when you drag them. Also, impose the limits on the
16184 values we send to the SplitterMovingEvent. Fixes #79598.
16186 2006-10-06 Jackson Harper <jackson@ximian.com>
16188 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
16189 since we use this for auto scrolling also.
16191 2006-10-05 Chris Toshok <toshok@ximian.com>
16193 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
16194 beginning to think that most datagrid column types don't need this
16195 method. Fixes bug #79392.
16197 2006-10-05 Chris Toshok <toshok@ximian.com>
16199 * DataGrid.cs: move back to a more lazy scheme for creating the
16200 CurrencyManager, so we aren't updating it every time you set
16201 either DataSource or DataMember. Also, don't call
16202 RecreateDataGridRows if the currency manager hasn't changed.
16204 2006-10-05 Chris Toshok <toshok@ximian.com>
16206 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
16207 emitted, SelectedIndex should already be updated. Fixes bug
16210 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
16212 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
16213 ToolStripTextBox.cs: Initial commit.
16214 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
16216 2006-10-05 Jackson Harper <jackson@ximian.com>
16218 * TabControl.cs: We need to invalidate the tab control area when
16219 new ones are added (duh).
16221 2006-10-03 Chris Toshok <toshok@ximian.com>
16223 * Form.cs (ProcessDialogKey): if the focused control is in this
16224 form and is a button, call its PerformClick method here. Fixes
16227 2006-10-04 Jackson Harper <jackson@ximian.com>
16229 * TabPage.cs: Ignore setting of Visible, and add an internal
16230 method for setting the controls visibility. TabPage's Visible
16231 property is a little strange on MS, this seems to make us
16232 compatible, and fixes cases where people set all the tab pages to
16234 * TabControl.cs: Use the new internal setting on tab pages
16237 2006-10-03 Mike Kestner <mkestner@novell.com>
16239 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
16241 2006-10-03 Mike Kestner <mkestner@novell.com>
16243 * ListView.cs : use is_visible instead of Visible to check if
16244 scrollbars should be placed/sized. Also some max_wrap_width
16245 love for LargeIcon view. [Fixes #79533]
16247 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
16250 Make set_TextAlign() do actually update the align. Fixed #78403.
16252 2006-10-03 Chris Toshok <toshok@ximian.com>
16254 * DataGrid.cs: fix a crash when switching datasources if the
16255 vertical scrollbar is at someplace other than Value = 0. Also,
16256 reduce the number of recalculation passes we do in SetDataSource
16259 2006-10-03 Jackson Harper <jackson@ximian.com>
16261 * TextBoxBase.cs: Move the if value the same bail check up, we
16262 don't want to empty the document if it is already empty, this
16263 seems to severly mess up the caret. TODO: I should probably fix
16264 the empty statement to update teh caret somehow.
16266 2006-10-03 Chris Toshok <toshok@ximian.com>
16268 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
16269 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
16270 reflection, an internal row type, properties on said type, etc.)
16271 will work with our datagrid. Fixes #79531.
16273 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
16275 * FileDialog.cs: Don't crash if a path is not accessible
16276 (System.UnauthorizedAccessException). Fixes #79569.
16277 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
16278 a ':' too. Return unknown icon for those paths/files.
16280 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
16282 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
16283 GetContainerControl returns null.
16285 2006-10-02 Chris Toshok <toshok@ximian.com>
16287 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
16288 call to XGetWindowAttributes instead of "handle". fixes an X
16289 error using notifyicon after the NotifyIconWindow to Form base
16292 2006-10-02 Chris Toshok <toshok@ximian.com>
16294 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
16295 server grab and looping we need to do to get down to the most
16296 deeply nested child window.
16297 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
16298 QueryPointer again after the WarpPointer so we can generate a
16299 proper (fake) MotionNotify event to be enqueued in the destination
16301 (GetCursorPos): call QueryPointer.
16305 2006-10-02 Jackson Harper <jackson@ximian.com>
16307 * NotifyIcon.cs: Derive the notify icon from a form, so things
16308 like FindForm work on it.
16309 - Swallow the WM_CONTEXTMENU message, since that is generated on
16310 mouse down, and context menu is a mouse up kinda guy. I believe
16311 the correct fix here is probably to make the notify icon entirely
16312 NC area, but this seems to work fine for anyone not manipulating
16315 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
16317 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
16318 ToolStripItemCollection.cs, ToolStripLabel.cs,
16319 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
16320 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
16321 Initial implementation.
16322 * TextRenderer.cs: Provide padding to MeasureText.
16324 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
16326 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
16327 of ButtonBaseAccessibleObject. Fix bug #79552.
16329 2006-10-02 Jackson Harper <jackson@ximian.com>
16331 * MdiWindowManager.cs: When maximizing use the containers client
16332 rect, not it's bounds, so nc area is accounted correctly.
16333 - Use the parent form's size for the menu position, since the
16334 client isn't always the full form size.
16336 2006-10-01 Chris Toshok <toshok@ximian.com>
16338 * ScrollableControl.cs: make sure neither right_edge or
16339 bottom_edge are < 0, since they're used as LargeChange for the
16340 horiz/vert scrollbars respectively. Fixes #79539.
16342 2006-10-01 Chris Toshok <toshok@ximian.com>
16344 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
16345 the xplatuix11 code can cause us to destroy/recreate our handle.
16349 - this code can be invoked many times for the same Hwnd. Make
16350 sure we only destroy the client window once (the first time this
16351 method is called). This fixes bug #79544.
16352 - Remove the call to the improperly bound XSync. why we had two
16353 bindings to this, I will never know, but this call resulted in
16354 events being discarded from the queue(!).
16355 - correct a misunderstanding of _XEMBED_INFO - the second atom is
16356 not our current state but the state we wish to be in. So, 0 if
16357 we don't want to be mapped. Change it to 1.
16358 (SystrayRemove): The XEMBED spec makes mention of the fact that
16359 gtk doesn't support the reparent of client windows away from the
16360 embedder. Looking at gtksocket-x11.c seems to agree with this.
16361 The only avenue we have for removing systray icons is to destroy
16362 them. We don't want the handle to go away for good, though, so
16363 call InternalRecreateHandle on the NotifyIconWindow. Fixes
16366 2006-10-01 Chris Toshok <toshok@ximian.com>
16368 * Form.cs (WndProc): inline the native_enabled variable usage into
16369 the cases in which it's used. Fixes #79536.
16371 2006-09-29 Mike Kestner <mkestner@novell.com>
16373 * ListView.cs : toggle the selection state for ctrl clicks in
16374 multiselect mode. [Fixes #79417]
16376 2006-09-29 Mike Kestner <mkestner@novell.com>
16378 * ListView.cs : kill CanMultiSelect and refactor the selection
16379 code to support multiselection in the absence of mod keys. Steal
16380 arrow/home/end keys by overriding InternalPreProcessMessage to
16381 restore regressed keynav behavior.
16384 2006-09-29 Jackson Harper <jackson@ximian.com>
16386 * MdiClient.cs: Repaint the titlebars when the active window is
16389 2006-09-29 Chris Toshok <toshok@ximian.com>
16391 * Application.cs: when entering a runloop with a modal, make sure
16392 the hwnd is enabled. Fixes #79480.
16394 2006-09-29 Chris Toshok <toshok@ximian.com>
16396 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
16397 when ListManager.CanAddRows == false, bump us back one.
16399 * DataGridColumnStyle.cs (ParentReadOnly): remove the
16400 listmanager.CanAddRows check. This makes ArrayLists uneditable
16401 using a datagrid, which is not right.
16402 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
16403 is an IEditable, but call property_descriptor.SetValue regardless.
16406 2006-09-29 Chris Toshok <toshok@ximian.com>
16408 * DataGridBoolColumn.cs: we need to test equality in the face of
16409 possible null values (as is the case with the default NullValue).
16410 This patch keeps us from crashing in that case.
16412 2006-09-29 Jackson Harper <jackson@ximian.com>
16414 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
16415 here, since it will get called for every node collection in the
16416 tree. This is now done in the treeview once the sorting is
16418 * TreeView.cs: Recalculate the visible order, and update the
16419 scrollbars after sorting, set the top nope to the root so that the
16420 recalc actually works.
16422 2006-09-29 Chris Toshok <toshok@ximian.com>
16424 * LinkLabel.cs: more handling of the default link collection in
16425 the face of LinkArea manipulation. The default link collection
16426 contains 1 element (start=0,length=-1). If the user sets LinkArea
16427 to anything and the links collection is the default, clear it.
16428 Then only add the link if its nonempty. Fixes #79518.
16430 2006-09-29 Chris Toshok <toshok@ximian.com>
16432 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
16433 piece correctly when we hit a '\n'. Fixes #79517.
16435 2006-09-29 Chris Toshok <toshok@ximian.com>
16437 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
16438 change the binding of gdk_init_check to take two IntPtr's, and
16439 pass IntPtr.Zero for both of them. Fixes #79520.
16441 2006-09-29 Mike Kestner <mkestner@novell.com>
16443 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
16446 2006-09-28 Jackson Harper <jackson@ximian.com>
16448 * XplatUIX11.cs: When translating NC messages make sure we go from
16449 whole window to screen, not client window to screen.
16450 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
16451 method doesn't exist
16452 - Skip over controls that aren't forms when arranging.
16454 2006-09-28 Jackson Harper <jackson@ximian.com>
16456 * XplatUIWin32.cs: Clip the rect to the parent window.
16457 * XplatUIStructs.cs: Add clipping modes struct.
16458 * InternalWindowManager.cs: New private method that factors title
16459 bar heights in when calculating the pos of an NC mouse message.
16460 - Use SendMessage to force a paint when the form's size is changed
16461 instead of painting the decorations immediately.
16462 - Don't let the NC button click messages get to DefWndProc,
16463 because they will attempt to handle windowing themself, and this
16464 messes up z-order (it will put them in front of the scrollbars).
16465 * XplatUIX11.cs: Make sure that we don't reset window managers if
16466 we already have one (ie the window is an MDI window).
16468 2006-09-28 Chris Toshok <toshok@ximian.com>
16470 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
16471 menu code really needs going over.
16473 2006-09-27 Chris Toshok <toshok@ximian.com>
16475 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
16476 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
16477 window is maximizable. So, we need to make sure that even if we
16478 clear the border/wm frame of those functions, they're still
16479 available (basically, we remove the decoration without removing
16480 the function). Half the fix for #79338.
16482 2006-09-27 Chris Toshok <toshok@ximian.com>
16484 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
16487 2006-09-27 Chris Toshok <toshok@ximian.com>
16489 * Splitter.cs: reorder things a bit so that we don't actually
16490 draw/move the splitter until after calling OnSplitterMoving. This
16491 lets users cancel/disallow the movement by explicitly setting
16492 event.SplitX/SplitY. Fixes #79372.
16494 2006-09-27 Jackson Harper <jackson@ximian.com>
16496 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
16497 because it is most likely on a window being destroyed, and that
16498 will give us an X11 error.
16500 2006-09-27 Chris Toshok <toshok@ximian.com>
16502 * PropertyGridView.cs: half of the fix for #78190. Clicking on
16503 the dropdown button now toggles between showing and hiding the
16504 dropdown. Also, get rid of dropdown_form_showing and just use
16505 dropdown_form.Visible. We still don't do a grab, but I'll leave
16506 that part to someone who has handled Capture-fu before.
16508 2006-09-27 Chris Toshok <toshok@ximian.com>
16510 * DataGrid.cs: return false if alt isn't pressed when '0' is
16511 pressed. this keeps the '0' key from being swallowed, and fixes
16514 2006-09-27 Chris Toshok <toshok@ximian.com>
16516 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
16517 Calling Refresh (in response to a scrollbar event) screws up the
16518 scrollbar painting. Fixes bug #78923.
16520 2006-09-27 Chris Toshok <toshok@ximian.com>
16522 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
16523 then insert into hashtable" blocks threadsafe.
16525 2006-09-27 Chris Toshok <toshok@ximian.com>
16527 * MessageBox.cs (CreateParams): the styles should be |'ed with our
16528 baseclass's, since otherwise the
16529 ControlBox/MinimizeBox/MaximizeBox assignments above have no
16530 effect. This gets the close button back in messageboxes.
16532 2006-09-27 Chris Toshok <toshok@ximian.com>
16534 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
16535 flag, not just != 0. this makes flags that are actually multiple
16536 bits (like WS_CAPTION) work. fixes bug #79508.
16538 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
16540 * PageSetupDialog.cs: add support for getting and settings the
16541 paper size, source and orientation.
16543 2006-09-26 Chris Toshok <toshok@ximian.com>
16545 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
16546 and caption == "", we need to remove the resize handles as well as
16549 * Control.cs (set_Text): turns out that setting Text on a form
16550 should change the WM styles on the window, since if ControlBox ==
16551 false, the only way to get a window border is to have a non-""
16552 Text property. check winforms/forms/text.cs for an example. so,
16553 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
16554 update both window styles and title. This fixes a lot of dialogs
16555 (including the preferences dialog in MonoCalendar.)
16557 2006-09-26 Chris Toshok <toshok@ximian.com>
16559 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
16560 control isn't a Form), call Win32ShowWindow to hide the window,
16561 but don't update the control Visible property. When we reparent
16562 back to a parent control, call SetVisible in order for the
16563 window's visibility to be reinstated.
16565 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
16568 * Control.cs (ControlCollection.Remove): remove that value.Hide()
16569 call for good, since it breaks MonoCalendar (and other things I'm
16570 sure.) Also, set all_controls to null *after* the owner calls,
16571 which end up regenerating it.
16572 (ChangeParent): allow new_parent to be == null, passing
16573 IntPtr.Zero down to XplatUI.
16575 this fixes #79294 the right way.
16577 2006-09-26 Mike Kestner <mkestner@novell.com>
16579 * GridEntry.cs : internal SetParent method.
16580 * PropertyGrid.cs : attach to property changed on the proper
16581 target if we have a hierarchical grid with subobjects. Setup
16582 GridItem.Parent for hierarchical items.
16583 * PropertyGridView.cs : Set value on the correct target for
16584 hierarchical grids. [Fixes #78903]
16586 2006-09-26 Chris Toshok <toshok@ximian.com>
16588 * Control.cs (ChildNeedsRecreating): this should return true if
16589 either we're being recreated and the child is in our list, or our
16590 parent is waiting for our recreation.
16592 2006-09-26 Chris Toshok <toshok@ximian.com>
16594 * Control.cs (ControlCollection.Remove): reinstate the
16595 value.Hide() call as suggested in bug #79294.
16597 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
16599 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
16600 coordinates (versus a relative move).
16602 2006-09-26 Chris Toshok <toshok@ximian.com>
16604 * Control.cs: rework child recreation a little bit. It turns out
16605 that we race between the DestroyNotify the WM_DESTROY message. If
16606 the parent gets its DestroyNotify before the child gets the
16607 WM_DESTROY message, the child ends up not recreating (since the
16608 parent finishes its recreation on DestroyNotify, and the child
16609 checks ParentIsRecreating.)
16611 So, instead we store off a list of all the child controls which
16612 need to be recreated when the parent control starts to recreate
16613 itself. Then, when child controls get their WM_DESTROY message we
16614 check to see if they're in the parent's pending recreation list,
16615 and if so, we recreate. This removes all dependency on ordering
16616 from the code and fixes the initial MonoCalendar upgrade dialog.
16618 2006-09-26 Jackson Harper <jackson@ximian.com>
16620 * TextControl.cs: Use the Line to get the length of the line,
16621 since soft line breaks can change the end line.
16623 2006-09-26 Chris Toshok <toshok@ximian.com>
16625 * Control.cs (ControlCollection.AddImplicit): don't add the
16626 control again if it's already in one of our lists. This keeps us
16627 from adding controls over and over again for comboboxes when their
16628 handle gets recreated (as the combobox adds implicit controls in
16629 OnHandleCreated). Fixes the X11 errors in bug #79480.
16631 2006-09-26 Jackson Harper <jackson@ximian.com>
16633 * TextControl.cs: When deleting characters make sure that any
16634 orphaned zero lengthed tags get deleted.
16635 - Fix ToString for zero lengthed tags.
16637 2006-09-25 Jackson Harper <jackson@ximian.com>
16639 * TextControl.cs: When getting a tag at the location there can be
16640 multiple tags at the same spot, these are 0-lengthed tags that
16641 appear when extra formatting has been stuck in a location. We
16642 need to pull out the last of these 0 lengthed tags.
16644 2006-09-25 Jackson Harper <jackson@ximian.com>
16646 * TextControl.cs: Fix print out in debug method.
16647 * TextBoxBase.cs: When text is set bail if we are setting to the
16650 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
16652 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
16653 It is now possible to change the selected index in a FontXXXListBox
16654 with the up and down arrow keys from the FontXXXTextBoxes.
16655 Also, send the FontXXXTextBox mouse wheel event to the corresponding
16656 FontXXXListBoxes to match ms.
16658 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
16660 * SystemInformation.cs: Return a clone of the theme's MenuFont because
16661 anyone can dispose it, anytime. All other properties returns enums,
16662 structs or basic types so they don't need such tricks.
16664 2006-09-22 Jackson Harper <jackson@ximian.com>
16671 * XplatUIDriver.cs: Update interface to add a primary selection
16672 flag, so the driver can use the primary selection buffer if
16674 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
16676 * RichTextBox.cs: We need to supply the data object to paste now
16677 (so we can choose to supply CLIPBOARD or PRIMARY).
16678 * TextBoxBase.cs: Supply data object to paste (see above).
16679 - Middle click uses the primary selection data object.
16681 2006-09-21 Chris Toshok <toshok@ximian.com>
16683 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
16684 of SetWMStyles. It's still a rat's nest and is largely
16685 order-dependent which I dislike immensely. This also fixes the X
16686 button disappearing from toplevel forms.
16688 2006-09-21 Mike Kestner <mkestner@novell.com>
16690 * ListBox.cs: move Jordi's click/dblclick raising code to the
16693 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
16695 * ListBox.cs: Fixes 79450
16697 2006-09-21 Mike Kestner <mkestner@novell.com>
16699 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
16700 to deal with people updating the TreeNodeCollection after the tree
16701 is disposed. "Fixes" 79330.
16703 2006-09-20 Jackson Harper <jackson@ximian.com>
16705 * TextControl.cs: Push the cursor record onto the undo stack
16706 before the delete action. This fixes 78651.
16708 2006-09-20 Jonathan Chambers <joncham@gmail.com>
16710 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
16711 CreateParams. Fixes 79329.
16713 2006-09-19 Chris Toshok <toshok@ximian.com>
16715 * XplatUIX11.cs: a couple of blanket code massage passes to clean
16716 things up a bit. First, get rid of the NetAtoms array (and the NA
16717 enum), and just embed the atoms as static fields. Also, add a
16718 couple of functions (StyleSet and ExStyleSet) to clean up all the
16719 bitmask testing of styles.
16721 * X11Structs.cs: remove the NA enum, not needed anymore.
16723 2006-09-19 Chris Toshok <toshok@ximian.com>
16725 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
16726 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
16727 added cleanup to get MessageBox titles appearing again, which were
16728 broken by my earlier fix for caption-less/ControlBox-less windows.
16730 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
16732 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
16733 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
16734 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
16735 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
16736 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
16737 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
16738 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
16739 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
16740 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
16741 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
16742 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
16744 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
16745 ToolStripButton.cs: Stubs needed for above.
16746 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
16748 2006-09-15 Chris Toshok <toshok@ximian.com>
16751 - make the MessageQueues hashtable Synchronized.
16753 - SendMessage: if the Hwnd is owned by a different thread, use the
16754 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
16755 thread. Fixes bug #79201.
16757 2006-09-15 Chris Toshok <toshok@ximian.com>
16759 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
16760 ControlBox == false, we disallow maximize/minimize/close. If the
16761 form Caption is "" we also disallow move (and get rid of the Title
16762 decoration). Unfortunately, regardless of how things are set,
16763 we're stuck with the Title and WM menu.
16765 2006-09-15 Chris Toshok <toshok@ximian.com>
16767 * Application.cs: add locking around the static message_filters
16768 ArrayList, part of #79196.
16770 2006-09-15 Chris Toshok <toshok@ximian.com>
16772 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
16773 Form.ControlBox == false, the window has no titlebar nor resize
16774 handles. fixes bug #79368.
16776 2006-09-15 Chris Toshok <toshok@ximian.com>
16778 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
16779 >= 0. Fixes bug #79370.
16781 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
16782 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
16784 Add properties: LayoutEngine, Margin, DefaultMargin.
16785 Add method: GetPreferredSize.
16786 Move layout logic from PerformLayout to layout engines.
16788 2006-09-13 Chris Toshok <toshok@ximian.com>
16790 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
16791 fix for #79326 broke #78718, so this change addresses that.
16793 - in SendWMDestroyMessages remove the call to
16794 CleanupCachedWindows, since we might be recreating the control and
16795 need to maintain the references to right Hwnd handles. Also, set
16796 the zombie flag to true for each of the children in the hierarchy
16797 instead of calling hwnd.Dispose. This will cause GetMessage to
16798 ignore all events for the window except for DestroyNotify.
16800 - In GetMessage, ignore messages except for DestroyNotify for
16803 * Control.cs: revert the is_recreating fix from the last
16804 ChangeLog. It's definitely "right", but it breaks switching from
16805 an MDI form to a non-MDI form. Will need to revisit that.
16807 * Hwnd.cs: add a zombie flag, which means "the
16808 client_window/whole_window handles are invalid, but we're waiting
16809 for the DestroyNotify event to come in for them". Set the flag to
16810 false explicitly if setting WholeWindow/ClientWindow, and also
16813 2006-09-13 Chris Toshok <toshok@ximian.com>
16815 * XplatUIX11.cs: rework window destruction slightly.
16817 - when destroying the windows associated with a control, we don't
16818 need 2 separate XDestroyWindow calls. Just the one for the
16819 whole_window (or for client_window if whole_window is somehow
16820 IntPtr.Zero -- can this happen?) is enough.
16822 - reworked SendWMDestroyMessages slightly, so we always dispose
16823 the child control hwnd's after sending the messages.
16825 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
16826 the two places it was used (one was even using hwnd.Handle and the
16827 other hwnd.client_window. ugh), adding another call in
16828 SendWMDestroyMessages. We need this new call because now the
16829 DestroyNotify events in the queue will be ignored for the child
16830 controls (as their hwnd's were disposed, and the window id's
16831 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
16833 - this fixes bug #79326.
16835 2006-09-13 Chris Toshok <toshok@ximian.com>
16837 * Control.cs: don't always set is_recreating to false at the end
16838 of RecreateHandle, since sometimes we're not done (and won't be
16839 until WndProc handles the WM_DESTROY message). Also, set
16840 is_recreating to false in the WM_DESTROY handling code. Part of
16841 the fix for bug #79326.
16843 2006-09-13 Miguel de Icaza <miguel@novell.com>
16845 * X11DesktopColors.cs: Start the droppage of debugging messages.
16847 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
16849 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
16851 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
16853 2006-09-12 Chris Toshok <toshok@ximian.com>
16855 * DataGrid.cs (get_ListManager): if the list_manager is null, try
16856 to create it using SetDataSource. Fixes bug #79151.
16858 2006-09-11 Chris Toshok <toshok@ximian.com>
16860 * XEventQueue.cs: add a DispatchIdle property.
16862 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
16863 either the queue is null, or the queue has DispatchIdle set to
16865 (DoEvents): set queue.DispatchIdle to false around the
16866 peek/translate/dispatch message loop in this method. This keeps
16867 Application.Doevents from emitting idle events. Part of the fix
16870 2006-09-11 Chris Toshok <toshok@ximian.com>
16872 * DataGrid.cs (set_DataSource): make this work for both the
16873 winforms/datagrid test and ReportBuilder. It seems as though when
16874 we've created a ListManager (or maybe it's if we have a
16875 BindingContext?), when we set the DataSource it clears the
16876 DataMember to "". otherwise we reuse the datamember. Fixes bug
16879 2006-09-11 Chris Toshok <toshok@ximian.com>
16881 * XplatUIX11.cs: deal with queue being null, which happens in all
16882 the Clipboard functions. Fixes one of the two problems mentioned
16885 2006-09-11 Chris Toshok <toshok@ximian.com>
16887 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
16888 button on various spots (including outside the menu) works closer
16889 to MS, and doesn't crash. Fixes #79343.
16891 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
16893 * ListView.cs: Do not initialize item_sorter in init. To match MS,
16894 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
16895 and the internal comparer is set. When a new ListViewItemSorter is set,
16896 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
16897 was specified. No further processing is necessary if SortOrder is set
16898 to it's current value. If Sorting is modified to None, and View is
16899 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
16900 (either custom or our internal ItemComparer) to null, on 1.0 profile
16901 only set item_sorter to null if its our internal IComparer. If Sorting
16902 is modified to Ascending or Descending, then use our internal IComparer
16903 if none is set, and if the current IComparer is our internal one then:
16904 on 2.0 profile always replace it with one for new Sorting, and on 1.0
16905 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
16906 Enum.IsDefined to verify whether a valid View value is specified in
16907 its setter. Automatically sort listview items when listview is
16908 created. In Sort, do nothing if ListView is not yet created, or if
16909 no item_sorter is set (no Sorting was set, Sorting was explicitly set
16910 to None or ListViewItemSorter was set to null). Added Sort overload
16911 taking a bool to indicate whether the ListView should be redrawn when
16912 items are sorted (we use this in ListViewItemCollection to avoid double
16913 redraws). Modified our internal IComparer to take the sort order into
16914 account. In Add and AddRange methods of ListViewItemCollection, also
16915 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
16916 view), but use overload with noredraw option to avoid double redraw.
16917 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
16918 true when View is Tile, and do the same when attempting to set View to
16919 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
16920 for selected/checked indices, as it involves overhead when sorting is
16921 done while these collections are not used all that often. Instead
16922 we'll build the indices on demand. Modified IList implementation of
16923 CheckedIndexCollection to use public methods if object is int.
16924 Modified CheckedListViewItemCollection to hide checked items if
16925 ListView.CheckBoxes is false. Removed LAMESPEC remark in
16926 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
16927 IList implementation in SelectedIndexCollection to use public methods
16928 if object is int. Modified SelectedListViewItemCollection to hide
16929 selected items if listview is not yet created.
16930 * ListViewItem.cs: CheckedIndices list no longer needs to be
16931 maintained separately (see ListView changes). Also clone font, fixes
16934 2006-09-11 Mike Kestner <mkestner@novell.com>
16936 * ComboBox.cs: if we are updating the contents of the currently
16937 selected index, refresh the control or the textbox selection.
16940 2006-09-11 Mike Kestner <mkestner@novell.com>
16942 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
16943 the 'specified' logic has been moved there. This seems like a bug
16944 in Control.cs, since our current SetBoundsCore completely ignores
16945 the specified parameter. Peter's commit seems to indicate that is
16946 the way the MS control implementation works. [Fixes #79325]
16948 2006-09-10 Jonathan Chambers <joncham@gmail.com>
16950 * XplatUI.cs: Set default_class_name to be composed
16951 of current domain id. This allows MWF to be loaded in multiple
16954 2006-09-09 Miguel de Icaza <miguel@novell.com>
16956 * X11Keyboard.cs: If we are unable to obtain the input method, do
16957 not call CreateXic to create the input context. Should fix
16960 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
16962 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
16963 Simplified gnome support by adding more pinvokes to get the
16964 icon for a file or mime type.
16966 2006-09-08 Jackson Harper <jackson@ximian.com>
16968 * MenuAPI.cs: Deslect popup context menu items before closing the
16969 window, so that you don't see the previously selected item
16970 selected when you reopen the menu.
16971 * TextControl.cs: Update the cursor position even if we don't have
16972 focus. This fixes typing in things like the ComboBox. I'm not
16973 totally sure we should always set the visibility if we don't have
16974 focus, but couldn't find any corner cases where the cursor showed
16975 up when it shouldn't.
16977 2006-09-08 Chris Toshok <toshok@ximian.com>
16979 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
16980 our arrays are length 256. & 0xff before indexing. Fixes the
16981 crash in bug #78077.
16983 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16985 * ThemeWin32Classic.cs:
16986 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
16987 is true. Handle that check box too.
16989 2006-09-07 Chris Toshok <toshok@ximian.com>
16991 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
16994 2006-09-07 Chris Toshok <toshok@ximian.com>
16996 * Control.cs: in set_BackColor only do the work if
16997 background_color != value.
16999 * XplatUIX11.cs: move the clearing of invalid areas (both client
17000 and nc) to the same block of code where we set (nc_)expose_pending
17001 to false. That is, move it from PaintEventEnd to PaintEventStart,
17002 so things that cause invalidates from within OnPaint will trigger
17003 another call to OnPaint. Fixes bug #79262.
17005 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
17007 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
17008 * FileDialog.cs: Fix typo
17010 2006-09-07 Jackson Harper <jackson@ximian.com>
17012 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
17013 for tab pages if they have any.
17015 2006-09-06 Mike Kestner <mkestner@novell.com>
17017 * Splitter.cs: use the "current" rect when finishing drag handle
17018 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
17020 2006-09-06 Mike Kestner <mkestner@novell.com>
17022 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
17023 support offset splitters. [Fixes #79298]
17025 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
17027 * Mime.cs: Fixed a bug that could override the global mime type
17030 2006-09-05 Jackson Harper <jackson@ximian.com>
17032 * TabControl.cs: Better calculation method for setting the slider
17033 pos. Prevents crashes on really wide tabs.
17034 - Draw Image on tab pages if an image list is used.
17036 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17038 * MonthCalendar.cs: When Font changes, the Size should be
17039 updated to fit the new font's space requirements.
17041 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
17043 * ListBox.cs: If the items are cleared with Items.Clear set
17046 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17048 * MonthCalendar.cs: Handle arrow keys as input keys. Also
17049 fire DateChanged event instead of DateSelected event when
17050 the date was changed by keyboard interaction.
17052 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17054 * DateTimePicker.cs: Handle DateChanged for the associated
17055 month_calendar control, and set month_calendar.Font from
17056 OnFontChanged method, as well as resize the height of the
17057 control when needed. Make PreferredHeight proportional.
17059 2006-09-01 Chris Toshok <toshok@ximian.com>
17061 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
17064 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
17066 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
17068 * FileDialog.cs: Set ClientSize instead of window size, to allow space
17069 for decorations (Fixes #79219)
17071 2006-09-01 Mike Kestner <mkestner@novell.com>
17073 * ComboBox.cs: first stab at sorting plus some selection handling
17074 fixes to bring us more in line with MS behavior. Also switches back
17075 to index based selection. Alternative patches for index-based
17076 selection were provided by Jackson Harper, Carlos Alberto Cortez,
17077 and latency@gmx.de on bug 78848. I assume they were similar to this
17078 code I've had simmering in my tree forever.
17081 2006-09-01 Chris Toshok <toshok@ximian.com>
17083 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
17084 when setting list position guard against ending up with a -1 index
17085 (the other part of the fix for #78812). Should probably make sure
17086 we don't need the analogous fix in the ItemDeleted case.
17089 - in SetDataSource, work around the fact that the way
17090 OnBindingContextChanged is invoked will cause us to re-enter this
17091 method. I'll remove the hack once I investigate
17092 OnBindingContextChanged.
17094 - fix the logic in set_DataSource and set_DataMember (basically
17095 what to do if the other of the two is null.)
17097 - in OnListManagerItemChanged, we need to take into account the
17098 edit row when deciding whether or not to call RecreateDataGridRows
17099 (part of the fix for #78812).
17101 2006-09-01 Jackson Harper <jackson@ximian.com>
17103 * Splitter.cs: Don't do anything if there is no control to affect
17104 (prevents us from crashing in weird tet cases).
17105 * TreeView.cs: Bounding box for the mouse movement reverting
17106 focus/selection back to previously selected node. This matches
17107 MS, and makes the tree a lot more useable.
17108 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
17109 use clipping so they are not drawn. This fixes when the control
17110 is set to have a transparent background, or if it was over an
17113 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
17115 * MimeIcon.cs: Improved handling for reading default icons when
17116 using gnome (2.16 made it necessary). Check and read svg icons
17117 first, then 48x48 and then 32x32 icons.
17119 2006-08-31 Chris Toshok <toshok@ximian.com>
17121 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
17124 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
17125 ProcessKeyPreview. Fixes part of #77806.
17127 * DataGrid.cs: big patch.
17129 - revert the queueing up of DataSource/DataMember if inside
17130 BeginInit/EndInit calls. That's not the way the datagrid achieves
17131 its delayed databinding. Instead, call SetDataSource in
17132 OnBindingContextChanged. This mimic's MS's behavior, and fixes
17135 - Also, it wasn't mentioned in #78811, but the test case exhibits
17136 behavior that was lacking in our datagrid implementation - Columns
17137 that have mapping names that don't exist in the datasource's
17138 properties aren't shown. Yuck. To fix this I added the bound
17139 field to the column style, and basically any calculation to figure
17140 out anything about columns uses a loop to find the bound columns.
17141 still need to investigate if I can cache an array of the bound
17142 columns or if the indices must be the same.
17144 - When setting CurrentCell, we no longer abort if the cell being
17145 edited was in the add row. This fixes the other part of #77806.
17147 - The new code also fixes #78807.
17149 * ThemeWin32Classic.cs: perpetrate the same disgusting
17150 column.bound field hack, and only render bound fields.
17152 2006-08-31 Chris Toshok <toshok@ximian.com>
17154 * DataGridColumnStyle.cs: add bound field. this field is true if
17155 the datasource has a property corresponding to the mapping name.
17157 * DataGridTableStyle.cs: set the bound field on the column styles
17158 depending on whether or not we have a column for that property.
17160 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
17162 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
17163 splitter control (fixes #79228)
17165 2006-08-31 Chris Toshok <toshok@ximian.com>
17167 * DataGridColumnStyle.cs: we need to delay the assignment of
17168 property descriptor until the last possible moment due to the lazy
17169 databinding stuff in the datagrid. Also, fix the exceptions
17170 thrown by CheckValidDataSource to match MS.
17172 2006-08-31 Jackson Harper <jackson@ximian.com>
17174 * Form.cs: When activated select the active control, if there is
17175 no active control, we select the first control.
17176 * XplatUIX11.cs: If there is no focus control when we get a
17177 FocusIn event, find the toplevel form and activate it. This
17178 occurs when you popup a window, it becomes the focus window, then
17179 you close that window, giving focus back to the main window.
17181 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17183 * MonthCalendar.cs:
17184 * ThemeWin32Classic.cs: Cache Font in bold style, as well
17185 as StringFormat with Center alignments in MonthCalendar,
17186 instead of creating new ones when drawing the control.
17187 Also, draw the month name in bold style.
17189 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
17192 - PerformLayout(): It would seem MS performs the fill even if the
17193 control is not visible (part of #79218 fix)
17194 - ResetBackColor(): Use the setter to reset the color, to allow
17195 overriders to catch the change.
17197 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
17198 - CreateHandle(): dito (part of $79218 fix)
17199 - Don't set an icon if we have a dialog
17200 * ScrollableControl.cs:
17201 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
17202 - ScrollIntoView(): No need to scroll if control is already visible
17203 (resolves fixme and fixes #79218)
17205 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17207 * MonthCalendar.cs: Change proportions in SingleMonthSize
17208 to match the aspect of the original control.
17210 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
17212 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
17213 get updated when they get maximized.
17215 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
17217 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
17219 2006-08-29 Chris Toshok <toshok@ximian.com>
17221 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
17223 2006-08-29 Jackson Harper <jackson@ximian.com>
17225 * TreeView.cs: Need to track selected node and highlighted node,
17226 they aren't always the same thing, when the mouse is down on a
17227 node it is hilighted, but not selected yet.
17228 - Do the HideSelection stuff right
17229 - Need to focus on rbutton mouse down. And redraw selection when
17230 right click is mouse upped.
17232 2006-08-29 Mike Kestner <mkestner@novell.com>
17234 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
17235 when SubItems.Count < Columns.Count. [Fixes #79167]
17237 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
17239 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
17241 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
17243 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
17244 from X. Only send based on ConfigureNotify if we don't have the
17245 correct location in hwnd (if the window manager moved us)
17247 2006-08-28 Mike Kestner <mkestner@novell.com>
17249 * ListView.cs: remove a TODO.
17250 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
17251 [Fixes ListView part of #79166]
17253 2006-08-28 Mike Kestner <mkestner@novell.com>
17255 * ListView.cs: move wheel handler to parent since it is focused
17256 instead of the item_control now. [Fixes #79177]
17258 2006-08-28 Mike Kestner <mkestner@novell.com>
17260 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
17261 when the control is focused. [Fixes #79171]
17263 2006-08-28 Mike Kestner <mkestner@novell.com>
17265 * ListView.cs: size the item and header controls for empty and
17266 unscrollable views.
17267 * ThemeWin32Classic.cs: draw disabled backgrounds.
17270 2006-08-28 Chris Toshok <toshok@ximian.com>
17272 * Form.cs: remove unused "active_form" static field.
17274 * Hwnd.cs: lock around accesses to static windows collection.
17276 * Application.cs: lock threads in Exit ().
17278 2006-08-28 Chris Toshok <toshok@ximian.com>
17280 * NativeWindow.cs: lock around accesses to window_collection.
17282 2006-08-28 Chris Toshok <toshok@ximian.com>
17284 * Control.cs: err, fix this the right way, by locking on controls
17285 when using it. not by making it synchronized.
17287 2006-08-28 Chris Toshok <toshok@ximian.com>
17289 * Control.cs: make the static "controls" field synchronized, as it
17290 gets updated from multiple threads.
17292 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
17294 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
17295 Prevent other threads from exiting when calling thread sets quit state.
17296 * XEventQueue.cs: Added PostQuitState property
17298 2006-08-27 Chris Toshok <toshok@ximian.com>
17300 * AsyncMethodData.cs: add a slot for the window handle.
17302 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
17303 window (the destination control's window, not the foster window).
17305 * Control.cs (BeginInvokeInternal): store the window's handle in
17306 the AsyncMethodData.
17309 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
17312 - PostQuitMessage: Removed resetting S.D display handle, we might have
17313 another loop started after calling PostQuitMessage (Fixes #79119)
17314 - Created destructor to reset S.D handle
17316 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
17318 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
17320 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17322 * TextControl.cs (Insert): Update the caret position even if we don't
17323 have a handle yet, just don't call the driver in that case.
17324 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
17325 to the end of the new selection text (Fixes #79184)
17327 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17329 * Form.cs (Activate): Only activate if the handle is created)
17331 - Mark window as invisible when it's disposed
17332 - Check if window handle is created when setting window visible,
17333 instead of relying just on the is_created variable
17334 - Check if object is disposed when creating the control (Fixes #79155)
17336 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17338 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
17339 when allowing layout again. Otherwise we re-generate the anchoring
17340 distance to the border again and actually alter what the user wanted
17341 This is ugly, it'd be better if we used DisplayRectangle instead of
17342 ClientRectangle for Control.UpdateDistances, but that causes us to
17343 have other problems (initial anchoring positons would be wrong)
17346 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17349 - The size and location setters shouldn't go directly to
17350 SetBoundsCore, but to SetBounds, which triggers layout on the
17351 parent, then calls SetBoundsCore. (Related to fix for #78835)
17352 - SetBounds: Moved actual location update code into this function
17353 from SetBoundsCore, to match MS. Added call to PerformLayout if
17354 we have a parent (to trigger resizing of anchored parents if the
17355 child size has changed (see testcase for #78835)
17356 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
17358 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
17360 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17362 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
17363 System.Drawing when a toplevel window gets closed; there might
17364 be other toplevel windows belonging to the same app (Fixes #78052)
17366 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
17368 * FileDialog.cs: After reading FileDialog settings from mwf_config
17369 use Desktop prefix only if a real folder doesn't exist anymore.
17370 * FontDialog.cs: Added char sets.
17371 It is now possible to select the font, size or style with the
17374 2006-08-25 Kornél Pál <kornelpal@gmail.com>
17376 * PrintPreviewDialog.cs: Use assembly name constants.
17378 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17380 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
17381 scrollbar from whacking it's buttons)
17383 2006-08-24 Chris Toshok <toshok@ximian.com>
17385 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
17386 in this patch (aggregating setting Left/Top/Width/Height to
17387 setting Bounds on the scrollbars), but the crux of the fix is in
17388 Recalculate, where we scroll by the remaining scroll_position if
17389 we're hiding a scrollbar. The 2*$5 reward in the comment is
17392 2006-08-24 Jackson Harper <jackson@ximian.com>
17395 * MdiWindowManager.cs: If the form is made a non-mdi window we
17396 need to remove the form closed event so that closing forms works
17399 2006-08-24 Jackson Harper <jackson@ximian.com>
17401 * Control.cs: Make IsRecreating internal so that the driver can
17403 - Temporarily remove the Hide when controls are removed, its
17404 making a whole bunch of things not work because visibility isn't
17405 getting reset elsewhere correctly
17406 * Form.cs: Need to do a full handle recreation when the mdi parent
17408 * XplatUIX11.cs: If we are recreating handles don't dispose the
17409 HWNDs. What was happening is the handles were being recreated in
17410 SendWMDestroyMessages, but then flow continued on in that method
17411 and destroyed the new handles.
17413 2006-08-23 Jackson Harper <jackson@ximian.com>
17415 * Form.cs: MdiClient is always at the back of the bus
17416 * Control.cs: When the order of items in the collection is changed
17417 we need to reset the all_controls array
17418 - do the same sorta setup thats done when adding a control when a
17419 control is set on the collection.
17421 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17423 * TextBoxBase.cs (get_Text): Return an empty array if our document
17424 is empty (fixes #79052)
17426 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17428 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
17429 on WM_SYSCHAR messages (fixes #79053)
17431 2006-08-23 Chris Toshok <toshok@ximian.com>
17433 * DataGrid.cs: fix flickering when scrolling vertically.
17435 2006-08-23 Chris Toshok <toshok@ximian.com>
17437 * DataGrid.cs (EndEdit): only invalidate the row header when we
17440 2006-08-23 Chris Toshok <toshok@ximian.com>
17442 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
17443 methods. fixes the flicker when scrolling around.
17445 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17447 * FileDialog.cs: Making sure the control is created before we get a
17448 chance to use it with BeginInvoke (Fixes #79096)
17450 2006-08-23 Chris Toshok <toshok@ximian.com>
17452 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
17453 width to use when painting the rows.
17455 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17458 - Throw ArgumentException if a negative value is passed to SelectionLength
17459 - Update the selection end if start is moved. end needs to be always
17460 after start. (Fixes #79095)
17461 - Track selection length; MS keeps the selection length even if start
17462 is changed; reset on all other operations affection selection
17464 2006-08-22 Jackson Harper <jackson@ximian.com>
17466 * TreeView.cs: Make sure both scrollbars get displayed and sized
17467 correctly when the other bar is visible.
17468 - Use the original clip rectangle for checking if the area between
17469 the two scrollbars is visible, not the viewport adjusted clipping
17472 2006-08-22 Jackson Harper <jackson@ximian.com>
17474 * Binding.cs: We don't use IsBinding because it requires the
17475 control to be created, which really shouldn't be necessary just to
17476 set a property on the control.
17478 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17480 * ComboBox.cs: Some CB.ObjectCollection methods must throw
17481 ArgumentNullReferenceException when the argument is null.
17483 2006-08-21 Jackson Harper <jackson@ximian.com>
17485 * Timer.cs: Track the thread that the timer is started in (NOT
17486 CREATED), this way messages for it will only be triggered on its
17488 * XEventQueue.cs: Track the timers here, this makes timers per
17490 * XplatUIX11.cs: The timers are moved to the XEventQueue.
17492 2006-08-19 Chris Toshok <toshok@ximian.com>
17494 * XplatUIX11.cs: after further communication with pdb, we get the
17495 best of both worlds. SetZOrder working for un-Mapped windows, and
17496 no X errors for un-mapped windows.
17498 2006-08-19 Chris Toshok <toshok@ximian.com>
17500 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
17501 as it was causing pdn toolbars to not have the correct stacking.
17503 2006-08-18 Mike Kestner <mkestner@novell.com>
17505 * ListView.cs : guard against negative ClientArea.Width in scrollbar
17506 calculation. Not sure why control should ever be setting a negative
17507 width though. Fixes #78931.
17509 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17511 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
17512 null items in ObjectCollection class.
17513 * ListBox.cs.: Likewise.
17515 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
17517 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
17518 as the base method in ThemeWin32Classic should work fine.
17521 2006-08-18 Jackson Harper <jackson@ximian.com>
17523 * Binding.cs: When validating if the value entered doesn't convert
17524 properly reset to the old value.
17525 * RadioButton.cs: Don't fire click when we get focus.
17527 2006-08-18 Jackson Harper <jackson@ximian.com>
17529 * FileDialog.cs: Paint the selection on the directory combobox the
17532 2006-08-17 Jackson Harper <jackson@ximian.com>
17534 * ErrorProvider.cs: Don't allow the error control to be selected.
17535 * Control.cs: Don't send the SetFocus messages, the control
17536 activation will do this, and if we do it blindly here validation
17539 2006-08-17 Jackson Harper <jackson@ximian.com>
17542 * ContainerControl.cs: Make validation events fire in the correct
17543 order. TODO: For some reason the first validation event is not
17546 2006-08-17 Mike Kestner <mkestner@novell.com>
17548 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
17550 2006-08-17 Mike Kestner <mkestner@novell.com>
17552 * ComboBox.cs : implement scroll wheel support for popped-down
17553 state. Fixes #78945.
17555 2006-08-17 Jackson Harper <jackson@ximian.com>
17557 * TreeView.cs: Specify treeview actions (old patch that didn't get
17558 committed for some reason).
17559 - Don't let the mouse wheel scroll us too far. Just want to make
17560 the bottom node visible, not scroll it all the ways to the top.
17562 2006-08-17 Jackson Harper <jackson@ximian.com>
17564 * XplatUIX11.cs: Mouse wheel events go to the focused window.
17566 2006-08-17 Mike Kestner <mkestner@novell.com>
17568 * ComboBox.cs : don't do mouseover selection in simple mode.
17570 2006-08-16 Jackson Harper <jackson@ximian.com>
17572 * Form.cs: Fire the closing events for all the mdi child windows
17573 when a window is closed. If the cancel args are set to true, the
17574 main window still gets the event fired, but it doesn't not close.
17575 * MdiWindowManager.cs: Do this closing cleanup in a Closed
17576 handler, instead of when the button is clicked, so cancelling the
17577 close works correctly.
17578 * ComboBox.cs: Send the mouse down to the scrollbar.
17580 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17582 * ListBox.cs: When passing 'null' to SelectedItem,
17583 set SelectedIndex to -1, to unselect items. This is the
17584 observed behaviour in .Net.
17586 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
17588 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
17589 MS flags saying there won't be any. (fixes #78800)
17590 * Control.cs (HandleClick): Made virtual
17592 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
17594 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
17595 cultures. Fixed bug #78399.
17597 2006-08-16 Jackson Harper <jackson@ximian.com>
17599 * Form.cs: Use the MdiClients MdiChildren property to access
17600 MdiChildren instead of creating the array from the child controls.
17601 * MdiClient.cs: Maintain a separate array of the mdi children, so
17602 that insertion order is maintained when the Z-order is changed.
17604 2006-08-16 Mike Kestner <mkestner@novell.com>
17606 * ListView.cs : add an ItemComparer and default to it for sorting.
17607 Fixes #79076, but sorting needs a complete overhaul to be compat with
17610 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
17612 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
17614 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
17616 * Hwnd.cs (Mapped): Properly traverse the tree
17618 2006-08-15 Chris Toshok <toshok@ximian.com>
17620 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
17621 pass manager.Current.GetType() to ParseData. It has to be the
17622 property type. So, hold off doing the ParseData until we're in
17623 SetPropertyValue where we know the type. This fixes the crash in
17624 #78821 but the textbox is still empty.
17626 2006-08-15 Chris Toshok <toshok@ximian.com>
17629 - when we're scrolling, only call Edit() again if the
17630 current cell is still unobscured. Fixes bug #78927.
17631 - when handling mousedown on a cell, ensure the cell is visible
17632 before calling Edit.
17633 - remove the properties from DataGridRow, and remove the
17634 DataGridParentRow class altogether.
17637 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
17639 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
17640 fire OnTextChanged by ourselves. There's no point calling base,
17641 we don't set the base value anywhere else. Fixes #78773.
17643 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17645 * ListBox.cs: Call CollectionChanged when modifying
17646 an item from Items indexer, to update the actual items
17649 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17651 * PrintDialog.cs: Small fixes for focus and a pair of checks,
17652 to match .Net behaviour.
17654 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
17656 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
17658 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
17660 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
17662 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
17664 * MessageBox.cs: Prevent potential NRE exception.
17665 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
17667 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
17669 * MessageBox.cs: Calculate the owner of a messagebox, also make
17670 it topmost. Fixes #78753
17672 2006-08-14 Chris Toshok <toshok@ximian.com>
17674 * XplatUIX11.cs: A couple of fixes so that metacity will let us
17675 programmatically move windows. first, set the PPosition hint as
17676 well as the USPosition hint. Second include some code from pdb
17677 that sets the window type to NORMAL when we set the transient for
17678 hint. This is because, in the absence of a window type, metacity
17679 thinks any window with TransientFor set is a dialog, and refuses
17680 to let us move it programmatically. fascists.
17682 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
17684 * XplatUIX11.cs: When setting normal hints, take into consideration
17685 an different hints previously set so we don't delete them (fixes #78866)
17687 2006-08-12 Chris Toshok <toshok@ximian.com>
17689 * ToolBarButton.cs: make Layout return a boolean, if something to
17690 do with the button's layout changed.
17693 - add another parameter to Redraw, @force, which all existing
17695 - make the Layout function return a boolean which is true if the
17696 layout has actually changed. Redraw now uses this (and @force)
17697 to determine when to invalidate. At present the only place
17698 where @force can be false is the call from OnResize, when
17699 background_image == null. So, resizing a toolbar when the
17700 layout doesn't change results in no drawing.
17702 2006-08-12 Chris Toshok <toshok@ximian.com>
17704 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
17705 the VScrollBar and HScrollbar reversed. oops.
17707 * DataGrid.cs: fix the logic that assigns sizes to the implicit
17708 scrollbars. we were assigning them twice (once in
17709 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
17710 therefore causing two scrollbar resizes (and redraws?) to happen
17713 2006-08-12 Chris Toshok <toshok@ximian.com>
17715 * ToolBarButton.cs: redraw the entire button if the theme tells us
17718 * Theme.cs: add ToolBarInvalidateEntireButton.
17720 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
17721 buttons, just the border.
17723 * ThemeNice.cs: redraw the entire toolbar button since we need to
17724 draw the highlight image.
17726 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
17727 we need to redraw the entire button (not just the border).
17729 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
17731 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
17732 for vertical bars. Fixes the mismatches shown by #78513
17734 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
17736 * FileDialog.cs: If a saved/remembered path doesn't exist
17737 anymore, fall back to "Desktop".
17739 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
17741 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
17742 parent. It's apparently legal to not have one
17744 - SetZOrder: Don't try to set Z-Order on an unmapped window
17745 - CreateWindow: 0,0 are legal coordinates for a window. don't move
17746 it unless the coordinates are negative
17748 2006-08-10 Mike Kestner <mkestner@novell.com>
17750 * ListControl.cs: allow null for DataSource. Clear DisplayMember
17751 when setting to null per msdn docs. Fixes #78854.
17753 2006-08-10 Chris Toshok <toshok@ximian.com>
17755 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
17756 flickering by setting a clip rectangle on the Graphics when we
17757 need to redraw just a particular menuitem. Also, rename "OnClick"
17758 to "OnMouseDown" to reflect what it actually is.
17760 * Form.cs: track the OnMouseDown change.
17762 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
17764 * CommonDialog.cs: Properly inherit the CreateParams from the form
17765 and only change what we need. Fixes #78865
17767 2006-08-10 Chris Toshok <toshok@ximian.com>
17769 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
17770 flickering in flat mode (and most of the flickering in general) by
17771 only invalidating the button border (and not the entire rectangle)
17772 when the state changes. A couple of cases still flicker:
17773 ToggleButtons, and the dropdown arrow case when the user mouse
17776 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
17778 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
17779 for german keyboards. Numlock state shouldn't affect the behaviour
17780 of the Del key. Fixes bug #78291.
17782 2006-08-10 Chris Toshok <toshok@ximian.com>
17784 * ListControl.cs: remove the items.Clear line from BindDataItems,
17785 as this is the first thing done by both subclasses in their
17786 SetItemsCore overrides. Also, add a ItemChanged handler, and when
17787 passed -1, refresh the list. This gets databinding working when
17788 the datasource is set on the list before the datasource is
17789 populated (as in wf-apps/ReportBuilder.)
17791 * ComboBox.cs: remove the argument to BindDataItems. This call
17792 should really go away, and be initiated by the ListControl code.
17794 * ListBox.cs: same.
17796 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
17798 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
17799 if no data is in the document when the control is displayed
17801 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
17803 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
17806 - PositionCaret: Allow positioning of caret but don't call methods
17807 requiring a handle if the window isn't created yet
17808 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
17809 - owner_HandleCreated: Don't position the caret, just update it's
17810 location. User might have already set a different position
17812 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
17814 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
17815 windows. Screws up the returned coordinates for child windows.
17816 Fixes #78825. I'm hoping this doesn't break something, since the
17817 code was explicitly put in 8 months ago, but no bug was attached.
17818 Menus still seem to work properly.
17820 2006-08-08 Chris Toshok <toshok@ximian.com>
17822 * DataGrid.cs: make BeginInit/EndInit actually do what they're
17823 supposed to do - delay data binding until the EndInit call. Also,
17824 make the table style collection's CollectionChangeAction.Refresh
17827 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
17828 (with action = Refresh) when a consituent table's MappingName is
17831 2006-08-08 Chris Toshok <toshok@ximian.com>
17833 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
17834 Invalidate, since changing the text can change the size of the all
17837 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
17839 * Form.cs (AddOwnedForm): Still need to add the form to our listif
17840 we don't have it yet
17842 2006-08-08 Chris Toshok <toshok@ximian.com>
17844 * PrintControllerWithStatusDialog.cs: don't .Close() the status
17845 dialog, as this causes X errors later on, since we actually
17846 destroy the window. Instead, .Hide() it.
17848 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
17850 * ComboBox.cs: Added focus reflection for popup window
17852 - Removed transient setting for non-app windows for now, not sure it
17854 - Fixed logic checking if we have captions when deciding
17855 override_redirect, WS_CAPTION is two bits and a 0 check was not
17857 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
17860 - AddOwnedForm: Don't just add the form to the list, call the property
17861 to ensure the driver is informed about the ownership as well
17862 - CreateHandle: Set the TopMost status in the driver if we have an owner
17863 * XplatUI.cs: Fixed debug statement
17865 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
17866 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
17867 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
17868 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
17869 TrackBarRenderer.cs: Make constructor private.
17870 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
17871 * ProfessionalColorTable.cs: Make properties virtual.
17873 2006-08-06 Duncan Mak <duncan@novell.com>
17875 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
17878 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
17879 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
17880 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
17881 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
17882 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
17883 Initial import of new 2.0 classes.
17885 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
17886 * Application.cs: Add 2.0 VisualStyles properties.
17888 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
17889 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17890 XplatUIX11.cs: Create property to allow access to existing private
17891 variable "themes_enabled"
17893 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17895 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
17896 file size, as otherwise our class libraries fail using windows. Fixes
17899 2006-08-04 Jackson Harper <jackson@ximian.com>
17902 * XplatUIX11.cs: Move the toolwindow window manager creation into
17903 the X11 driver, this way on win32 we can let windows create/handle
17906 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17908 * PrintDialog.cs: Remove some redundant checks, add some others,
17909 clean some code, and move the focus to the text boxes when the
17910 values are incorrect.
17912 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
17914 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
17916 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
17918 * NumericUpDown.cs: Setting the Minimum and Maximum is now
17919 handled correctly. Fixes bug #79001.
17921 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17923 * PrintDialog.cs: The "Copies" numeric up down must have
17924 set the Minimum property to 1; only if the value is bigger
17925 than 1, activate "Collate" check box. This is the behaviour of .Net.
17926 Also modify the Document elements only if it is not null.
17928 2006-08-03 Jackson Harper <jackson@ximian.com>
17930 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
17931 length. (We have a larger array then actual node count).
17933 2006-08-03 Jackson Harper <jackson@ximian.com>
17935 * ComboBox.cs: Don't show selection by default.
17936 - The SelectAll isn't needed here, since the focus code should do
17938 - DDL style lists to manual selection drawing, so when they
17939 get/lose focus they have to invalidate.
17941 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
17943 * TextBoxBase.cs: Don't always show all selections by default.
17945 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
17946 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
17947 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
17948 Fixed various typos.
17950 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
17952 * Control.cs: Removing the controls in a ControlCollection with
17953 Clear now hides the controls as expected. Fixes bug #78804.
17955 2006-08-03 Jackson Harper <jackson@ximian.com>
17957 * Control.cs: Revert previous focus patch, it breaks reflector.
17959 2006-08-03 Jackson Harper <jackson@ximian.com>
17961 * ComboBox.cs: Cleanup selection and focus with the combobox.
17962 This also eliminates some duplicated keyboard code, since now
17963 everything is handled by the main class.
17964 - Make list selection work on mouse up instead of down, to match
17967 2006-08-02 Jackson Harper <jackson@ximian.com>
17969 * Control.cs: Setting focus needs to go through the whole
17970 selection mechanism.
17972 2006-08-02 Chris Toshok <toshok@ximian.com>
17974 * PrintPreviewDialog.cs: change MinimumSize to use
17975 base.MinimumSize so it works.
17977 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
17980 - UpdateCaret: Added sanity check in case caret isn't defined yet
17981 - Line.Delete: Now updating selection and caret markers if we're
17982 transfering a node (Properly fixes #78323)
17983 - SetSelectionEnd: Added sanity check
17984 * TextBoxBase.cs: Removed broken attempt to fix #78323
17986 2006-08-01 Chris Toshok <toshok@ximian.com>
17988 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
17989 Close() call is handled in Form, not here.
17991 2006-08-01 Chris Toshok <toshok@ximian.com>
17993 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
17996 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
17997 for sizes < 100% zoom. The code now aggressively attempts to keep
17998 from calling document.Print (), and tries not to use the scaling
17999 g.DrawImage whenever possible (it still does if you scale to >
18000 100%, since usually that involves huge images).
18002 * PrintPreviewControl.cs: hook up the close button.
18004 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
18005 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
18006 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
18007 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
18008 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
18009 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
18010 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
18011 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
18012 Removed [Serializable] for 2.0 Event Handlers.
18014 2006-07-31 Jackson Harper <jackson@ximian.com>
18016 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
18017 * TextControl.cs: Uncomment out the body of this method.
18019 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
18021 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
18024 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
18026 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
18027 that embed TextBox and need selections visible even if textbox is not
18028 focused to enforce that behaviour.
18029 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
18032 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
18035 - Added new SetSelectionStart/SetSelectionEnd overloads
18036 - Fixed viewport width assignment to be accurate
18037 - Adjusted alignment line shift calculations to allow cursor on right
18038 aligned lines to be always visible at the right border (like MS)
18040 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
18041 - TextBoxBase_SizeChanged: recalculating canvas on size changes
18042 - CalculateScrollBars: Use ViewPort size instead of window size, to
18043 properly consider space occupied by the border and scrollbars
18045 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
18046 calculations; no longer leaves artifacts
18047 - CaretMoved: Adjusted window scrolling to match MS and fixed several
18048 calculation bugs (Still missing right/center align calculations)
18050 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
18052 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
18053 use of both scroll rect and clip rect, as they do the same.
18055 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
18057 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
18058 in the event handler (fixes #78912)
18060 2006-07-31 Chris Toshok <toshok@ximian.com>
18062 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
18063 grid.ListManager.Count, since grid.ListManager might be null.
18064 This of course begs the question "why are we drawing rows for a
18065 grid with no list manager (and therefor no rows)?" Fixes the
18066 crash in bug #78929.
18068 2006-07-31 Chris Toshok <toshok@ximian.com>
18070 * RelatedPropertyManager.cs: Don't always chain up to the parent
18071 ctor. instead, call SetDataSource if the parent's position is !=
18072 -1. Fixes the crash in #78822.
18074 2006-07-31 Chris Toshok <toshok@ximian.com>
18076 * DataGrid.cs (get_ListManager): use field instead of property
18077 accessors for datasource and datamember.
18078 (RowsCount): make internal again.
18079 (OnMouseDown): end edits before resizing columns/rows.
18080 (OnMouseUp): restart edits after resizing columns/rows.
18082 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
18084 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
18085 This fixes the situation where the last set cursor is displayed
18086 whenever the mouse is over scrollbars.
18088 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18090 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
18091 Document properties, as well as initial values.
18093 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
18095 * XplatUIWin32.cs (SetBorderStyle): Setting both border
18096 and ClientEdge results in a 3-pixel border, which is
18099 2006-07-28 Jackson Harper <jackson@ximian.com>
18101 * TreeNodeCollection.cs: Fix the clear method.
18102 - Fix the Shrink also
18104 2006-07-27 Jackson Harper <jackson@ximian.com>
18106 * TreeView.cs: Make sure the visible order is computed when we
18107 attempt to size the scrollbars (for trees that mess with the
18108 scrolling when they shouldn't.
18109 - Make sure to give the scrollbars valid values.
18111 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
18113 * XplatUIX11.cs: Move motion compression code to where it
18114 has less performance impact
18116 2006-07-26 Jackson Harper <jackson@ximian.com>
18118 * UpDownBase.cs: When the control is selected make the child
18119 controls non selectable, so that a click on them won't do a
18120 focus/unfocus cycle.
18121 - Don't give focus to the text box when the spinner is selected.
18122 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
18124 2006-07-26 Chris Toshok <toshok@ximian.com>
18126 * ThemeWin32Classic.cs: add print preview rendering. I'm not
18127 satisfied with this solution. If the bitmaps are small, we should
18128 just cache them in the PrintPreviewDialog and draw them here.
18129 Also, the layout is broken for the 2-up and 3-up cases.
18131 * Theme.cs: add PrintPReviewControlPaint.
18133 * PrintPreviewDialog.cs: first pass implementation.
18135 * PrintPreviewControl.cs: first pass implementation. No
18138 * PrintDialog.cs: only validate fields if that particular portion
18139 of the UI is enabled. Also, set the document's controller to a
18140 PrintControllerWithStatusDialog wrapping the document's print
18143 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
18144 bring up a SaveFileDialog (i hope we don't want to match the
18145 behavior of the crappy windows file entry) and set the
18146 PrinterSettings.PrintFileName accordingly.
18148 2006-07-26 Jackson Harper <jackson@ximian.com>
18150 * ContainerControl.cs: Add a field that disables auto selecting
18151 the next control in a container when the container is activated.
18152 * UpDownBase.cs: Don't select the text box when the up down is
18155 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
18157 * XEventQueue.cs: Added methods for peeking (used for compression
18158 of successive events)
18159 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
18160 mouse move events (fixes #78732)
18162 2006-07-25 Jackson Harper <jackson@ximian.com>
18164 * UpDownBase.cs: Use an internal class for the textbox so that we
18165 can control focus. the updown control should always have focus,
18166 if either the text area or the buttons are clicked.
18167 - Send the key messages to the textbox, since it never actually
18169 - Activate and decativate the textbox caret.
18171 2006-07-24 Jackson Harper <jackson@ximian.com>
18173 * Control.cs: Use the directed select when selecting a control,
18174 this way the container controls override will get called and the
18175 whole ActiveControl chain will get triggered. TODO: probably need
18176 to make sure this gets done everywhere instead of the old
18178 * ContainerControl.cs: Implement the directed Select method to
18179 find and activate the correct child control.
18181 2006-07-22 Mike Kestner <mkestner@novell.com>
18183 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
18184 menu handling code so that clicks without a grab work too.
18187 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
18189 * FileDialog.cs: Enable the BackButton when dirstack has one element.
18190 Added some small optimizations.
18192 2006-07-21 Matt Hargett <matt@use.net>
18194 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
18196 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
18198 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
18199 tests pass and match MS in some strange border cases.
18201 2006-07-21 Chris Toshok <toshok@ximian.com>
18203 * ThemeWin32Classic.cs: handle drawing of the relation links and
18204 parent row buttons.
18206 * Theme.cs: change args to DataGridPaintParentRow.
18208 * DataGrid.cs: Don't use controls for the relation links and
18209 parent buttons, so we have to handle all their interactions in
18210 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
18211 when we're navigating through child tables, so we can reinstate
18212 selection, expanded state, current cell, etc.
18214 2006-07-20 Chris Toshok <toshok@ximian.com>
18216 * ToolBar.cs: When we redraw a button, for whatever reason,
18217 there's no reason to redraw the entire toolbar. Also, don't call
18218 Control.Refresh from within Redraw, as it's much heavier than
18219 Invalidate (which is really what we want).
18221 2006-07-20 Chris Toshok <toshok@ximian.com>
18223 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
18224 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
18225 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
18226 traces from within a debug IBindingList datasource
18227 (in mono/winforms/datagrid) for *days*, I've finally gotten things
18228 to work in a similar fashion.
18230 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18232 * ListBox.cs: Don't call Sort () when setting
18233 the Sorted property to false (avoid an unnecessary sort).
18235 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18237 * ListControl.cs: DataSource should throw an ArgumentException
18238 instead of a normal exception when the argument is not of the
18241 2006-07-20 Mike Kestner <mkestner@novell.com>
18243 * Control.cs: add InternalPreProcessMessage to allow us to steal
18244 key events before MWF gets its paws on them. Adapted from a
18246 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
18247 up/down/left/right navigation. Override the new internal control
18248 method to steal the events since they never make it to WndProc.
18249 * ToolBarButton.cs: don't worry about pushed when setting hilight
18250 since the drawing code prefers pushed to hilight. Invalidate on
18251 Hilight changes. Fixes #78547 and #78525.
18253 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
18255 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
18256 the canvas size. Fixes #78868
18258 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
18260 * Splitter.cs: Track requested split position until first layout
18261 is performed. Fixes #78871
18263 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
18265 * Application.cs: Removed code that forces 1.x for the version
18266 number if the version started with 0. Not sure why that code was
18267 there and I couldn't find any bugs that indicated we needed it.
18270 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
18272 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
18273 ResetDefaults(), just write some output to the console until it's
18274 implemented. Fixes bug #78907 for now. Eliminated two warnings.
18276 2006-07-19 Jonathan Chambers <joncham@gmail.com>
18278 * PropertyGridView.cs: set StartPosition of drop down forms
18279 so they appear in correct initial spot. Fixes #78190.
18281 2006-07-19 Mike Kestner <mkestner@novell.com>
18283 * ThemeWin32Classic.cs: use parent background color when drawing
18284 flat toolbars. Restructure the conditionals to make sure non-flat
18285 non-Divider toolbars are filled too. Fixes #78837.
18287 2006-07-19 Mike Kestner <mkestner@novell.com>
18289 * ListBox.cs: Sort on collection changes even if the handle
18290 isn't created yet. Fixes #78813.
18292 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18294 * ListControl.cs: DisplayMember should never be null,
18295 and now we assign String.Empty when null is passed to it (this
18298 2006-07-17 Mike Kestner <mkestner@novell.com>
18300 * ListViewItem.cs: restructure Font and subitem Font handling
18301 to hold a specific font and refer back to owner on null.
18304 2006-07-17 Mike Kestner <mkestner@novell.com>
18306 * ToolBar.cs: bandaid for side-effect of previous patch which was
18307 discarding explicit heights for non-AutoSize toolbars. Need to
18308 extend my format tester to deal with AutoSize=false. Fixes #78864.
18310 2006-07-15 Jackson Harper <jackson@ximian.com>
18312 * LabelEditTextBox.cs:
18313 * TreeView.cs: Use a new LabelEdit class for node editing, this
18314 class automatically 'closes' itself when it gets the enter key or
18316 - Use the client rectangle when setting the trees scrollbars, so
18317 border style is taken into account.
18319 2006-07-14 Jackson Harper <jackson@ximian.com>
18322 * TreeView.cs: Make the editing work similar to MSs, firing the
18323 events correctly and ending edits correctly.
18325 2006-07-14 Mike Kestner <mkestner@novell.com>
18327 * ToolBarButton.cs:
18328 * ToolBar.cs: layout restructuring and redraw enhancements to support
18329 formatting changes gracefully, like setting TextAlign, ImageList,
18330 ButtonSize, and Appearance. Handles explicit button sizing quirks
18331 of the MS controls. Things like flat toolbars ignoring button size
18332 but becoming constant sized at the largest button's size. Normal
18333 toolbars with an image set cannot be shrunk smaller than the image,
18334 but text can be clipped/ignored.
18335 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
18336 is zero. Seems like DrawString should be smart enough to not put
18337 anything on screen though. Also trim labels and ellipsize at the char
18338 boundary, not word.
18339 Fixes #78711 and #78483.
18341 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
18343 * FolderBrowserDialog.cs: Disable "New Folder" button and
18344 "New Folder" contextmenu menuitem if a folder like "My Computer"
18347 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
18349 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
18350 * FolderBrowserDialog.cs:
18351 - Use MWFConfig to store and read size and position settings
18352 - Added code to create a new folder (button or context menu).
18353 Use TreeView labeledit to change the name of the new folder.
18355 2006-07-14 Jackson Harper <jackson@ximian.com>
18357 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
18358 when the tree is scrolled we end editing.
18360 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
18362 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
18365 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
18367 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
18368 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
18369 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
18370 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
18371 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
18372 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
18373 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
18374 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
18375 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
18376 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
18377 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
18378 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
18379 ListViewItemSelectionChangedEventHandler.cs,
18380 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
18381 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
18382 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
18383 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
18384 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
18385 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
18386 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
18387 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
18388 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
18389 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
18390 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
18391 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
18392 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
18393 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
18394 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
18395 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
18396 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
18397 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
18398 WebBrowserNavigatingEventHandler.cs,
18399 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
18401 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
18403 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
18404 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
18405 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
18406 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
18407 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
18408 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
18409 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
18410 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
18411 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
18412 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
18413 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
18414 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
18415 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
18416 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
18417 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
18418 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
18419 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
18420 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
18421 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
18422 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
18423 ListViewItemStates.cs, MaskFormat.cs: Added
18425 2006-07-13 Jonathan Chambers <joncham@gmail.com>
18427 * PropertyGridView.cs: Fix keyboard navigation of drop down.
18428 Patch from eno for bug 78558.
18430 2006-07-13 Jackson Harper <jackson@ximian.com>
18432 * TreeView.cs: When an edit is finished make sure that the
18433 selected node is visible.
18434 - When setting the top/bottom use the scrollbars is_visible, so
18435 everything will be set correctly even if the tree isn't visible
18438 2006-07-13 Jackson Harper <jackson@ximian.com>
18440 * ComboBox.cs: Revert the item->index part of my previous patch.
18441 * TreeView.cs: Use LostFocus instead of Leave for detecting when
18442 the edit box has lost focus (duh).
18443 - Just make the edit box not visible when we get return, that will
18444 take the focus, which will call EndEdit
18445 * TreeNode.cs When we start editing, notify the treeview.
18447 2006-07-12 Jackson Harper <jackson@ximian.com>
18449 * ComboBox.cs: Clear out old items before setting the item list.
18450 This prevents databound controls from having their items added
18452 - Switch the combobox to use indices whereever possible instead of
18453 using Item's. This allows usto navigate through lists that have
18454 more then one item with the same string value (ie a, b, b, a).
18455 - Scroll the listboxes scrollbar when a non visible item is
18457 - Allow keypress to cycle through all the possible values. For
18458 example if you have b1, b2, b3 and hold down the B key all the
18459 values will be cycled through.
18461 2006-07-12 Jackson Harper <jackson@ximian.com>
18464 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
18465 this using the internal methods.
18466 * Control.cs: Add OnGotFocusInternal. A new method that allows
18467 controls to "override" OnGotFocus and change focus behavior if
18469 - Same thing for LostFocus
18470 * ComboBox.cs: Pass off focus to the text control properly.
18472 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
18474 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
18475 * FolderBrowserDialog.cs: Almost a complete rewrite.
18476 - Better support for Environment.Specialfolders
18477 - Added support for MWFVFS
18478 - Made setting SelectedPath work
18480 2006-07-12 Jackson Harper <jackson@ximian.com>
18482 * Control.cs: Optimze getting all the controls.
18484 2006-07-11 Jackson Harper <jackson@ximian.com>
18486 * ContainerControl.cs: Override SETFOCUS in the container control,
18487 so that it is not selected on mouse click.
18489 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
18491 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
18492 Hopefully we will have a better way once all of focus is complete.
18494 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
18496 * ThemeWin32Classic.cs: Commented out some debug code and fixed
18497 a compile error with csc.
18499 2006-07-11 Jackson Harper <jackson@ximian.com>
18501 * Control.cs: When hiding a control only select the next control
18502 if the current control was focused.
18503 - Don't handle enter/leave when setting/killing focus, this is
18504 done by the container control.
18505 - Remove is_selected, it's not needed anymore.
18506 - Add utility methods for selecting a child control, and for
18507 firing the Enter/Leave events.
18508 * ContainerControl.cs: When a control is activated fire the
18509 enter/leave events.
18510 - Don't wrap when processing the tab key, so that focus can be
18511 moved outside of the container.
18512 - Use the correct active control
18514 2006-07-11 Jackson Harper <jackson@ximian.com>
18516 * ComboBox.cs: Remove some debug code that was blinding me.
18517 * UpDownBase.cs: These controls actually aren't implicit, they are
18518 visible to the user.
18520 2006-07-10 Chris Toshok <toshok@ximian.com>
18522 * DataGrid.cs: move back to the is_adding boolean field. god i
18523 hate this is_editing/is_adding/is_changing stuff.
18525 2006-07-10 Chris Toshok <toshok@ximian.com>
18527 * DataGridTableStyle.cs: just check if the property type is bool.
18528 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
18529 Don't use CanRenderType.
18531 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
18532 if our text == NullText. Remove CanRenderType.
18534 * DataGridBoolColumn.cs: nuke CanRenderType.
18536 * DataGrid.cs: reenable some code to end the current edit inside
18537 of set_CurrentCell. This fixes the other 1.1.16 regression.
18538 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
18539 Also, remove the visible_row_count arg from CalcRowHeaders, since
18540 we don't need to worry about the actual height of the area.
18542 2006-07-10 Chris Toshok <toshok@ximian.com>
18544 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
18547 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
18548 the real sense of the IsInEditOrNavigateMode property (true =
18549 navigate, false = edit). Also, update OnKeyPress to reflect this.
18551 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
18552 column style exists, we still need to set its property descriptor
18553 to match up with our list manager.
18555 2006-07-10 Chris Toshok <toshok@ximian.com>
18557 * ThemeWin32Classic.cs: implement the new row/header painting
18558 approach. The parent row painting will likely go away and
18559 replaced with label controls, but the rest seems to work ok (and
18562 * Theme.cs: change the way we draw datagrid rows. we don't draw
18563 the row headers as a block now. Instead we draw them in the
18564 normal draw-row loop. Add some calls for drawing parent rows and
18567 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
18568 a default table style. Set the defaults from ThemeEngine.Current,
18569 not SystemColors. Fix lots of misc issues with property setters.
18571 * DataGrid.cs: move loads of style information out of this class
18572 as it's being duplicated with DataGridTableStyle. keep track of a
18573 special DataGridTableStyle for the properties we used to mirror
18574 here. Switch all the style properties to access this table style
18575 instead of instance fields of this class. Also add a internal
18576 class to represent parent rows (more needs to be stored here, like
18577 the selection state from the parent table, as well as the
18578 expansion state.) Also, for datasources with relations, do the
18579 right thing for collapse/expand, and add support for the
18580 navigation/parent row buttons.
18582 Lastly, fix the crash in the 1.1.16 build.
18584 * GridTableStylesCollection.cs: make the explicit interface
18585 implementations call the class's methods as opposed to duplicating
18588 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
18589 0 so the text doesn't jump around when we move the cursor.
18591 2006-07-10 Jackson Harper <jackson@ximian.com>
18594 * ListBox.cs: Match MS's ToString (this makes debugging focus
18595 stuff infinitely easier).
18597 2006-07-10 Jackson Harper <jackson@ximian.com>
18599 * Control.cs (SelectNextControl): When checking the control's
18600 parent use this instead of ctrl.parent so that null can be passed
18601 to SelectNextControl. (I have unit tests for this).
18602 - Remove unused var.
18604 2006-07-10 Chris Toshok <toshok@ximian.com>
18606 * CurrencyManager.cs: correct one regression, the removal of the
18607 finalType field. Also, add a MonoTODO on CanAddRows, implement
18608 Refresh() correctly, and fix some event emission in
18609 ListChangedHandler.
18611 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
18613 * FileDialog.cs: Don't use brackets for new folders if they exist
18614 under *nix. Instead use -(number of existing folders +1).
18616 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
18619 - Fixed really nasty bug #78771
18620 - Don't block the whole GUI when reading directories with a lot of
18621 entries. Use an other thread instead and call BeginInvoke to
18622 update the ListView in MWFFileView
18624 2006-07-07 Chris Toshok <toshok@ximian.com>
18626 * Control.cs (Dispose): release any Capture when disposing.
18628 2006-07-07 Chris Toshok <toshok@ximian.com>
18630 * LinkLabel.cs (Select): if we chain up to the parent, set
18631 focused_index to -1 so we'll search for the first available link
18632 the next time the user tabs into us. Also, if the direction is
18633 backward and focused_index == -1, start the search from the last
18636 2006-07-07 Chris Toshok <toshok@ximian.com>
18638 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
18639 is beyond the end of the text, don't do anything.
18640 (CreateLinkPieces): set our ControlStyles.Selectable based on
18641 whether or not we have any links.
18642 (Link.Invalidate): use a loop instead of foreach.
18643 (Link.set_Start): null out owner.sorted_links so it'll be
18644 recreated by CreateLinkPieces.
18646 2006-07-06 Chris Toshok <toshok@ximian.com>
18648 * LinkLabel.cs: revert the SetStyle change.
18650 2006-07-06 Chris Toshok <toshok@ximian.com>
18652 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
18653 (OnEnableChanged): s/Refresh/Invalidate
18654 (OnGotFocus): if we have a focused index already, refocus it (so
18655 if we mouse out/in to the window it'll focus the right link).
18656 (OnKeyDown): move the tab handling out of here.
18657 (OnLostFocus): don't set focused_index to -1, so we can refocus it
18658 when we lose focus.
18659 (OnMouseDown): don't Capture here - Control handles it. Also,
18660 focus the active link.
18661 (OnMouseUp): don't deal with Capture.
18662 (OnPaintBackgroundInternal): remove.
18663 (OnTextAlignChanged): CreateLinkPieces before calling the
18664 superclass's method.
18665 (OnTextChanged): call CreateLinkPieces before calling superclass's
18667 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
18669 (Select): implement this, moving the selection between different
18670 links, and call parent.SelectNextControl if we don't have another
18671 link to focus in the given direction.
18672 (CreateLinkPieces): call Invalidate instead of Refresh.
18674 2006-07-06 Chris Toshok <toshok@ximian.com>
18676 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
18677 new LinkLabel internals.
18679 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
18680 over pieces looking for active/focused/etc links. also, deal with
18681 runs of text (and links) with embedded \n's in them, and use
18682 MeasureCharacterRanges instead of MeasureString to figure out the
18683 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
18686 2006-07-04 Jackson Harper <jackson@ximian.com>
18688 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
18689 XKB or key auto repeat, do it manually. Without key auto repeat,
18690 when a key is held down we get key press, key release, key press,
18691 key release, ... with auto repeat we get key press, key press, key
18692 press ..., and then a release when the key is actually released.
18694 2006-07-03 Jackson Harper <jackson@ximian.com>
18697 * ThemeWin32Classic.cs: Tabs do not obey normal background color
18698 rules, they are always control color regardless of the background
18701 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
18703 * FileDialog.cs: Added internal class MWFConfig.
18704 Removed Registry support and replaced it with support for the new
18705 MWFConfig class. See MWFConfig comments for more information.
18707 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
18709 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
18710 rectangle. Added some patches from eno from bug #78490 and fixed
18711 the arrow position for small up and down CPDrawScrollButtons.
18713 2006-06-30 Jackson Harper <jackson@ximian.com>
18715 * InternalWindowManager.cs: Remove some debug code.
18716 * Form.cs: When an MdiParent is set to null, the window is
18717 "detatched" and becomes a normal window.
18718 * MdiClient.cs: Don't bring the new child form to the front until
18719 it is activated (setting it as active does this), this makes the
18720 previously active forms titlebar get redrawn as inactive.
18722 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
18724 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
18725 with later controls
18727 2006-06-29 Mike Kestner <mkestner@novell.com>
18729 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
18730 arrow in keynav state. Fixes #78682.
18732 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
18734 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
18735 order (fixes #78393)
18737 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
18739 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
18740 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
18741 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
18742 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
18743 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
18744 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
18745 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
18746 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
18747 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
18748 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
18749 enumerations (FlagsAttribute, SerializableAttribute, added/removed
18752 2006-06-28 Mike Kestner <mkestner@novell.com>
18754 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
18756 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
18759 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
18760 item lines from other area (It also makes BackColor consistent and
18761 compatible with .NET). Fixed bug #78564.
18763 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
18765 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
18766 Patch from Eno for #78555.
18768 2006-06-27 Chris Toshok <toshok@ximian.com>
18770 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
18772 * DataGridColumnStyle.cs: same.
18774 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
18776 * DataGridDrawingLogic.cs: nuke.
18778 2006-06-27 Chris Toshok <toshok@ximian.com>
18780 * DataGridTableStyle.cs: clean up the constructors, and build the
18781 list of child relations for this table. I have no idea if this is
18782 where we should be doing it (it probably isn't), but since we're
18783 already iterating over the properties..
18785 * DataGrid.cs: add row resizing. for now we add a DataGridRow
18786 struct and array for keeping track of row information, similar to
18787 what's shown in a hack on
18788 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
18790 * Theme.cs: be consistent about the naming of DataGrid methods,
18791 prefering ColumnWidths and RowHeights over columnsWidths and
18794 * ThemeWin32Classic.cs: same, and also add support for variable
18795 sized rows (and the +/- expansion icons for related rows).
18797 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
18799 * TextBoxBase.cs: Applied Eno's patch from #78660
18801 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
18803 * Form.cs (ScaleCore): We don't want to scale our form if it's
18804 state is minimized or maximized, but we still need to scale our
18805 child windows. Also, added try/finally block to ensure layout
18806 gets reset (Fixes #78697)
18808 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
18810 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
18812 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
18814 * Form.cs: Fixed c+p error and added check to resize form if minimum
18815 size is bigger than current size (Fixes #78709)
18817 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
18819 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
18821 2006-06-26 Mike Kestner <mkestner@novell.com>
18823 * ComboBox.cs: only do Keypress handling in the combo when there
18824 are items in the collection. Fixes #78710.
18826 2006-06-26 Chris Toshok <toshok@ximian.com>
18828 * Binding.cs: make this work bi-directionally. also, clear up
18829 other mixups between Push/Pull Data (e.g. we're supposed to pull
18830 data when validating).
18832 * BindingManagerBase.cs: trim some fully qualified collection
18835 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
18837 2006-06-23 Chris Toshok <toshok@ximian.com>
18839 * PropertyManager.cs: It appears (according to the unit tests)
18840 that PropertyManager doesn't use
18841 PropertyDescriptor.AddValueChanged to track propery value changes
18842 in its datasource, but uses the same scheme as Binding, where it
18843 looks for a <Property>Changed event and binds to it.
18845 Also, according to the docs, IsSuspended always returns false for
18846 a property manager with a non-null datasource.
18848 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
18850 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
18851 need to update the actual DialogResult. (Fixes #78613)
18853 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
18855 * Form.cs (ShowDialog): Release any captures before running the
18856 new message pump (fixes #78680)
18858 2006-06-22 Mike Kestner <mkestner@novell.com>
18860 * ListView.cs: Layout column widths properly in details mode even
18861 if HeaderStyle.None is set. Fixes #78691.
18863 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
18865 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
18867 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
18869 * Control.cs (ContainsFocus): Using new driver method to get focused
18870 window, instead of trying to use internal tracking var, which can
18871 recursion issues (Fixes #78685)
18872 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
18873 XplatUIWin32.cs: Added GetFocus method to return focused window
18875 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18877 * ColorDialog.cs: when the mouse button is pressed inside the color
18878 matrix, don't let the cursor move out of it until the button is
18879 released, which is the behavior on windows. Changed 'colours' by
18880 'colors' to use the same word consistently.
18882 2006-06-21 Chris Toshok <toshok@ximian.com>
18884 * DataGrid.cs: add in some basic navigation stuff (navigating to a
18885 child relation and back, using a stack). Also, remove
18886 GetDataSource and the code that calls it - it's not needed. Also,
18887 track CurrencyManager.ListName's removal.
18889 2006-06-21 Chris Toshok <toshok@ximian.com>
18891 * CurrencyManager.cs: push some of the original type checking from
18892 BindingContext.CreateBindingManager to here, and remove some of
18893 the finalType stuff. Need more tests to make sure I've got the
18894 ListName part right, and we might need more in SetDataSource.
18896 * PropertyManager.cs: add a ctor that takes just the datasource,
18897 and no property name. Make SetDataSource work with a null
18898 property_name, and make Current return the data_source if the
18899 property descriptor is null. this makes 'string foo = "hi";
18900 BindingContext[foo].Current' return "hi" as it should.
18902 * RelatedCurrencyManager.cs: make this code more generic - there's
18903 no reason the parent manager has to be CurrencyManager, and
18904 there's no reason to pass the DataRelation. It suffices to use a
18905 BindingManagerBase and PropetyDescriptor.
18907 * RelatedPropertyManager.cs: make a similar change here.
18909 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
18910 flower I knew it could be.
18912 2006-06-20 Chris Toshok <toshok@ximian.com>
18914 * PropertyManager.cs: the PropertyChangedHandler is invoked when
18915 data in the source has changed and we need to update the control,
18916 so s/PullData/PushData.
18918 * CurrencyManager.cs: Refresh is meant to update the control from
18919 data in the datasource. So, s/PullData/PushData.
18921 * BindingContext.cs: add more ugliness (we weren't handling the
18922 case where data_source = DataTable and data_member = column_name).
18924 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
18925 from the perspective of the datasource. PullData pulls from the
18926 control, PushData pushes to the control.
18928 2006-06-20 Chris Toshok <toshok@ximian.com>
18930 * BindingContext.cs: rewrite the CreateBindingManager code to
18931 handle navigation paths more or less properly. This could
18932 definitely stand some more work, in particular to push the
18933 recursion up to the toplevel. But that relies on fixes in other
18934 places (System.Data comes to mind).
18936 Also, move to a flat hashtable (and encode the twolevel nature of
18937 the dictionary into the hash key). This lets us implement the
18938 IEnumerable.GetEnumerator method.
18940 * RelatedCurrencyManager.cs: new class. Update our view based on
18941 our relation and our parent CurrencyManager's position.
18943 * CurrencyManager.cs: split out some logic from the ctor into
18944 SetView, so it can be called from the new RelatedCurrencyManager
18947 * RelatedPropertyManager.cs: new class. Update our datasource
18948 based on the position of our parent CurrencyManager.
18950 * PropertyManager.cs: split out some logic from the ctor into
18951 SetDataSource, so it can be called from the new RelatedDataSource
18952 subclass. Also, make the Current getter return the value
18953 of the PropertyDescriptor, not the data_source.
18955 * Binding.cs: no need to duplicate the string splitting code here.
18957 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
18960 - set_Enabled: OnEnabledChanged is not called if the inherited state
18961 of the control is not altered, even though we might be changing the
18962 internal state of the control (#78458)
18963 - set_Enabled: (Re)Moved the enabling/disabling of the window to
18964 OnEnabledChanged, to allow easy altering of any child window state
18965 - OnEnabledChanged: Added code to enable/disable driver window state
18966 - OnParentEnabledChanged: Instead of firing the event, call
18967 OnEnabledChanged, which will fire the event and also a) set driver
18968 window state and pass the enabled state to any grandchildren (#78458)
18970 2006-06-19 Jackson Harper <jackson@ximian.com>
18972 * InternalWindowManager.cs: We don't set the cursor explicitly
18973 thats done via the response to NCHITTESTs.
18974 - Don't need to adjust for titlebar heights anymore, the
18975 coordinates are coming in the correct coordinates now (see peters
18979 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
18981 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
18982 being translated relative to whole window, instead of client window.
18983 That caused broken offsets on mouseclick (and caused gas for our
18984 InternalWindowManager)
18986 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
18989 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
18990 - Undo(): Added replay of cursor move on DeleteChars action; added
18991 calling Undo() again if a recorded cursor move is invalid (to
18992 ensure that some action is performed on Undo)
18993 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
18995 2006-06-16 Jackson Harper <jackson@ximian.com>
18997 * MdiClient.cs: Instead of just sizing maximized windows when
18998 there is a resize we also have to adjust the Y of minimized
18999 windows, so they stay pinned to the bottom of the mdi container.
19000 - Eliminate separate tracking of the active control, we can just
19001 get this from the controls collection.
19002 - Paint the decorations for the newly activated titlebar so we get
19004 * InternalWindowManager.cs:
19005 * ThemeWin32Classic.cs: Minimized windows get all three buttons
19006 even if they are a tool window.
19008 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
19010 * TextControl.cs (Undo): Handle non-existent cursor locations in the
19011 undo buffer, these can happen when text was deleted and the cursor
19012 was recorded first. Since we will also have a recorded cursor
19013 after the delete this is not an issue. (Fixes #78651)
19015 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
19017 * AccessibleObject.cs: Remove dependence on Control.is_selected;
19018 instead properly track control states internally (allows us to
19019 remove is_selected from Control)
19021 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19023 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
19024 whose width is not a multiple of 8.
19026 2006-06-13 Jackson Harper <jackson@ximian.com>
19028 * MdiClient.cs: Only maximize the next child if the current one
19031 2006-06-13 Chris Toshok <toshok@ximian.com>
19033 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
19034 modified. Also, guard against grid or grid_drawing being null in
19037 * DataGrid.cs: Reformat tons of getters/setters. In the
19038 DataMember setter, just call SetNewDataSource instead of
19039 duplicating some of its functionality. In SetNewDataSource, don't
19040 check ListManager for null, since the property getter creates the
19043 * DataGridTableStyle.cs: don't set TableStyle or call
19044 SetDataGridInternal on the column here, it's done in
19045 GridColumnStylesCollection.Add.
19047 * GridColumnStylesCollection.cs: fix all the explicit interface
19048 implementations to just call our methods. Nuke AddInternal() and
19049 move the body of it to Add(). Also, add a call to
19050 column.SetDataGridInternal to Add().
19052 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
19053 base()+duplicate code. Also, use the Format property instead of
19054 format to generate an Invalidate ala MS. Lastly, create the
19055 textbox here, unconditionally.
19056 (set_Format): call Invalidate.
19057 (get_TextBox): no need to call EnsureTextBox.
19058 (Commit): remove the message box.
19059 (Edit) remove the call to EnsureTextBox.
19060 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
19061 (EnterNullValue): no need to check textbox for null.
19062 (HideEditBox): no need to check textbox for null.
19063 (SetDataGridInColumn): add the textbox to the grid's controls.
19064 (EnsureTextBox): nuke.
19066 2006-06-13 Jackson Harper <jackson@ximian.com>
19068 * MdiWindowManager.cs: Hook up to the maximized menus paint event
19069 and redraw the buttons when needed. Unhook when the window is
19071 * MainMenu.cs: Add an internal Paint event, the mdi window manager
19072 needs this so that it can redraw its buttons when the menu is
19074 * InternalWindowManager.cs:
19075 * Form.cs: The method order has changed for DrawMaximizedButtons,
19076 so that it can be a PaintEventHandler.
19078 2006-06-13 Jackson Harper <jackson@ximian.com>
19080 * MdiClient.cs: When we close a maximized mdi window, the next mdi
19081 window is activated and maximized, even if it wasn't before.
19082 - When a new window is activated repaint the decorations of the
19083 old one, so that it no longer has the Active "look" (the blue
19085 * InternalWindowManager.cs: Open up CreateButtons to base classes
19086 so they can recreate the buttons on state changes.
19087 - If a window is maximized give it all three buttons
19088 * MdiWindowManager.cs: Create the titlebar buttons when the state
19089 is changed, this is needed because a toolwindow will not have all
19090 three buttons until it is maximized.
19092 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
19094 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
19097 2006-06-12 Jackson Harper <jackson@ximian.com>
19099 * KeysConverter.cs: Make sure we handle the Ctrl special case
19100 if its the only key.
19102 2006-06-12 Jackson Harper <jackson@ximian.com>
19104 * Theme.cs: Add a method to get the size of a managed window
19106 * InternalWindowManager.cs: Remove the ButtonSize property, this
19107 should be retrieved from the theme.
19108 * MdiWindowManager.cs: Get the button size from the theme
19109 * ThemeWin32Classic.cs: Make the method to get the managed window
19110 titlebar button size public.
19111 - Handle the different button sizes of maximized toolwindows
19112 (should match any maximized window).
19113 - Get the titlebar height from the theme, not the WM (which gets
19114 it from the theme).
19116 2006-06-12 Jackson Harper <jackson@ximian.com>
19118 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
19119 event down to the mdi window manager.
19120 - Expose some extra stuff to base classes
19121 - Make sure to end the Capture on an NC Mouse up, so that we can
19122 get double clicks properly, and the sizing doens't stick.
19123 - When doing PointToClient contain it in the workable desktop
19124 area, this prevents windows from changing size when the cursor is
19125 pulled outside of the working area while sizing.
19126 * MdiWindowManager.cs: When we get a double click maximize the
19128 - Reset the cursor after handling mode changes.
19130 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
19132 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
19133 current desktop, instead of just assuming a 0, 0 origin. This
19134 is needed for our internal window manager, to know the top
19135 margin of the desktop
19137 2006-06-12 Chris Toshok <toshok@ximian.com>
19139 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
19140 we need this to get rid of the selected background in the bool
19142 (CancelEditing): move the ConcedeFocus call to above the Abort
19143 call. Also, set is_changing to false and invalidate the row
19144 header if we were changing before.
19145 (ProcessKeyPreviewInternal): remove, since noone outside this
19146 class calls it anymore. Roll the code into ProcessKeyPreview.
19147 (EndEdit): remove the internal version.
19148 (InvalidateCurrentRowHeader): make private.
19150 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
19151 Keys.Escape handling (and with it the last call to
19152 DataGrid.EndEdit from outside the class.)
19155 2006-06-12 Chris Toshok <toshok@ximian.com>
19157 * DataGridTextBox.cs (.ctor): isedit defaults to false.
19158 (OnKeyPress): set isedit to true.
19159 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
19160 already handled by the grid.
19162 * DataGrid.cs (set_CurrentCell): more work here. it's still not
19164 (set_DataSource): SetDataSource always returns true, so stop
19165 putting it in an if statement.
19166 (EndEdit): get rid of some {}'s
19167 (ProcessGridKey): return true in case Keys.Escape.
19168 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
19169 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
19170 PositionChanged, stopped connecting to CurrentChanged.
19171 (GetDataSource): simplify this a bunch.
19172 (SetDataSource): change return type from bool to void.
19173 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
19174 to this, and make sure we don't set ListManager.Position inside
19176 (OnListManagerItemChanged): if we're passed an actual index,
19179 * CurrencyManager.cs (set_Position): don't call PullData here.
19181 2006-06-09 Jackson Harper <jackson@ximian.com>
19183 * TreeNode.cs: Recalculate the visible order before doing the
19184 Expand/Collapse Below calls, because those calls generate an
19186 - Reduce calls to the TreeView property, which is mildly expensive
19187 by using a local var.
19188 * Form.cs: Layout the MDI child windows when creating the parent
19190 - Don't use the internal constructor anymore
19191 * MdiClient.cs: use the parent form width/height (if available)
19192 when laying out the child windows, we do this because the
19193 mdiclient isn't docked yet when the initial layout is done.
19194 - Don't need an internal constructor anymore.
19196 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19198 * FileDialog.cs: handle access errors when trying to create a folder
19199 or changing to a directory. No need to initialize out parameters.
19201 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
19203 * FileDialog.cs: Append a number when creating a new folder if the
19204 folder already exists (use parenthesis instead of square brackets)
19206 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
19209 - Disabled registry support for windows and added better registry
19210 error checking for other systems (need to investigate why it
19211 works perfectly on my system)
19212 - If a folder already exist show an error MessageBox instead of
19213 trying to create an indexed name.
19214 - Fixed a non intentional typo.
19216 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19218 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
19220 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
19222 * FileDialog.cs: When creating a new folder don't crash if the
19223 folder already exists.
19225 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
19227 * FileDialog.cs: Allmost a complete rewrite.
19228 - added a "virtual" file system that handles the differences
19229 between unix and windows file systems (especially the directory
19230 structure). Moved most of the directory and file handling code
19232 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
19233 UnixFileSystem and FSEntry.
19234 - Recently used folder/directory, size, location and used file names
19235 (file name ComboBox) are now stored in the registry and get read
19236 before the dialog shows up (fixes part 6 of bug #78446).
19237 - Creation of new folders/directories is now possible (context menu
19238 or ToolBar). Added TextEntryDialog for this that fills in the gap
19239 until ListView.LabelEdit works.
19240 - Fixed cursor handling (bug #78527) and focus handling for
19242 - Various "Search in" ComboBox enhancements. The content of the
19243 dropdown listbox now almost matches ms.
19244 - Changed the behaviour when the user switches to SpecialFolder
19245 Recent to show the ListView in View.Details.
19246 - Beside using the ToolBar to change the View property of the
19247 file ListView it is now possible to use the context menu too.
19249 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
19251 * ComboBox.cs: Don't create a new ObjectCollection when an item
19252 gets inserted. Just insert the item in the existing object_items
19255 2006-06-08 Jackson Harper <jackson@ximian.com>
19257 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
19258 that the treeview and root node checks are done also, this fixes a
19259 regression i caused in the unit tests.
19261 2006-06-07 Wade Berrier <wberrier@novell.com>
19263 * RichTextBox.cs: More ISO8859-1 -> unicode
19265 2006-06-07 Mike Kestner <mkestner@novell.com>
19267 * ComboBox.cs : use items to hold highlight/selection so that
19268 collection insertions don't require synchronization.
19270 2006-06-07 Jackson Harper <jackson@ximian.com>
19272 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
19273 routine. We now always keep the sized edge at the cursor instead
19274 of computing movement and adjusting rects. There is one buglet
19275 with this method though when the cursor is moved over area that
19276 the window can not expand too (such as the toolbars on the desktop).
19278 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19280 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
19281 here. Fixes crash on startup in AlbumSurfer.
19283 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
19285 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
19288 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19290 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
19291 statement to avoid calling XNextEvent which will block if another thread
19292 took the event that we were expecting. Fixes bug #78605.
19294 2006-06-07 Mike Kestner <mkestner@novell.com>
19296 * ListView.cs : isolated checkbox clicking from the selection logic.
19297 Toggle check state on item doubleclicks. Really fixes #78454 part2.
19299 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19301 * Form.cs: Check that the value passed to Form.DialogResult
19302 is a valid enum value.
19304 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19306 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
19307 Computer'. Clicking it in the network view goes to 'My Computer'.
19308 Added CIFS filesystem type. Display the mount point of filesystems.
19309 Avoid duplicate mount points (happens for me with CIFS);
19311 2006-06-06 Jackson Harper <jackson@ximian.com>
19313 * InternalWindowManager.cs: Draw the maximized windows buttons
19316 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19318 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
19319 all other dialogs. Fixes bug #78585.
19321 2006-06-06 Mike Kestner <mkestner@novell.com>
19323 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
19324 Only invalidate checkbox on checkstate changes to avoid flicker.
19325 * ListBox.cs : avoid unselect/select when clicking selected item.
19326 avoid reselection flicker for already multiselected items.
19329 2006-06-06 Jackson Harper <jackson@ximian.com>
19331 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
19332 the parent form so that the menu is removed if needed.
19334 2006-06-06 Mike Kestner <mkestner@novell.com>
19336 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
19337 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
19339 2006-06-06 Mike Kestner <mkestner@novell.com>
19341 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
19344 2006-06-06 Jackson Harper <jackson@ximian.com>
19346 * Control.cs: Use the property (instead of the field) to get the
19347 default cursor so it is instantiated correctly.
19348 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
19349 resizes so we need to manually repaint the window decorations here.
19350 - Set the titlebar button locations as soon as they are created,
19351 otherwise they are not set correctly on win32.
19353 2006-06-06 Chris Toshok <toshok@ximian.com>
19355 * CurrencyManager.cs (set_Position): call PullData before
19357 (AddNew): after calling IBindingList.AddNew, update our
19358 listposition, and call OnCurrentChanged/OnPositionChanged (without
19360 (OnCurrentChanged): remove the call to PullData from here.
19361 (OnItemChanged): remove the call to PushData from here.
19362 (OnPositionChanged): change the test from == null to != null to
19363 match the other methods.
19364 (ListChangedHandler): the grossest part of the patch. Implement
19365 this such that it passes the unit tests in CurrencyManagerTest and
19366 the output more or less matches that of MS's implementation.
19368 2006-06-06 Mike Kestner <mkestner@novell.com>
19370 * ListView.cs : only update check state on single click.
19371 * ThemeWin32Classic.cs : fix focus drawing for details view without
19372 fullrowselect. Fixes #78454.
19373 * XplatUIX11.cs : fix for double click emission.
19375 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
19377 * PropertyGridView.cs : Applied Atsushi's patch to fix
19378 font dialog bug (#78197).
19380 2006-06-05 Jackson Harper <jackson@ximian.com>
19382 * TreeNode.cs: Compute the next node for expanding/collapsing
19383 correctly. We now factor in nodes without a NextNode
19384 correctly. (Fixes somes cases in nunit-gui).
19385 * InternalWindowManager.cs: Set the bounds when updating the
19386 virtual position of a tool window.
19388 2006-06-05 Chris Toshok <toshok@ximian.com>
19390 * DataGrid.cs: rename cached_currencymgr to list_manager.
19391 (set_CurrentCell): move SetCurrentCell code here, and clean it up
19393 (CurrentRow, CurrentColumn): single accessors so we can make the
19394 cursor movement code a lot easier to understand.
19395 (CurrentRowIndex): implement this in terms of CurrentRow.
19396 (BeginEdit): clean this up a bit.
19397 (CancelEditing): sort out the is_editing/is_changing/is_adding
19399 (EndEdit): minor changes.
19400 (OnKeyDown): add a comment about a (most likely) unnecessary
19402 (OnMouseDown): cancel editing when we click on a row header. And
19403 use the CurrentRow setter, not CurrentCell.
19404 (ProcessDialogKey): directly call ProcessGridKey.
19405 (UpdateSelectionAfterCursorMove): factor out this common block of
19406 code (it's used everywhere that we move the cursor by updating row
19408 (ProcessGridKey): pretty substantial overhaul. Use the
19409 CurrentRow/CurrentColumn properties to make the code a lot more
19410 readable. Only use the CurrentCell property when we have to
19411 modify both row and column at once. Tab behavior is still broken,
19412 and Delete is untested.
19413 (Select): if we have no selected rows, set selection_start to
19415 (EditCurrentCell): rename EditCell this. It was only ever invoked
19416 with CurrentCell as the arg, so drop the arg and rename it.
19418 * DataGridColumnStyle.cs: clean up the constructors a little, and
19419 drop CommonConstructor().
19421 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
19422 actually get notified when the user hits it.
19423 (ProcessKeyMessage): *substantially* simplify this method.
19424 There's no reason (that I can see) for the textbox to be making
19425 calls into the datagrid at all. Remove all of them but the ones
19426 for Enter handling. those will take some more work.
19428 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
19429 calling HideEditBox.
19430 (HideEditBox): if we have an active textbox, render it invisible
19431 without causing a re-layout of the datagrid.
19433 2006-06-05 Mike Kestner <mkestner@novell.com>
19435 * ListView.cs : fix NRE crasher when focuseditem is cleared by
19436 collection changes by resetting it to Items[0]. Fixes #78587.
19438 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19440 * MessageBox.cs: if the height of the text is larger than the icon_size,
19441 use that. Fixes bug #78575.
19443 2006-06-05 Jackson Harper <jackson@ximian.com>
19445 * TreeView.cs: Fix line drawing when scrolling. To do this each
19446 node is basically responsible for drawing its entire horizontal
19447 area. When drawing a node it draws its parent node lines if
19449 - Adjust the clip area to the viewport rectangle
19450 - Fix Left/Right key handling to match MS. (It expand/collapses
19451 and moves to parents/first child but does not move selection to
19453 - Fix SetTop to work with new bound calculation code
19454 - When scrollbars are no longer needed we need to reset scrolling
19455 vars and recalculate the visible order so the redraw is correct
19456 * TreeNode.cs: We can't expand/collapse nodes with no children.
19458 2006-06-03 John Luke <john.luke@gmail.com>
19460 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
19461 so the colors work without dev packages
19463 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
19466 - Select: Implemented to just use activate. Seems to match MS
19467 behaviour closest. Documented to only do actual control walking
19468 based on it's parameters if in a container control so I moved
19470 - Removed selection check logic from our internal Select() method
19471 * ContainerControl.cs:
19472 - Select: Moved selection logic from Control here, since MS documents
19473 that containers obey the bool arguments. No longer calling base
19475 2006-06-02 Jackson Harper <jackson@ximian.com>
19477 * TreeView.cs: If the selected node isn't changed when we get
19478 focus update the previously selected node so that we see the
19481 2006-06-02 Mike Kestner <mkestner@novell.com>
19483 * ComboBox.cs: restructure grab and general mouse event handling.
19484 Make the composite control raise mouse events like it was a single
19485 control for leaves/enters/motion/up/down events. fix dropdown list
19486 coordinate mangling and refactor it into the scrollbar subclass to
19487 reduce code duplication. Fixes #78282 #78361 and #78457.
19489 2006-06-02 Mike Kestner <mkestner@novell.com>
19491 * ScrollBar.cs: remove Capture setting/clearing, as it happens
19492 automatically in the Control.WndProc.
19494 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19496 * FileDialog.cs: fix crash when running SharpChess, which sets the
19497 FilterIndex to 2 with only one Filter.
19499 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19501 * ToolBar.cs: add SizeSpecified property.
19502 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
19503 try to figure out our real size, otherwise fallback to what the
19506 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
19508 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
19509 * Control.cs (WndProc): MS always calls the DefWndProc to pass
19512 2006-06-01 Mike Kestner <mkestner@novell.com>
19514 * ListView.cs: revamp the focus management in ListView. It still
19515 causes churn of LostFocus/GotFocus emissions on clicks, but it's
19516 better than not handling focus at all. Will revisit when pdb feels
19517 the general focus handling is solid. Fixes #78526.
19519 2006-06-01 Jackson Harper <jackson@ximian.com>
19521 * TreeView.cs: Set the default border style in the constructor.
19522 - Move painting to use OnPaintInternal instead of capturing
19523 WM_PAINT, this is the correct way of doing things
19524 - UpdateBelow shouldn't invalidate the scrollbar area
19525 - Cap the top on update below in case the node was above the top
19526 of the viewport rectangle.
19527 - ExpandBelow and Collapse below need to obey Begin/End Update.
19528 * TreeNode.cs: Make is_expanded internal so the treenode
19529 collection can change it without firing the whole event chain.
19530 * TreeNodeCollection.cs: When clearing all the child nodes make
19531 sure to recalc the visible order.
19532 - Improve algo for remove the top node
19534 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
19536 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
19537 SendMessage directly calling window procedures, which in turn might
19540 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
19542 * Control.cs: Don't handle WM_SETFOCUS if the same window already
19543 has focus (works around X11 sending a FocusIn after our SetFocus)
19544 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
19546 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
19548 * Mime.cs: Fix for the NET_2_0 build.
19549 NameValueCollection needs StringComparer now.
19551 2006-05-31 Chris Toshok <toshok@ximian.com>
19553 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
19554 return (via an out parameter) the starting X of the column.
19555 (UpdateVisibleColumn): track change to FromPixelToColumn.
19556 (HitTest): add a ColumnResize case here.
19557 (DrawResizeLine): new function, probably poorly named.
19559 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
19560 only need to keep one reference.
19561 (set_ListManager): same.
19562 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
19563 Also, add support for HitTestType.ColumnResize.
19564 (OnMouseMove): add column resize behavior here, and change the
19565 cursor to the correct one as we move around the datagrid.
19566 (OnMouseUp): terminate the column resize if we're resizing.
19567 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
19568 for the current cell.
19569 (ConnectListManagerEvents): use cached_currencymgr.
19570 (DisconnectListManagerEvents): fill this in, using
19571 cached_currencymgr.
19572 (SetCurrentCell): remove cached_currencymgr_events handling.
19573 (SetDataMember): only call DisconnectListManagerEvents if
19574 cached_currencymgr is != null.
19575 (SetDataSource): same.
19576 (OnListManagerCurrentChanged): cached_currencymgr_events ->
19577 cached_currencymgr.
19579 2006-05-31 Jackson Harper <jackson@ximian.com>
19581 * BindingManagerBase.cs: Remove somedebug code that creeped into
19583 * TreeNode.cs: We get the indent level dynamically right now, so
19584 don't track it as a member.
19585 * TreeNodeCollection.cs: Make sure all nodes added to the list
19586 have parents, treeviews/topnodes setup properly.
19587 - Don't attempt to track indent level.
19589 2006-05-30 Jackson Harper <jackson@ximian.com>
19591 * BindingContext.cs: Create the currency manager tables here.
19592 This allows us to more easily create null tables (when bad data
19593 members are used), and more easily create related currency
19595 * CurrencyManager.cs: All the table creation stuff is done by the
19596 binding context now.
19597 - Current should throw an exception if listposition is -1.
19598 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
19601 2006-05-30 Mike Kestner <mkestner@novell.com>
19603 * ListView.cs: allow reexpansion of zero-width column headers.
19606 2006-05-28 Chris Toshok <toshok@ximian.com>
19608 * CurrencyManager.cs (get_Current): after the late binding
19609 listposition = -1 fix, we need to guard against it here and return
19610 null, otherwise we raise an exception (which is swallowed
19611 elsewhere, and breaks datagrid databinding.)
19613 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
19615 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
19616 than WM_SYSKEY, don't throw if get something unexpected (#78507)
19618 2006-05-26 Jackson Harper <jackson@ximian.com>
19621 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
19622 values, it's faster and it's all we care about (we don't care if
19623 the names aren't equal).
19624 * KeyboardLayouts.cs: Eliminate some dead code.
19626 * X11Keyboard.cs: Lazy init keyboard detection.
19627 - Cleanup access modifiers a little.
19629 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
19631 * XplatUIX11.cs: Once again, attempting to get layout just right.
19633 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
19635 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
19636 the sizes of each link section, that will result in sizes that
19637 match DrawString's layout (Fixes #78391)
19639 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
19641 * FileDialog.cs: If AddExtension property is true autocomplete the
19642 extensions in SaveFileDialog correctly. Fixes bug #78453.
19643 Set MyNetwork and MyComputer to "C:\" for windows. This should
19644 fix part 8 of bug #78446 for now.
19646 2006-05-26 Chris Toshok <toshok@ximian.com>
19648 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
19649 invalidate the current row header if we need to, but presumably
19650 we'll invalidate the row corrsponding to the bounds or
19652 (GridHScrolled): switch back to this method, as it's part of the
19653 public api. *sigh*.
19654 (GridVScrolled): same.
19655 (OnMouseWheel): hack up something that more or less works. Call
19656 GridHScrolled/GridVScrolled directly, instead of duplicating much
19657 of their code here.
19658 (EnsureCellVisibility): reinstate a bunch of this code, since we
19659 can't just set the scrollbar Value and expect to do all the work
19660 in the ValueChanged handler. Also, Call Update() after scrolling
19661 in one direction so the other XplatX11.ScrollWindow call has the
19662 proper stuff in the proper places.
19663 (EditCell): set is_editing to true before calling .Edit.
19665 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
19666 don't bother comparing first.
19667 (OnKeyPress): call grid.ColumnStartedEditing before calling
19668 base.OnKeyPress. this will set is_changing and invalidate the row
19669 header if necessary.
19670 (ProcessKeyMessage): for WM_CHAR messages, call
19671 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
19674 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
19675 it's done in the DataGrid.
19676 (NextState): call grid.ColumnStartedEditing, which takes care of
19677 invalidating the row header (and setting is_changing).
19679 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
19680 here. it's done in the DataGrid.
19682 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19684 * Control.cs: allow changing the cursor when the mouse position is
19685 out of bounds but Capture is set.
19686 * LinkLabel.cs: handle the case when the mouse button is pressed on the
19687 linklabel but released somewhere else.
19689 2006-05-25 Jackson Harper <jackson@ximian.com>
19691 * TreeView.cs: When we get focus if there is no selected node make
19693 - Remove some uneeded setup code from Draw.
19694 * TreeNodeCollection.cs: If the tree doesn't have a top node when
19695 a new node is inserted make the new node the top.
19697 * Timer.cs: Use Utc time so that no local time zone stuff needs to
19698 be used (should be faster).
19700 2006-05-25 Chris Toshok <toshok@ximian.com>
19702 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
19703 problem with the last commit.
19705 2006-05-25 Chris Toshok <toshok@ximian.com>
19707 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
19708 need the invalidate call here, while scrolling right-to-left via
19709 the left arrow key (i.e. moving the editing cell while scrolling).
19711 * DataGrid.cs (.ctor): remove the initialization of
19712 ctrl_pressed/shift_pressed. We no longer track them using key
19713 up/down handlers, but by using Control.ModifierKeys. Also, switch
19714 to using ValueChanged handlers on the scrollbars instead of
19715 Scrolled event handlers. This simplifies a bunch of the scrolling
19717 (GridHValueChanged): rename from GridHScrolled, and change it to
19718 work with the new event args.
19719 (GridVValueChanged): same.
19720 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
19721 (OnMouseWheel): actually scroll the datagrid. Don't change the
19723 (ProcessGridKey): correct all the keyboard navigation stuff I
19724 could find. Ctrl up/down/left/right/home/end work now.
19725 (EnsureCellVisibility): correct method name spelling. Also,
19726 simplify this a touch by not explicitly calling the
19727 ScrollToRow/ScrollToColumnInPixels methods. We just set the
19729 (OnKeyUpDG): no need for this method now.
19731 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19733 * LinkLabel.cs: display the OverrideCursor when hovering the label.
19736 2006-05-25 Chris Toshok <toshok@ximian.com>
19738 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
19741 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
19743 * Application.cs: Moved setting of is_modal and closing to before
19744 we create the control, to allow the event handlers called as a
19745 result of creation affect closing. Also removed Gonzalo's previous
19746 change to setting DialogResult, the behaviour has been moved to
19749 - ShowDialog(): Removed explicit creation of the form, let RunLoop
19751 - ShowDialog(): If no dialog result is set, we need to return Cancel
19752 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
19753 the close is cancelled
19755 2006-05-25 Jackson Harper <jackson@ximian.com>
19757 * StatusBar.cs: We only need to update the sizes of the other
19758 panels when we have auto size contents. Also we are only updating
19759 the contents of the panel, not the borders, so compensate for the
19760 border width (TODO: get this width from the theme somehow).
19761 * TreeView.cs: Scrollable is true by default
19762 - Use invalidate instead of refresh where needed
19763 - Factor the scrollable value into scrollbar updating
19764 - Update the scrollbars if the Scrollable property is altered
19765 - Update the selected node if its ImageIndex is changed
19766 - Handle null nodes in UpdateNode (mainly so we don't have to
19767 check if selected is null when updating it
19768 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
19769 are factored into the visible count
19770 - Use VisibleCount for clarity in the code
19771 - When the font is changed we need to recurse through all the
19772 nodes and invalidate their sizes
19774 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19776 * Application.cs: set the DialogResult to fixed when the main form is
19777 hidden or destroyed while being modal.
19779 2006-05-25 Miguel de Icaza <miguel@novell.com>
19781 * Theme.cs: Use Tangoified messagebox icons.
19783 (GetSizedResourceImage): Also cope with width = 0 and do not
19784 trigger a warning in that case (0 means "give me your icon from
19785 the resouce, no special size needed).
19787 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
19789 * Application.cs: Leave runloop if the the main modal form is
19790 hidden (fixes #78484)
19792 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
19794 * BindingContext.cs : reject null datasource in Contains() and
19796 * CurrencyManager.cs : check data_member validity when data_source
19797 is dataset. When it is late binding, the initial position is -1.
19799 2006-05-24 Jackson Harper <jackson@ximian.com>
19801 * TreeNodeCollection.cs: Dont't recalculate the visible order on
19802 inserted nodes that aren't visible. This changes the
19803 max_visible_order which confuses scrollbar settings.
19804 - Use the enumerator to get the prev node instead of duplicating
19806 * TreeView.cs: Use new method for setting scrollbar values
19807 - Don't set the bounds every time the scrollbar is updated
19808 - When updating below the root node use an invalidate instead of a
19809 refresh to prevent the child controls (scrollbars) from being
19810 refreshed. (UpdateBelow still needs to be reworked anyways).
19811 - Reenable SetBottom now that visible orders are set correctly,
19812 added some debug code incase we ever get bad values there again.
19813 - Set the scrollbar max to 2 less then the max value, this
19814 compensates for the max value being one above the node count, and
19815 for scrollbars adding one extra "notch".
19816 - When drawing image nodes if there is an imagelist we draw the
19817 first image in the list if the supplied image index is out of the
19818 image list's bounds.
19820 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
19822 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
19823 we receive a size change from the WM (Fixes #78503)
19825 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
19827 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
19828 rectangle (Fixes #78501)
19830 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
19833 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
19835 - Fixed MouseMove to no longer switch pressed state unless the left
19836 mouse button is pressed. Atsushi provided the original patch (#78485)
19838 2006-05-24 Jackson Harper <jackson@ximian.com>
19840 * ScrollBar.cs: New internal methods that allow us to change a
19841 couple values on the scrollbar (the most common case is maximum
19842 and large change) without getting multiple invalidates.
19844 2006-05-24 Chris Toshok <toshok@ximian.com>
19846 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
19847 (Edit): save off the original state in oldState, and set
19848 grid.is_editing to true.
19849 (OnKeyDown): abort editing if escape is pressed. also, call
19850 NextState if space is pressed.
19851 (OnMouseDown): call NextState.
19852 (NextState): factor out shared code from OnKeyDown and OnMouseDown
19853 here. Also, only invalidate the row header once (on the initial
19854 is_changing switch) to save on redraws.
19856 2006-05-24 Chris Toshok <toshok@ximian.com>
19858 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
19859 if the value in the cell is different than it was before. This
19860 keeps us from triggering a layout when we move around a datarid
19861 with a highlighted cell.
19862 (Edit): suspend layout when creating/positining the text box, and
19863 resume passing false so we don't ever actually re-layout.
19864 (ReleaseHostedControl): same.
19865 (EnsureTextBox): reformat slightly, and set WordWrap to false.
19867 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
19868 control-key sequences should go to the datagrid - remove that
19869 lock. Also, modify the conditions under which we move between
19870 cells when moving the cursor within a cell, and remove the "this"
19871 and "base" from field accesses. We weren't even consistent, given
19872 they all were in the base class.
19874 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
19876 * Binding.cs : (.ctor)
19877 An obvious NRE fix for BindingTest.CtorNullTest().
19879 2006-05-23 Chris Toshok <toshok@ximian.com>
19881 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
19882 them between lines. This fixes some quirks editing cells in the
19885 2006-05-23 Jackson Harper <jackson@ximian.com>
19887 * TreeView.cs: Use begin/end update when doing expand/collapse all
19888 so that we don't get flicker on the scrollbar.
19890 2006-05-23 Jackson Harper <jackson@ximian.com>
19892 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
19893 treenode calculations to be independant of the painting code. To
19894 do this nodes track a visible order which is calculated by the
19896 - Call new methods for expanding/collapsing nodes. These methods
19897 use scrollwindow so we don't have to update everything below the
19899 * TreeView.cs: Refactored drawing and scrolling code. We don't
19900 need to update nodes when drawing anymore or calculate scrollbar
19902 - Added new methods for expanding/collapsing nodes. These methods
19903 use ScrollWindow so as to not have to redraw all the nodes below.
19904 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
19905 we add/remove nodes or sort.
19906 - Handle removing the selected and the top node properly.
19908 2006-05-23 Chris Toshok <toshok@ximian.com>
19910 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
19911 maybe this should actually happen in the datagrid code?
19912 (EndEdit): no need to invalidate anything, given that
19913 ReleaseHostedControl causes the datagrid to relayout, which
19914 invalidates everything anyway.
19916 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
19917 in SetCurrentCell).
19918 (set_SelectionBackColor): call InvalidateSelection instead of
19920 (set_SelectionForeColor): same.
19921 (BeginEdit): Flesh this out a bit.
19922 (CancelEditing): only do any of this if we're editing/adding.
19924 (OnMouseDown): there's no need to cancel editing here, it's done
19926 (SetCurrentCell): only invalidate the current row header if it's a
19927 different row than the new one.
19928 (ShiftSelection): fix this to work like MS does.
19929 (ResetSelection): factor out the invalidation of selected_rows to
19930 InvalidateSelection.
19931 (SetDataSource): cancel any editing that's going on.
19933 * DataGridColumnStyle.cs
19934 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
19935 call the non-interface version.
19937 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
19938 header rectangle with the clip rectangle so we don't redraw the
19939 entire header for just a small area. Gets rid of the last flicker
19940 when horizontally scrolling.
19941 (DataGridPaintRow): same.
19943 2006-05-23 Mike Kestner <mkestner@novell.com>
19945 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
19946 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
19947 poorly placed checkbox on the MS control. Fixes Alex's unfiled
19948 Critical bug report.
19950 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
19952 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
19953 and this fixes #78493
19955 2006-05-23 Miguel de Icaza <miguel@novell.com>
19957 * Theme.cs (GetSizedResourceImage): Scale images if the proper
19960 * FileDialog.cs: Do not change the background for the side bar as
19961 it wont work nicely with the theme, and also reduces the artifacts
19962 in rendering the icons (which I want to fix too).
19964 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
19965 resources, not resgen resources.
19967 (PlatformDefaultHandler): Pull images using the new API.
19969 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
19971 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
19972 a reference to the hwnd and will not remove it unless there are
19973 no pending exposures (fixes #78341)
19974 * XplatUI.cs: Improved debug
19976 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
19978 * MenuAPI.cs : don't handle OnClick event when it was not the left
19979 button. Fixed bug #78487.
19981 2006-05-23 Mike Kestner <mkestner@novell.com>
19983 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
19984 prefer submenus to the top menu for item lookup, to avoid popping down
19987 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
19989 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
19990 Graphics.FillRectangle as the visual results are really bad (even
19991 on win). We now draw perfect arrows (and perfect shadows when the
19992 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
19993 Pen.DashPattern to draw the dots of each line.
19995 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
19997 * FileDialog.cs: Update the filename combobox when navigating through
19998 the ListView with the cursor keys. Fixes part 7 of bug #78446.
20000 2006-05-22 Mike Kestner <mkestner@novell.com>
20002 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
20005 2006-05-22 Mike Kestner <mkestner@novell.com>
20007 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
20008 requests. Fix a misspelled parameter and a copy paste exception error
20011 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
20013 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
20014 to get the same width/height (5/13) on X11 as the default font has on
20015 win32. This means that our DefaultFont emSize is smaller than the
20016 the MS SWF equivalent (even thought the width/height stays the same)
20018 2006-05-20 Jackson Harper <jackson@ximian.com>
20021 * MdiWindowManager.cs:
20022 * InternalWindowManager.cs: Make sure to use the border width from
20025 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
20027 * PrintDialog.cs: Implements printer details
20029 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
20031 * FileDialog.cs: Added focus handling for PopupButtonPanel.
20032 Fixes part 1 and 2 of bug #78446
20034 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
20036 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
20037 instead of sticking to the first ever calculated value
20039 2006-05-19 Mike Kestner <mkestner@novell.com>
20041 * ComboBox.cs: fix mouse motion selection to use MousePosition and
20042 PointToClient, since Capture is set. Fixes #78344.
20044 2006-05-19 Mike Kestner <mkestner@novell.com>
20046 * ListView.cs: match MS behavior in Details view where items are not
20047 drawn if Columns.Count == 0.
20048 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
20049 Use a separate pen to draw the check, since changing the width affects
20050 the box as well. Fixes #78454.
20052 2006-05-18 Miguel de Icaza <miguel@novell.com>
20054 * ListView.cs: ArgumentOutOfRangeException, single versions of the
20055 exception should throw the name of the invalid argument.
20057 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
20058 there are no files listed.
20060 2006-05-18 Jackson Harper <jackson@ximian.com>
20062 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
20065 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
20067 * Control.cs: Brought back our old UpdateZOrder method as a private
20068 function and switched our calls from UpdateZOrder to the new one.
20069 This fixes the Paint.Net canvas disappearing bug.
20071 2006-05-18 Jackson Harper <jackson@ximian.com>
20074 * ThemeWin32Classic.cs:
20075 * InternalWindowManager.cs: Move the drawing into the theme,
20076 expose everything the theme should need from the window manager.
20078 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
20080 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
20081 from the call to NativeWindow to avoid walking up the parent chain
20082 further than needed (speeds up setting cursors and avoids setting
20083 the wrong cursor if a parent has another cursor defined)
20084 * Cursor.cs: When loading an icon as cursor, MS uses the center of
20085 the icon as hotspot, not what's contained as hotspot in the icon
20086 file. This fixes the perceived drawing offset seen with Paint.Net
20088 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
20091 - Store the calculated rectangle in Hwnd object and use it when
20092 setting the client size
20093 - Force Toolwindows to always be type Dock, to ensure they're on top
20095 2006-05-18 Mike Kestner <mkestner@novell.com>
20097 * ComboBox.cs: first pass at ComboBox rework. Layout is more
20098 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
20099 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
20100 Substantial refactoring to remove confusing nested classes. Coding
20101 standard and Get+Set->property refactorings. Shift to index based
20102 highlighting in ComboListBox instead of constantly using IndexOf and
20103 Items[]. Add invalidations on resize for DropDownList to fix ugliness
20104 in FileDialog growth. Draw borders manually since Simple mode needs
20105 to look like two independent controls. Make listbox border
20106 conditional to DropDownStyle. Improved OwnerDraw support.
20108 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
20110 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
20111 Don't set the disposed graphics to null, so we can throw the "right"
20112 exception if the graphics is reused later (added a flag to avoid
20113 double disposing). Some behaviours are different under 2.0 and are
20114 filled under bug #78448.
20116 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
20118 * Control.cs: When double-buffering is enabled, we need to reset
20119 our graphics context between paint calls. Otherwise, any
20120 transformations and other alterations on the context will
20121 become cumulative (#77734)
20123 2006-05-18 Mike Kestner <mkestner@novell.com>
20125 * ListView.cs: do focused item selection like MS on clicks.
20126 Rework focus handling for ItemControl so LostFocus invalidates as
20128 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
20129 the ListView ItemControl has focus.
20131 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
20133 * XplatUIX11.cs: If client_window ends up being width or height zero
20134 due to border settings, move it off window inside whole_window (#78433)
20136 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
20138 * Mime.cs: Shrink the mime file cache correctly.
20140 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
20142 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
20144 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20146 * XplatUIX11.cs (AddExpose): More sanity checks
20148 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20151 - AddExpose: Don't add expose ranges outside the size of our
20153 - Cast opacity values to Int32 to avoid crashes with certain
20155 - Added disabled code paths that protect against illegal cross-
20156 thread painting (Developers.exe)
20158 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20160 * ProgressBar.cs: Invalidate the control when it's resized
20161 since block size is based on control size. (#78388)
20163 2006-05-16 Miguel de Icaza <miguel@novell.com>
20165 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
20166 of setting the incoming argument to the "reset" value, we set the
20167 this.datamember to string.empty (before we were invalidating the
20172 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20174 * Form.cs: Only apply transparency settings after the form
20175 is created. (Fixes #77800)
20177 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20179 * ApplicationContext.cs: Grab the HandleDestroyed event so
20180 we know when to fire OnMainFormClosed
20182 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20184 * Application.cs: Introduced sub-class to allow tracking of
20185 threads and centralized triggering of the event mess for
20186 ThreadExit, AppExit, etc.. (#76156)
20188 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
20191 - Do not return a null icon index value for a mime subclass.
20192 Instead try the main mime type class too.
20193 - Seems that some newer distributions don't have a link to some
20194 gnome default icons anymore. So check the default gnome dir too.
20197 2006-05-16 Jackson Harper <jackson@ximian.com>
20199 * MdiClient.cs: Don't paint the parent background image if we have
20200 our own background image.
20202 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20205 - PerformLayout: Do not shrink space filled by DockStyle.Fill
20206 controls, all filled controls are supposed to overlap (#78080)
20207 - UpdateZOrder is supposed to update the control's z-order in the
20208 parent's z-order chain. Fixed to behave like that
20209 - BringToFront: Removed obsolete code
20210 - SendToBack: Simplyfied
20211 - SetChildIndex: Trigger layout calculations when Z-order changes
20212 since layout is done by z-order
20214 2006-05-16 Chris Toshok <toshok@ximian.com>
20216 [ fixes bug #78410 ]
20217 * DataGrid.cs (set_AlternatingBackColor): use
20218 grid_drawing.InvalidateCells instead of Refresh().
20219 (set_BackColor): call grid_drawing.InvalidateCells.
20220 (set_BackgroundColor): use Invalidate instead of Refresh.
20222 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
20223 invalidate the cell area.
20225 2006-05-15 Chris Toshok <toshok@ximian.com>
20227 [ fixes bug #78011 ]
20228 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
20229 on to DataGridPaintRow.
20230 (DataGridPaintRow): take a clip argument, and only draw the cells
20231 which intersect it. same with the not_usedarea.
20233 * Theme.cs (DataGridPaintRow) add @clip parameter.
20235 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
20236 XplatUI.ScrollWindow.
20237 (ScrollToRow): same.
20239 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
20240 with last column which was causing a gray swath to appear with the
20241 XplatUI.ScrollWindow code.
20243 2006-05-15 Chris Toshok <toshok@ximian.com>
20245 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
20246 use XplatUI.ScrollWindow.
20247 (VerticalScrollEvent): use XplatUI.ScrollWindow.
20249 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
20251 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
20253 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
20255 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
20256 file since there are no equivalent X11 cursors
20258 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
20260 * MonthCalendar.cs : DateTimePicker should reflect selected date
20261 on mouse*up*, not mouse*down*. Fixed originally reported part of
20264 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
20266 * TabControl.cs : When argument index is equal or more than tab
20267 count, just ignore. Fixed bug #78395.
20269 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
20271 * Control.cs: Dispose all child controls when control is diposed (#78394)
20273 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
20275 * ColorDialog.cs: Finally it is possible to select the color with
20278 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
20280 * PrintDialog.cs: Fix typo
20282 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
20284 * PrintDialog.cs: PrintDialog is not resizable
20285 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
20286 color. Made some ToolBar drawing methods protected virtual.
20288 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
20290 * PrintDialog.cs: Implementation of the PrintDialog
20292 2006-05-12 Chris Toshok <toshok@ximian.com>
20294 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
20295 thumb, instead use MoveThumb. This has the side effect of making
20296 most of the other thumb moving machinery use MoveThumb as well.
20297 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
20298 need to actually invalidate the rectangle where the new thumb will
20300 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
20301 We force an Update() after, so it's not as fast as it could be,
20302 but at least there's zero flicker and no droppings.
20303 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
20304 (UpdateThumbPos): add another argument (dirty), which says whether
20305 or not to calculate/add dirty regions which we later invalidate.
20306 For cases where we know we're going to use MoveThumb, we pass
20307 false for this. Otherwise, pass true.
20309 2006-05-12 Jackson Harper <jackson@ximian.com>
20311 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
20314 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
20316 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
20317 and GetClipRegion methods and UserClipWontExposeParent property.
20318 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
20319 overriding UserClipWontExposeParent property, setting to false, since
20320 Win32 handles the required expose messages to draw our clipped parent
20322 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
20323 PaintEventStart to set the user clip region if set.
20325 - Now internally tracking the Region for the control since we need to
20326 store it if the handle is not yet created and only set it when it
20327 becomes created. Before setting the region forced handle creation
20328 - Added code to draw the parents underneath a user-clipped region
20329 * Hwnd.cs: Added UserClip property
20331 2006-05-12 Chris Toshok <toshok@ximian.com>
20333 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
20334 (set_Maximum): same.
20335 (set_Minimum): same.
20336 (set_SmallChange): same.
20337 (OnMouseUpSB): remove the call to refresh when releasing the
20338 thumb. We shouldn't need it.
20340 2006-05-12 Miguel de Icaza <miguel@novell.com>
20342 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
20343 AutoSize set to None, we do not need to relayout everything, we
20344 just need to invalidate the current region.
20346 (Draw): Do not draw the entire ClientArea, just redraw the
20347 clip area being passed.
20349 * MdiClient.cs: Make MdiClient constructor with the Form argument
20352 2006-05-12 Jackson Harper <jackson@ximian.com>
20354 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
20355 parents background image, but strangely not their own.
20356 - (DrawStatusBarPanel): Take into account horizontal alignment
20357 when drawing the strings and icons.
20359 2006-05-12 Mike Kestner <mkestner@novell.com>
20361 * ListBox.cs: avoid invalidations for focus when the collection is
20364 2006-05-12 Chris Toshok <toshok@ximian.com>
20366 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
20367 invalidate the entire thumb area. Call InvalidateDirty which
20368 limits the redraw to the thumb itself and surrounding pixels.
20370 * XplatUIX11.cs (ScrollWindow): optimize copying.
20372 2006-05-12 Chris Toshok <toshok@ximian.com>
20374 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
20375 Figure out the positioning/layout in a single pass instead of
20376 multiple recursive invocations. Speeds up the initial display of
20377 the data grid. Also, make many things private that were
20378 originally public but unused outside this class.
20380 2006-05-11 Jackson Harper <jackson@ximian.com>
20382 * MdiClient.cs: Improved layout code.
20384 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
20386 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
20387 not SelectedObject.
20389 2006-05-11 Chris Toshok <toshok@ximian.com>
20391 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
20392 union of that will always be {0,0,width,height}.
20394 2006-05-11 Jackson Harper <jackson@ximian.com>
20396 * Form.cs: Match MS's DefaultSize for forms (they must have
20397 changed the size in sp2).
20399 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
20401 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
20403 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
20405 * TextControl.cs : Fixed bug #78109. This incorrect position
20406 comparison caused crash on automatic line split.
20407 * TextBoxBase.cs : reduce duplicate code.
20409 2006-05-10 Jackson Harper <jackson@ximian.com>
20411 * MdiClient.cs: Active form is only sent to the back when using
20412 the Next form functionality, when a form is clicked the current
20413 active shouldn't be sent to the back.
20414 - Layout the mdi windows when the container is first made visible.
20415 * Form.cs: Give the MdiClient a ref to the containing form when we
20418 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
20420 * LinkLabel.cs : link_font could be uninitialized, so populate one
20421 before actual use. Fixed bug #78340.
20423 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
20425 * XplatUIX11.cs : clipboard format native value is IntPtr.
20428 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
20431 - Instead of showing context menus directly we send WM_CONTEXTMENU,
20432 which is passed up the parent chain by DefWndProc
20433 - We now handle WM_CONTEXTMENU to display any menu, or pass it
20434 to DefWndProc (#77956)
20435 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
20437 2006-05-10 Jackson Harper <jackson@ximian.com>
20439 * MdiClient.cs: We need to remove the controls from the mdi
20440 collection, when we close the window.
20441 * MdiWindowManager.cs: Special handling of closing mdi windows.
20442 * InternalWindowManager.cs: Make the close method virtual so the
20443 mdi window manager can handle it specially.
20445 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
20448 - Recalculate grid when the data source has changed
20449 - Matches styles provided by user from all data sources types
20450 * DataGridTableStyle.cs: For columns that provided by the user set the
20451 with the preferred value is there was unassigned.
20452 * CurrencyManager.cs: throw OnItemChanged event
20454 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
20456 * PictureBox.cs: Don't animate until handle is created. Start animation
20457 when handle is created.
20459 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
20461 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
20463 * XEventQueue.cs: We don't need to provide the extra info
20465 2006-05-10 Jackson Harper <jackson@ximian.com>
20467 * MdiClient.cs: If the mdi clients parent form has a background
20468 image set, we draw that background image for the mdi area's
20471 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
20473 * TextBoxBase.cs: Set IBeam cursor (#78347)
20475 2006-05-10 Mike Kestner <mkestner@novell.com>
20477 * ToolBar.cs: fix some text padding issues with ButtonSize
20478 calculation. Update the default size to match MS documentation.
20479 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
20480 button size. Fixes #78296.
20482 2006-05-10 Mike Kestner <mkestner@novell.com>
20484 * ListBox.cs: use is_visible for scrollbar positioning in case the
20485 control isn't on screen yet. Fix off by one with Right vs Width
20486 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
20488 2006-05-10 Jackson Harper <jackson@ximian.com>
20490 * X11Dnd.cs: Drop to a control with another control on top of it.
20491 * ToolBar.cs: Work on a copy of the buttons list, so that it can
20492 be modified in click handlers. TODO: Look for similar problems in
20495 2006-05-09 Jackson Harper <jackson@ximian.com>
20497 * Form.cs: Window managers need the old window state when setting
20499 * InternalWindowManager.cs: Allow the base mdi window manager to
20500 handle more of the MDI only stuff (like maximize buttons).
20501 * MdiWindowManager.cs: Fix some snafus in changing the window
20502 state. Add all the menu functionality, for both popup and
20504 * MdiClient.cs: When a new form is selected the currently
20505 activated form is sent to the back, this matches MS.
20506 - Implement a new method to activate the next mdi child window.
20508 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
20511 - Added new InternalCapture method to allow controls to prevent
20512 the capture behaviour on the click handlers
20513 - Switched to use InternalCapture
20515 - Using InternalCapture to prevent mouse captures from being released
20516 on mouse button release (Fixes #78100)
20517 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
20518 returns Form borders if a caption is present. (Fixes #78310)
20520 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
20522 * TreeNode.cs: Changed serialization .ctor to not require every field
20523 to be present. (#78265)
20524 * OwnerDrawPropertyBag.cs: Added serialization .ctor
20526 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
20528 * MimeIcon.cs: for is faster than foreach for strings.
20530 2006-05-05 Mike Kestner <mkestner@novell.com>
20532 * CheckedListBox.cs: update check handling code to not use selected.
20533 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
20534 behavior for visual feedback, motion response, shift/ctrl handling,
20535 and properly deal with all 4 selection modes. Updates to bounds
20536 handling logic. Add scroll wheel support. [Fixes #77842]
20538 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
20541 - Moved adding of Implicit controls into .ctor. That way, subsequent
20542 creation of the controls will not cause them to think they are
20543 toplevel windows (fixes #78200 header problem)
20544 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
20545 - Switched visibility setting of header control to use internal field
20546 to avoid triggering handle creation
20547 - Now checking if handle is created before causing a refresh when items
20548 are added (This makes us now match handle creation time with MS)
20549 * Splitter.cs: Removed loading of private splitter cursor, switched to
20550 Cursors version now that that is loading the right ones
20551 * Cursors.cs: Load proper splitter cursors from resources
20552 * Cursor.cs: Added second method of loading resource cursors for the
20553 VS.Net users amongst us
20555 2006-05-05 Mike Kestner <mkestner@novell.com>
20557 * ListView.cs: give header_control a minimum size based on the
20560 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
20562 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
20563 window seems to do that with metacity, so set that type. (#78120)
20565 2006-05-05 Mike Kestner <mkestner@novell.com>
20567 * ListViewItem.cs: fix Details mode checkbox layout bug.
20568 * ThemeWin32Classic.cs: draw a ListView column header for unused space
20569 at the end of the header, if it exists. [Fixes for #78200]
20571 2006-05-04 Jackson Harper <jackson@ximian.com>
20573 * MdiClient.cs: Add a helper property to get the container form.
20574 * MdiWindowManager.cs: We have to make sure to use the menu origin
20575 when drawing the icons and buttons, this fixes maximized window
20576 icons/buttons on win32.
20577 * InternalWindowManager.cs: Reset the restore captions when a
20578 window goes from Maximized to Minimized and vice versa. Move the
20579 DrawMaximizedButtons into the MdiWindowManager source, tool
20580 windows can't be maximized. NOTE: This could use a little
20581 refactoring if time ever permits.
20583 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
20585 * TextBox.cs: Add MWFCategoryAttributes
20586 * TextBoxBase.cs: Add MWFCategoryAttributes
20587 * Form.cs: Add MWFCategoryAttributes
20589 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
20591 * Control.cs: Add MWFCategoryAttributes
20592 * ScrollableControl.cs: Add MWFCategoryAttributes
20594 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
20596 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
20597 Divider is true. Fix a little glitch in PropertyToolBar
20600 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
20603 - Dispose: Call base.Dispose, this causes the disposed event
20604 to be fired (and probably other, more important stuff)
20605 - SetVisibleCore: Set is_visible to true after creating the
20606 window so that the window still gets created invisible (if
20607 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
20608 to generate a WM_ACTIVE message
20609 * Form.cs: Call Dispose when we want to destroy the window, instead of
20610 just destroying the handle (Dispose will do that for us)
20612 - RootWindow also needs a queue, so we can properly process the
20613 property change events from RootWindow (like Activate)
20614 - Generatic synthetic WM_ACTIVE message when the active window is
20617 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
20619 * LinkLabel.cs: Trigger a recalc of our label dimensions when
20622 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
20624 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
20625 for determining width and height (image might not be assigned if
20626 we're drawing an imagelist)
20628 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
20630 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
20631 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
20633 * Theme.cs: No longer returns hardcoded menu height, instead calls
20635 * Form.cs (OnLoad): Scaling happens before triggering Load events
20638 2006-05-01 Mike Kestner <mkestner@novell.com>
20640 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
20642 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
20644 * TextBoxBase.cs: Removed Fixme
20645 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
20647 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
20650 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
20651 the rectangle relative to the parent, considering borders. We
20652 don't really want that.
20653 - ScrollWindow: Fixed warning to be more understandable
20654 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
20655 scrollbars and scroll only the visible area
20656 * RichTextBox.cs: Removed debug output
20658 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
20660 * NumericUpDown.cs (Text): Just use base
20661 * UpDownBase.cs: Ensure txtView is created before using it
20663 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
20665 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
20666 casting to IntPtr to avoid 64bit overflow errors
20668 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
20671 - AllowDrop: Don't force handle creation.
20672 - CreateHandle: Added call to tell driver if we're allowed to drop
20674 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
20676 * FileDialog.cs: Remember the last directory not only for the
20677 current instance but also for new FileDialog instances.
20679 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
20681 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
20682 broke sending async messages
20684 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
20687 - ScrollWindow: Fixed method. We finally generate expose events again
20688 for scrolled areas. This was causing 'garbage' when scrolling
20689 textbox and other controls that used ScrollWindow
20690 - Switched from using the regular queue for paint events to the MS
20691 model of 'generating' paint events when the queue is empty.
20692 We use the new XQueueEvent.Paint subclass to store which windows
20694 - AddExpose now takes the x/y/width/height of the exposed area
20695 and inserts the window into the paint queue if not already there
20696 - InvalidateWholeWindow: Switched to use new AddExpose method
20697 - UpdateMessageQueue: Added which queue to monitor for paint events
20698 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
20699 the unlikely case nothing above handles it. We reset the expose
20700 pending states to get them off the queue.
20701 - GetMessage: Now pulls a paint event if no other events are in the
20703 - Invalidate: Switched to new AddExpose method
20704 - PeekMessage: Updated to understand pending paint events
20705 - UpdateWindow: Fixed logic bug. We were only updating if the window
20706 didn't need updating. Also switched to sending WM_PAINT directly,
20708 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
20709 and random access Remove(). The random access is needed to handle
20710 UpdateWindow() where a WM_PAINT is sent directly without accessing
20712 * ScrollBar.cs: Added Update() calls to cause immediate updates to
20713 allow for better feedback when scrolling. Scrollbars are small and
20714 the immediate update should make it 'feel' more responsive without
20715 slowing things down. ScrollBar still needs it's invaliate logic
20716 updated to not always invalidate the whole bar on certain changes.
20718 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20721 (BackColor): if the control does not support a transparent background,
20722 return the default backcolor when the parent backcolor is transparent.
20724 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
20726 * Application.cs: Updated to new StartLoop/GetMessage API
20727 * RichTextBox.cs: Provide some output on RTF parsing errors
20728 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
20729 new queue_id argument to GetMessage and PeekMessage to allow faster
20730 handling of per-thread queues in drivers.
20731 * Hwnd.cs: Added Queue tracking and property
20732 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
20733 * XEventQueue.cs: Added thread trackingA
20734 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
20736 - Implemented new per-thread queue
20737 - GetMessage: Fixed return/break behaviour on several cases. We were
20738 returning stale messages in some cases, instead of just processing
20741 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
20743 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
20745 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
20747 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
20748 fixed off-by-one comparisons between Width/Height and Right/Bottom.
20750 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
20752 * PropertyGridView.cs: Fix drop down width.
20754 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
20756 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
20757 a mess in DrawToolBar, so I removed one of them.
20759 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
20761 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
20762 needed (clip). Otherwise we get artifacts.
20764 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
20766 * FixedSizeTextBox.cs: Added constructor to allow specifying which
20768 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
20769 and switched FixedSizeTextBox to only be fixed vertical (#78116)
20770 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
20771 if it matches the scale base font (avoids unneeded scaling)
20773 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
20775 * X11DesktopColors.cs: One gtk_init_check should be enough
20777 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
20779 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
20782 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
20785 - Generate OnTextChanged for Backspace even if we're only deleting
20786 the current selection
20787 - When setting the Text property, only select all text if the
20788 control does not have focus when it is being set. Otherwise
20789 just place the cursor at the beginning of the control
20791 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
20793 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
20794 Added a little helper to draw PropertyGrid ToolBar with a different
20795 border and a different BackColor.
20796 * PropertyGrid.cs: Some background parts didn't get painted with the
20797 correct background color. Added a class that helps us to draw the
20798 correct border for PropertyGridView and a class that helps us to
20799 draw ToolBars with a different backcolor
20800 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
20802 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
20804 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
20805 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
20807 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
20809 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
20810 into the palette entries. Also, since we're working on a copy
20811 we needed to copy the palette back onto the bitmap.
20812 * Cursor.cs: Same fix as XplatUIWin32.cs.
20814 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
20816 * ImageListStreamer.cs: Need to read the var (or we're off)
20818 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
20820 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
20821 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
20822 TextBoxBase.cs: Unused var fixes
20823 * AxHost.cs: Small 2.0 fix
20824 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
20825 as it seems that is what at least Metacity expects. This will make
20826 icons show up on 64bit platforms. We still have some 64bit size
20827 issues, though, since the startup app window size still won't match.
20829 2006-04-25 Mike Kestner <mkestner@novell.com>
20831 * *.cs: cleanup newly reported exception var unused warnings.
20833 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
20835 * ThemeWin32Classic.cs: Button image alignment now matches exactly
20838 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
20840 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
20841 image. The image position is always the same, no matter if the
20842 button is pressed or not.
20844 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
20846 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
20847 selection and set the correct filename for SaveFileDialog.
20848 Patch by Emery Conrad.
20850 2006-04-24 Mike Kestner <mkestner@novell.com>
20852 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
20853 check for item.X outside the ClientRect instead of item.Y. Fixes
20856 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20858 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
20859 trust that value blindly and do some sanity check. Fixes bug #77814.
20861 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20863 * ImageListStreamer.cs: save the mask as a 1bpp image.
20865 2006-04-21 Mike Kestner <mkestner@novell.com>
20867 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
20868 pass Checked and Indeterminate to the Theme Engine. Improve
20869 encapsulation with ListBox.
20870 * ListBox.cs: Keep a StringFormat instead of calculating it every item
20871 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
20872 nested types. Move all CheckState functionality to CheckedListBox.
20873 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
20874 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
20875 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
20876 single base list. Fix scrollbar sizing and placement to mirror MS.
20877 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
20879 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
20880 for CheckedListBox by using new DrawItemState info. Center the
20881 checkboxes on the items. Use new StringFormat property.
20883 2006-04-18 Jackson Harper <jackson@ximian.com>
20885 * Form.cs: MdiChildren don't do default locations the same way as
20886 regular forms. This prevents a crash when trying to position the
20889 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
20891 * PropertyGridTextBox.cs: Formatting, copyright
20892 * PropertiesTab.cs: Formatting
20893 * PropertyGrid.cs: Formatting
20894 * PropertyGridView.cs: Formatting, fix drop down, enabled double
20895 click toggling of values
20897 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
20899 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
20900 * Control.cs (.ctor): verify_thread_handle is static, don't reset
20901 every time a control is created
20902 * Application.cs: Removed obsolete EnableRTLMirroring method
20904 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
20906 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
20907 SelectedIndex to -1. Fixes bug #78121.
20909 2006-04-17 Jackson Harper <jackson@ximian.com>
20911 * Binding.cs: Handle null values for Current and BindingContext.
20912 This occurs when binding is a little delayed.
20913 * CurrencyManager.cs: return null for Current when there are no
20915 - Hookup to the listchanged event on the DataView and update
20916 bindings when the list is changed. This fixes late binding of
20919 2006-04-17 Jackson Harper <jackson@ximian.com>
20922 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
20925 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
20927 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
20929 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
20930 with the correct ButtonState
20932 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
20934 * XplatUIX11.cs: Improved distinguishing between window types to
20935 tell the WM a type closer to what the app wants (Fixes #78107)
20937 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
20939 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
20942 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
20944 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
20945 drawing code to reflect the size grip changes
20947 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20949 * ImageListStreamer.cs: fix handling of the mask that follows the main
20950 bitmap when deserializing and serialize it properly. The generated mask
20951 should better be a 1bpp image, but I'll do that later.
20953 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
20955 * FileDialog.cs: Show something in the DirComboBox on *nix if the
20956 path doesn't fit into some of our Current.Places
20958 2006-04-13 Jackson Harper <jackson@ximian.com>
20960 * ComboBox.cs: Use borders instead of drawing our own decorations,
20961 try to obey correct rules for heights.
20964 * ThemeClearLooks.cs:
20965 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
20966 this is now handled by borders.
20967 - Remove unused DrawListBoxDecorationSize method.
20969 2006-04-13 Mike Kestner <mkestner@novell.com>
20971 * MenuAPI.cs: null guarding for the disbled click check fixes crash
20974 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
20976 * ThemeWin32Classic.cs:
20977 - Fixed CPDrawStringDisabled
20978 - Corrected drawing of disabled menu items
20979 - Fixed drawing of disabled radio buttons (bug #78095)
20980 - Draw check in a disabled CheckBox with color ControlDark
20982 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
20984 * Form.cs: Use the provided width when calculating the menu size;
20985 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
20986 and ClientSize.Width won't be updated yet
20987 * Application.cs: Use Visible instead of Show() to make form visible,
20988 this way we create the handle later and menusize is considered
20990 2006-04-12 Mike Kestner <mkestner@novell.com>
20992 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
20995 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
20997 * TextBox.cs: Implemented context menu
20999 2006-04-12 Mike Kestner <mkestner@novell.com>
21001 * ListView.cs: implement box selection. fixes #77838.
21002 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
21004 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21006 * XplatUIX11.cs: Added setting of window type when transient window
21007 is created (metacity would move it otherwise)
21008 * X11Structs.cs: Added WINDOW_TYPE atoms
21009 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
21010 background (the control is Opaque but still wants transparent
21013 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21015 * Control.cs: Added OnPaintBackgroundInternal to allow controls
21016 that set Opaque but don't mean it (like all ButtonBase-derived
21017 controls) to still draw their background
21018 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
21021 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21023 * Control.cs (PaintControlBackground): Set the graphics object
21024 on our PaintEvent to null to prevent it from being disposed
21025 when the PaintEvent gets disposed
21027 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
21029 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
21030 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
21032 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21035 - Added transparency check to BackColor property. Transparent
21036 backgrounds are only allowed if the control styles permit it
21037 - Added recursive painting of parent control background and
21038 foreground if a control with a transparent backcolor is drawn
21039 (Thanks to Tim Ringenback for providing his 'hack' as a base
21040 for this patch) Fixes #77985 and #78026.
21041 - Added Opaque style check before calling OnPaintBackground, no
21042 need to draw the background if the control is opaque
21043 - Removed ControlAccessibleObject owner variable (inherited from
21044 base, no need to define again)
21045 - Added some documentation links explaining the drawing events
21048 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21050 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
21051 that the affected control is the located at the left border of our
21052 parent (Fixes #77936)
21054 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21056 * TextBoxBase.cs: When rendering disabled or readonly controls,
21057 draw the background with 'Control' instead of 'Window' color as
21058 long as the user hasn't specifically set a color
21060 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21062 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
21063 since that won't be updated if the user types text (only if it's
21064 programatically set)
21066 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21068 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
21069 layout changes do to app-triggered resizes will have the proper
21070 display rectangle for layout
21072 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
21074 * ThemeWin32Classic.cs:
21075 - Make use of the SystemBrushes and SystemPens wherever possible
21076 - Corrected some highlight colors
21077 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
21079 * Theme.cs: Added Empty field to CPColor struct
21081 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21083 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
21084 is displayed when calculating the display rectangle. Thanks to Mike
21085 for teaching me the err of my ways.
21087 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
21089 * ScrollableControl.cs:
21090 - Rewrote DisplayRectangle code, now returning the proper x/y coords
21091 (instead of 0,0) and we now return the real width/height instead of
21092 just the clientrectangle, adjusted for padding. The rectangle is
21093 now cached and created by the new CalculateDisplayRectangle method.
21094 - Created new CalculateDisplayRectange method, which basically does
21095 what get_DisplayRectangle() did originally, but now using the
21096 right edge instead of DisplayRectangle to determine the size of
21098 - get_Canvas(): Fixed it to properly calculate canvas for
21099 right/bottom controls which seem to be placed to the right/bottom
21100 of any controls that have a fixed location
21101 - Removed TODO that's taken care of
21102 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
21103 and SetDisplayRectLocation according to new MSDN2 docs
21104 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
21105 event when that is called, this is added for compatibility
21106 - ScrollControlIntoView(): Implemented.
21107 - Switched scrollbars to be implicit, they shouldn't be selectable
21108 * ContainerControl: Now that ScrollControlIntoView is implemented, we
21109 call it when the active control is set/changed
21110 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
21111 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
21112 implicit_control variable (used for native Win32 message generation)
21113 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
21114 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
21115 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
21116 * XplatUIStructs.cs: Added ScrollBarCommands enum
21118 2006-04-10 Jackson Harper <jackson@ximian.com>
21121 * CheckedListBox.cs:
21128 * PrintPreviewControl.cs:
21134 * UpDownBase.cs: Fixup base event overrides.
21136 2006-04-06 Mike Kestner <mkestner@novell.com>
21138 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
21139 all user-initiated value changes to min <= value <= max-thumbsz+1.
21140 (set_Value): check for vert/horiz when calculating new thumb position.
21141 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
21143 (OnMouseMoveSB): refactor the thumb dragging code and refine
21144 invalidation logic to reduce flicker.
21145 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
21146 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
21147 (UpdateThumbPosition): small code readability cleanup
21149 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
21151 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
21154 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
21156 * ThemeNice.cs: Use a better graphics effect when a button is pressed
21158 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
21160 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
21161 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
21162 This dramatically reduces the number of Pen.Dispose calls.
21163 Where possible call ResPool methods only once instead of calling it
21164 over and over again (for example for the same color).
21166 2006-04-06 Mike Kestner <mkestner@novell.com>
21168 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
21169 Also remove an unused private field on the collection. Fixes #77972.
21171 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
21173 * ThemeNice.cs: Added ToolBar drawing code
21175 2006-04-06 Mike Kestner <mkestner@novell.com>
21177 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
21178 I'm assuming that means we need to look up the toplevel for the
21179 provided control. Fixes the crash trace in #77911 but exposes another
21180 crash in some strange reflection usage in NDocGui.
21182 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
21184 * ThemeNice.cs: Gave it a little silver touch and added Images
21186 * FontDialog.cs: FontDialog is not resizable
21187 * FileDialg.cs: Added SizeGripStyle.Show
21189 2006-04-05 Jackson Harper <jackson@ximian.com>
21191 * KeyboardLayouts.cs: Remove warning.
21193 2006-04-05 Jackson Harper <jackson@ximian.com>
21195 * Control.cs: Enable OnPaintInternal so we can use it for drawing
21196 all of our controls instead of Paint +=.
21211 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
21212 use OnPaintInternal. Remove Width/Height and Visible checks in
21213 paint handler, this is done at a higher level now.
21214 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
21215 * PaintEventArgs.cs: Add a handled flag so controls that don't
21216 want anymore painting after OnPaintInternal can make sure OnPaint
21219 2006-04-05 Mike Kestner <mkestner@novell.com>
21221 * Form.cs: fix the menu WndProc hacks to respect the native enabled
21222 state of the form, so that we don't process events when Modal dialogs
21223 are up. Fixes #77922.
21225 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
21227 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
21230 2006-04-05 Mike Kestner <mkestner@novell.com>
21232 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
21234 2006-04-05 Mike Kestner <mkestner@novell.com>
21236 * ListView.cs (HeaderMouseMove): null guarding for the over column
21237 when setting up the drag_to_index. Fixes #78015.
21239 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
21241 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
21242 in the taskbar. Transient windows seem to accomplish that.
21244 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
21247 - Re-enabled CreateParams.X/Y code for FormStartPosition
21248 - Added code for manual placement when creating the Control
21249 - Incomplete patch to treat MDI forms differently when
21250 setting the ClientSizeCore. (Still need to figure out handling
21253 - When we're explicitly setting the X/Y position of a non-Child
21254 window, let the WM know. Metacity really wants this.
21256 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
21258 * ThemeNice.cs: Added CPDrawButton
21260 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
21262 * ThemeNice.cs: Changed the color for focused buttons and activated
21263 the arrows for small scroll buttons.
21265 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
21267 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
21268 anymore. Changed some method modifiers to protected (virtual)
21269 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
21271 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
21272 Updated drawing of menus, buttons and progressbars; added
21275 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21277 * ImageListStreamer.cs: implemented serialization/deserialization
21280 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
21282 * ThemeWin32Classic.cs:
21283 - Removed all the DrawFrameControl stuff; CPDrawButton,
21284 CPDrawCheckBox and CPDrawRadioButton are now handled directly
21286 - Updated and corrected the drawing code of CPDrawButton,
21287 CPDrawCheckBox and CPDrawRadioButton to better match ms
21288 - Updated theme checkbox and radiobutton code to use the CP*
21291 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
21293 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
21296 2006-03-31 Jackson Harper <jackson@ximian.com>
21298 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
21300 * UpDownBase.cs: Don't CreateGraphics manually, use a
21301 Refresh. Ideally we would invalidate the correct areas here.
21303 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
21306 - We now track the mapping state of windows. If a window (or
21307 one of it's parents) is not mapped we no longer permit
21308 WM_PAINT messages to be generated since we'd otherwise get
21309 lots of BadMatch X errors. Jackson did all the work figuring
21311 - Destroying the caret if the window it's contained in is
21312 destroyed. Can't use regular DestroyCaret method since it
21313 might fall into a drawing function (trying to remove the
21314 caret) and with that generate new BadMatch errors. Again,
21315 Jackson tracked this down.
21316 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
21317 make sure we send the messages to all windows. (The old code
21318 would send the WM_DESTROY to the window, and then all child
21319 windows would be 'gone' because the WM_DESTROY handle lookup
21320 would no longer find the destroyed window)
21321 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
21322 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
21324 2006-03-31 Jackson Harper <jackson@ximian.com>
21326 * ScrollableControl.cs: Dont recalc if we are not visible.
21328 2006-03-31 Mike Kestner <mkestner@novell.com>
21330 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
21331 the visibility branch.
21333 2006-03-31 Jackson Harper <jackson@ximian.com>
21335 * ScrollBar.cs: Cap values when incrementing/decrementing.
21337 2006-03-31 Mike Kestner <mkestner@novell.com>
21339 * MenuAPI.cs: setup menu.tracker for popup/context menus.
21340 * ToolTip.cs: guard against timer expirations with no active control.
21341 Not sure why it happened.
21343 2006-03-31 Mike Kestner <mkestner@novell.com>
21345 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
21347 * ToolTip.cs: Position the tooltip based on where the cursor is at
21348 popup time, not at MouseEnter time. Add a Down state so that we don't
21349 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
21350 positioning offset. Lookup DisplaySize at positioning time, since it
21351 can theoretically change during invocation.
21352 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
21353 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
21355 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
21357 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
21358 Fixes behaviour when the Text property of the box is String.Empty
21360 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
21362 * XplatUIX11.cs: Only send mouseleave for our client windows, not
21363 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
21366 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
21368 * FileDialog.cs: Visual enhancement for the popup buttons in
21371 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
21373 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
21376 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
21378 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
21379 highlighted menu items to match ms
21381 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
21383 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
21385 2006-03-30 Mike Kestner <mkestner@novell.com>
21387 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
21388 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
21389 go active to account for HotLight to Selected transition.
21390 * MenuItem.cs: add internal Selected prop. Fill out the Status
21391 property by calculating it from item info. Add HotLight,
21392 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
21394 2006-03-30 Mike Kestner <mkestner@novell.com>
21396 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
21398 2006-03-29 Jackson Harper <jackson@ximian.com>
21400 * Form.cs: Implement TODO.
21402 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
21404 * PrintPreviewDialog.cs: Implemented missing methods and events; still
21405 missing proper dialog setup in the constructor
21407 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
21409 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
21411 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
21412 - Fixed ResetBindings and removed TODO
21413 - Added check for cross-thread calls to get_Handle()
21414 - Added Marshaller attribute for set_Font to satisfy class status
21415 * FontDialog.cs: Removed TODOs that seemed implemented
21416 * UpDownBase.cs: Removed unneeded TODO and Fixme
21417 * MessageBox.cs: Implemented support for Default button and removed TODO
21418 * FileDialog.cs: Removed obsolete TODO
21419 * DomainUpDown.cs: Removed obsolete TODO
21420 * ButtonBase.cs: Removed obsolete TODO
21421 * XplatUIWin32.cs: Removed obsolete TODO
21423 - Removed obsolete TODO
21424 - Calling CheckAcceptButton when the acceptbutton is changed to allow
21425 internal status updates
21426 - Making sure the active control is selected when the control is created
21427 * CurrencyManager.cs: Removed obsolete TODO
21429 2006-03-29 Mike Kestner <mkestner@novell.com>
21431 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
21432 of PrintPreviewDialog and RichTextBox.
21434 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
21436 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
21437 DarkDark, Light and LightLight colors for a specific color
21438 * ThemeWin32Classic.cs:
21439 - Use Button drawing code to draw RadioButtons and CheckBoxes with
21440 Appearance = Button
21441 - Make use of the new ResPool helper CPColor
21442 - Draw ProgressBar and StatusBar with correct 3D borders
21444 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
21446 * ColorDialog.cs: Return selected color. Fixes bug #77940.
21448 2006-03-28 Mike Kestner <mkestner@novell.com>
21450 * ListView.cs: fix Icon layout to plan for scrollbar widths when
21451 calculating col/row counts.
21453 2006-03-28 Mike Kestner <mkestner@novell.com>
21459 switch to explicit interface method implementation for some methods
21460 corcompare identifies as inconsistent with MS.
21462 2006-03-28 Mike Kestner <mkestner@novell.com>
21466 add a few missing methods from the class status output.
21468 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
21470 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
21473 2006-03-28 Mike Kestner <mkestner@novell.com>
21475 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
21477 2006-03-27 Mike Kestner <mkestner@novell.com>
21479 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
21480 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
21482 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
21484 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
21486 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
21488 * ThemeWin32Classic.cs:
21489 - GroupBox: Inserted a little gap between the text and the lines
21491 - Made the code in CPDrawBorder3D more readable
21492 - Corrected the drawing location of the up and down arrows in
21495 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
21497 * ControlPaint.cs: Corrected line widths in DrawBorder for
21498 ButtonBorderStyle Inset and Outset
21500 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
21502 * ThemeWin32Classic.cs:
21503 - Rewrote the totally broken CPDrawBorder3D method. That was
21504 one of the main problems for the terrific ThemeWin32Classic
21506 - Updated and corrected Button drawing
21507 - Correct the dimensions of the SizeGrip to match ms ones
21508 - Removed a small drawing glitch in DrawComboBoxEditDecorations
21509 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
21510 Border3DStyle.Sunken to match ms.
21512 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
21514 * ThemeWin32Classic.cs: First small part of the "de-uglify
21515 ThemeWin32Classic" effort, SizeGrip
21517 2006-03-24 Jackson Harper <jackson@ximian.com>
21519 * XplatUIX11.cs: Give a max idle time of one second, this matches
21520 MS and forces an Idle event every second when there are no other
21521 events in the queue.
21523 2006-03-24 Mike Kestner <mkestner@novell.com>
21525 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
21526 * ListView.Item.cs: fix layout issues with null image lists and images
21527 smaller than checkbox size.
21528 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
21529 mode like MS does. It's weird, but consistent. ;-)
21532 2006-03-24 Mike Kestner <mkestner@novell.com>
21534 * ListView.cs: Scroll wheel support for the item control. Fixes
21537 2006-03-23 Jackson Harper <jackson@ximian.com>
21539 * ScrollableControl.cs: Special case negative sized areas, not
21541 * MonthCalendar.cs: Save the rect of the clicked date so we can
21542 use it for invalidation.
21543 - Try to cut down on the number of invalidates
21544 - Invalidate the rect the mouse is over and was over when moving
21545 the mouse, so we get the focus box following the cursor.
21547 2006-03-23 Mike Kestner <mkestner@novell.com>
21549 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
21550 focus rectangle drawing. Fixes #77835.
21552 2006-03-23 Mike Kestner <mkestner@novell.com>
21554 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
21555 the if and else if and reverting back to the original == check on the
21558 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
21560 * FontDialog.cs: Update the example panel if the selected index of
21561 the fontListBox changes.
21563 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
21565 * FileDialog.cs: Make FileDialog remember which directory it was in
21566 last in the same execution.
21568 2006-03-22 Mike Kestner <mkestner@novell.com>
21570 * FileDialog.cs: make the DropDownMenu on the toolbar display
21571 RadioChecks since they are mutually exclusive and that's what MS does.
21573 2006-03-22 Mike Kestner <mkestner@novell.com>
21575 * Theme.cs: add Color param to CPDrawMenuGlyph.
21576 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
21577 checks and radio marks and arrows are visible on highlighted items.
21578 * ControlPaint.cs: update to use new Theme signature.
21580 2006-03-22 Mike Kestner <mkestner@novell.com>
21582 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
21583 is active. Fixes #77870.
21585 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
21587 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
21588 to be focused/selected after startup
21590 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
21593 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
21594 CustomColors and ShowHelp properties
21595 - Some internal rewrites to get better results when using the
21598 2006-03-22 Mike Kestner <mkestner@novell.com>
21600 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
21601 HoverSelection. Fixes #77836.
21603 2006-03-22 Mike Kestner <mkestner@novell.com>
21605 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
21606 ToggleButtons. (De)Sensitize the Back button around a stack count of
21607 1, not 0. Update ButtonSize based on a pixel count of the win32
21608 control. Adjust the toolbar size/location for new button size.
21610 2006-03-22 Jackson Harper <jackson@ximian.com>
21612 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
21614 * ScrollBar.cs: When doing increments and decrements we need to
21615 set the Value property so that ValueChanged gets raised. A
21616 possible optimization here would be to make an internal SetValue
21617 that doesn't invalidate immediately.
21618 * ToolTip.cs: Tooltips get added to their container (when
21619 supplied) so they get disposed when the container is disposed.
21620 - Don't create tooltips for String.Empty. This prevents all these
21621 little 2-3 pixel windows from showing up when running nunit-gui
21622 and driving me mad.
21623 * Form.cs: Don't set topmost when setting the owner if the handles
21624 haven't been created yet. The topmost set will happen when the
21625 handles are created.
21627 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
21630 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
21631 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
21632 visible (to allow them to recalculate their sizes)
21634 2006-03-21 Mike Kestner <mkestner@novell.com>
21636 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
21637 methods. Removed a ton of redundant code. Still not really happy with
21638 the border rendering, but I think that's mainly because of the
21639 ControlDarkDark being black instead of a dark grey. Depending on how
21640 close we want to be, we might want to revisit those color choices.
21641 Among the new features added during the refactor were DropDownArrow
21642 pressed rendering, Disabled image rendering. Proper flat appearance
21643 boundary rendering. Removed the Divider and Wrapping dividers since I
21644 can't figure out any combination of themes and conditions to make the
21645 MS control draw a horizontal line on a toolbar despite what the
21646 Divider property docs indicate.
21647 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
21648 conditions and incorrect layout. Updated to coding standard.
21649 * ToolBarButton.cs: refactored layout and positioning code from
21650 ToolBar to here. Invalidate wherever possible instead of forcing
21651 redraws of the whole toolbar.
21652 (Known remaining issues: explicit ButtonSize smaller than provided
21655 2006-03-21 Mike Kestner <mkestner@novell.com>
21657 * ContextMenu.cs (Show): use the position parameter instead of just
21658 showing at the MousePosition.
21660 2006-03-21 Jackson Harper <jackson@ximian.com>
21662 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
21663 control handle this.
21664 * TreeNodeCollection.cs: If we are clearing the root node we need
21665 to reset top_node so calcs can still happen.
21666 * ThemeWin32Classic.cs: This is a Flags so we need to check
21669 2006-03-21 Jackson Harper <jackson@ximian.com>
21671 * DataGrid.cs: Create columns when the binding context has been
21673 * X11Structs.cs: Keysyms are uints.
21674 - Add size to fix build.
21676 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
21678 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
21680 - Added ResetMouseHover method to allow controls to retrigger
21681 hovering if they need it more than once
21682 - Implemented MouseHoverTime and MouseHoverSize properties
21683 * Timer.cs: Start() must reset the interval
21684 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
21687 2006-03-21 Jackson Harper <jackson@ximian.com>
21689 * X11Keyboard.cs: improved layout detection. Move the nonchar
21690 tables into this file.
21691 * KeyboardLayouts.cs: Move the tables into resource files.
21693 2006-03-21 Mike Kestner <mkestner@novell.com>
21695 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
21697 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
21699 * Mime.cs: Various speed optimizations. Looking up mime types
21700 is now 2 times faster than before
21702 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
21704 * CreateParams.cs: Added internal menu field
21706 - Switched call order for UpdateBounds; now we always call
21707 the one that also takes ClientSize, and we're calculating the
21708 client size via driver method in the others. The previous
21709 method of tracking client size by difference wasn't working
21710 for forms where even the starting client size wouldn't match
21711 the overall form size (due to borders) (Part of fix for #77729)
21712 - CreateParams(): Do not use parent.Handle unless the handle is
21713 already created. Causes havoc with Nexxia and throws off our
21714 creation of controls
21716 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
21717 - Switched handling of ConfigureNotify over to new PerformNCCalc
21718 method (consolidates code)
21719 - Changed RequestNCRecalc to use new PerformNCCalc method
21720 - Added calls to RequestNCRecalc when menus and borders are changed
21721 to allow app to set NC size. (Part of fix for #77729) This matches
21722 when MS send a WM_NCRECALC on Win32 windows.
21723 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
21724 (Part of fix for #77729). This matches what MS does, they also
21725 send that message when the form is made visible.
21726 - XException.GetMessage: Improved usability of X errors by including
21727 a translation of the window into Hwnd and Control class
21728 - Improved debug info for window creation, reparenting and destruction
21729 - Created helper method WindowIsMapped() [Currently not used]
21730 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
21732 - CreateParams: Now setting our menu on the new internal menu field
21733 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
21734 avoid calculating the same property twice
21736 - Improved usability of ToString() for debugging purposes
21737 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
21738 determine the height of the menu, instead of just the font. This
21739 required to also create a graphics context and to keep a bmp
21740 around (for performance reasons)
21742 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
21744 * MenuAPI.cs: Added OnMouseUp method
21746 - Now remembering the requested client size, avoids size errors
21747 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
21748 instead of base if the menu is active. This is required due to
21749 control now capturing and releasing on down/up and it would
21750 prematurely release our menu capture
21752 2006-03-17 Jackson Harper <jackson@ximian.com>
21754 * KeyboardLayouts.cs: Add the czech layouts.
21756 2006-03-16 Jackson Harper <jackson@ximian.com>
21758 * Control.cs: Use the viewport space when sizing not the controls
21759 client size, so things like ScrollableControl that effect the
21760 viewport size (when scrollbars are added) are computed correctly.
21761 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
21763 - Handle creating BindingManagers for null data sources.
21764 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
21765 source, otherwise when rows are added they are added to the 'fake'
21766 datasource and we will crash when trying to set the position in
21768 - Use Implicit scrollbars on the datagrid so they arent
21771 2006-03-16 Jackson Harper <jackson@ximian.com>
21774 * InternalWindowManager.cs:
21775 * MdiWindowManager.cs:
21776 * X11Keyboard.cs: I really want Mike to love me again (fix
21777 compiler warnings).
21779 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
21782 - OnMouseDown: Switch to editing mode when clicking on the cell
21783 even if we're clicking on the cell that's currently
21785 - ProcessGridKey: Left/Right now wrap like MS.Net does
21786 - ProcessGridKey: Tab now knows to add a new row when tab is
21787 pressed in the cell of the last column of the
21789 - ProcessGridKey: Enter now adds another row if pressed in the last
21790 row and selectes the new row, same column cell
21791 - ProcessGridKey: Home/End navigate columns, not rows, like
21792 originally implemented
21793 - Broke ProcessKeyPreview code out into an extra Internal method
21794 so it can be called from the edit code
21795 * DataGridTextBox.cs (ProcessKeyMessage):
21796 - Switched to accept Tab keypresses
21797 - Added F2 handling to allow jumping to the end of the edited cell
21798 - Added logic to allow moving caret left/right inside edited cell
21799 and making the edited cell jump when the caret hits cell borders
21800 - Tab and Enter are now passed to the datagrid after being handled
21802 - Removed capture code now that Control handles it
21803 - set_SelectionStart now ensures caret is visible
21805 2006-03-16 Jackson Harper <jackson@ximian.com>
21807 * TrackBar.cs: Debackwards the increment/decrement for handling
21808 mouse clicks on the bar with vertical trackbars.
21809 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
21810 bottom to match MS.
21812 2006-03-16 Mike Kestner <mkestner@novell.com>
21814 * ListView.cs: make shift/ctrl keyboard and mouse selection
21815 consistent with the MS control. Fix a bug in
21816 SelectedListViewItemCollection.Clear that was pissing me off for the
21817 better part of a day because the collection was being altered
21818 underneath us as we walked the list.
21820 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
21822 * Control.cs: Not sure how we could miss this so long, but it seems
21823 that MS.Net has Capture set all the way from before calling
21824 OnMouseDown through sending the mouse events until after
21825 OnMouseUp. This will fix DataGrid's selection being set to end
21826 at the location of the MouseUp.
21828 2006-03-15 Jackson Harper <jackson@ximian.com>
21830 * BindingContext.cs: Check the binding after its added so that it
21831 can initialize the binding managers and hookup to events.
21832 * Binding.cs: Data members seem to sometimes include rows/cols in
21833 the format Row.Column we now take this into account.
21834 - Hookup to the position changed event so we can update the
21835 control when the position has changed in the data set.
21836 * CurrencyManager.cs: Take into account the row/col naming
21837 convention when creating dataset tables.
21838 * BindingContext.cs: Using a newer better way of storing
21839 datasource/datamember pairs. Hopefully this better matches MS for
21840 looking up binding managers.
21843 2006-03-15 Jackson Harper <jackson@ximian.com>
21845 * BindingContext.cs: The currency manager needs the data member
21846 name, if the member is a data set we use the name to find the
21848 * CurrencyManager.cs: When creating the list prefer an IList over
21850 - Attempt to create a DataTable from a DataSet (TODO: might need
21851 some better error checking here, although MS doesn't seem to have much)
21852 - If we have a DataTable create a view and use it as our list.
21854 2006-03-15 Mike Kestner <mkestner@novell.com>
21856 * ListView.cs: keep a matrix of the icon mode layout to facilitate
21857 keyboard navigation. Support Up/Down/Left/Right selection correctly
21858 for all 4 View modes.
21859 * ListViewItem.cs: add internal row/col fields for icon layouts.
21861 2006-03-15 Jackson Harper <jackson@ximian.com>
21863 * TabControl.cs: Redraw the tabs when we resize so their newly
21864 calculated sizes are drawn on screen.
21865 * X11Keyboard.cs: Begginnings of XIM support. We also now support
21866 composite characters.
21867 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
21868 - filter events so that composite characters can be created
21870 * X11Structs.cs: Add XIMProperties enum.
21872 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
21874 * Control.cs (BringToFront, SendToBack): Don't use window or handle
21875 unless it's created
21877 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
21879 * Control.cs (PerformLayout): We don't need to consider visiblity
21880 for anchoring, only for docking. This fixes 'whacky' alignment
21881 in listbox and other controls that use implicit scrollbars after
21882 the previous PerformLayout patch
21883 * ListBox.cs: Switched to use implicit scrollbars
21885 2006-03-14 Mike Kestner <mkestner@novell.com>
21889 - chain up the "new event" overrides to base and use
21890 OnEvent to raise them. Part of fix for bug #76509.
21892 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
21894 * FileDialog.cs: Do not select an item in the parent directory
21897 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
21899 * Control.cs (PerformLayout): It would seem that we considered
21900 invisible windows for our layout. Not quite the right thing
21901 to do. Now we don't any longer, thereby fixing bug #76889.
21903 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
21905 * Control.cs (CanFocus): I goofed. A control can have focus
21906 even though it's not selectable. Made it match MS docs.
21908 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
21910 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
21911 center by default (fixes #76895)
21912 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
21913 all uses of Border3DSides.All with the explicit ORd together
21914 Left|Right|Top|Bottom because I assume that nobody was aware
21915 that All also implies a center fill. Most places I checked had
21916 a fill right above.
21917 * ProgressBarStyle.cs: Added
21919 2006-03-13 Mike Kestner <mkestner@novell.com>
21921 * ListView.cs: fix breakage in drag shadow header positioning
21922 from Peter's csc compilation fix.
21924 2006-03-13 Mike Kestner <mkestner@novell.com>
21926 * ListView.cs: fix NRE produced by backspacing twice in a focused
21929 2006-03-13 Mike Kestner <mkestner@novell.com>
21931 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
21933 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
21935 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
21937 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
21938 the allowed size before making programmatic size changes
21940 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
21942 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
21943 set, metacity is broken and will still use the emty sizes in
21944 the struct. (Fix for #77089)
21946 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
21948 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
21949 WindowExStyles and marked both enums as Flags
21950 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
21951 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
21952 to match WindowStyles split
21954 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
21955 - Updated to match WindowStyles split
21957 - Fixed FosterParent creation, was using ExStyle on the Style field
21958 (This should help with Popup focus issues)
21959 - Updated to match WindowStyles split
21961 2006-03-13 Jackson Harper <jackson@ximian.com>
21963 * MdiWindowManager.cs: Use the system menu height. Fixes some
21964 strange sizing issues.
21966 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
21968 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
21970 - Scroll to caret after inserting text (#77672)
21971 - Make scroll range one pixel higher, fixes off-by-one error (and
21972 makes underlines visible on the last line)
21974 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
21976 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
21977 the keyboard state from being stuck with keys in 'pressed' state when
21978 focus is switched away via keyboard
21979 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
21980 reset the keyboard if no X11 KeyUp events are expected to come
21981 * X11Structs.cs: Switched type of Visible to bool to match driver
21983 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
21986 - Switched caret to be just 1 pixel wide, matches MS and looks less
21988 - Moved caret display 1 pixel down from the top of the control
21990 - InsertCharAtCharet: Update the selection start if moving the caret
21991 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
21992 - No longer always creating the caret when the caret methods are
21993 called. Only the actual ShowCaret/HideCaret will do that now
21994 - Only setting caret visible if the owner control has focus
21995 - UpdateView: Added invalidation-shortcut logic for center and right
21996 aligned text. Previously we'd update all according to the left
21997 logic which caused drawing errors. Also fixed height of invalidated
21998 areas, now properly invalidating the whole area (was off-by-one)
21999 - owner_HandleCreated: Always generate the document when the
22000 handle is created; this ensures that
22002 - Fixed situation where caret would disappear under the right
22003 window border, also improved scrolling behaviour on left-
22005 - Fixed right-aligned textboxes to have a border to the
22006 right instead of the caret being under the right border
22008 - Switched from 'nested' to simple visible/not visible tracking
22009 for caret (part of fix for #77671)
22010 - No longer passing through translated FocusIn/FocusOut messages
22011 since we were notifying too often and the wrong windows. Instead
22012 we just notify our focussed window of receiving or loosing focus
22013 * XplatUIWin32.cs: Switched from 'nested' show/hide
22014 counting for caret to simple visible yes/no behaviour (part of
22017 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
22019 * Mime.cs: Remove debug code...
22021 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
22023 * MimeGenerated.cs: Removed
22024 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
22025 and subclasses) from /usr/(local/)share/mime and
22026 $HOME/.local/share/mime.
22028 2006-03-10 Jackson Harper <jackson@ximian.com>
22030 * MdiWindowManager.cs: Recalc the NC area when a window is
22031 maximized/restored so that the menu area is drawn on forms that
22034 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22036 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22037 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
22038 us to force a WM_NCCALCRESIZE message being sent. This is needed
22039 for MDI maximizing.
22041 2006-03-10 Jackson Harper <jackson@ximian.com>
22043 * Form.cs: We need to use the ActiveMenu when calculating menu
22045 - Fix nullref when the window manager hasn't been created yet.
22046 * Control.cs: Fix nullref when we try to bring a control to the
22047 front that has no parent.
22048 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
22050 - Add a dummy item to the maximized menu so it always has the
22051 correct height. Otherwise when there are no menus we don't get our
22055 2006-03-10 Jackson Harper <jackson@ximian.com>
22057 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
22059 * Form.cs: Make the window_state internal so the window managers
22061 - When an MDI child is maximized let its window manager create the
22062 main menu (so it can add its icon).
22063 - Notify the window managers of state changes
22064 - Let the window manager paint its buttons and handle button
22065 clicks on the menu when it is maximized.
22066 * InternalWindowManager.cs: Move the prev_bounds into the mdi
22067 window manager, since tool windows don't use it, only mdi windows.
22068 - Tell the main form that we don't want it to handle NCPAINT
22069 itself to avoid extra painting.
22070 - Handle clicks on a maximized windows menu.
22071 - Handle window state changes
22072 - Handle minimize/maximize clicks correctly by setting the window state.
22073 * MdiWindowManager.cs: Add an icon menu that (the menu you get
22074 when clicking on the forms icon).
22075 - New method to create a forms maximized menu. This is its normal
22077 - Handle window state changes.
22078 - Handle sizing of maximized windows. Maximized windows are just
22079 drawn bigger then the parent visible area. All controls are still
22080 there, they are just outside the visible area (this matches windows).
22081 * MdiClient.cs: No scrollbars when a child window is maximized.
22082 - Let the children windows figure out how big they should be when
22083 sizing maximized windows.
22084 - Implement a version of ArrangeIconicWindows somewhat similar to
22085 Windows version. There are some little differences, but I don't
22086 think any app will rely on the layout of minimized mdi windows.
22088 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22090 * Padding.cs: Several fixes to allow compiling with csc 2.0
22092 2006-03-09 Jackson Harper <jackson@ximian.com>
22095 * MenuItem.cs: Cheap hack so we can add items to the list without
22096 the events being raised. This allows adding mdi items during
22097 drawing. TODO: Should probably find a better time to add the items.
22099 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22101 * ThemeWin32Classic.cs:
22102 - CheckBox_DrawText: Added logic to not wrap if not enough space
22103 is available (Fix for bug #77727)
22104 - RadioButton_DrawText: Added logic not to wrap if not enough
22105 space is available (Fix for bug #77727). Also removed some
22106 duplicate code, DrawString always drawing the regular text
22107 before hitting the if statement.
22109 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22111 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
22113 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22115 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
22116 * ContainerControl.cs: Partial implementation of some 2.0 scaling
22117 methods. Moved the new 2.0 properties into alphabetical order with
22118 other properties and added MonoTODO tags
22120 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22122 * AutoScaleMode.cs: Added. Fix build.
22124 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22126 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
22127 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
22128 and was requiring premature handle creation for calls from above
22129 * Form.cs, Control.cs: Removed handle arguments from calls to
22130 CalculateClientRect()
22132 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22134 * ListView.cs (HeaderMouseMove): Fix csc compilation.
22135 drag_column.column_rect is MarshalByRef and can't be used that way
22137 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22139 * AxHost.cs: Added deserialization constructor for
22140 AxHost+State (fixes 77743)
22142 2006-03-09 Mike Kestner <mkestner@novell.com>
22145 - Added column drag reordering for details view.
22146 - fixed behavior when mouse is dragged off column and
22147 AllowColumnReorder is false.
22148 * ColumnHeader.cs: clone the format too in Clone.
22149 * Theme.cs: add DrawListViewHeaderDragDetails method.
22150 * ThemeWin32Classic.cs:
22151 - impl new method for drawing drag column shadows and targets.
22152 - support column offset for details mode in DrawListViewItem.
22154 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22156 * TextControl.cs: Reset the char_count when the document is cleared
22157 (Fixes bug reported on mono-winforms mailing list)
22159 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22161 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
22162 of calling base we simply process the key ourselves, since both
22163 DefWindowProc and the handled method would set m.Result.
22166 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22168 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
22169 method also moves the window; instead implemented a copy of
22170 Control.ScaleCore (Part of fix for #77456)
22172 - Created new CreateGraphicsInternal method to allow providing
22173 a graphics context when no handle is created without triggering
22174 handle creation. (Part of fix for #77456)
22175 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
22177 - Switched Constructor to require TextBoxBase instead of Control (to
22178 allow uncast access to CreateGraphicsInternal)
22179 - Safeguarded use of owner.Handle property. No longer accessing it
22180 unless the handle is already created.
22181 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
22182 - Now triggering a recalc when owning control becomes visible
22183 * TextBox.cs, RichTextBox.cs: Switched to use new internal
22184 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
22185 premature handle creation (Part of fix for #77456)
22187 - We now only destroy our double-buffering buffers when the
22188 control is resized or disposed, but not when visibility
22189 changes. (The code even re-created them twice every time)
22190 - Now requiring a redraw of the buffer on visibility changes
22191 (fixes bug 77654 part 2)
22192 - Not passing OnParentVisibleChanged up unless the control
22194 - CanFocus: Fixed to match MS documentation
22195 - Focus: Fixed to return actual focus state and to check if
22196 setting focus is legal before setting it
22198 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
22200 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
22201 when to draw focus rectangle by looking at parent focus and
22202 selected state instead. This fixes TabPages on Linux sometimes
22203 having none or multiple focus rectangles.
22204 * XplatUIX11.cs (SetFocus):
22205 - Don't set the focus if the same window already has focus
22206 - Use SendMessage instead of PostMessage (like it's Win32
22207 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
22208 to match MS behaviour
22209 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
22210 are not selectable.
22212 2006-03-07 Jackson Harper <jackson@ximian.com>
22214 * PictureBox.cs: Revert line I accidently committed last week.
22216 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
22219 - Added new IsRecreating and ParentIsRecreating properties to
22220 allow testing if RecreateHandle has been called on ourselves
22221 or one of our parents
22222 - WndProc(WM_DESTROY): If our control handle is being recreated
22223 we immediately need to create the handle when receiving the
22224 destroy, that way our child windows find a valid parent handle
22225 when they themselves are being recreated upon WM_DESTROY receipt
22226 (fix for bug #77654 part 1)
22228 - DestroyWindow: WM_DESTROY must be sent to our own window before
22229 notifying any child windows. MS documents that child windows
22230 are still valid when WM_DESTROY is received. (Control now relies on
22232 - Added some fine-grain debug options
22234 2006-03-06 Jackson Harper <jackson@ximian.com>
22236 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
22237 box and base calculations off this.
22238 * MdiChildContext.cs:
22239 * MdiWindowManager.cs: Don't need to ensure scrollbars here
22242 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
22244 * Splitter.cs: In situations where the affected control is added
22245 to the parent's control list after the splitter, we would not
22246 populate affected. Now we try populating it on mousedown, if
22247 it's not already set, and force it to be re-set whenever our
22250 2006-03-03 Matt Hargett <matt@use.net>
22252 * Control.cs: implement Control.Padding
22253 * Padding.cs: -Padding.All returns -1 when constructing with the
22254 implicit default ctor
22255 -Padding.ToString() matches MS.NET
22256 * ContainerControl.cs: implement
22257 ContainerControl.AutoScaleDimensions
22258 * ListControl.cs: implement ListControl.FormattingEnabled
22259 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
22261 * TabPage.cs: Implement UseVisualStyleBackColor.
22262 * PictureBox.cs: Implement PictureBox.InitialImage.
22264 2006-03-03 Mike Kestner <mkestner@novell.com>
22266 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
22267 event declarations to proxy to base event.
22268 * ListViewItem.cs: update to use ItemControl.
22269 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
22270 * ThemeWin32Classic.cs: update to new ListView theme API and fix
22271 column header label rendering for 0 width columns.
22273 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
22275 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
22276 that causes the control to be created. Fixes #77476.
22278 2006-03-02 Jackson Harper <jackson@ximian.com>
22280 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
22283 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
22285 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
22286 passed in for the EventArgs (fixes #77690)
22288 2006-03-01 Jackson Harper <jackson@ximian.com>
22290 * ScrollBar.cs: Refresh afterbeing resized.
22292 2006-02-28 Mike Kestner <mkestner@novell.com>
22294 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
22295 Clean up a tracker compile warning.
22296 * MenuItem.cs: add internal PerformPopup method.
22299 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
22301 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
22302 implicit expose) when the text is set to null
22304 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
22306 * RichTextBox.cs (FlushText): When newline is true, we always
22307 need to split the line, even if no text is on it and we may
22308 never eat newlines. (Fixes #77669)
22310 2006-02-28 Mike Kestner <mkestner@novell.com>
22312 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
22313 and set Selected instead.
22314 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
22317 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
22319 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
22321 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
22324 - Got rid of the panel. All controls are now directly added to
22326 - It is now possible to set a font with the Font property
22327 - MinSize and MaxSize property do now what they should
22328 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
22329 - Searching and selecting a font with the font textbox works now,
22330 the same applies to the style and size textbox
22331 - Draw the correct 3D border in the example panel
22332 - Fixed a little mem leak (unused fonts didn't get disposed)
22333 - Many other internal updates/rewrites...
22336 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
22339 - InsertRTFFromStream: Added 'number of characters inserted' argument
22340 - set_SelectedRTF: Now using the number of characters to calculate
22341 the new location for the selection and cursor (x/y cannot be used
22342 due to potentially already wrapped text)
22344 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
22346 * TextControl.cs: Added property and implemented means to allow
22347 disabling recalculation of a document (can be used to speed up
22348 multiple inserts and is needed to make RTF inserts predictable, see
22350 * RichTextBox.cs: Using the new NoRecalc property of Document to
22351 keep x/y insert locations predictable. Also makes it faster inserting
22352 large chunks of RTF
22354 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
22356 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
22357 it's easier for a child control to handle the other messages without
22358 having to duplicate the special functionality
22360 - WndProc: Removed calling base handler for WM_KEYDOWN and added
22361 code to handle processing the key ourselves, in order to get
22362 access to the result of KeyEventArgs.Handled. We now only call
22363 ProcessKey if they key hasn't been handled already. Fixes #77526.
22364 - set_Text: If null or empty string is given, just clear the
22365 document. Fixes part of #77526
22367 2006-02-27 Jackson Harper <jackson@ximian.com>
22369 * SizeGrip.cs: Paint the background color before painting the grip
22370 so things look right.
22371 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
22373 2006-02-27 Mike Kestner <mkestner@novell.com>
22376 - Restructure layout and invalidation model to remove a ton of
22377 flicker from the control and speed up performance in general.
22378 - Add manual column resize, flickers like crazy, but I already have
22379 some ideas on how I'll fix that. (#76822)
22380 - Merge the three Icon-based views into a single layout method.
22381 - Move item selection interaction logic from the item since
22382 interaction with the collections is more appropriate to the view.
22383 - Deselection on non-item clicks.
22385 - Encapsulate most of the layout. Add some internal props to trigger
22386 layout. Move to a model where Items invalidate themselves instead
22387 of just invalidating the whole control every time something changes.
22388 - Invalidate on Text/Caption changes.
22389 - switch to an offset based layout model to avoid having to absolute
22390 position every element on item moves.
22391 - correct checkbox layout to conform to MS layout.
22392 * ThemeWin32Classic.cs:
22393 - refactor some column header drawing code.
22394 - fix string justification for column headers (#76821)
22395 - make SmallIcon labels top justified for compat with MS impl.
22396 * ThemeClearlooks.cs:
22397 - adjust to new ListViewItem internal checkbox bounds api.
22399 2006-02-27 Jackson Harper <jackson@ximian.com>
22401 * Control.cs: Change where implicit controls fall in the zorder.
22402 They are now on top of all children.
22403 - Synced AddImplicit code with Add
22404 - Removed unused enumerator.
22405 * SizeGrip.cs: Remove the TODO as its been TODONE.
22407 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
22409 * TextControl.cs(Insert): Combine the last lines unless the insertion
22410 string ends with \n\n, otherwise we leave one line too many (Fixes
22411 something I noticed with the testapp for #77526; the bug itself was
22412 already fixed in the previous checkin)
22414 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
22417 - SelectionColor and SelectionFont methods no longer set absolute
22418 styles. Instead, the keep font or color respectively (This
22419 resolves a long-standing FIXME in the code)
22420 - When flushing RTF text, the insert code now considers text trailing
22421 behind the insertion point (Fixes the bug where when replacing
22422 the selected text via SelectedRTF the remainder of the line behind
22423 the selection would stay on the first insertion line)
22425 - AppendText now updates the selection points after inserting text
22426 - AppendText now ensures that the last tag (sometimes 0-length) of
22427 the document is used for the style information (Fixes part of
22430 - Created new FontDefiniton class to allow describing partial style
22432 - StreamLine() now takes a lines argument, to allow it to decide
22433 whether an encountered zero-length tag is the last in the document
22434 (which must be kept to not loose the font/color contained in it,
22436 - Created Combine() and Split() methods for Marker structs, to
22437 support marker updates due to reformatted documents (soft line
22439 - Implemented Document.CaretTag setter
22440 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
22441 of the last line (Not the cause, but also exposed by bug #77220)
22442 - Added LineTag argument to InsertString method, to allow callers
22443 to force a certain tag to be used (required to force use of the
22444 trailing zero-length tag of a document)
22445 - Now updating markers in Combine(), to avoid stale tag markers
22446 - Added some method descriptions to aid maintenance
22447 - Implemented new FormatText concept, allowing additive/subtractive
22448 formatting by only specifying the components that are to be
22449 changed. This was needed for resolving the RTB.SelectedColor/
22450 RTB.SelectedFont fixmes
22451 - Added Break() support method to allow breaking up linetags (used
22452 for partial formatting)
22453 - Added GenerateTextFormat() method. It is used for partial
22454 formatting and allows to generate a full font/color from given
22455 attributes and an existing tag.
22457 2006-02-26 Jackson Harper <jackson@ximian.com>
22459 * XplatUIX11.cs: Use the correct caption height.
22460 - Translate hittest coordinates to screen coords to match MS.
22461 * XplatUIWin32.cs: When we create MDI windows we need to reset
22462 some of the style flags, so we get a nice blank window, and can
22463 draw all the decorations ourselves.
22464 - Set a clipping rectangle on the non client paint event, the
22465 window manager drawing code needs one.
22466 * Form.cs: The window manager needs to know when the window state
22468 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
22469 don't need to factor in border and title sizes in these
22470 methods. TODO: Remove the args and fix the call points.
22471 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
22473 - Let the driver set the cursors.
22474 - Improve active window handling
22475 - Correct sizes for title bars and buttons.
22476 - Match MS drawing better
22477 * MdiWindowManager.cs: We don't need to handle border style
22478 updates specially anymore.
22479 - Check for scrollbars when windows are done moving
22480 - Handle Active properly.
22481 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
22482 correctly. I am spewing the exception though, so we don't hide the
22485 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
22487 * DataGridViewRowPostPaintEventArgs.cs,
22488 DataGridViewCellPaintingEventArgs.cs,
22489 DataGridViewRowCollection.cs,
22490 DataGridViewRowPrePaintEventArgs.cs,
22491 DataGridViewCell.cs: Clear a few warnings and implement a few
22492 exceptions that should be thrown.
22494 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
22496 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
22497 'inheriting' our parent's (non-default) cursor. (Part of
22498 the fix for #77479)
22500 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
22502 * XplatUIX11.cs: Fixed cast to make csc happy
22504 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
22506 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
22507 it's for the client area (part of fix for #77479 and needed
22508 for MDI window cursor handling)
22510 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
22511 the appropriate default cursors and also passing the message
22512 up the parent chain
22513 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
22514 for non-client areas
22516 2006-02-15 Jackson Harper <jackson@ximian.com>
22518 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
22519 is a real MDI window
22521 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
22523 * X11DesktopColors.cs: Instead of checking the desktop session
22524 string for "KDE" check if it starts with "KDE"
22526 2006-02-10 Jackson Harper <jackson@ximian.com>
22528 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
22531 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
22533 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
22536 - Got rid of the panel. All controls are now directly added to
22538 - Changed to mono coding style
22540 2006-02-10 Jackson Harper <jackson@ximian.com>
22542 * InternalWindowManager.cs: We don't need the set visibility to
22543 false hack anymore now that peter has written beautiful shutdown
22546 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
22548 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
22549 where already explicitly destroyed
22551 2006-02-10 Jackson Harper <jackson@ximian.com>
22553 * MdiClient.cs: Handle the case where windows are too high or to
22554 the left and we need scrollbars.
22556 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
22558 * MimeIcon.cs: Added some icons
22561 - Got rid of the panel. All controls are now directly added to
22563 - Changed to mono coding style
22564 - On Linux "My Computer" and "My Network" will now show some
22565 more usefull information. A new class, MasterMount, gathers
22566 this information from /proc/mount. Updated MWFFileView to make
22567 use of this information
22568 - Fixed a bug that caused FileDialog to crash when
22569 ".recently_used" file had a zero size
22570 - FilterIndex does now what it should
22572 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
22575 2006-02-09 Jackson Harper <jackson@ximian.com>
22577 * ComboBox.cs: Don't touch if null.
22579 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
22581 * Cursor.cs: 64bit safeness fix
22582 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
22584 2006-02-09 Jackson Harper <jackson@ximian.com>
22586 * Form.cs: If a form is made into an MDI form update the styles so
22587 all the props can get set correctly.
22588 - Kill the mdi_container when we dont need it anymore.
22589 * InternalWindowManager.cs: Add missing NOT
22591 2006-02-08 Jackson Harper <jackson@ximian.com>
22593 * InternalWindowManager.cs: Respek clipping when drawing MDi
22596 2006-02-08 Jackson Harper <jackson@ximian.com>
22598 * Hwnd.cs: Add bits to track non client expose events.
22599 * XplatUIX11.cs: Track non client expose events on the hwnd. This
22600 gives us a proper invalid rect and will allow for some nice
22601 optimizations with NC client drawing
22602 - MDI windows are children windows, so move their style handling
22603 into the child window block.
22604 * InternalWindowManager.cs: Remove a state reset that was
22605 getting invoked at the wrong time. Fixes managed windows getting
22606 into a 'stuck' captured state.
22608 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
22610 * TextControl.cs (Document.ctor): Now initializing
22611 selection_anchor. Fixes #77493
22613 2006-02-07 Jackson Harper <jackson@ximian.com>
22615 * TrackBar.cs: The increment/decrements were backwards.
22617 2006-02-07 Mike Kestner <mkestner@novell.com>
22619 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
22620 to the instance itself.
22622 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
22624 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
22625 on ulongs and pointers, the size differs between 32bit and 64bit
22628 2006-02-07 Mike Kestner <mkestner@novell.com>
22630 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
22631 for 64 bit platforms to work around a metacity bug.
22633 2006-02-07 Jackson Harper <jackson@ximian.com>
22635 * TrackBar.cs: Process the input keys we need, and hookup to
22636 KeyDown instead of using WndProc, so we get key messages.
22638 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
22640 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
22642 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
22643 we need to translate the XdndVersion atoms array before sending it
22645 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
22648 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
22649 number of bits for the property, not the number of bytes. The
22650 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
22651 but would not crash since it specified 8 bits instead of 4 bits)
22652 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
22653 defined as XID -> long in the C headers)
22654 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
22655 references since those are now IntPtr to begin with
22656 - Switched all Atom.XXX 'int' casts to IntPtr casts
22657 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
22658 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
22659 - Added XChangeActivePointerGrab DllImport (for X11DnD)
22661 - Changed 'int' type for Atoms in XEvent structures to IntPtr
22662 - Changed atom in HoverStruct to be IntPtr
22664 - Removed local DllImports, switched code to use those from XplatUIX11
22665 - Removed/fixed casts related to the switch of Atom to be a IntPtr
22667 2006-02-06 Mike Kestner <mkestner@novell.com>
22669 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
22670 method signatures in the import region. There may still be some
22671 lingering struct marshaling issues, as I didn't drill down into those.
22674 2006-02-06 Jackson Harper <jackson@ximian.com>
22676 * ComboBox.cs: Dont manually set the top_item, this is computed
22677 when the scrollbar position is set.
22679 2006-02-06 Mike Kestner <mkestner@novell.com>
22681 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
22682 startup crashes on amd64. There's other fixes needed. All pinvoke
22683 usage of Atom needs to be mapped to IntPtr for example. And there are
22684 likely other int/long issues to be addressed.
22686 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
22688 * FileDialog.cs: One more...
22690 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
22692 * FileDialog.cs: Next try
22694 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
22696 * FileDialog.cs: First part of fix for #77464
22698 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
22700 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
22701 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
22702 AcceptButton border drawing.
22704 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
22706 * Form.cs: Moved positioning of form after auto scaling is applied,
22707 otherwise it would possibly use wrong form size.
22709 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
22711 * Control.cs (RecreateHandle): No need to re-create any child
22712 controls, the child windows will get destroyed automatically by
22713 the windowing system or driver, and re-created when the handle
22714 is being accessed the first time. Fixes #77456
22715 * Form.cs: No longer setting the form to closing if the handle is
22716 being recreated. This seems like the right thing to do, don't
22717 have a bug or testcase for this, though.
22719 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
22721 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
22722 controls to avoid unwanted side effects
22724 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
22727 - ScaleCore needs to scale the bounds, not the ClientSize of the
22728 control. Fixes #77416.
22729 - DefaultSize is 0,0 for control
22731 - DefaultSize is 100, 20
22732 - SetBoundsCore: Now enforcing the height, no matter if the provided
22733 height is more or less than the preferred one, as long as AutoSize
22735 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
22737 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
22740 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
22741 call unless both performLayout is true *and* we have a pending
22743 - ResumeLayout: MS does not completely nest Suspend and Resume,
22744 they bottom out at 0, fixed our code to match that.
22745 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
22746 SetBoundsCore, we were updating even when we shouldn't. This fixes
22747 swf-anchors mis-anchoring when resizing the app fast and lots.
22748 - UpdateDistances: Now only setting the left and top distance if
22749 we have a parent and are not suspended, this is based on
22750 a suggestion by Don Edvaldson in bug #77355.
22751 - OnVisibleChanged: Fixed logic when to create the control. We may
22752 not create the control if we have no parent or if it's not visible;
22753 switched to using Visible property instead of is_visible field
22754 since the property also considers parent states. This fixes a bug
22755 when starting Paint.Net
22757 2006-02-02 Jackson Harper <jackson@ximian.com>
22759 * Form.cs: If the forms handle hasn't been created yet don't call
22760 into xplatui to make it top most, just set the topmost flag on the
22761 form in CreateParams
22762 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
22764 2006-02-01 Jackson Harper <jackson@ximian.com>
22766 * ScrollableControl.cs: Refactored the Recalculate method a
22767 little, this wasn't handling all the variants of bottom and right
22768 bars needed to be added and added/removed based on their
22769 counterparts being added/removed (which changes the drawable
22770 size). Also we special case client widths and heights of 0 and
22771 don't add the scrollbar for those.
22773 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
22776 - Added method to get AbsoluteGeometry(); currently unused, but might
22777 be used in the future, if we try again to figure out toplevel
22778 coordinates with some more crappy window managers
22779 - Added FrameExtents() method to retrieve the WM set decoration size
22780 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
22781 to deal with at least KDE, FVWM and metacity (Fixes #77092)
22783 - Added whacky_wm tracking var for metacity
22784 - Added logic to have default menu height if the actual menu height
22785 has not yet been calculated (part of fix for #77426)
22786 * Form.cs: Keep track whether client size has been set and re-set
22787 it if a menu is added/removed afterwards (Fixes #77426)
22789 2006-01-31 Jackson Harper <jackson@ximian.com>
22791 * Control.cs: When a new Site is set on the component attempt to
22792 pull the AmbientProperties from it.
22794 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
22796 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
22797 in the background of the owning form. Fixes #77332
22799 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
22801 * MimeIcon.cs: Fix for #77409
22803 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
22805 * XplatUIX11GTK.cs: Initial import
22807 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
22809 * FixedSizeTextBox: fixes class signature
22811 2006-01-30 Jackson Harper <jackson@ximian.com>
22813 * FixedSizeTextBox.cs: New internal class that represents a
22814 textBox that will not be scaled.
22817 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
22820 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
22822 * XplatUIX11.cs: Retrieve default screen number instead of
22823 assuming 0. Attempted fix for #77318
22825 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
22828 - GetWindowPos: When a window is parented by FosterParent, use
22829 the desktop instead of FosterParent as the base to get coordinates
22830 - CreateWindow: Don't make FosterParent the parent window for Popups
22831 if we don't want a taskbar entry, Popups automatically don't get one
22832 * Hwnd.cs: Need to call remove to actually remove the key from the
22835 2006-01-30 Mike Kestner <mkestner@novell.com>
22837 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
22839 2006-01-30 Jackson Harper <jackson@ximian.com>
22842 * TreeNode.cs: Raise events no matter how the treenode is
22843 checked. Patch by Don Edvalson.
22845 2006-01-30 Jackson Harper <jackson@ximian.com>
22847 * TreeNode.cs: Signature fix.
22849 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
22851 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
22853 2006-01-20 Mike Kestner <mkestner@novell.com>
22855 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
22856 event forwarding when menus are active.
22857 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
22858 Most of the patch is pdb's with a little rework.
22860 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
22862 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
22863 Removed GetMenuDC and ReleaseMenuDC methods; replaced
22864 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
22865 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
22866 * InternalWindowManager.cs: Added use of PaintEventStart/End to
22867 handling of WM_NCPAINT message, now passing the PaintEventArgs to
22868 the PaintWindowDecorations method
22869 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
22870 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
22871 * MenuAPI.cs: Made tracker window invisible
22873 - Removed GetMenuDC and ReleaseMenuDC methods
22874 - Implemented the client=false path for PaintEventStart and
22877 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
22879 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
22880 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
22883 - MaximizeBox, MinimizeBox: Recreate the handle when setting
22885 - CreateParams: Reworked the styles to match MS look'n'feel,
22886 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
22887 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
22889 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
22891 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
22892 window is not mapped, since otherwise every form that's being
22893 created is considered minimized, which is wrong.
22894 * Form.cs: Catching the exception and returning our internal value
22897 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
22899 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
22900 SetWindowMinMax() to have means to tell the driver about the minimum,
22901 maximum and maximized state window sizes. (Part of the fix for #76485)
22903 - Implemented tracking of minimum and maximum window size, now calling
22904 new SetWindowMinMax() driver method to tell the driver (Part of the
22906 - Finished handling of WM_GETMINMAXINFO method, now setting all values
22907 (Completes fix for #76485)
22908 - Calling new SetWindowMinMax driver method when the handle for a
22909 form is created, to make sure the driver knows about it even if
22910 the values have been set before the window was created
22911 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
22912 to avoid messing up our anchoring calculations (partial fix
22914 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
22916 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
22917 - Improved GetWindowState() to detect 'Minimized' state on Metacity
22918 (and presumably other freedesktop.org compliant WMs). Left the
22919 assumption unmapped=minimized, needed for SetVisible to work.
22920 - Now setting the window state when creating windows
22921 - Fixed SetVisible to consider/set the window state when mapping
22922 a Form. We cannot set the state before it's mapped, and we cannot
22923 use Form.WindowState once it's mapped (since it would ask the
22924 driver and get 'normal'. Therefore, we grab the state before
22925 mapping, map, and then set state.
22926 - Implmemented SetWindowMinMax method; Metacity does not seem to
22927 honor the ZoomHints, though.
22929 - Removed MINMAXINFO (moved to XplatUIStructs)
22930 - Added SetWindowMinMax stub (on Win32 the only way to set that
22931 information is in response to the WM_GETMINMAXINFO message, which
22932 is handled in Form.cs)
22933 - Added logic to SetVisible to set the proper window state when a
22934 form is made visible (fixes #75720)
22936 2006-01-26 Jackson Harper <jackson@ximian.com>
22938 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
22939 same way we handle them with Invoke.
22941 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
22944 - Added tracking of window state so CreateParams can return
22945 the appropriate style
22946 - Moved setting of WS_CAPTION style in CreateParams to allow
22947 styles without caption
22948 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
22949 control if the TextBox property is accessed. Fixes #77345
22951 - get_Created: now uses is_disposed and is_created to determine
22952 return value (suggested by Jackson)
22953 - CreateHandle: No longer exits if the handle is being recreated
22954 - RecreateHandle: If the handle is not yet created call the
22955 appropriate method to create either control or handle. If the
22956 control is already created CreateHandle will simply exit instead
22957 of just creating the handle
22958 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
22959 now SendMessage WM_DESTROY directly to the control when DestroyWindow
22962 - When DestroyWindow is called, instead of waiting for the
22963 DestroyNotification from X11, we directly post it to the WndProc
22964 and immediately dispose the hwnd object.
22965 Same applies to DestroyChildWindows, and this obsoletes the
22966 expose_pending tracking. Contrary to Win32 behaviour we destroy our
22967 child windows before our own, to avoid X11 errors.
22968 - Removed the direct sending of WM_PAINT on UpdateWindow
22970 - Reworked DoEvents and GetMessage to allow access to internal queue
22971 even when trying non-blocking access to the queue. Fixes #77335.
22972 Based on a patch suggestion by Don Edvalson. The new private
22973 GetMessage can now also be used as a backend for a PeekMessage
22975 * XplatUI.cs: Improved debug output for CreateWindow
22977 2006-01-25 Jackson Harper <jackson@ximian.com>
22979 * Help.cs: Allow param to be null. Patch by Don Edvalson.
22981 2006-01-24 Jackson Harper <jackson@ximian.com>
22983 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
22984 when we have a MaxDropItems lower then the selected index.
22986 2006-01-24 Jackson Harper <jackson@ximian.com>
22988 * Control.cs: Don't allow selection of non visible controls, allow
22989 selection of controls without parents.
22991 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
22993 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
22994 * DataGridDrawingLogic.cs: Add editing row only when is necessary
22996 2006-01-23 Jackson Harper <jackson@ximian.com>
22998 * UpDownBase.cs: Make the textbox handle all the selection and
22999 tabbing. This fixes tabing to updown controls.
23001 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
23003 * TextBoxBase.cs: fixes exception thown the object was null
23005 2006-01-23 Jackson Harper <jackson@ximian.com>
23007 * ButtonBase.cs: Just use the base CreateParams. They set
23008 visibility and enabled correctly.
23011 * MonthCalendar.cs: Lets let the base set as much of the
23012 createparams as possible so we don't have duplicate code all over
23015 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
23017 * ThemeGtk.cs: Added TrackBar and some experimental code to
23018 get double buffering back
23020 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
23022 * DataGrid.cs: Allows row number set internally higher than the last
23023 when creating a new row. Restores the editing functionality.
23025 2006-01-20 Mike Kestner <mkestner@novell.com>
23027 * MimeIcon.cs: delay Image creation until the icons are accessed
23028 instead of creating 190 scaled images on GnomeHandler startup.
23030 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
23032 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
23033 first call base before processing the event. Fixes #77279
23035 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
23037 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
23038 that the stride for the GDI bitmap would match the stride of
23041 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
23043 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
23045 2006-01-19 Jackson Harper <jackson@ximian.com>
23047 * ComboBox.cs: Hookup the text controls keydown event so we get
23048 those when the text control has the focus.
23050 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
23052 * Label.cs: Now using the base events instead of defining new ones;
23053 this allows us to just call the base properties without having to
23054 duplicate all base property logic
23056 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
23058 * Label.cs: A label by default is not a tabstop (Fixes one of our
23059 failing nunit tests)
23061 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
23063 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
23064 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
23066 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
23068 * Cursor.cs: Reimplemented creating cursor bitmaps without using
23069 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
23072 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
23073 constructor creates images that can't be saved. Part of the fix
23075 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
23076 - SetWindowState: Switched ShowWindow flags (part of an upcoming
23077 bug fix for handling window state in forms properly)
23079 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
23081 * ThemeGtk.cs: Simplify ScrollBar drawing
23083 2006-01-18 Jackson Harper <jackson@ximian.com>
23085 * Splitter.cs: Set the default dock style for the splitter control
23086 in the constructor.
23088 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
23090 * ThemeGtk.cs: Corrected StateType and ShadowType for
23093 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
23095 * Control.cs: Make use of Theme.DoubleBufferingSupported
23097 - Added drawing for flat style buttons
23098 - Added ScrollBar drawing
23100 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
23102 * ThemeClearlooks.cs: Removed some unneeded code.
23103 * ThemeGtk.cs: First part of ThemeGtk enhancements.
23105 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
23107 * LinkLabel.cs: We need to update the hover drawing when
23108 leaving the control as well.
23110 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
23112 * DataGrid.cs: Clicking on non empty areas in the columns
23113 area was giving an exception
23115 2006-01-17 Jackson Harper <jackson@ximian.com>
23117 * ThemeWin32Classic.cs:
23118 * ListView.cs: Do not draw/clip the headers when the header style
23121 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
23123 * DataGrid.cs: Fixes 77260
23125 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
23127 * DataGrid.cs: Clicking on a column on a empty grid was giving
23130 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
23132 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
23133 or any keypress will crash the grid.
23135 2006-01-17 Mike Kestner <mkestner@novell.com>
23137 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
23138 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
23139 invisible/previously-visible items.
23142 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
23144 * ThemeClearlooks.cs:
23145 - Added CL_Draw_Button method; now other theme controls that are
23146 not derived from button or do not have a button can draw buttons
23148 - Updated ComboBox drawing
23149 - Beautified RadioButton drawing
23150 - Corrected drawing of bottom and left tabs
23151 - Beautified DateTimePicker and MonthCalendar
23152 - Added CPDrawButton and CPDrawRadioButton
23154 2006-01-16 Jackson Harper <jackson@ximian.com>
23156 * ComboBox.cs: Set the initial value of the scrollbar to the
23157 current index. Reduce the numbers of refreshs and IndexOfs called.
23159 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
23161 * FileDialog.cs: When the file listview is focused hitting the
23162 backspace key moves the fileview to the parent directory
23164 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
23167 - Added RecreateHandle call when changing taskbar visibility to
23168 trigger reparenting in Win32 driver (Fixes #75719)
23169 - If a window has minimize or maximize buttons, it cannot have
23172 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
23173 the toplevel form with FosterParent (A toolwindow not on the
23174 taskbar) (Fixes #75719)
23175 - Made FosterParent a toolwindow
23177 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
23179 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
23181 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
23183 * ToolTip.cs: If SetToolTip is called from a control and the mouse
23184 is currently over that control, make sure that tooltip_window.Text
23187 2006-01-13 Mike Kestner <mkestner@novell.com>
23189 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
23191 2006-01-13 Jackson Harper <jackson@ximian.com>
23193 * TreeView.cs: On MS GetNodeAt never actually factors in the X
23194 value passed. Also redraw the selected node when we recieve
23195 focus, so tabbing between trees works correctly.
23197 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
23199 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
23200 ~/.gconf/%gconf-tree.xml, so use
23201 .gconf/desktop/gnome/interface/%gconf.xml
23203 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
23205 * TextControl.cs: Draw text in gray if control is disabled
23207 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
23209 * TreeView.cs: Draw the focus rectangle outside the highlight, to
23210 make sure it's always visible. Fixes #76680.
23212 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
23214 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
23216 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
23218 * PageSetupDialog.cs: Added.
23219 * PrintDialog.cs: Attributes.
23220 * PrintPreviewControl.cs: Updates.
23221 * PrintPreviewDialog.cs: Updates.
23223 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
23225 * Control.cs: Undid my selection check fix, since it's not needed
23227 - Now considering the presence of hscroll/vscroll when sizing
23228 vscroll/hscroll respectively. Fixed bug #77077
23229 - Added Left/Up/Down/Right to IsInputKey list to prevent
23230 ContainerControl from stealing them. This fixes what I broke
23231 with my last checkin.
23233 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
23235 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
23236 I finally understand how the property can be set without a setter :-)
23238 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
23241 - Switched RunLoop to use static Message.Create to create a
23243 - Added PreProcessMessage call in runloop for keyboard events; this
23244 is part of the fix for #77219, I overlooked this originally in the
23245 MSDN doc for PreProcessMessage
23247 - Removed call to PreProcessMessage from handling of keyboard
23248 messages; it's supposed to be done in the message pump
23249 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
23250 per MSDN documentation.
23251 - IsInputChar: All chars are input chars by default; removed the
23252 parent calling chain, MS does not document that
23253 - PreProcessMessage: If IsInputChar is true, we want to return false
23254 to allow dispatching of the message
23255 - When selecting the next control, now also check that we're not
23256 selecting ourselves again and therefore return a false positive.
23258 - Tried to match return values for IsInputKey and ProcessDialogKey
23259 to what MS returns; moved processing of our special keys outside
23260 ProcessDialogKey since MS does not seem to return true on those.
23261 - Moved code that previously was in ProcessDialogKey into new private
23262 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
23263 - Reworked handling of WM_CHAR to not have to duplicate code from
23264 Control.cs anymore, instead we simply call down to base.
23266 2006-01-12 Jackson Harper <jackson@ximian.com>
23268 * ComboBox.cs: We always need to refresh the text area when
23269 EndUpdate is called. Fixes the combobox in the file dialog.
23270 * Control.cs: Don't create the creator_thread until the controls
23271 handle is created. Also in InvokeRequired we check if the
23272 creator_thread is null. This gives the effect of InvokeRequired
23273 returning true if the controls handle is not created yet, and
23276 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
23279 - Added StartLoop() driver method. This is used to allow drivers to
23280 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
23281 loop for a particular thread
23282 - Added EndLoop() driver method. This is called once the message
23283 pump for the thread is shut down
23284 - Added SupportsTransparency method to allow the driver to indicate
23285 opacity support for windows
23287 - Removed TODO attribute, completed AllowTransparency property
23288 - Added documented logic to Opacity
23289 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
23290 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
23291 versions of CompatibleTextRendering
23292 * X11Structs.cs: Added opacity atom to our atom enumeration
23293 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
23294 of a form might be set before it's reparented by the WM, and we need
23295 the opacity value without calling up to Form)
23296 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
23297 SupportsTransparency() driver methods
23298 * Application.cs: Now calling StartLoop and EndLoop driver methods
23300 - Added opacity atom registration
23301 - Added StartLoop()/EndLoop() methods. They're empty right now but
23302 will need to get implemented when we switch to a per-thread queue
23303 - Implemented SupportsTransparency() method
23304 - Implemented SetWindowTransparency() method
23305 - Added support for setting the opacity value when a window is
23306 reparented (since the opacity needs to be set on the WM frame)
23307 * XplatUIOSX.cs, XplatUIWin32.cs:
23308 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
23310 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
23312 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
23314 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
23316 * FileDialog.cs: Added ToolTip for MWFFileView
23317 * MimeIcon.cs: Rewrote GnomeHandler.
23318 - Get currently used gnome icon theme from
23319 ($HOME)/.gconf/%gconf-tree.xml
23320 - Make use of inherited icon themes
23321 - Support SVG icon themes like Tango via librsvg
23323 2006-01-12 Miguel de Icaza <miguel@novell.com>
23325 Revert's Jackson's revert which broke 2.0 builds. Fix both
23328 * Application.cs: Move the use_compatible_text_rendering outside
23329 the NET_2_0 define. If we ever need to use the
23330 use_compatible_text_rendering on the individual controls they will
23331 access the variable from the common shared code paths.
23333 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
23336 - Added more granular debug options
23337 - Added method to print both window text and id
23338 - Switched debug output to use new Window() debug method
23339 - Added IsEnabled() driver method
23340 - Added EnableWindow() driver method
23342 - Removed end_modal; no longer needed, new loop handles termination
23343 via 'closing' variable
23344 - If form is modal, setting DialogResult will now initiate loop
23345 termination via 'closing' variable
23346 - Added support for is_enabled/WS_DISABLED to CreateParams
23347 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
23349 - Removed code that's now in RunLoop from ShowDialog()
23350 - Added various documented sanity checks to ShowDialog()
23351 - Added handling of WM_DESTROY message; we set 'closing' on getting
23352 the message to indicate the message pump to terminate
23353 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
23354 send by the Application.ExitThread method. (We send the message
23355 to destroy the window after all other events have been
23356 processed through the queue, instead of destroying the handle
23358 - Moved code from Close() method to WM_CLOSE handler; added logic
23359 to only send close-related events if the form is not displayed
23361 * Splitter.cs (..ctor): Fixed typo in resource name
23363 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
23365 - set_Cursor: Now only setting calling into XplatUI if the handle for
23366 the control is already created; this avoids implict handle creation
23367 or crashes if it's not created
23368 - set_Enabled: Now setting the enabled state via the new driver method
23369 instead of just tracking it
23370 - CreateParams: Added logic to set WS_DISABLED based on enabled state
23371 - CreateControl: Reordered event firing and method calls to more
23372 closely fire events in the order MS does. Now setting the
23373 enabled state in the driver when creating the control.
23374 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
23376 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
23377 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
23378 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
23380 - Added tracking of window enabled state (get_Enabled/set_Enabled)
23381 - Added EnabledHwnd property to easily allow a driver to find the
23382 handle of the first enabled window in the parent chain (this is
23383 used by drivers to pass up input events of disabled windows)
23384 * XplatUIDriver.cs: Added IsEnabled() method
23386 - Removed crude and obsolete exiting tracking variable
23387 - Removed internal ModalRun(); replaced by RunLoop()
23388 - Implemented private CloseForms() method to allow closing all
23389 windows owned by a particular (or all) threads
23390 - Exit() now properly closes all windows without forcing the message
23392 - Removed obsolete InternalExit() method
23393 - Changed Run() methods to use new RunLoop() message pump
23394 - Implemented new RunLoop() method for both modal and non-modal forms
23396 - get_CreateParams: Added setting of WS_DISABLED
23397 - Simplified ShowDialog(); now all the work is done in RunLoop(),
23398 invoked via Form.ShowDialog()
23399 * NativeWindow.cs: We don't remove the window from the collection when
23400 the handle is destroyed; there might still be messages for it in the
23401 queue (mainly the resulting WM_DESTROY); instead it will be removed
23402 when Control calls InvalidateHandle in the WM_DESTROY handler
23404 - CreateWindow: Added logic to handle the WS_DISABLED window style
23405 - EnableWindow: Implemented based on Hwnd.Enabled
23406 - GetMessage: Reset PostQuitState so the method can be called again
23407 - Implemented support for disabled windows (passing messages to the
23408 first enabled parent) in handling all input messages
23409 - Added optimizations for handling Expose events
23410 - Implemeted new driver method IsEnabled()
23411 - Now always resetting paint pending tracking vars when we start paint
23412 - Re-implemented UpdateWindow via just sending a WM_PAINT message
23413 * XplatUIOSX.cs: Added IsEnabled method stub
23414 * XplatUIWin32.cs: Implemented new IsEnabled() method
23416 2006-01-11 Jackson Harper <jackson@ximian.com>
23418 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
23419 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
23420 variables a little.
23421 * ColorDialog.cs: Clear out the old form before adding the new
23424 2006-01-11 Jackson Harper <jackson@ximian.com>
23426 * X11Dnd.cs: Make sure to add all the text formats when adding
23427 strings to the data object.
23428 * TreeNodeCollection.cs: When adding to a sorted tree we need to
23429 do some redrawing too. Also change the UpdateNode to an
23430 UpdateBelow so the newly added node gets painted.
23432 2006-01-11 Miguel de Icaza <miguel@novell.com>
23434 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
23435 LinkLabel.cs, PropertyGrid.cs: Implement the
23436 UseCompatibleTextRendering property for 2.x
23438 * Application.cs (SetCompatibleTextRenderingDefault): Add.
23440 2006-01-11 Jackson Harper <jackson@ximian.com>
23442 * TreeView.cs: Use the property for setting the selected node so
23443 the correct events get raised.
23444 * TreeNode.cs: Update the tree when the fore/back colours of a
23447 2006-01-10 Jackson Harper <jackson@ximian.com>
23449 * TreeView.cs: Allow setting SelectedNode to null.
23451 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
23453 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
23455 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
23457 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
23459 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
23461 * PrintDialog.cs: Added attributes and set default property values.
23463 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
23465 * PrintControllerWithStatusDialog.cs:
23466 Added PrintControllerWithStatusDialog.
23468 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
23470 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
23471 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
23473 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
23475 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
23477 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
23479 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
23480 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
23482 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
23484 * MimeIcon.cs: Added internal class SVGUtil.
23486 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
23488 * FileDialog.cs: Don't crash if there are two files with the
23489 same name but different locations.
23491 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
23493 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
23494 dates across multiple month grids. Used to not highlight entire
23495 month, but does now.
23497 2006-01-06 Jackson Harper <jackson@ximian.com>
23499 * MonthCalendar.cs: Removed DoEvents call to prevent a running
23500 message loop. Change timer intervals to numbers that seem more
23503 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
23505 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
23506 object for location info since screen object is now implemented.
23508 2006-01-05 Jackson Harper <jackson@ximian.com>
23510 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
23511 * AsyncMethodResult.cs: We no longer use a WeakReference for the
23512 AsyncMethodResult, this is because we ALWAYS want the
23513 ManualResetEvent to get set.
23514 * Control.cs: When disposing use an async invoke to call shutdown
23515 code, so that thigns don't block on the finalizer thread. Also
23516 check if we even have a message loop before trying to send
23517 messages, if we don't then don't bother sending messages.
23518 - No more weak references for async methods
23519 * XplatUIDriver.cs: No more weak references for async methods.
23521 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
23523 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
23524 returns two FontFamily with the same name
23526 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
23528 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
23529 drawing disabled text. Instead using the ColorGrayText color
23531 2006-01-04 Jackson Harper <jackson@ximian.com>
23533 * TreeNode.cs: redraw the node when its image index is changed.
23535 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
23537 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
23538 time I checked there are no others like it.
23540 2006-01-04 Jackson Harper <jackson@ximian.com>
23542 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
23543 this gives the behavoir I was looking for.
23544 * Control.cs: Special case Invoking EventHandlers, this matches MS
23545 and fixes part of bug #76326.
23547 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
23549 * ThemeClearlooks.cs, FileDialog.cs:
23550 - Reflect the latest Theme class changes
23551 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
23554 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
23556 * Theme.cs: Cache UI resource images and resize them if needed
23558 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
23560 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
23561 is called. This fixes the crash in Nexxia when setting the font
23562 attributes in the chat. [However, RTF needs a look-over to make sure
23563 that all SelectionXXX methods handle the special case that selection
23564 is empty and therefore the change must be applied to all text starting
23565 at the cursor/selection start]
23567 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
23569 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
23570 XplatUIOSX.cs: Added SendMessage and PostMessage methods
23571 * X11Keyboard.cs: Switched to new way of calling PostMessage
23573 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
23575 * Theme.cs: Added theme interface for images to allow the theme to
23576 control what images are used for things like FileDialog, MessageBox
23578 * MessageBox.cs: Now uses the new Theme icon/image interfaces
23580 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
23583 - Removed some dead code
23584 - Opening a recently used file does work now
23585 - Small UI enhancements
23588 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
23590 * FileDialog.cs: Forgot too add __MonoCS__
23592 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
23594 * FileDialog.cs: We are able to read recently used files now let's
23595 go on and write them.
23597 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
23599 * FileDialog.cs: Breathe some life into "last open"/"recently used"
23601 * MimeIcon.cs: Do a check for the top level media type also
23603 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
23605 * ThemeClearlooks.cs:
23606 - Added CPDrawStringDisabled
23607 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
23608 some chars if the text doesn't fit into text_rect
23609 - DrawListViewItem: If View = View.LargeIcon center the image;
23610 rewrote the drawing of ListViewItem.Text if View =
23613 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
23615 * MimeIcon.cs: Use default KDE icon theme if there is no
23616 "48x48" directory for the current icon theme, fixes #77114
23617 * Mime.cs: Disable not working and actually not used code.
23618 * ThemeWin32Classic.cs:
23619 - Replace "new SolidBrush" in GetControlBackBrush and
23620 GetControlForeBrush with ResPool.GetSolidBrush
23621 - Changed DrawListViewItem from private to protected virtual
23623 - Added form.MaximizeBox = true
23624 - Don't throw an exception if there is a broken symbolic link
23626 2005-12-23 Jackson Harper <jackson@ximian.com>
23628 * TabControl.cs: Give the panels focus, keyboard navigation is
23629 fixed so this works correctly now.
23630 - We need these key events also.
23631 * ToolBar.cs: Remove some of the poor mans double buffering.
23633 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
23635 * ComboBox.cs: The internal TextBox now returns the focus.
23637 2005-12-23 Jackson Harper <jackson@ximian.com>
23639 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
23641 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
23643 * Control.cs: Removed debug code
23644 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
23647 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
23649 * Control.cs: When creating the control, update the Z-order after
23650 all it's children are created, too. (Fixes nexxia not showing
23653 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
23655 * Control.cs: Do not update the anchoring distances if layout is
23656 suspended, instead do it once layout is resumed
23658 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
23661 - After many hours of debugging, for both Jackson and
23662 myself, it turns out that it helps to set the parent of a control
23663 if you want to actually see it onscreen. In the spirit of that
23664 discovery, we're now setting the parent of the control and
23665 it's children when the control's handle is created. This fix
23666 will make Lutz Roeder's Reflector run happily.
23667 - now just creating the handle instead of the whole control when
23668 getting a graphics context for the control.
23670 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
23672 * ScrollableControl.cs: When calculating the canvas, don't consider
23673 the scrollbar widths. Instead, predict if horizontal scrollbar
23674 will affect canvas when deciding on vertical display and vice versa.
23676 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
23678 * RichTextBox.cs: Set default RTF font for documents that don't
23679 have a font table (Fixes #77076)
23681 2005-12-22 Jackson Harper <jackson@ximian.com>
23683 * TextBoxBase.cs: It's difficult to do, but you can have an empty
23684 clipboard. This prevents a NullRef in that case.
23685 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
23686 clipboard. PRIMARY is for the currently selected text only. (We
23687 should implement PRIMARY at some point.
23689 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
23691 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
23692 a Unicode function with a structure that was defined in Ansi way.
23695 2005-12-21 Jackson Harper <jackson@ximian.com>
23697 * StatusBar.cs: Statusbar handles its fore/back colours on it's
23698 on. Because thats how it rolls. (and this avoids it using ambient
23700 * ThemeWin32Classic.cs: Use the proper back color for filling.
23701 * Menu.cs: Use the system menu bar color for drawing menu
23702 bars. Using the window back color will bring ambient colours into
23705 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
23707 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
23708 Bitmaps were created and not disposed.
23710 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
23712 * Control.cs (CreateControl): Don't do anything if the control is
23713 already created, otherwise we'd fire the OnCreated event more than
23716 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
23718 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
23719 will always match. Instead return -1. Fixes #76464.
23721 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
23723 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
23724 neither the beginning nor the end of the line (Fixes bug #76479)
23726 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
23729 - ControlNativeWindow.ControlFromHandle(): Now handling situation
23730 where handle is invalid
23731 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
23732 instead of slower linear search
23733 * NativeWindow.cs: Don't remove the window from the hashtable until
23734 after the driver has destroyed it (since the driver might use
23735 Control.FromHandle to lookup the control object
23736 * Hwnd.cs: Added DestroyPending property to track if a window is
23737 already destroyed as far as the driver is concerned and only hasn't
23738 yet notified the control
23740 - Activate(): Check if the window is still valid before using the
23742 - Implemented DestroyChildWindow() method to mark child windows as
23743 destroyed when a window is destroyed. This prevents situations
23744 where we might call an X method based on queued events for a
23745 window that already has been destroyed but we haven't yet pulled
23746 the destroy method from the queue.
23747 - Added a call to the new DestroyChildWindow() method to the drivers
23748 DestroyWindow code. Also now marking the destroyed window itself
23751 2005-12-20 Jackson Harper <jackson@ximian.com>
23754 * StatusBarPanel.cs: Don't calculate panel sizes on draw
23755 anymore. Just do them when needed, also track the rects of panels
23756 so that we can optimize refreshing more in the future.
23758 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
23760 * ColorDialog.cs: Fixed focus drawing in small color controls
23762 2005-12-19 Jackson Harper <jackson@ximian.com>
23764 * InternalWindowManager.cs:
23765 * MdiWindowManager.cs: Cleanup some coordinate system changes so
23766 moving windows works properly.
23768 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
23771 - Removed call to InitLayout() from SetBoundsCore(); doc says
23772 it's only called when a control is added to a container
23773 - Split InitLayout logic, moved to separate UpdateDistances() method
23774 since we need to perform those calculations more often than just
23775 when adding the control to a container. (Needed to fix #77022)
23776 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
23777 - Reduced the OnBindingContextChanged events count, don't send them
23778 unless the control is created, we still aren't totally matching
23779 MS, but I can't quite figure out some of their rules
23781 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
23783 * ThemeClearlooks.cs: Corrected distance between ProgressBar
23786 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
23788 * ThemeClearlooks.cs:
23789 - Updated ProgressBar drawing
23790 - Corrected drawing of ScrollBars and scroll buttons
23791 - Some temporary fixes for minor pixel artefacts
23793 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
23796 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
23797 cause events to be sent in the same order as MS does.
23798 - Added ChangeParent() method to trigger various OnXXXChanged events
23799 that need to be fired when a parent changes (This is a reworking
23800 of the patch from r54254, with the X11 errors fixed)
23801 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
23802 since on MS we get OnLayoutChanged events when calling Clear()
23803 - Changed Enabled property to consider parent state as well, if a
23804 parent is not enabled, the control will not be either
23805 - Changed Parent property to simply call Controls.Add() since that
23806 now does all the work required, this way we avoid code duplication
23807 - Threw in a few OnBindingsContextChanged calls to try and match
23808 when MS sends them. We seem to send a few too many, though.
23809 - Added call to CreateControl when adding the control to a parent.
23810 We were never calling CreateControl. Still needs some work, in
23811 some places we treat HandleCreated and ControlCreated as equal,
23813 - Removed obsolete commented out code from UpdateZOrder()
23815 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
23817 * ThemeClearlooks.cs: Updated TrackBar drawing.
23819 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
23821 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
23823 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
23825 * FileDialog.cs: Add the Help button and the open readonly
23826 checkbox only if needed
23828 2005-12-16 Jackson Harper <jackson@ximian.com>
23830 * Control.cs: Make sure we have an active menu before trying to
23831 process commands on it. Prevents menu-less forms from crashing
23832 when Alt is pressed.
23833 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
23835 * RichTextBox.cs: Expand statement to help out gmcs and fix the
23838 2005-12-16 Jackson Harper <jackson@ximian.com>
23840 * InternalWindowManager.cs: Don't translate tool windows screen
23841 coordinates. This fixes windows 'bouncing' around when being moved.
23843 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
23846 - MaxLength now treats 2^31-1 equal to unlimited length (this is
23847 not quite MS compatible, MS uses that number only for single line
23848 and 2^32-1 for multi-line, but I figure it won't hurt keeping
23850 - Now enforcing the MaxLength limit when entering characters
23851 - Added argument to internal Paste() method to track if it's called
23852 from programatically or via keyboard, since keyboard driven pastes
23853 need to enforce max-length
23854 - Added logic to Paste to only paste as many chars as MaxLength
23856 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
23858 - Added Length property to return number of characters in document
23859 - Added private CharCount property which only tracks actual chars
23860 in the document (no linefeeds) and fires event when CharCount
23862 - Added tracking of character count to all methods that alter it
23863 - Added LengthChanged event to allow applications to subscribe
23864 to any changes to the document
23866 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
23869 - Removed local password_char field (moved to TextBoxBase)
23870 - Now setting the document's password var when password is
23873 - Added password_char field (needed here so MultiLine can
23875 - Added logic to MultiLine property setter to set the document's
23876 variable when password display is allowed
23877 - Removed debug code and made some debug code conditional
23879 - Added RecalculatePasswordLine() method to handle special password
23881 - Added PasswordChar property, also added related tracking vars
23882 - Draw() method now uses local text var for grabbing text to draw,
23883 this var is set to line.text unless we're doing password display,
23884 then it is set to the pre-generated all-password-chars line
23885 - Added calling RecalculatePasswordLine() method for password lines
23887 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
23890 - Added Reparented property to allow tracking of Window Manager
23891 reparenting actions (which affect X/Y calculations of toplevel
23893 - Made ToString() print window handles in hex
23895 - AddConfigureNotify(): Now uses reparented state off Hwnd to
23896 determine if X/Y needs offsetting
23897 - AddConfigureNotify(): Fixed offset calculations
23898 - Now adds ReparentNotify messages into the queue
23899 - Now processes ReparentNotify messages and causes a
23900 WM_WINDOWPOSCHANGED message to be sent upstream if a window
23901 is reparented (as most likely it's X/Y coordinates are changed
23904 2005-12-14 Jackson Harper <jackson@ximian.com>
23906 * XplatUIX11.cs: Tool windows still need to respek focus.
23908 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
23910 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
23911 have a working release
23913 2005-12-13 Jackson Harper <jackson@ximian.com>
23915 * Form.cs: Update styles after setting the border style regardless
23916 of whether or not the window is using a window manager.
23918 2005-12-13 Jackson Harper <jackson@ximian.com>
23920 * Form.cs: We now hook into an internal window manager instead of just an
23921 MDI subsystem, this is so we can have properly behaving tool windows.
23922 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
23923 * InternalWindowManager.cs: New internal class that acts as a
23924 window manager for tool windows and as a base for mdi windows.
23925 * MdiWindowManager.cs: New class that acts as a window manager for
23928 2005-12-12 Jackson Harper <jackson@ximian.com>
23930 * Control.cs: Updates so we match behavoir for for implicit
23931 controls. Fixes explosions in MDI.
23933 2005-12-12 Jackson Harper <jackson@ximian.com>
23935 * Control.cs: Implement Invalidate (Region).
23937 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
23940 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
23941 the same events as MS does. MS fires events for each property
23942 except, for unknown reasons, Cursor, when the control is reparented.
23943 I can't seem to totally match add/remove since MS also fires some
23944 VisibleChanged events, which makes no sense. Consolidated the
23945 parenting code into a separate method so it can be called from
23946 both Add and Remove. set_Parent no longer needs any special logic
23947 as it calls the parent's add method which implicitly fires
23949 - Removed some obsolete code and debug output
23950 - Enabled state is inherited from parents, if this is enabled
23952 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
23954 * Form.cs: Removed commented out code
23956 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
23959 - Added internal version of Invoke, with additional argument
23960 indicating if we're calling it from a Dispose() handler. That
23961 way we can avoid BeginInvoke throwing an exception if we're
23962 calling for an already destroyed window.
23963 - Added a dispose argument to BeginInvokeInternal, and made the
23964 check if a valid window handle chain exists conditional on
23965 it not being a dispose call
23966 - Removed code in DestroyHandle to destroy our children. Since we
23967 now handle the WM_DESTROY message we will catch all our children
23969 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
23971 - Added a field to track the application context of the form.
23972 - No need to set closing variable as response to WM_CLOSE, instead
23973 we destroy the window. We also call PostQuitMessage if the form
23974 has an application context (which makes it the main app form,
23975 which, when closed terminates the app)
23977 - Dropped Exit() method, it's naming was confusing
23978 - Added PostQuitMessage() which causes GetMessage to return false
23979 once the message queue is empty
23980 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
23982 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
23983 no longer a valid XplatUI method, but left it in since it's used
23984 internally. Added empty PostQuitMessage() method.
23985 * MenuAPI.cs: Replaced call to Exit() with call to
23986 PostQuitMessage, even though this is probably no longer needed.
23987 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
23988 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
23990 - Replaced call to XplatUI.Exit() with PostQuitMessage()
23991 - Removed old debug code that would call XplatUI for exception
23992 display, enabled standard exception handling (Still not enabled
23993 though, until NativeWindow's ExternalExceptionHandler define
23996 - Added internal method to allow control to update NativeWindow
23997 after a window has been destroyed
23998 - Added handling of already destroyed windows when calling i
24000 - Added removal of handle from list on ReleaseHandle
24002 - Dropped GetMessageResult var and related code
24003 - Added PostQuitState to field to track if PostQuitMessage has been
24005 - Dropped Exit() method
24006 - Added PostQuitMessage() method
24007 - GetMessage now will return false if PostQuitState is set and no
24008 more messages are in the queue.
24009 - Expose handler will no longer generate WM_PAINT messages if we are
24010 in PostQuitState since it's very likely any windows have already
24011 been destroyed, and since Hwnd won't get updated until we have
24012 processed the DestroyNotify we'd be causing X errors.
24014 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24016 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
24017 Thanks to Mike for pointing out the err of my ways.
24019 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24021 * Control.cs(PreProcessMessage): Moved menu handling back, but
24022 after all other key handling, to match MS (who handles Menu in
24024 * Menu.cs (WndProc): Removed my brainfart
24026 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24028 * Control.cs(PreProcessMessage): Removed special menu handling
24029 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
24031 2005-12-07 Mike Kestner <mkestner@novell.com>
24033 * Control.cs : special case SYSKEYUP so that we can adjust keynav
24034 state according in tracker.
24035 * Menu.cs : promote tracker field to base class and provide a tracker
24036 lookup capability. Add/Remove shortcuts dynamically if the top menu
24037 has a tracker. Unparent items that are removed from the collection.
24038 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
24039 * Theme*.cs: add always_show_hotkeys field to support configurability
24040 of mnemonic display. win32 doesn't show mnemonics until Alt is
24043 2005-12-07 Jackson Harper <jackson@ximian.com>
24045 * MdiChildContext.cs: Use Control.ResetCursor.
24046 * Control.cs: ResetCursor needs to set the property so that the
24047 correct XplatUI call gets made.
24049 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24051 * Control.cs: More fixes to make our key events match MS. We
24052 were not setting the modifier state on KeyData, and we were
24053 not generating any events when Alt was pressed with a key
24054 since handling of WM_SYSxxx was missing for the OnKey methods.
24056 2005-12-07 Jackson Harper <jackson@ximian.com>
24058 * MdiChildContext.cs: reenable the sizing code.
24059 - When the mouse leaves a window reset its cursor.
24061 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
24063 * ThemeClearlooks.cs: Reflect latest Hwnd changes
24065 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24067 * Hwnd.cs: Now using the theme 3d bordersize to calculate
24068 widths of Fixed3D borders
24070 2005-12-07 Jackson Harper <jackson@ximian.com>
24072 * MdiClient.cs: Fix warnings. Earn Mike's love.
24074 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
24076 * ThemeClearlooks.cs:
24077 - Adjusted mouse over button color
24078 - Added first parts of CheckBox drawing
24079 - Added correct color for selected text background
24080 - Fixed ComboBox drawing
24081 - Added CPDrawBorder3D and CPDrawBorder
24083 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
24085 * XplatUIX11.cs: Added call to XBell for AudibleAlert
24087 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
24089 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24090 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
24091 alert users via sound. We could add an enum arg with different
24092 types of alerts in the future
24094 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
24096 * Control.cs: Fix behaviour problems pointed out by Mike
24098 2005-12-05 Mike Kestner <mkestner@novell.com>
24100 * StatusBarPanel.cs: add Invalidate method and hook it into all the
24101 prop setters. Calls parent.Refresh for now, but could be maybe be
24102 optimized with an internal method on StatusBar at some point.
24105 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
24107 * RichTextBox.cs: Implemented get_SelectionColor
24109 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
24111 * ThemeClearlooks.cs:
24112 - Removed dead code
24113 - Draw black button border only if button is Form.AcceptButton
24114 - Draw correct button color for pressed RadioButton if the mouse
24115 has entered the button
24116 - Updated ProgressBar drawing!
24117 - Updated CPDrawSizeGrip drawing
24118 - Updated StatusBarPanel drawing
24120 2005-12-05 Mike Kestner <mkestner@novell.com>
24122 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
24123 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
24125 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
24127 * ThemeClearlooks.cs: Initial check-in, activate with
24128 export MONO_THEME=clearlooks
24129 * ThemeEngine.cs: Added ThemeClearlooks
24131 2005-12-03 Mike Kestner <mkestner@novell.com>
24133 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
24136 2005-12-02 Jackson Harper <jackson@ximian.com>
24138 * Form.cs: If the child form has no menu the default main menu is
24139 used as the active menu.
24141 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
24143 * ListBox.cs: Check if any items exist before trying to resolve
24144 coordinates into items
24146 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
24148 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
24149 as the second color for the background hatch
24151 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
24153 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
24154 * RichTextBox.cs: FormatText position arguments are 1-based, now making
24155 sure that what we pass to FormatText is always 1-based. Fixes #76885
24157 2005-11-29 Miguel de Icaza <miguel@novell.com>
24159 * NumericUpDown.cs (EndInit): When we are done initializing,
24160 reflect any updates on the UI.
24162 2005-12-02 Jackson Harper <jackson@ximian.com>
24164 * ImplicitHScrollBar.cs:
24165 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
24166 their container controls.
24167 * TreeView.cs: Use the new implicit scrollbars.
24169 2005-12-02 Jackson Harper <jackson@ximian.com>
24171 * TreeView.cs: Make top_node internal so the TreeNodeCollections
24173 * TreeNodeCollection.cs: If we remove the topnode we need to
24174 update topnode to the next node in line.
24175 - When clearing nodes go through the same process as removing
24176 them, so they get depareneted and checked if they are top node.
24178 2005-12-01 Jackson Harper <jackson@ximian.com>
24180 * TreeView.cs: When imagelists are used the image area is
24181 selectable as well as the text.
24182 - If there are no selected nodes select the first one.
24183 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
24184 so don't do it more then we need to.
24186 2005-12-01 Jackson Harper <jackson@ximian.com>
24188 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
24189 that arrows can be scaled.
24191 2005-12-01 Jackson Harper <jackson@ximian.com>
24193 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
24194 fail. Patch by Dieter Bremes
24196 2005-11-30 Jackson Harper <jackson@ximian.com>
24198 * Form.cs: Property is 2.0 only
24199 * PrintDialog.cs: Signature fix.
24201 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
24204 - No longer artificially moves text 2 pixels down (now that we have
24205 borders this is no longer needed)
24206 - Added calcs for left, hanging and right indent
24208 2005-11-23 Mike Kestner <mkestner@novell.com>
24210 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
24212 2005-11-30 Jackson Harper <jackson@ximian.com>
24214 * MdiChildContext.cs: Set the cloned menus forms, as these don't
24215 get cloned as part of CloneMenu ().
24216 * Menu.cs: Make sure the parent of the items get set correctly
24217 when they are added. And the owners are notified of the changes.
24218 * Form.cs: Create an ActiveMenu property, so that when MDI is used
24219 we can change the menu being displayed/handled by the form without
24220 changing the menu assosciated with the form.
24221 - Don't let Mdi children draw/handle menus.
24223 2005-11-30 Jackson Harper <jackson@ximian.com>
24225 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
24226 a MenuChanged event. Just to make the API a little more
24229 * MenuItem.cs: Use the new OnMenuChanged
24230 * MdiChildContext.cs: Handle menu merging.
24231 * Form.cs: Implement MergedMenu.
24233 2005-11-30 Jackson Harper <jackson@ximian.com>
24235 * Menu.cs: We were misusing Add. Add goes behind the specified
24236 index according to the docs, and does not replace the specified
24237 index. So I added an Insert method.
24239 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
24241 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
24242 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
24244 * RichTextBox.cs: Added calls to base for DnD events
24246 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
24249 - Fixed drag-selection related crash; style fixes
24250 - Implemented undo class
24251 o Implemented method to capture document state for specified
24252 range in document tree
24253 o Implemented method to restore captured document state
24254 o Implemented cursor tracking
24255 o Implemented basic undo stack
24256 - Added undo cursor tracking to methods altering cursor location
24257 - Added undo tracking to selection deletion (still missing
24258 other text-altering hookups)
24260 - Added SelectionLength property
24261 - Implemented CanPaste()
24262 - Implemented Paste()
24263 - Added missing protected methods
24264 - Fixed RTF->Document conversion; now uses font index 0 and color
24265 index 0 as the default font for the parsed text
24266 - Fixed RTF<->Document font size translation
24267 - Fixed RTF generation, now properly handles cross-tag boundaries
24268 for single line selection
24269 - No longer always appends blank line to generated RTF
24271 - Added missing attributes
24272 - Hooked up undo-related methods
24274 - Implemented Copy()
24275 - Implemented Paste()
24276 - Implemented Cut()
24277 - Fixed caret mis-behaviour on backspace across line-boundaries
24279 2005-11-29 Jackson Harper <jackson@ximian.com>
24281 * MdiClient.cs: Add a method for activating mdi children. Very
24282 basic right now. I imagine someday it might need more girth.
24283 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
24284 children windows names are added to the menu item.
24285 * ThemeWin32Classic.cs: Draw the arrow if the item is an
24286 mdilist. This happens regardless of whether or not there are any
24287 mdi windows to see in the list, and according to my tests happens
24288 before the items are even added. Also happens if there isn't even
24289 an mdi client to get windows from.
24291 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
24293 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
24294 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
24296 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
24298 * DataGridTableStyle.cs:
24299 - Create always the styles for the missing columns even if they are
24300 provided by the user (not default table style)
24303 - Fixes SetDataBinding (always re-attach source)
24304 - Fixes SetNewDataSource (only clear styles if they are not for
24306 - Expands OnTableStylesCollectionChanged to handle style refresh
24307 and remove properly
24309 2005-11-29 Jackson Harper <jackson@ximian.com>
24311 * FileDialog.cs: Implement missing bits, remove some dead
24313 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
24314 creation of the panel so that the options set on the dialog are
24315 seen when the panel is created.
24316 * TreeView.cs: raise a click when items are clicked.
24318 2005-11-29 Jackson Harper <jackson@ximian.com>
24320 * MdiClient.cs: Pass some signature methods through to base.
24322 2005-11-28 Jackson Harper <jackson@ximian.com>
24324 * ListView.cs: Raise the click event when items are clicked.
24326 2005-11-28 Jackson Harper <jackson@ximian.com>
24328 * MdiClient.cs: Make this algorithm even more beautiful. And fix
24331 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
24333 * ThemeNice.cs: - Removed 1 pixel bitmaps
24334 - Use SmoothingMode.AntiAlias where it makes sense
24335 (ScrollButton arrow for example)
24336 - Enhanced Button focus drawing
24337 - Fixed ComboBox drawing (no artefacts anymore, focus
24338 rectangle is back again, reduced size of ComboButton, etc.)
24339 - Fixed RadioButton focus drawing for Appearence.Button
24340 - Slight ScrollButton redesign
24341 - Some LinearGradientBrush size fixes
24342 - GroupBoxes have now rounded edges
24343 - Fixed StatusBar drawing
24345 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
24347 * ThemeNice.cs: - Remove dead code
24348 - use correct background colors for menus, etc.
24349 - Fake pixel drawing with 1 pixel bitmaps
24351 2005-11-24 Jackson Harper <jackson@ximian.com>
24353 * MdiClient.cs: Size the scrollbars when resizing the window.
24354 - Resize the maximized windows when the client is resized
24355 * Form.cs: Make the child context available
24357 2005-11-23 Jackson Harper <jackson@ximian.com>
24359 * MdiChildContext.cs: Don't size windows if they are maximized.
24361 2005-11-23 Mike Kestner <mkestner@novell.com>
24363 * ContextMenu.cs: use MenuTracker.
24364 * Control.cs: remove menu handle usage.
24365 * Form.cs: remove menu handle usage.
24366 * Hwnd.cs: remove menu handle usage.
24367 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
24368 motion and clicks to the new Tracker handlers.
24369 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
24371 * MenuAPI.cs: refactored to combine popup and menubar event handling.
24372 Killed the MENU and MENUITEM data types and associated collections
24373 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
24374 MenuTracker class that exposes the leftovers from the old MenuAPI
24375 static methods. Restructured Capture handling so that only one grab is
24376 done for the entire menu hierarchy instead of handing off grabs to
24377 submenus. Tracker now has an invisible control to Capture when active.
24378 * MenuItem.cs: add sizing accessors, kill Create
24380 * Theme.cs: remove menu handle and MENU(ITEM) usage.
24381 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
24382 MENU(ITEM). remove menu handle usage, use Menu directly.
24383 * XplatUIDriver.cs: remove menu handle usage.
24384 * XplatUIOSX.cs: remove menu handle usage.
24385 * XplatUIWin32.cs: remove menu handle usage.
24386 * XplatUIX11.cs: remove menu handle usage.
24388 2005-11-22 Jackson Harper <jackson@ximian.com>
24390 * Hwnd.cs: Don't compute the menu size for
24391 DefaultClientRectangle.
24392 - Reenable menu sizes being computed for GetClienRectangle.
24393 * Form.cs: Remove comment of trechery
24395 2005-11-22 Jackson Harper <jackson@ximian.com>
24397 * Hwnd.cs: The adjustments for the menu bar are made when it is
24398 attached to the form.
24400 2005-11-19 Jackson Harper <jackson@ximian.com>
24402 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
24403 (just like on windows).
24405 2005-11-19 Jackson Harper <jackson@ximian.com>
24407 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
24408 use real buttons anymore because they are in non client area. The
24409 one TODO here is that I need to somehow invalidate a section of
24410 the non client area.
24412 2005-11-18 Jackson Harper <jackson@ximian.com>
24414 * Control.cs: Put the enum check back in now that MDI doesnt have
24415 to use this to set border styles.
24416 * Form.cs: Only set mdi child windows borders if the handle has
24418 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
24419 this directly on to the driver.
24420 - Get the move start position before adjusting for the titlebar
24421 height, this fixes the windows "skipping" when they are first
24424 2005-11-18 Jackson Harper <jackson@ximian.com>
24426 * XplatUIX11.cs: Just compute the mdi borders separately as they
24427 don't totally match up with normal form borders.
24429 2005-11-18 Jackson Harper <jackson@ximian.com>
24431 * Control.cs: Set WS_ styles for borders, so that the driver does
24432 not have to retrieve the control instance to figure out what kind
24433 of borders it should have.
24434 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
24435 driver can know its an mdi child easily.
24436 * XplatUIX11.cs: Get the border styles and whether the window is
24437 MDI from the Styles and ExStyles params instead of having to get a
24438 control. This prevents a chicken and egg problem.
24440 2005-11-18 Jackson Harper <jackson@ximian.com>
24442 * MdiClient.cs: Fix typo so scrollbars show up correctly.
24444 2005-11-18 Jackson Harper <jackson@ximian.com>
24446 * MdiClient.cs: Calculate when to add and remove scrollbars
24448 * MdiChildContext.cs: Adjust the y position to take the titlebar
24450 - No height for FormBorderStyle.None
24452 2005-11-18 Jackson Harper <jackson@ximian.com>
24454 * Control.cs: Allow non enum values to be used for
24455 InternalBorderStyle. MDI does this to set a special border style.
24456 - New utility methods for converting points to/from client coords
24457 - Add the newly created control to the Controls collection before
24458 updating its style. This way UpdateStyle can walk the control
24459 heirarchy to find the control if needed.
24460 so I don't need to create a new Point object all the time.
24461 * Form.cs: Let MDI windows handle their border styles.
24462 - Set styles on MDI windows so the correct title style is derived.
24463 * MdiChildContext.cs: Move all the painting and window handling
24464 into the non client area.
24465 - Use correct sizing and put correct buttons on frames based on
24466 the FormBorderStyle.
24467 - Notify the mdi client about scrolling
24468 - Need to handle the buttons ourselves now, because they are all
24469 in non client areas and we can't add controls there.
24470 * MdiClient.cs: Halfway to scrolling, this implementation is
24471 somewhat broken though, we need to check to make sure other
24472 windows aren't causing scrolling before removing the bars. Also
24473 the bars need to be drawn on top, maybe I can switch implicit
24474 controls to be on top.
24475 * Hwnd.cs: caption_height and tool_caption_height are now
24476 properties of an hwnd, this way they can be set by the driver
24477 based on the type of window they are. In X11 the window manager
24478 handles the decorations so caption_height is zero unless its an
24480 - Add 3 pixel borders for MDI windows (0xFFFF).
24481 - Get rid of some code duplication, have DefaultClientRectanle
24482 just call GetClientRectangle.
24483 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
24485 - Set border styles differently for mdi windows.
24486 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
24489 2005-11-15 Mike Kestner <mkestner@novell.com>
24491 * Menu.cs: when adding an item to the collection, if item is already
24492 parented, remove it from the parent.
24494 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
24496 * X11DesktopColors.cs: Added KDE support
24498 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
24501 - Clipboard methods now can translate Rtf format
24502 - No longer removes clipboard contents whenever a new format is added
24503 to allow placing multiple formats on the clipboard
24504 * Clipboard.cs: Clipboard now supports getting a IDataObject and
24505 will place all formats contained in it onto the clipboard. Also
24506 now cleans the clipboard before placing a new object onto it
24508 - Implemented set_Rtf
24509 - Implemented set_SelectedRtf
24510 - Created InsertRTFFromStream() method to allow single code base
24511 for all properties and methods that insert RTF into document
24512 - Removed debug output
24514 - Fixed Delete(int) to fix up line numbers
24515 - Fixed ReplaceSelection to combine start and end line
24516 - Fixed serious DeleteChars bug that would leave the document tree
24518 - Improved DumpTree with several logic checks to detect broken
24520 - Removed debug lines
24521 - Fixed Caret.WordForward/WordBack moving code, now always also
24522 updates caret.tag (fixes crash when word-selecting across tag
24523 boundaries via keyboard)
24524 - Added Insert() method for inserting multiline text into documents
24525 - Fixed DeleteChars() calculation errors that would cause a broken
24526 tag chain with multiple tag lines
24527 - DeleteChars() no longer crashes on multi-tag lines if not all tags
24528 - Split() no longer moves caret if split is at caret location
24529 - ReplaceSelection() now updates the cursor and re-displays it
24530 - ReplaceSelection() now uses new Insert() method to avoid code
24532 - FormatText() can now handle formatting partial lines
24534 - Append now uses new TextControl.Insert() method (this avoids
24536 - Implemented Ctrl-X (Cut) (
24537 - Implemented Ctrl-C (Copy)
24538 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
24539 regeneration when pasting text; roundtripping Copy&Paste within
24540 edit control still fails due to some calculation bugs in GenerateRTF)
24541 - The Delete key will now remove the current selection if it is visible
24542 * TextBox.cs: Removed debug lines
24543 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
24544 driver to be initialized and can't therefore be done via a static ctor)
24546 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
24548 * TextControl.cs: Added backend code for finding char arrays and strings
24550 - Added mouse wheel scroll support
24551 - Added support for VScroll and HScroll events
24553 - Implemented all seven Find() variants
24554 - Implemented GetCharFromPosition()
24555 - Implemented GetCharIndexFromPosition()
24556 - Implemented GetLineFromIndex()
24557 - Implemented GetPositionFromCharIndex();
24558 - Implemented SaveFile for PlainText and UnicodeText
24559 - Fixed set_Font, now setting a new font applies that font to
24561 - Implemented generic Document to RTF converter
24562 - Implemented SaveFile for RichText format (still missing unicode
24563 conversion for non-ansi chars)
24564 - Implemented get_Rtf
24565 - Implemented get_SelectedRtf
24567 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
24569 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
24570 to allow any captures to be released before triggering OnClick. This
24571 way a click handler may capture the mouse without interference.
24572 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
24573 This way we send them even though X may not allow a grab (if the window
24574 isn't visible, for example)
24576 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
24578 * DataGridViewRowEventArgs.cs: DataGridView implementation
24579 * DataGridViewElement.cs: DataGridView implementation
24580 * DataGridViewComboBoxCell.cs: DataGridView implementation
24581 * DataGridViewDataErrorContexts.cs: DataGridView implementation
24582 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
24583 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
24584 * ImageLayout.cs: DataGridView implementation
24585 * DataGridViewComboBoxColumn.cs: DataGridView implementation
24586 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
24587 * DataGridViewSelectionMode.cs: DataGridView implementation
24588 * IDataGridViewEditingControl.cs: DataGridView implementation
24589 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
24590 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
24591 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
24592 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
24593 * DataGridViewColumnSortMode.cs: DataGridView implementation
24594 * DataGridView.cs: DataGridView implementation
24595 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
24596 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
24597 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
24598 * Padding.cs: DataGridView implementation
24599 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
24600 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
24601 * DataGridViewRowEventHandler.cs: DataGridView implementation
24602 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
24603 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
24604 * DataGridViewButtonCell.cs: DataGridView implementation
24605 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
24606 * DataGridViewEditMode.cs: DataGridView implementation
24607 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
24608 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
24609 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
24610 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
24611 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
24612 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
24613 * DataGridViewCellEventHandler.cs: DataGridView implementation
24614 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
24615 * DataGridViewCellStyleConverter.cs: DataGridView implementation
24616 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
24617 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
24618 * DataGridViewColumnEventArgs.cs: DataGridView implementation
24619 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
24620 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
24621 * QuestionEventArgs.cs: DataGridView implementation
24622 * IDataGridViewEditingCell.cs: DataGridView implementation
24623 * DataGridViewTriState.cs: DataGridView implementation
24624 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
24625 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
24626 * DataGridViewColumnCollection.cs: DataGridView implementation
24627 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
24628 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
24629 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
24630 * DataGridViewColumn.cs: DataGridView implementation
24631 * DataGridViewCellBorderStyle.cs: DataGridView implementation
24632 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
24633 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
24634 * DataGridViewRow.cs: DataGridView implementation
24635 * DataGridViewImageCellLayout.cs: DataGridView implementation
24636 * DataGridViewImageCell.cs: DataGridView implementation
24637 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
24638 * DataGridViewCheckBoxCell.cs: DataGridView implementation
24639 * DataGridViewHeaderCell.cs: DataGridView implementation
24640 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
24641 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
24642 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
24643 * DataGridViewTextBoxColumn.cs: DataGridView implementation
24644 * QuestionEventHandler.cs: DataGridView implementation
24645 * DataGridViewCellStyleScopes.cs: DataGridView implementation
24646 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
24647 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
24648 * DataGridViewCell.cs: DataGridView implementation
24649 * DataGridViewCellEventArgs.cs: DataGridView implementation
24650 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
24651 * DataGridViewCellStyle.cs: DataGridView implementation
24652 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
24653 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
24654 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
24655 * TextFormatFlags.cs: DataGridView implementation
24656 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
24657 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
24658 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
24659 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
24660 * DataGridViewButtonColumn.cs: DataGridView implementation
24661 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
24662 * HandledMouseEventArgs.cs: DataGridView implementation
24663 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
24664 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
24665 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
24666 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
24667 * DataGridViewRowCollection.cs: DataGridView implementation
24668 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
24669 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
24670 * DataGridViewHitTestType.cs: DataGridView implementation
24671 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
24672 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
24673 * DataGridViewColumnEventHandler.cs: DataGridView implementation
24674 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
24675 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
24676 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
24677 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
24678 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
24679 * DataGridViewContentAlignment.cs: DataGridView implementation
24680 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
24681 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
24682 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
24683 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
24684 * DataGridViewPaintParts.cs: DataGridView implementation
24685 * DataGridViewCellCollection.cs: DataGridView implementation
24686 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
24687 * DataGridViewImageColumn.cs: DataGridView implementation
24688 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
24689 * DataGridViewElementStates.cs: DataGridView implementation
24690 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
24691 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
24692 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
24693 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
24694 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
24695 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
24696 * DataGridViewRowHeaderCell.cs: DataGridView implementation
24697 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
24698 * DataGridViewTextBoxCell.cs: DataGridView implementation
24699 * DataGridViewBand.cs: DataGridView implementation
24700 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
24701 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
24702 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
24703 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
24704 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
24705 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
24706 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
24707 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
24708 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
24709 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
24710 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
24712 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
24714 * ThemeWin32Classic.cs:
24715 - Draw the outside focus rectangle around buttons
24716 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
24717 doesn't use end caps for every dash of a line anymore. This
24718 workaround ignores the forecolor.
24720 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
24722 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
24725 2005-11-07 Jackson Harper <jackson@ximian.com>
24727 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
24729 2005-11-07 Jackson Harper <jackson@ximian.com>
24731 * ScrollableControl.cs: Calculate the maximum and change vars
24732 (more) correctly so that scrollbars appear as a sensible size.
24734 2005-11-04 Jackson Harper <jackson@ximian.com>
24736 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
24738 * TreeView.cs: When the tree is sorted null out the top_node so
24739 that it is recalculated.
24740 - Use dotted lines instead of dashed lines to match MS better.
24742 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
24745 - Implements key search for items. Useful when browsing files with FileDialog
24746 - When changing view mode or when clear the items reset scrollbar positions
24748 2005-11-04 Jackson Harper <jackson@ximian.com>
24750 * CurrencyManager.cs: Implement the MetaDataChanged event, the
24751 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
24752 as to what the method may do as there is no real way of creating a
24753 derived CurrencyManager and calling the method.
24755 2005-11-03 Jackson Harper <jackson@ximian.com>
24757 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
24758 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
24759 method which seems to just be used internally to refresh the tabs.
24761 2005-11-03 Jackson Harper <jackson@ximian.com>
24763 * TabControl.cs: Implement the remove method. Fix some broken
24766 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
24768 * DateTimePicker.cs:
24769 - Added missing DateTimePickerAccessibleObject class
24770 - Added missing events
24771 - Added OnFontChanged method
24772 * Form.cs: Added missing attributes
24773 * TreeView.cs: Added missing attributes
24775 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
24777 * GridItemCollection.cs: Fix signatures
24779 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
24781 * XplatUI.cs: Updated build rev/date
24782 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
24783 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
24784 * Application.cs: Trigger context-specific ExitThread events
24786 2005-11-03 Jackson Harper <jackson@ximian.com>
24790 * GridTableStylesCollection.cs:
24795 * MonthCalendar.cs: Signature fixes
24797 2005-11-03 Jackson Harper <jackson@ximian.com>
24799 * TreeNodeCollection.cs: Remove should not be virtual.
24800 * TreeView.cs: Implement the last of the missing methods.
24802 2005-11-03 Jackson Harper <jackson@ximian.com>
24804 * TreeNodeConverter.cs: Implement to get off my class-status back.
24806 2005-11-03 Jackson Harper <jackson@ximian.com>
24808 * TreeView.cs: Hookup the bits for drag and drop.
24809 * TreeNode.cs: Don't cache the tree_view or index anymore, now
24810 that nodes can be moved from tree to tree easily this just causes
24811 all sorts of problems.
24812 * TreeNodeCollection: Don't need to give treenodes an index and
24813 treeview anymore when they are added, these are computed on the
24814 fly. Also make sure to remove a node before its added.
24816 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
24819 - Added CaretSelection enum
24820 - Added comparison methods to Marker struct, makes selection code
24822 - Added SelectionStart and SelectionEnd as 'moveable' location for
24823 the CaretDirection enum and handler
24824 - Added selection_prev variable to track optimized invalidation for
24825 word and line selection
24826 - Added SelectionVisible property (returns true if there is a valid
24828 - Switched CaretHasFocus to only display the caret if there is no
24830 - Avoiding StringBuilder.ToString to retrieve a single char, instead
24831 using the direct character index; should be much faster
24832 - Added various conditional debug statements
24833 - Fixed invalidation calculation for selection ranges
24834 - Added ExpandSelection() method to support word and line selection
24835 - Switched SetSelectionToCaret to use new Marker compare overloads
24836 - Added central IsWordSeparator() method to determine word
24837 separators/whitespace and FindWordSeparator() to streamline common
24838 usage of IsWordSeparator()
24840 - Removed unneeded grabbed variable, it was just mirroring
24842 - No longer firing OnTextChanged event when Text setter is called,
24843 since the base will fire the event for us
24844 - Added handling of Ctrl-Up/Down selection
24845 - Added handling of Shift-Cursorkey selection
24846 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
24848 - Added handling of Shift and Ctrl-Shift-Home/End selection
24849 - Removed some debug output
24850 - Added handling for single/double/tripple-click to place caret/
24851 select word/select line respectively (Fixes bug #76031)
24852 - Added support for drag expansion of word/line selection
24853 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
24856 2005-11-02 Jackson Harper <jackson@ximian.com>
24858 * X11Dnd.cs: If the drag is going to and from a MWF window just
24859 copy the data instead of sending it out through the X Selection
24862 2005-11-02 Jackson Harper <jackson@ximian.com>
24865 * XplatUIX11.cs: When in a drag we don't want motion notify
24866 messages to get passed on to the other controls. This prevents
24867 mouse move messages from showing up in the drag source.
24869 2005-11-02 Jackson Harper <jackson@ximian.com>
24871 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
24872 the correct button is release to end a drag.
24873 * XplatUIX11.cs: Make the button state internal so the drag system
24874 can access it. Dragging needs to know about all button releases,
24875 not just left button.
24877 2005-11-02 Miguel de Icaza <miguel@novell.com>
24879 * Form.cs (Icon): If the icon is null, reset the icon to the
24882 * Cursor.cs: When writing the AND-mask bitmap do not include the
24883 number of colors, but hardcode those to two (black and white),
24884 fixes the loading of color cursors (Paint Dot Net).
24886 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
24887 turn off autoscaling.
24889 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
24891 2005-11-02 Jackson Harper <jackson@ximian.com>
24893 * X11Dnd.cs: Make sure to send a status message if the pointer
24894 enters a control that can not accept a drop, otherwise the cursor
24895 isn't updated correctly. Also tried to compress the lines of code
24898 2005-11-02 Jackson Harper <jackson@ximian.com>
24900 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
24901 set actions correctly. This isn't perfect as XDND and win32 have
24902 some differences on how you allow actions. I'll clear this up by
24903 adding a path for drag from MWF to MWF windows.
24904 * XplatUIX11.cs: Hook into the dnd system.
24906 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
24908 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
24909 previously shown but they are no longer need it. Very obvious when
24910 browsing files with FileDialog.
24912 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
24914 * Control.cs: We always need to call OnPaintBackground. We pretty much
24915 ignore AllPaintingInWmPaint and always do the painting there, whether
24916 it's set or not, since we always ignore the WM_ERASEBKGND message
24917 (which we don't generate on X11). This fixes #76616.
24918 * Panel.cs: Removed unneeded background painting. This happens properly
24919 in Control.cs already
24921 2005-10-31 Mike Kestner <mkestner@novell.com>
24923 * Menu.cs: Add items to collection before setting their index.
24924 * MenuItem.cs : add range checking with ArgumentException like MS.
24927 2005-10-31 Jackson Harper <jackson@ximian.com>
24929 * ListBox.cs: Invalidate if the area is visible at all not just
24930 contained in the visible rect. Fixes unselection of semi visible
24933 2005-10-31 Jackson Harper <jackson@ximian.com>
24935 * Control.cs: Consistently name the dnd methods. Make them
24936 internal so we can override them to match some MS behavoir
24938 * Win32DnD.cs: Use the new consistent names.
24940 2005-10-31 Jackson Harper <jackson@ximian.com>
24942 * TreeView.cs: Don't draw the selected node when we lose focus.
24944 2005-10-31 Jackson Harper <jackson@ximian.com>
24946 * X11Dnd.cs: We still need to reset the state even though a full
24947 reset isn't being done, otherwise status's still get sent all over
24950 2005-10-31 Jackson Harper <jackson@ximian.com>
24952 * Control.cs: Make the dnd_aware flag internal so the dnd
24953 subsystem can check it. Catch exceptions thrown in dnd handlers to
24955 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
24956 * X11Dnd.cs: Handle null data in the converters. Set the XDND
24957 version when sending a XdndEnter. Use the control/hwnd dnd_aware
24958 flags to reduce the number of dnd enters/status's sent.
24960 2005-10-31 Jackson Harper <jackson@ximian.com>
24962 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
24964 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
24966 * PictureBox.cs: Fixes 76512
24968 2005-10-28 Jackson Harper <jackson@ximian.com>
24970 * X11Dnd.cs: Early implementation to support winforms being a drag
24971 source for data on X11. Also restructured the converters so they
24972 can go both ways now.
24973 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
24975 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
24977 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
24980 2005-10-27 Jackson Harper <jackson@ximian.com>
24982 * TreeNode.cs: Implement serialization so my DnD examples will work.
24984 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
24986 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
24987 TreeView.cs: Don't dispose objects that are not owned.
24989 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
24991 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
24992 should retrieve the current cursor and report that, but XplatUI
24993 doesn't (yet) have an interface for that (and I'm not sure I even
24995 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
24996 until any message loop processing is done (and the WM_SETCURSOR
24997 replaces the cursor to the proper one)
24999 - Fixed override behaviour, we can't set the cursor globally on X11,
25000 just for our windows.
25001 - Invalidating the System.Drawing X11 display handle when we are
25003 * Control.cs: Fix to make csc happy
25005 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
25008 - get_Text: Add last line (without trailing newline) to returned
25009 value (Fixes 76212)
25010 - get_TextLength: Count last line in returned length
25011 - ToString: Call Text property instead of duplicating code
25013 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
25015 * ImageList.cs: Dispose ImageAttributes objects.
25017 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
25019 * ImageList.cs: Use attribute constructors with less arguments where
25022 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
25024 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
25025 Use typeof instead of strings when assembly is referenced. Added
25026 some more comments.
25028 2005-10-21 Jackson Harper <jackson@ximian.com>
25030 * ListView.cs: Raise a double click event. Also tried to somewhat
25031 fix when the selectedindexchanged event is raised. Its still
25034 2005-10-21 Jackson Harper <jackson@ximian.com>
25036 * TreeView.cs: New method to invalidate the plus minus area of a
25037 node without invalidating the whole node (maybe this can be used
25038 in some more places).
25039 * TreeNodeCollection.cs: When adding to an empty node we need to
25040 invalidate its plus minus area so the little block shows up.
25042 2005-10-21 Jackson Harper <jackson@ximian.com>
25044 * TreeView.cs: Make sure that when we invalidate a node the bounds
25045 are big enough to cover the selected box and the focus
25046 rectangle. Use a different colour for the lines connecting nodes
25047 so they show up with all themes.
25049 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
25051 * NativeWindow.cs: Don't call anything that could call into the driver,
25052 we might be on a different thread.
25054 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
25056 * Control.cs(Dispose): Since Dispose might run on a different thread,
25057 make sure that we call methods that could call into the driver via
25058 invoke, to avoid thread issues
25060 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
25062 * XplatUI.cs: Removed finalizer
25063 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
25064 not allowing to be called on the finalizer thread.
25066 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
25069 - Reverted r51889 and r51891.
25070 - Added ImageListItem class that stores unmodified image items and image
25071 properties required to create list images until handle is created.
25072 - Added AddItem and moved image creation logic to AddItemInternal.
25073 - Added CreateHandle method that creates images based on unmodified items.
25074 - Added DestroyHandle that changes state to store unmodified items.
25075 - Add and AddStrip methods no more create handle.
25076 - ReduceColorDepth has no return value.
25077 - Dispose destroys handle.
25078 - Modified other methods to reflect the above changes.
25079 - Implemented key support.
25080 - Added profile 2.0 members and attributes.
25081 - Added private Reset and ShouldSerialize methods that provide the same
25082 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
25083 them as they are private.
25084 - Added some more comments about implementation details.
25086 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
25088 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
25090 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
25092 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
25094 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
25096 * DataGridDrawingLogic.cs: Fixes column hit calcultation
25097 * DataGridColumnStyle.cs: Remove debug message
25099 2005-10-20 Jackson Harper <jackson@ximian.com>
25101 * TreeView.cs: We can always get input keys regardless of whether
25102 or not editing is enabled. They are used for navigation.
25104 2005-10-20 Jackson Harper <jackson@ximian.com>
25106 * TreeNode.cs: Use the viewport rect for determining if a node
25107 needs to be moved for visibility. Don't use Begin/End edit. This
25108 calls a full refresh when its done.
25109 * TreeView.cs: New SetBottom works correctly. Make the viewport
25110 rect property internal so the treenodes can see it. When clicking
25111 on a node we need to ensure that its visible because it might just
25112 be partly visible when clicked.
25114 2005-10-20 Jackson Harper <jackson@ximian.com>
25116 * TreeNodeCollection.cs: Remove debug code.
25118 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
25120 * Datagrid.cs: Implements column sorting in Datagrid
25121 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
25123 2005-10-20 Jackson Harper <jackson@ximian.com>
25125 * TreeNodeCollection.cs: Remove items properly. Update the correct
25126 area after removing them.
25128 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
25130 * Datagrid.cs: Should not call base.OnPaintBackground
25132 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
25134 * XplatUIX11.cs (GetMessage):
25135 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
25136 window instead of client window
25137 - Now properly calculates NC_xBUTTONUP message coordinates
25138 - ScreenToMenu now properly calculates it's coordinates of whole
25139 window, since menus are in the whole window, not in the client
25141 - Added WholeToScreen coordinate translation method
25143 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
25145 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
25146 want to return a message, loop back to the beginning of the function
25147 and grab the next real message to process instead.
25149 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
25151 * Splitter.cs: Properly set limits if no filler control is used
25153 2005-10-19 Jackson Harper <jackson@ximian.com>
25155 * ColorDialog.cs: Don't show the help button if it is not enabled
25156 instead of disabling it (this is what MS does). Don't create the
25157 panel until the dialog is run, otherwise the vars (such as
25158 ShowHelp) are not set yet.
25160 2005-10-19 Jackson Harper <jackson@ximian.com>
25162 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
25163 are reduced when adding nodes.
25165 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
25168 2005-10-19 Jackson Harper <jackson@ximian.com>
25170 * FolderBrowserDialog.cs: End editing our treeview so the window
25171 actually gets refreshed.
25173 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
25175 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
25176 Obsoleted handling of WM_ERASEBKGND, now always draws our background
25179 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
25181 * MenuAPI.cs: Returns after Hidding window
25182 * XplatUIX11.cs: Added TODO found while debugging menu issues
25184 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
25186 * XplatUIX11.cs: Do not re-map the whole window when it's size
25187 becomes non-zero unless it's supposed to be actually visible
25189 2005-10-18 Jackson Harper <jackson@ximian.com>
25191 * TreeView.cs: We don't need to keep a count anymore.
25192 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
25193 use the Grow method.
25195 2005-10-18 Jackson Harper <jackson@ximian.com>
25197 * TreeNodeCollection.cs: Insert is not supported on arrays, so
25198 implement it manually here.
25200 2005-10-18 Jackson Harper <jackson@ximian.com>
25202 * ImageList.cs: Dont kill the list when the colour depth is
25203 changed, just change the colour depth of all the images.
25204 - Same goes for setting the image size. Just resize them all
25205 instead of killing the list softly.
25207 2005-10-18 Jackson Harper <jackson@ximian.com>
25209 * Control.cs: Don't invalidate empty rectangles.
25211 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
25214 - Adds checked item to the Checked/Item lists (where empty before)
25215 - Do not add items to the Selected lists if they are already present
25217 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
25218 - When deleting items make sure that we delete them for the Selected
25219 and Checked list also.
25221 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
25223 * Label.cs: Dispose objects no longer used
25224 * ThemeWin32Classic.cs: Dispose objects no longer used
25226 2005-10-18 Jackson Harper <jackson@ximian.com>
25228 * TabControl.cs: Don't refresh the whole control when the tabs are
25229 scrolled, we just need to refresh the tab area.
25231 2005-10-17 Jackson Harper <jackson@ximian.com>
25233 * XplatUIX11.cs: Compress code a little bit. Only calculate the
25234 after handle when we need it.
25236 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
25238 * Control.cs: When the parent size changes, recalculate anchor
25239 positions. Partial fix for #76462
25241 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
25243 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
25244 drawn. Fixes #76462
25246 2005-10-17 Jackson Harper <jackson@ximian.com>
25248 * MonthCalendar.cs: Don't create the numeric up down until our
25249 handle is created. Otherwise our handle is created in the
25250 constructor and we don't know if we are a WS_CHILD or WS_POPUP
25253 2005-10-17 Jackson Harper <jackson@ximian.com>
25255 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
25258 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
25259 * TreeNode.cs : small logical fix (was using local var instead of field)
25261 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
25263 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
25265 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
25267 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
25269 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
25272 - Re-implemented anchoring code. My first version was really broken.
25273 This fixes bug #76033. Unlike the previous implementation we will
25274 no longer have round errors since all numbers are calculated from
25275 scratch every time. Removed various anchor-related obsolete vars.
25276 - InitLayout no longer causes layout event firing and layout to be
25279 2005-10-16 Jackson Harper <jackson@ximian.com>
25281 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
25284 2005-10-16 Jackson Harper <jackson@ximian.com>
25286 * TabControl.cs: Remove debug code.
25288 2005-10-16 Jackson Harper <jackson@ximian.com>
25290 * XEventQueue.cs: Increase the default queue size (very simple
25291 apps needed to grow the queue).
25292 * Hwnd.cs: No finalizer so we don't need to suppress
25293 finalization. Compute the invalid area manually so a new rectangle
25294 does not newto be created.
25295 * ScrollableControl.cs: Don't set any params (otherwise visibility
25296 isn't set correctly).
25297 * MdiChildContext.cs: New constructor takes the mdi parent so it
25298 doesn't have to be computed and avoids a crash on windows. Draw
25299 the window icon properly, and allow the text to be seen.
25300 * Form.cs: Use new MdiChildContext constructor. Make sure the
25301 child context isn't null in wndproc.
25302 * TabControl.cs: Don't set focus, this is muddling keyboard
25303 behavoir. Expand the tab rows when a window size increase will
25304 allow extra tabs to be seen. Don't allow tabs smaller than the
25305 width of a window to be scrolled out of view.
25307 * TreeView.cs: Use measure string to calculate a nodes width, the
25308 width is cached and only updated when the text or the font is
25309 changed. Don't check for expand/collapse clicks on the first level
25310 nodes if root lines are disabled.
25312 2005-10-16 Ritvik Mayank <mritvik@novell.com>
25314 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
25316 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
25318 * DataGridBoolColumn.cs: fixes warning
25320 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
25322 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
25323 to match more to match more precisely the MS Net behavior
25325 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
25327 * Hwnd.cs: Added field to track if window is mapped
25329 - Unmap windows if they become 0-size, re-map when
25330 they are >0 again; fixes #76035
25331 - Re-set our error handler after initializing X11Desktop
25332 to override any error handlers Gtk or whatever was called
25335 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
25337 * CheckedListBox.cs: Removed unused vars
25338 * ListView.cs: Fixed signatures
25339 * RichTextBox.cs: Removed unused vars
25340 * TextBoxBase.cs: Removed unused vars
25341 * XplatUIWin32.cs: Removed unused vars
25342 * XplatUIX11.cs: Removed unused vars
25343 * XplatUI.cs: Updated version and date to latest published
25345 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
25347 * Cursor.cs: Added private .ctor to work around a bug in
25348 resourceset (Thanks to Geoff Norton for the help on this)
25349 * SplitterEventArgs.cs: Made fields accessible so we don't
25350 waste boatloads of objects and can reuse the same one
25352 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
25353 any captions and borders when generating screen coordinates
25354 * Splitter.cs: Reimplemented control, now fully complete, uses
25355 rubberband drawing, supports and obeys all properties, has
25358 2005-10-13 Miguel de Icaza <miguel@novell.com>
25360 * Form.cs (Form): Setup default values for autoscale and
25361 autoscale_base_size; Make these instance variables, not static
25364 (OnLoad): on the first load, adjust the size of the form.
25366 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
25368 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
25369 width argument to DrawReversibleRectangle()
25370 * XplatUIWin32.cs, XplatUIX11.cs:
25371 - Implemented width for DrawReversibleRectangle()
25372 - Added logic to DrawReversibleRectangle that recognizes a zero
25373 width or height and only draws a line in that situation
25375 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
25377 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
25378 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
25379 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
25380 method (it uses our FosterParent window to get a graphics context)
25382 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
25384 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
25385 and SetWindowBackground methods
25387 - Setting proper ControlStyles
25388 - We no longer call XplatUI.SetWindowBackground and XplatUI.
25389 EraseWindowBackground, instead we draw the window background
25390 ourselves in PaintControlBackground. This behaviour is
25391 required to match MS, where, when OnPaintBackground is not
25392 called, the background is not drawn.
25393 - Removed unneeded Refresh() in set_Text
25394 * Hwnd.cs: Dropped the ErasePending support. No longer needed
25396 - Created DeriveStyles method to translate from CreateParams to
25397 FormBorderStyle and TitleStyle, also handles BorderStyle (which
25398 matches FormBorderStyle enum values)
25399 - Consolidated SetHwndStyles and CalculateWindowRect border/title
25400 style calculations into single DeriveStyles method
25401 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
25402 from redrawing the whole window on any resize or expose.
25403 - Fixed CreateWindow usage of SetWindowValuemask. Before not
25404 all styles were applied to our whole/client window appropriately
25405 - Removed EraseWindowBackground() and SetWindowBackground() methods
25406 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
25407 no longer clear/redraw the background through X
25408 - Removed handling of erase_pending bit, we have no use for it (or
25411 - Removed generation and handling of WM_ERASEBKGND message
25412 - Removed EraseWindowBackground() and SetWindowBackground() methods
25413 - Removed handling of hwnd.ErasePending flag
25415 - Removed EraseWindowBackground() and SetWindowBackground() methods
25416 - We no longer call EraseWindowBackground on PaintEventStart, we
25417 ignore the fErase flag, erasing is handled in Control in the
25419 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
25420 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
25421 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
25422 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
25423 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
25424 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
25425 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
25427 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
25429 * PropertyGrids.cs: Get sub properties
25430 * PropertyGridView.cs: Fix drawing code
25432 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
25434 * ListBox.cs: Fixes 76383
25436 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
25438 * DataGridTextBoxColumn.cs: Sets location and size before attachment
25439 * ThemeWin32Classic.cs: Fixes border drawing and calculations
25440 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
25443 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
25445 * ComboBox.cs: Fixes border drawing
25447 2005-10-10 Miguel de Icaza <miguel@novell.com>
25449 * MimeIcon.cs: Ignore errors if the file can not be read.
25451 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
25453 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
25454 - Fixed border calculations
25455 - Fixed horizontal scrolling in single column listboxes
25456 - Fixed drawing issues
25458 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
25460 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
25461 FormBorderStyle enum
25462 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
25463 code to determine FormBorderStyles from CreateParams
25465 - Fixed bug where we'd set the wrong window styles if we were
25466 not creating an MDI window
25467 - Added call to XplatUI.SetBorderStyle when form borders are set
25468 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
25470 - Removed obsolete edge style
25471 - Switched from BorderStyle to FormBorderStyle
25473 2005-10-10 Jackson Harper <jackson@ximian.com>
25475 * Form.cs: Use the property to get the window handle instead of
25476 accessing it directly. Prevents a null reference exception.
25478 2005-10-10 Jackson Harper <jackson@ximian.com>
25480 * TreeView.cs: Don't adjust the rect given to DrawString now that
25481 our libgdiplus draws correctly.
25483 2005-10-08 Jackson Harper <jackson@ximian.com>
25485 * TreeView.cs: Don't try to find the clicked on node if there are
25486 no nodes in the tree.
25488 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
25494 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
25496 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
25497 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
25499 Use ResPool for brushes and dispose System.Drawing objects that
25500 are not used anymore.
25502 2005-10-07 Jackson Harper <jackson@ximian.com>
25504 * MdiChildContext.cs: Use the new borders instead of drawing them
25507 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
25509 * Calling UpdateBounds after changing the window's BorderStyle
25510 since the style can change the ClientSize
25512 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25514 * Control.cs: Made PaintControlBackground virtual
25515 * Panel.cs: Overriding PaintControlBackground instead of using paint
25516 event; paint event method was interfering with 'real' users of the
25519 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
25521 * ThemeWin32Classic.cs: remove border drawing since it is handled
25522 by the base control class now and was causing double border drawing.
25524 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25526 * Panel.cs: Redraw our background on paint. Not a pretty solution,
25527 but it does seem to match MS behaviour. This fixes bug #75324
25529 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25531 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
25532 somewhat hackish looking
25534 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25537 - We now accept Enter even if AcceptEnter is false, if the containing
25538 form does not have an AcceptButton configured (fixes bug #76355)
25539 - Calculations are now fixed to no longer use Width/Height, but
25540 ClientSize.Width/Height, since we now support borders (this was
25541 a result of fixing borders and therefore bug #76166)
25542 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
25543 true (fixes bug #76354)
25545 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25548 - Defaulting BorderStyle and setting it in XplatUI when our window
25550 - Added enum check to InternalBorderStyle setter
25552 - Added drawing of window borders
25553 - Now properly calculates WM decorations offset for toplevel
25554 windows (fixes bug #74763)
25556 - Implemented BorderStyles for windows (we're letting win32 draw
25558 - Fixed the signature for SetWindowLong
25559 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
25560 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
25562 * UpDownBase.cs: Remove drawing of borders, this is handled by
25563 the driver, outside the client area
25564 * ListView.cs: Removed bogus border calculations. The control should
25565 be oblivious to borders, since those are not part of the client
25567 * X11DesktopColors.cs: Commented out (currently) unneeded variables
25568 * ThemeWin32Classic.cs: Removed border calculations from ListView
25571 2005-10-06 Jackson Harper <jackson@ximian.com>
25573 * MdiChildContext.cs: Clear out the old virtual position remove
25574 all the unneeded calls to CreateGraphics.
25576 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25578 * TextControl.cs: Use proper color for highlighted text; fixes #76350
25580 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25583 - Added loading and setting of our new default icon
25584 - Only set icon if window is already created
25586 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25589 - Do not explicitly set the foreground and background colors, to
25590 allow inheriting from parents (fixes #76302)
25591 - Use Control's InternalBorderStyle property to deal with borders
25593 2005-10-06 Jackson Harper <jackson@ximian.com>
25595 * MdiChildContext.cs: Use the new xplatui function to draw a
25598 2005-10-06 Jackson Harper <jackson@ximian.com>
25600 * Form.cs: Add the parent before creating the child context cause
25601 we need the parent when setting up the child.
25603 2005-10-06 Jackson Harper <jackson@ximian.com>
25605 * FolderBrowserDialog.cs: redo the tree population code so a
25606 second thread isn't used. Should be a lot faster and more stable
25609 2005-10-05 Jackson Harper <jackson@ximian.com>
25611 * TreeView.cs: There are no expand/collapse boxes if the node has
25614 2005-10-05 Jackson Harper <jackson@ximian.com>
25616 * X11DesktopColors.cs: Get menu colours for the gtk theme.
25618 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
25620 * FileDialog.cs: Fix InitialDirectory
25622 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
25625 - Fixes changing between styles
25626 - Fixes simple mode
25627 - Fixes last item crashing when navigating with keyboard
25629 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
25631 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
25633 2005-10-05 Jackson Harper <jackson@ximian.com>
25635 * TreeView.cs: If updating the root node do a full refresh.
25636 * TreeNode.cs: The root node should be expanded by default. Also
25637 added a utility prop to tell if we are the root node.
25638 * TreeNodeCollection.cs: Only refresh if the node we are being
25639 added to is expanded. Also added a comment on a potential
25642 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
25644 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
25645 in dispose method. Fixes #76330
25647 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
25649 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
25651 - Implements vertical and horizontal scrolling using XplatUI
25652 - Fixes keyboard navagation
25653 - Fixes EnsureVisible
25655 - Handles and draws focus properly
25658 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
25660 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
25661 Create handle. NET_2_0: Destroy handle when value is null.
25663 2005-10-03 Jackson Harper <jackson@ximian.com>
25665 * ScrollBar.cs: My last scrollbar patch was broken. This is a
25666 revert and a new patch to prevent the thumb from refreshing so
25669 2005-10-02 Jackson Harper <jackson@ximian.com>
25671 * ScrollBar.cs: Don't update position if it hasn't actually
25672 changed. This occurs when you hold down the increment/decrement
25673 buttons and the thumb gets to the max/min.
25675 2005-10-01 Jackson Harper <jackson@ximian.com>
25678 * MdiChildContext.cs:
25679 * MdiClient.cs: Implement ActiveMdiChild in Form.
25681 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
25683 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
25685 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
25687 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
25690 2005-09-30 Jackson Harper <jackson@ximian.com>
25692 * ListBox.cs: Don't do a full refresh unless some data has
25695 2005-09-30 Jackson Harper <jackson@ximian.com>
25697 * TreeView.cs: Make sure that the checkboxes size is factored in
25698 even when not visible.
25700 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
25702 * FileDialog.cs: Fix Jordi's build break
25704 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
25707 - Use standard the Windows colours for the combobox as espected
25708 - Dispose objects that use resouces when no longer need them
25710 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
25712 * X11DesktopColors.cs: Initial incomplete implementation
25713 * XplatUIX11.cs: Added call to initialize X11DesktopColors
25715 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
25718 - Switched Theme color names to match the names defined in
25719 System.Drawing.KnownColors. Life's hard enough, no need to make
25721 - Added setters to all theme color properties so themes can set
25722 their color schemes. The setters also propagate the color changes
25723 to System.Drawing.KnownColors via reflection
25724 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
25725 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
25726 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
25727 use the new, more logical theme color names
25728 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
25730 * ThemeWin32Classic.cs:
25731 - Removed code to set the old classic Windows colors. Instead it
25732 now relies on the colors returned by System.Drawing.KnownColors
25733 which will be either modern static colors (Unix) or colors
25734 read from the user's configuration (Win32)
25735 - Updated to use the new, more logical theme color names
25736 - Switched DataGrid drawing code to use only Theme colors instead of
25737 a mix of System.Drawing.KnownColors and Theme colors
25738 - DrawFrameControl(): Removed code that fills the button area, the
25739 fill would overwrite any previous fill done by a control. This
25741 - Added DrawReversibleRectangle() stub
25742 * ScrollableControl.cs: Set visible state to false when scrollbars
25743 are removed (pdn fix)
25744 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
25745 DrawReversibleRectangle() method to allow drawing primitive
25747 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
25749 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
25751 * ImageList.cs: Add(Icon): Create handle.
25753 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
25756 * ThemeWin32Classic.cs:
25757 - Fixes detail mode
25759 - Issues with drawing
25761 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
25763 * ImageList.cs: Moved RecreateHandle back to ImageList as event
25764 source has to be the ImageList.
25766 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
25768 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
25770 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
25772 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
25774 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
25776 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
25778 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
25779 * GridItem.cs: Fixed TODOs
25780 * GridItemCollection.cs: Added ICollection interface
25782 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
25784 * ImageList.cs: Resize icons when needed.
25786 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
25789 - Fixes GetBounds and returns on screen rects
25791 - Fixes vertical and horzintal scrolling of items
25792 * ThemeWin32Classic.cs:
25795 2005-09-29 Raja R Harinath <harinath@gmail.com>
25797 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
25799 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
25801 * ImageList.cs: Added comments about handle creation. Moved Handle,
25802 HandleCreated and OnRecreateHandle implementations to ImageCollection.
25803 Handle is created in Add methods.
25805 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
25807 * DataGridDrawingLogic.cs:
25808 - Takes rows into account on Colum calculations
25809 - Returns the column when clickig
25811 - Fixes default HitTestInfo values
25812 - Fixes HitTestInfo.ToString
25813 - Fixes ResetBackColor
25815 2005-09-28 Jackson Harper <jackson@ximian.com>
25817 * MdiChildContext.cs: Obey rules for fixed sized windows (no
25818 sizing or cursor changes). Also added some temp code to draw the
25819 titlebars text (Makes dev a little easier).
25821 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
25823 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
25825 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
25827 * ListBox.cs: Fixes bug 76253
25829 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
25831 * ImageList.cs: Added comments about the current implementation. Added
25832 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
25833 Format32bppArgb to preserve transparency and can use Graphics.FromImage
25834 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
25835 with Bitmap.LockBits for better performance. Revised the whole file to
25836 match MS.NET behaviour and provide better performance. Non-public
25837 interface members are calling public members even when they throw
25838 NotSupportedException for better maintainability. Moved ColorDepth,
25839 ImageSize, ImageStream and TransparentColor implementations to
25840 ImageCollection for better performance as these properties are not used
25842 * ImageListStreamer.cs: Added a new internal constructor that takes an
25843 ImageList.ImageCollection and serializes Images based on
25844 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
25845 match ImageList property name.
25847 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
25849 * ListBox.cs: Fixes IndexFromPoint for last item
25851 2005-09-27 Jackson Harper <jackson@ximian.com>
25853 * Form.cs: Set the position of new mdi children correctly.
25855 2005-09-27 Jackson Harper <jackson@ximian.com>
25857 * MdiClient.cs: New mdi children need to be added to the back of
25858 the controls collection so the zorder is set correctly. Also add a
25859 count of all the child windows that have been created.
25861 2005-09-27 Jackson Harper <jackson@ximian.com>
25863 * Form.cs (CreateParams): Setup MDI forms correctly.
25865 2005-09-27 Jackson Harper <jackson@ximian.com>
25867 * MdiChildContext.cs:
25868 * MonthCalendar.cs:
25874 * ScrollableControl.cs:
25875 * ComboBox.cs: Add implicit controls using the new implict control
25876 functionality in ControlCollection. Also try to block multiple
25877 control add in a suspend/resume layout to save some cycles.
25879 2005-09-27 Jackson Harper <jackson@ximian.com>
25881 * Control.cs: Add functionality to the controls collection to add
25882 'implicit controls' these are controls that are created by the
25883 containing control but should not be exposed to the user. Such as
25884 scrollbars in the treeview.
25885 * Form.cs: The list var of the ControlsCollection is no longer
25886 available because of the potential of implicit controls getting
25887 ignored by someone accessing the list directly.
25889 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
25891 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
25892 loose it's parent. (Fixed bug introduced in r49103 when we added
25893 setting the child parent to null on Remove)
25895 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
25897 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
25898 * Splitter.cs: Added missing attributes for BorderStyle property.
25899 * TextBoxBase.cs: Marked Calculate* methods internal.
25900 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
25903 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
25905 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
25907 2005-09-25 Jackson Harper <jackson@ximian.com>
25909 * TreeView.cs: Update the node bounds correctly regardless of
25910 whether the node is visible.
25912 2005-09-25 Jackson Harper <jackson@ximian.com>
25914 * ImageList.cs: Don't dispose the image after it is added to the
25915 image list. Only reformat images that need to be resized.
25917 2005-09-25 Jackson Harper <jackson@ximian.com>
25919 * ImageList.cs: Don't set the format when changing the image.
25921 2005-09-25 Jackson Harper <jackson@ximian.com>
25923 * TreeView.cs: We can't just assume the node has a font. Use the
25924 treeviews font if no node font is available.
25926 2005-09-25 Jackson Harper <jackson@ximian.com>
25928 * TreeView.cs: Allow the scrollbars to be reset with negative
25930 - Don't add scrollbars to negative sized windows.
25932 2005-09-23 Jackson Harper <jackson@ximian.com>
25934 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
25935 old Mono.Posix. Also remove some stray code that shouldn't have
25938 2005-09-23 Jackson Harper <jackson@ximian.com>
25940 * TreeView.cs: Attempt at proper sizing of the horizontal
25941 scrollbar. Also don't resize the scrollbars unless they are
25944 2005-09-23 Jackson Harper <jackson@ximian.com>
25946 * TreeView.cs: We don't need to expand the invalid area when the
25947 selection changes, as this is all drawn in the node's bounding
25948 box. The area needs to be expanded (previous typo was contracting
25949 it) when the focus rect moves.
25951 2005-09-23 Jackson Harper <jackson@ximian.com>
25953 * TreeView.cs: Display the selection box under the correct
25954 circumstances. We were rendering white text with no selection box
25957 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
25959 * TextControl.cs(Split): Now updates selection start/end if it points
25960 into a line that's being split. Fixes a FIXME and bug #75258
25962 2005-09-23 Jackson Harper <jackson@ximian.com>
25965 * ListControl.cs: Don't use the path when retrieving binding
25966 managers from the binding context. My bat sense tells me that the
25967 path is only used on insertion.
25969 2005-09-22 Jackson Harper <jackson@ximian.com>
25971 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
25973 2005-09-22 Jackson Harper <jackson@ximian.com>
25975 * Splitter.cs: There are special cursors used for splitting.
25976 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
25978 2005-09-22 Jackson Harper <jackson@ximian.com>
25980 * Splitter.cs: Change the cursor appropriately when the splitter
25981 is moused over, so the user actually knows there is a splitter
25984 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
25986 * Label.cs : Fix ToString method to give same output as MS.NET
25988 2005-09-22 Jackson Harper <jackson@ximian.com>
25990 * TreeView.cs: Create the scrollbars when the handle is created
25991 and add them right away, just make them invisble. Also account for
25992 the window being shrunk vertically to the point that the vert
25993 scrollbar needs to be added.
25994 - Remove some 0.5 adjustments to get around anti aliasing issues.
25996 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
25998 * MainMenu.cs: Fixes default value
25999 * MenuItem.cs: Fixes default value
26001 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
26003 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
26005 2005-09-21 Jackson Harper <jackson@ximian.com>
26007 * Control.cs: Don't try to set the border style on the window if
26008 it hasn't been created. When the window is created the border
26009 style will be used.
26011 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
26013 * Control.cs (Update): Don't call XplatUI if we don't have a
26016 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
26018 * ContainerControl.cs: Instead of throwing an exception, print
26019 a one-time warning about Validate not being implemented
26020 * XplatUIWin32.cs: Removed debug output
26022 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
26024 * Control.cs: Only set XplatUI background if we expect the windowing
26025 system to handle the background. This stops controls that draw their
26026 own background from flickering
26028 * XplatUIX11.cs: Support custom visuals and colormaps for window
26029 creation. This allows, amongst other things, using MWF X11 windows
26032 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
26034 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
26035 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
26036 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
26037 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
26038 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
26039 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
26040 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
26041 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
26042 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
26043 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
26044 GridColumnStylesCollection.cs,
26045 IDataGridColumnStyleEditingNotificationService.cs,
26046 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
26047 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
26048 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
26049 TreeNodeCollection.cs, AmbientProperties.cs,
26050 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
26051 DataObject.cs, ErrorProvider.cs, Splitter.cs,
26052 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
26053 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
26054 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
26055 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
26056 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
26057 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
26058 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
26059 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
26060 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
26061 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
26062 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
26063 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
26064 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
26065 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
26066 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
26067 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
26068 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
26069 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
26070 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
26071 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
26072 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
26073 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
26074 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
26075 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
26076 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
26077 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
26078 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
26079 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
26080 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
26081 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
26082 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
26083 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
26084 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
26085 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
26086 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
26088 2005-09-21 Jackson Harper <jackson@ximian.com>
26090 * TreeNode.cs: Call Before/After Expand not Collapse when
26093 2005-09-20 Jackson Harper <jackson@ximian.com>
26095 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
26097 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
26101 - Fixes proper storing of subitems
26102 - Fixes not updated items
26104 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
26106 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
26107 things if our window handle isn't created yet. Also disabled
26108 debug for TextBoxBase
26110 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
26112 * MenuAPI.cs: Remove filtering of events to allow menu usage
26114 2005-09-20 Miguel de Icaza <miguel@novell.com>
26116 * Cursor.cs: Allow null to be passed to Cursor.Current.
26118 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
26120 * ThemeWin32Classic.cs:
26121 - Change some private methods/fields to protected virtual so that
26122 they can be accessed and overriden in derived classes
26123 - First refactoring of some methods. Derived themes now don't
26124 need to duplicate the complete code from ThemeWin32Classic
26126 - Added nice StatusBar
26127 - Derive from ThemeWin32Classic and not Theme
26128 - Removed duplicate ThemeWin32Classic code
26130 2005-09-20 Miguel de Icaza <miguel@novell.com>
26132 * Control.cs (ControlCollection.Add): If the value null is passed
26133 the control is ignored.
26135 Optimize this loop.
26137 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
26139 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
26140 PostQuitMessage state.
26141 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
26143 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
26145 * Application.cs: Our constructor will never get called, move
26146 initialization to fields; fixes bug #75933
26148 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
26151 - Allow files to be selected properly using file name
26153 - Add ability to change diretory (absolute / relative)
26154 using file name combo box.
26156 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
26159 - Fixes Multicolumn listboxes item wrong calculations
26160 - Allows to click when only one item is in the listbox
26161 - Fixes crash when no items using keyboard navigation
26163 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
26165 * ComboBox.cs: Reverted almost everything from the latest patch which
26168 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
26171 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
26173 - When DropDownStyle is Simple, it does not show scrollbar
26174 to the last item of the list.
26175 - When DropDownStyle is Simple, it crashed when the list was
26176 scrolled down with the down cursor key.
26177 - Fixed a bug that when DropDownStyle is DropDownList, the
26178 selected item was not shown.
26179 - The position of the selected item was not preserved when
26180 the next dropdown happened.
26181 * ThemeWin32Classic.cs:
26182 - Items were wrapped at the right end.
26183 * CheckedListBox.cs:
26186 - Items should be fully shown.
26187 - When resizing and vertical scrollbar disappeared, the item
26188 of index 0 should be on the top of the list.
26189 - GetItemRectangle should consider the size of ver. scrollbar
26191 - SizingGrip area should not be allocated when it is not
26193 - Now it reflects MinWidth of the containing panel and
26194 fixed a crash that happens when its width becomes so small.
26196 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
26198 * CheckedListBox.cs: Fixes bug 76028
26199 * ListBox.cs: Fixes bug 76028
26201 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
26203 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
26204 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
26206 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
26208 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
26210 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
26212 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
26214 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
26216 * IRootGridEntry.cs: Added
26217 * PropertyGridCommands.cs: Added
26218 * PropertiesTab.cs: Added missing methods and property
26219 * PropertyGridView.cs: Made class internal
26220 * PropertyGridTextBox.cs: Made class internal
26222 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
26224 * MimeIcon.cs: Try to check some other environment variables
26225 if "DESKTOP_SESSION" returns "default"
26227 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
26229 * ThemeNice.cs: Corrected background colors (e.g. menus)
26230 * ColorDialog.cs: Use correct background colors for controls
26232 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
26234 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
26236 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
26238 * RichTextBox.cs: Added initial implementation
26239 * lang.cs: Removed. Was accidentally checked in long time ago
26240 * TODO: Removed. Contents were obsolete
26242 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
26244 * PropertiesTab.cs : Added
26246 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
26248 * PropertyGrid.cs : Update
26249 * PropertyGridView.cs : Update
26250 * System.Windows.Forms.resx : Added images and strings
26252 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
26254 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
26256 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
26258 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
26259 a busy loop right after the Ungrab the X11 display is otherwise
26262 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
26264 * ThemeWin32Classic.cs: Optimise the use of clipping
26266 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
26268 * DataGrid.cs: fixes recursion bug
26270 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
26273 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
26276 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
26278 * ThemeNice.cs: Draw nice ProgressBars
26280 2005-09-01 Miguel de Icaza <miguel@novell.com>
26282 * VScrollBar.cs: Another buglet found by Aaron's tool.
26284 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
26287 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
26290 - Added nicer menu drawing
26294 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
26296 * CreateParams.cs (ToString): Made output match MS
26297 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
26298 handle is already created (to avoid forcing window creation)
26299 * XplatUIX11.cs: Set window text to caption after creating window,
26300 in case Text was set before window was created
26301 * Form.cs: Use this.Text instead of a static string as caption
26303 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
26305 * NotifyIcon.cs: Don't set the window to visible; this screws
26306 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
26307 OnPaint without a bitmap)
26308 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
26309 happen very often anyway; we could add the check to the WM_PAINT
26310 event generation code
26312 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
26314 * NotifyIcon.cs: Fill the icon area with a background color, to
26315 avoid 'residue' when transparent icons are drawn
26317 - Handle whole_window == client_window when destroying windows
26318 - SystrayAdd(): Set client_window to whole_window value to
26319 get mouse and other events passed to NotifyIcon
26321 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
26323 * Form.cs: Set proper default for Opacity property
26325 - ShowSystray(): Don't bother creating telling the OS
26326 about the systray item if no icon is provided
26327 - Now handles WM_NCPAINT message to deal with whole/client window
26329 - Create window as visible to not get caught by Expose optimization
26330 * Hwnd.cs: Removed debug message
26331 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
26332 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
26333 PaintEventStart/End to use new client argument
26335 - Commented out debug messages
26336 - Switched PaintEventStart/End to use new client argument
26337 * XplatUI.cs: Added client window bool to PaintEventStart()/
26338 PaintEventEnd() calls, to support drawing in non-client areas
26339 * XplatUIDriver.cs:
26340 - Added client window bool to PaintEventStart()/PaintEventEnd()
26341 calls, to support drawing in non-client areas
26342 - Added conditional compile to allow using MWF BeginInvoke
26345 - Added some conditional debug output
26346 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
26347 whole/client window split
26348 - Implemented handling of client argument to PaintEventStart()/End()
26350 - Throw exception if BeginInvoke() is called and the window handle
26351 or one of the window's parent handles is not created
26352 - Added conditional compile to allow using MWF BeginInvoke on
26354 - get_Parent(): Only sets parent if handle is created. This avoids
26355 forcing window handle creation when parent is set.
26356 - Now fires Layout and Parent changed events in proper order
26357 - Switched to use Handle instead of window.Handle for Z-Order setting,
26358 the get_Parent() patch above causes us to possibly get null for 'window'
26359 - Implemented handling of client argument to PaintEventStart()/End()
26360 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
26362 - Now sends a Refresh() to all child windows when Refresh() is called
26364 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
26366 * Form.cs: Added (non-functional) Opacity property
26367 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
26369 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
26370 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
26371 use export MONO_THEME=nice to activate it.
26372 Currently supported controls:
26376 - TabControl (TabAlignment.Top only, other will follow)
26377 * ThemeEngine.cs: Add theme nice
26378 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
26381 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
26383 * Splitter.cs: Resize docked control and its neighbor.
26385 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
26386 -- Making Windows with Menus layout correctly --
26387 * Form.cs : The first leg of the fix
26388 Menu setter - adjust Client Size as needed to make space for the menu
26389 SetClientSizeCore - doesn't call base version to be able to pass the
26390 menu handle to XplatUI.CalculateWindowRect
26391 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
26392 * XplatUIX11.cs: The critical second leg of the fix
26393 GetWindowPos needs to use a recalculated client_rect
26394 so that resizing the window doesn't break layout of child controls.
26395 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
26396 Lots of \t\n killed
26398 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
26400 * Label.cs: Now properly recalculates width and height on Font and Text
26401 changes if AutoSize is set
26403 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
26404 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
26406 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
26408 * ImageList.cs: Makes ToString method compatible with MS
26410 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
26412 * MenuAPI.cs: fixes bug 75716
26414 2005-08-11 Umadevi S <sumadevi@novell.com>
26415 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
26417 2005-08-11 Umadevi S <sumadevi@novell.com>
26418 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
26420 2005-08-10 Umadevi S <sumadevi@novell.com>
26421 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
26423 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
26425 * Menu.cs: fixes bug 75700
26426 * MenuAPI.cs: fixes navigation issues
26428 2005-08-09 Umadevi S <sumadevi@novell.com>
26429 * CheckedListBox.cs - simple fix for GetItemChecked.
26431 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
26433 * ComboBox.cs: Serveral fixes
26434 * ListBox.cs: Serveral fixes
26436 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
26438 * ComboBox.cs: Fixes FindString methods and GetItemHeight
26439 * ListBox.cs: Fixes FindString methods
26441 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
26443 * DataGrid.cs: fixes bugs exposed by new tests
26445 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
26447 * Mime.cs: Compile Mono assembly references only if compiling
26448 with Mono (Allows to build with VS.Net again)
26450 2005-07-28 Marek Safar <marek.safar@seznam.cz>
26452 * Control.cs (PaintControlBackground): Draw background image
26454 (CheckForIllegalCrossThreadCalls): Stubbed.
26456 * Form.cs (OnCreateControl): Center when should be centered.
26458 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
26460 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
26462 * Binding.cs: Binding to properties should be case unsensitive
26464 2005-07-18 vlindos@nucleusys.com
26466 * DataGrid.cs: fixes setmember order
26468 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
26470 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
26471 * FileDialog.cs: FileDialog is now resizable and uses the new
26474 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
26476 * DataGridTextBoxColumn.cs: default value
26477 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
26478 * GridTableStylesCollection.cs: fixes checking MappingName
26479 * DataGridDrawingLogic.cs: fixes drawing logic issues
26480 * DataSourceHelper.cs: rewritten to make compatible with more data sources
26481 * DataGrid.cs: fixes
26483 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
26485 * MimeGenerated.cs: Use case sensitive comparer for
26486 NameValueCollections
26488 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
26490 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
26491 * ThemeWin32Classic.cs: bug fixes, code refactoring
26492 * DataGridDrawingLogic.cs: bug fixes, code refactoring
26493 * DataGrid.cs: bug fixes, code refactoring
26494 * DataGridTextBox.cs: bug fixes, code refactoring
26495 * DataGridColumnStyle.cs: bug fixes, code refactoring
26496 * Theme.cs: bug fixes, code refactoring
26498 2005-07-01 Peter Bartok <pbartok@novell.com>
26500 * TextControl.cs: Quick fix for the reported crash on ColorDialog
26501 and other text box usage
26503 2005-07-01 Jackson Harper <jackson@ximian.com>
26505 * TabControl.cs: Make sure the bottom of the tab covers the pages
26508 2005-06-30 Peter Bartok <pbartok@novell.com>
26510 * Form.cs (ShowDialog): Assign owner of the dialog
26511 * TextBoxBase.cs: Always refresh caret size when deleting, caret
26512 might have been moved to a tag with different height
26514 2005-06-30 Jackson Harper <jackson@ximian.com>
26516 * Form.cs: Don't create an infinite loop when setting focus
26517 * MenuItem.cs: Don't dirty the parents if we don't have any
26519 2005-06-29 Ben Maurer <bmaurer@ximian.com>
26521 * LibSupport.cs: Rename
26523 2005-06-29 Peter Bartok <pbartok@novell.com>
26525 * TextBoxBase.cs: Re-align caret after deleting a character
26527 - DeleteChars(): Ensure that tag covers the provided position
26528 - StreamLine(): Drop reference for dropped tag
26530 2005-06-29 Peter Bartok <pbartok@novell.com>
26533 - Selections now work properly, anchoring at the initial location
26534 and properly extending in either direction (SetSelectionToCaret(),
26535 SetSelectionStart() and SetSelectionEnd())
26536 - No longer redraws the whole control on selection change, now
26537 calculates delta between previous and new selection and only
26538 invalidates/redraws that area
26539 - Fixed FindPos() math off-by-one errors
26540 - Changed DeleteChars() to verify the provided tag covers the
26541 provided position, selections may have a tag that doesn't cover
26542 the position if the selection is at a tag border
26543 - Fixed off-by-one errors in DeleteChars()
26544 - Added missing streamlining check in DeleteChars() to remove
26546 - Implemented Invalidate() method, now properly calculates exposures
26547 between two given lines/positions
26548 - Implemented SetSelection()
26549 - Obsoleted and removed FixupSelection()
26550 - Improved RecalculateDocument() logic, removing code duplication
26552 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26554 * LibSupport.cs: changes to match different input/output arguments.
26556 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26558 * LibSupport.cs: added libsupport.so init routine.
26560 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
26562 * ControlBindingsCollection.cs
26563 - Throws an exception on null datasource when adding
26564 - Checks for duplicated bindings when adding
26566 2005-06-28 Jackson Harper <jackson@ximian.com>
26568 * TreeView.cs (OnKeyDown): Support left and right properly
26569 (navigates as well as expanding and collapsing.
26570 - Add support for Multiply, this expands all the selected nodes
26572 - Fix some tabbing.
26574 2005-06-28 Jackson Harper <jackson@ximian.com>
26576 * TreeView.cs: Implement keyboard navigation, currently supports,
26577 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
26578 support for toggling checkboxes with the space bar.
26580 2005-06-28 Jackson Harper <jackson@ximian.com>
26582 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
26585 2005-06-28 Jackson Harper <jackson@ximian.com>
26587 * TreeView.cs: Add missing event.
26589 2005-06-27 Peter Bartok <pbartok@novell.com>
26592 - Made line ending size configurable (now allows for counting
26593 lineendings as \n or \r\n)
26594 - Added margin to viewport to keep caret visible on right side
26595 - Fixed translation routines for line/pos to documentpos to consider
26596 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
26597 - Fixed some line-endings to be unix style
26598 - Fixed Document.FormatText to perform it's calculations 1-based
26599 - Added descriptions for a few methods that might otherwise get
26601 - Added NOTE section with some basic conventions to remember at
26602 the top of the file
26603 - Major fixup for RichTextBox selection drawing:
26604 * Fixed crashes when multiple tags on a single line were selected
26605 * fixed selection box drawing not overlaying text
26606 * fixed bogus offset calculation for tags not starting at index 1
26607 * Switched behaviour from using multiple Substrings of a
26608 StringBuilder.ToString() to using multiple
26609 StringBuilder.ToString(start, length) statements, hoping this is
26610 faster (kept original version commented out in the code, in case
26611 original version was faster)
26612 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
26614 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
26617 2005-06-27 Jackson Harper <jackson@ximian.com>
26619 * TabControl.cs: Move to the left and right with the arrow
26620 keys. These keys don't cycle beyond first and last like
26621 tab. Refresh all the tabs when scrolling them to the left or
26624 2005-06-27 Jackson Harper <jackson@ximian.com>
26627 - ToString: Added method
26628 - CreateParams: Remove TODO and comment
26629 - OnKeyDown: Cycle through bounds properly.
26630 - SelectedIndex: Scroll to the right or left if we need to
26631 display the newly selected tab.
26633 2005-06-23 Jackson Harper <jackson@ximian.com>
26635 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
26638 2005-06-23 Jackson Harper <jackson@ximian.com>
26640 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
26641 CTRL-SHIFT-TAB, and HOME, END are there any others?
26643 2005-06-23 Jackson Harper <jackson@ximian.com>
26645 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
26647 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
26649 * DataGridTextBoxColumn.cs: fixes and enhancements
26650 * ThemeWin32Classic.cs: fixes and enhancements
26651 * DataGridBoolColumn.cs: fixes and enhancements
26652 * DataGridDrawingLogic.cs: fixes and enhancements
26653 * CurrencyManager.cs: fixes and enhancements
26654 * DataGrid.cs: fixes and enhancements
26655 * DataGridColumnStyle.cs: fixes and enhancements
26657 2005-06-22 Jackson Harper <jackson@ximian.com>
26659 * TabControl.cs: Add some missing methods that just call into the
26660 base. Make the TabPageCollection's IList interface behave in the
26661 same manner as the MS implementation.
26663 2005-06-22 Peter Bartok <pbartok@novell.com>
26665 * TextControl.cs: Added sanity check
26667 - Fixed wrapping behaviour, don't set wrap on single line controls
26668 (this fixes the breakage of colordialog introduced in an earlier
26670 - Added rudimentary support for autoscrolling right-aligned controls
26671 (still needs fixing, also, center alignment scroll is missing)
26673 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
26675 * ScrollBar.cs: Fixes thumbpos on Maximum values
26677 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
26679 * PropertyGridView.cs: Pass context information to UITypeEditors
26681 2005-06-21 Peter Bartok <pbartok@novell.com>
26684 - Now calling PositionCaret with absolute space coordinates
26685 - Enabled vertical scrolling
26686 - Better tracking of scrollbar changes, tied into WidthChange
26688 - Improved cursor tracking
26689 - Removed debug output
26691 - PositionCaret coordinates are now works in absolute space, not
26693 - Improved tracking of document size
26694 - Added events for width and height changes
26696 2005-06-21 Peter Bartok <pbartok@novell.com>
26698 * Form.cs: Set focus to active control when form is activated
26700 - Added word-wrap functionality to RecalculateLine()
26701 - Added some short function descriptions for VS.Net to aid in
26702 writing dependent controls
26703 - Added Caret property, returning the current coords of the caret
26704 - Added ViewPortWidth and ViewPortHeight properties
26705 - Added Wrap property
26706 - Added CaretMoved event
26707 - Removed some old debug code
26708 - Split() can now create soft splits
26709 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
26710 - Added method to format existing text
26711 - Fixed size/alignment calculations to use viewport
26712 - RecalculateDocument now can handle changing line-numbers while
26716 - Added some wrap logic, we don't wrap if alignment is not left
26717 - Added casts for scrollbar var, base class switched types to
26718 also support RichTextBoxA
26719 - Implemented handling of scrollbar visibility flags
26722 - Switched scrollbars type to RichTextBoxScrollBars to support
26724 - Added tracking of canvas width/height
26725 - Switched scrollbars to be not selectable (to keep focus on text)
26726 - Added central CalculateDocument() method to handle all redraw
26728 - Added ReadOnly support
26729 - Added WordWrap support
26730 - Fixed handling of Enter key (we now treat it as a DialogKey)
26731 - Fixed caret positioning when h or v scroll is not zero
26732 - Fixed placing/generation of vertical scrollbar
26733 - Added CalculateScrollBars() method to allow updating scrollbar
26734 limits and visibility
26735 - Fixed handling of horizontal scroll
26736 - Added handling of vertical scroll
26737 - Implemented auto-'jump' when caret moves to close to a left or
26738 right border and there is text to be scrolled into view (currently
26739 there's the potential for a stack overflow, until a bug in
26740 scrollbar is fixed)
26742 2005-06-21 Geoff Norton <gnorton@customerdna.com>
26744 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
26746 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
26750 - return application/x-zerosize for files with size zero
26751 (if no extension pattern matches).
26752 - check matches collection for strings too.
26753 - return only the first mime type if the name value
26754 collection has more than one mime type.
26756 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
26758 * PropertyGrid.cs: Cleaned up some TODOs
26759 * PropertyGridView.cs: Added support for UITypeEditors
26761 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
26763 * DataGrid.cs: clears cached value
26765 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
26767 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
26768 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
26769 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
26770 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
26772 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
26774 * ThemeWin32Classic.cs: fixes colour
26776 2005-06-15 Peter Bartok <pbartok@novell.com>
26778 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
26779 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
26780 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
26781 * Control.cs: Added some MWFCategory and MWFDescription attributes
26782 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
26784 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
26786 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
26789 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
26791 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
26792 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
26793 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
26794 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
26795 * DataGrid.cs: default datagrid settings for Default Styles, fixes
26796 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
26798 2005-06-13 Jackson Harper <jackson@ximian.com>
26800 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
26801 isn't printed when the user enables dropping. (X11 does accept
26804 2005-06-13 Jackson Harper <jackson@ximian.com>
26806 * TreeView.cs: Remove some TODOS.
26808 2005-06-13 Jackson Harper <jackson@ximian.com>
26810 * Form.cs: Hook into the mdi framework.
26811 * MdiClient.cs: Use the base control collections add method so
26812 parents get setup correctly. Set the default back colour and dock
26814 * MdiChildContext.cs: New class, this bad actor handles an
26815 instance of an MDI window. Right now there is only basic
26816 support. You can drag, close, and resize windows. Minimize and
26817 Maximize are partially implemented.
26819 2005-06-13 Jackson Harper <jackson@ximian.com>
26821 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
26822 freaky when both vals are negative. NOTE: There are probably other
26823 places in XplatUIX11 that this needs to be done.
26825 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
26827 * DataGrid.cs: implement missing methods, move KeyboardNavigation
26828 * DataGridColumnStyle.cs: fixes signature
26830 2005-06-12 Jackson Harper <jackson@ximian.com>
26832 * XplatUIX11.cs: Use sizing cursors similar to the ones on
26835 2005-06-11 Jackson Harper <jackson@ximian.com>
26837 * StatusBarPanel.cs: Signature cleanups. Implement
26840 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
26842 * DataGridTextBoxColumn.cs: Honors aligment
26843 * GridColumnStylesCollection.cs: Contains is case unsensitive
26844 * GridTableStylesCollection.cs: several fixes
26845 * DataGridTableStyle.cs: default column creation
26846 * DataGridDrawingLogic.cs: fixes
26847 * CurrencyManager.cs: ListName property
26848 * DataGrid.cs: multiple styles support
26849 * DataGridColumnStyle.cs: fixes
26852 2005-06-10 Peter Bartok <pbartok@novell.com>
26854 * Control.cs(Select): Moved SetFocus call to avoid potential
26855 loops if controls change the active control when getting focus
26856 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
26857 the up/down buttons
26859 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
26861 * ImageListConverter.cs: Implemented
26863 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
26865 * MonthCalendar.cs: Wired in NumericUpDown control for year
26867 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
26869 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
26870 DoubleClick events, since they are not meant to be fired.
26872 2005-06-09 Peter Bartok <pbartok@novell.com>
26874 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
26875 Jonathan's standalone controls into MWF, implemented missing
26876 events, attributes and methods; added xxxAccessible classes
26877 * AccessibleObject.cs: Made fields internal so other classes
26878 can change them if needed
26880 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
26882 * UpDownBase.cs: Complete implementation
26883 * NumericUpDown.cs: Complete implementation
26884 * DomainUpDown.cs: Complete implementation
26886 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
26888 * DataGridTextBoxColumn.cs: drawing fixes
26889 * DataGridCell.cs: fixes ToString method to match MSNet
26890 * DataGridTableStyle.cs: fixes
26891 * DataGridBoolColumn.cs: fixes, drawing
26892 * DataGridDrawingLogic.cs: fixes, new methods
26893 * DataGridTextBox.cs: Keyboard and fixes
26895 - Keyboard navigation
26897 - Row selection (single, multiple, deletion, etc)
26900 2005-06-07 Jackson Harper <jackson@ximian.com>
26902 * ThemeWin32Classic.cs: Clear the background area when drawing
26905 2005-06-06 Peter Bartok <pbartok@novell.com>
26907 * ImageListStreamer.cs: Fixed signature for GetData
26908 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
26910 - Added missing ChildAccessibleObject class
26911 - Added missing OnXXXFocus overrides, switched to using those
26912 instead of the event handler
26914 - Added Parent property for ControlAccessibleObject
26917 - Added ResetBindings()
26918 * ListBindingConverter.cs: Implemented some methods
26919 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
26920 * ImageList.cs: Implemented basic handle scheme, removed TODOs
26921 * ContainerControl.cs: Fixed signature, now subscribing to the
26922 ControlRemoved event instead of overriding the handler, LAMESPEC
26923 * CurrencyManager.cs: Added missing attribute
26924 * MonthCalendar.cs: Added missing properties
26926 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
26928 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
26930 2005-06-06 Gaurav Vaish and Ankit Jain
26932 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
26933 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
26935 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
26937 * Control.cs: fixes CreateParams Width / Height.
26939 2005-06-05 Peter Bartok <pbartok@novell.com>
26941 * Win32DnD.cs: Removed compilation warnings
26943 2005-06-05 Peter Bartok <pbartok@novell.com>
26945 * Control.cs (CreateParams): Since we don't know if one of the
26946 properties we use is overridden, lets make sure if we fail accessing
26947 we continue with a backup plan
26949 2005-06-05 Peter Bartok <pbartok@novell.com>
26952 - Removed debug output
26953 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
26955 - Plugged resource leak
26956 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
26959 2005-06-05 Peter Bartok <pbartok@novell.com>
26961 * XplatUIWin32.cs: Removed DnD code
26962 * Win32DnD.cs: Implemented drop source and drop target functionality
26964 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26966 * UpDownBase.cs: remove duplicate addition of event, enable some code
26967 that was commented out.
26968 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
26969 Validate input when a key is pressed. It works fine now for every
26970 combination of Hexadecimal. Only missing some drawing love when sharing
26971 space with other controls.
26973 2005-06-04 Peter Bartok <pbartok@novell.com>
26976 - We need to pass a window for DragDrop, so enable callback events
26977 - Added DnD callback events when being a DragSource
26978 * XplatUI.cs (StartDrag): Added window handle argument
26979 * XplatUIDriver.cs (StartDrag): Added window handle argument
26980 * QueryContinueDragEventArgs: Made fields internally accessible so
26981 drivers can set them
26982 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
26985 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
26987 * DataGridTextBoxColumn.cs: column text editing
26988 * DataGridTableStyle.cs: Respect columns styles created by the user
26989 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
26990 * DataGridBoolColumn.cs: bool column editing
26991 * DataGrid.cs: fixes to scrolling, properties, etc
26992 * DataGridTextBox.cs: handle keyboard
26993 * DataGridColumnStyle.cs: fixes
26995 2005-06-02 Jackson Harper <jackson@ximian.com>
26997 * ImageListStreamer.cs: Somewhat broken implementation of
26998 GetObjectData. The RLE needs some work to match MS properly.
27000 2005-06-02 Jackson Harper <jackson@ximian.com>
27002 * X11Dnd.cs: Attempting to keep at least one file in MWF
27005 2005-06-02 Peter Bartok <pbartok@novell.com>
27007 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
27010 2005-06-02 Peter Bartok <pbartok@novell.com>
27012 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
27013 * XplatUI.cs: Added DoDragDrop() method
27014 * XplatUIDriver.cs: Added DoDragDrop() method
27016 2005-06-02 Jackson Harper <jackson@ximian.com>
27018 * Splitter.cs: Implement BorderStyle.
27020 2005-06-02 Jackson Harper <jackson@ximian.com>
27022 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
27023 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
27026 2005-06-02 Peter Bartok <pbartok@novell.com>
27029 - Added Data setter
27030 - Fixed broken insertion code for SetData, now also
27031 overwrites any existing entry of the same format name
27032 * Hwnd.cs: Added list of pointers that automatically gets
27033 freed when the window is disposed
27034 * XplatUI.cs: Call driver initialization method when loading
27037 - OnDragLeave takes EventArgs, not DragEventArgs
27038 - Added setting of WS_EX_ACCEPTFILES style when dropping is
27040 - Forces style update when drop state changes
27041 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
27042 not perfect since we cannot (yet) call the IDataObject.GetData()
27043 method, we keep getting 0x80004005 error, dunno why)
27045 2005-06-02 Peter Bartok <pbartok@novell.com>
27047 * DragEventArgs.cs: Make fields internal so we can cache the
27048 object and re-set the fields from XplatUI
27050 2005-06-02 Jackson Harper <jackson@ximian.com>
27052 * Control.cs: Add some internal methods so the DnD subsystem can
27053 raise DnD events. Also call into the driver when AllowDrop is set.
27055 * XplatUIDriver.cs: New method for setting whether or not a window
27056 is allowed to accept drag and drop messages.
27058 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
27060 * ScrollBar.cs: Make sure that values sent in Scroll events
27061 are always between Maximum and Minimum.
27063 2005-06-01 Marek Safar <marek.safar@seznam.cz>
27065 * Menu.cs: Call MenuChanged when menuitem visibility has been
27067 * MenuItem.cs: Rebuild menu when item is (not) visible.
27068 * MainMenu.cs: MainMenu has special MenuChanged.
27069 * Theme.cs: Caption and FrameBorderSize are not fixed.
27070 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
27071 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
27073 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
27074 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
27076 2005-05-30 Jackson Harper <jackson@ximian.com>
27078 * DataFormat.cs: We can't statically initialize this stuff because
27079 it calls into the xplatui and could create a loop. So we lazy init
27082 2005-05-28 Jackson Harper <jackson@ximian.com>
27084 * Control.cs: Proper implementation of Product(Name/Version).
27086 2005-05-27 Jackson Harper <jackson@ximian.com>
27088 * DataObject.cs: Dont crash if no data is found.
27090 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
27091 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
27092 as per status page, guessing it should be set to true
27094 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
27096 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
27097 * DataGridTableStyle.cs: set proper formatting text, def header text
27098 * ThemeWin32Classic.cs: new themable paramaters
27099 * DataGridBoolColumn.cs: paint check box, get data, fixes
27100 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
27101 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
27102 * DataGridColumnStyle.cs: fixes
27103 * Theme.cs: new themable paramaters
27105 2005-05-26 Peter Bartok <pbartok@novell.com>
27107 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
27109 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
27110 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
27112 2005-05-24 Peter Bartok <pbartok@novell.com>
27114 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
27115 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
27116 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
27117 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
27118 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
27119 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
27120 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
27121 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
27122 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
27123 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
27124 missing attributes, etc
27125 * DataGridPreferredColumnWidthTypeConverter.cs: Added
27127 2005-05-24 Peter Bartok <pbartok@novell.com>
27129 * Help.cs: Added, implemented trivial functions, throws up MessageBox
27130 when user tries to get help
27131 * DataObject.cs, DataFormats.cs, LinkArea.cs,
27132 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
27133 to suppress warnings
27134 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
27135 avoid unreachable code warning
27137 2005-05-20 Peter Bartok <pbartok@novell.com>
27139 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
27141 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
27143 * DataGridTextBoxColumn.cs: Basic painting methods
27144 * DataGridTableStyle.cs: Set table style in the column
27145 * ThemeWin32Classic.cs: Use Theme for colors
27146 * DataGridDrawingLogic.cs: Implement more drawing
27147 * DataGrid.cs: drawing, theming, enhacements, fixes
27148 * DataGridColumnStyle.cs: fixes, drawing
27149 * Theme.cs: theming for Datagrid
27151 2005-05-20 Peter Bartok <pbartok@novell.com>
27153 * Cursor.cs: Implemented GetObjectData() method
27155 2005-05-20 Peter Bartok <pbartok@novell.com>
27157 * Cursors.cs: Added setting of cursor name
27159 - Implemented constructors
27160 - Implemented Draw and DrawStretched
27161 - Implemented Current property
27162 - Implemented == and != operators
27163 - Implemented Dispose()
27164 - Implemented ToString
27165 - Added missing attributes
27167 - Added missing reset for OverrideCursor when DoEvents is called
27168 - Fixed creation of cursor, logic was wrong
27170 - Added missing reset for OverrideCursor when DoEvents is called
27171 - Fixed creation of cursor, bit arrays were swapped
27172 * Clipboard.cs: Removed obsolete MonoTODO attribute
27174 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
27176 * ComboBox.cs: fixes OnSelectedItemChanged
27177 * ControlBindingsCollection.cs: fixes item range check
27179 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
27182 - Calc preferred height properly
27183 - Implement missing properties
27185 * NumericUpDown.cs: Implement missing events
27187 2005-05-19 Jackson Harper <jackson@ximian.com>
27189 * TabControl.cs: New method that resizes the tab pages before
27190 redrawing them. This as needed as the control is double buffered
27191 and sizing will not be recalculated unless ResizeTabPages is
27193 * TabPage.cs: Set base.Text instead of Text in the constructor so
27194 that UpdateOwner does not get called. Use the new Redraw method of
27195 TabControl instead of Refresh so the sizing is recalculated.
27196 * ThemeWin32Classic.cs: Draw the text for button tabs.
27198 2005-05-19 Jackson Harper <jackson@ximian.com>
27200 * Control.cs: Paint control background images. Fix typo where
27201 PaintControlBackground was not getting called correctly.
27203 2005-05-19 Peter Bartok <pbartok@novell.com>
27205 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
27206 I can investigate, apparently I broke FileDialog
27208 2005-05-19 Marek Safar <marek.safar@seznam.cz>
27210 * AxHost.cs: Some simple properties.
27211 * Control.cs: window must be accessible after ctor.
27212 * Form.cs: Added TransparencyKey property.
27213 * TextBoxBase.cs: Implemented Clear. Text property can be null.
27214 * XplatUIWin32.cs: SetBorderStyle implemented.
27216 2005-05-18 Peter Bartok <pbartok@novell.com>
27218 * DataObject.cs: Entries are not global but particular to the
27219 DataObject, now it behaves that way
27220 * XplatUIWin32.cs: Implemented Clipboard methods
27221 * Clipboard.cs: Implemented
27222 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
27223 * XplatUIOSX.cs: Updated to final clipboard prototypes
27224 * XplatUIX11.cs: Implemented Clipboard methods
27225 * XplatUIDriver.cs: Updated to final clipboard prototypes
27226 * XplatUIStructs.cs:
27227 - Added BITMAPINFOHEADER struct
27228 - Added ClipboardFormats enum
27230 - Added ClipboardStruct
27231 - Added Atom enum items for clipboard types
27232 - Fixed atom types for Selection event structures
27234 - Added internal properties and methods for drivers to enumerate
27236 - Switched initialization method to allow drivers to assign their
27237 own IDs even for the MS predefined clipboard IDs
27238 * XplatUI.cs: Updated to final clipboard interface
27240 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
27241 * PropertyGridView.cs: Fixed compiler warnings.
27243 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
27244 * PropertyGrid.cs: Added some event calls
27245 * PropertyGridView.cs: Change drawing code to use double buffering
27246 * PropertyGridTextBox.cs: Changed Text property name
27247 * GridItem.cs: Added Bounds property.
27248 * GridEntry.cs: Added Bounds property.
27250 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
27252 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
27253 since GetType() may not return the correct type if the object is
27256 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
27258 * TreeNodeCollection.cs: fixes get/set item ranges
27260 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
27262 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
27264 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
27266 * ComboBox.cs: Fix item range comparation
27267 * ListView.cs: Fix item range comparation
27269 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
27272 - Clear example panel when OnPaint is called
27273 - Better solution for displaying the example panel text
27274 - Select default indexes in the ListBoxes
27276 2005-05-11 Geoff Norton <gnorton@customerdna.com>
27278 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
27280 2005-05-11 Peter Bartok <pbartok@novell.com>
27282 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
27283 * SelectionRangeConverter.cs: Implemented
27284 * PropertyGrid.cs: Fixed attribute value
27286 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
27287 - Added Sebastien Pouliot's CAS Stack Propagation fixes
27288 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
27289 that's common to all drivers. First methods to go there are
27290 Sebastien Pouliot's CAS Stack Propagation helper methods
27291 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
27292 Sebastien Pouliot for CAS Stack Propagation
27294 2005-05-11 Geoff Norton <gnorton@customerdna.com>
27297 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
27299 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
27301 * DataGridTextBoxColumn.cs: fixed some members
27302 * GridColumnStylesCollection.cs: indexed column is case insensitive
27303 * DataGridTableStyle.cs: fixes
27304 * ThemeWin32Classic.cs: add new theme parameter
27305 * Theme.cs: add new theme parameter
27306 * DataGridDrawingLogic.cs: Datagrid's drawing logic
27307 * DataGrid.cs: fixes, new internal properties, etc.
27308 * DataGridColumnStyle.cs: allows to set grid value
27311 2005-05-10 Peter Bartok <pbartok@novell.com>
27313 * AccessibleObject.cs:
27314 - Removed MonoTODO attribute on help, method is correct
27315 - Fixed Bounds property
27316 * AxHost.cs: Moved MonoTODO
27317 * ButtonBase.cs: Now setting AccessibleObject properties
27318 * RadioButton.cs: Setting proper AccessibleObject role
27319 * CheckBox.cs: Setting proper AccessibleObject role
27320 * ControlBindingsCollection.cs: Added properties, methods and attributes
27321 * DataFormats.cs: Fixed awkward internal API, and changed to enable
27322 userdefined DataFormats.Format items as well
27323 * ListControl.cs: Removed data_member from the public eye
27324 * OpenFileDialog.cs:
27325 - Made class sealed
27326 - Added missing attributes
27327 * SaveFileDialog.cs: Added missing attributes
27328 * ImageListStreamer.cs: Fixed code that caused warnings
27329 * LinkLabel.cs: Removed unreachable code
27330 * TreeView.cs: Fixed code that caused warnings
27331 * PropertyGridView.cs: Fixed code that caused warnings
27332 * GridColumnStylesCollection.cs: Added missing attributes
27333 * GridTableStylesCollection: Added missing attribute
27334 * PropertyManager: Added .ctor
27335 * SecurityIDType: Added
27336 * DataObject.cs: Implemented class
27337 * LinkArea.cs: Added missing attribute
27339 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
27341 * RadioButton.cs: call base method to allow to fire OnClick event
27342 * UpDownBase.cs: OnMouseUp call base method
27343 * CheckedListBox.cs: call base method before returning
27344 * TrackBar.cs: call base method before returning
27347 2005-05-10 Peter Bartok <pbartok@novell.com>
27349 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
27352 2005-05-10 Peter Bartok <pbartok@novell.com>
27354 * DataFormats.cs: Implemented
27355 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
27356 XplatUIX11.cs: Added Clipboard APIs
27357 * XplatUIWin32.cs: Implemented Clipboard APIs
27358 * FolderBrowserDialog.cs: Added missing event, attributes
27360 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
27362 * CheckBox.cs: call base method to allow to fire OnClick event
27364 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
27366 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
27368 2005-05-06 Peter Bartok <pbartok@novell.com>
27370 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
27371 * Screen.cs: Implemented
27372 * HelpNavigator.cs: Added
27373 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
27375 * HelpProvider.cs: Implemented all we can do until we have a CHM
27376 help library (which means that "What's This" does work now)
27378 2005-05-06 Jackson Harper <jackson@ximian.com>
27380 * XplatUIX11.cs: Fix waking up the main loop.
27382 2005-05-05 Peter Bartok <pbartok@novell.com>
27384 * XplatUI.cs: Updated revision
27385 * Form.cs: Removed enless loop
27386 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
27387 * Label.cs (OnPaint): Added call to base.OnPaint()
27388 * ToolTip.cs: Made ToolTipWindow reusable for other controls
27389 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
27390 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
27392 * ButtonBase.cs: Moved base.OnPaint() call to end of method
27393 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
27394 to ToolTip.ToolTipWindow for drawing and size methods; this allows
27395 reuse of ToolTipWindow by other controls
27396 * SizeGrip.cs: Moved base.OnPaint() call to end of method
27397 * XplatUIX11.cs: Now clipping drawing area (experimental)
27398 * PictureBox.cs: Moved base.OnPaint() call to end of method
27399 * Theme.cs: Fixed ToolTip abstracts to match new format
27400 * ErrorProvider.cs: Implemented
27402 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
27404 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
27408 - Implements LinkBehavior
27409 - Fixes many issues
27411 2005-05-03 Jackson Harper <jackson@ximian.com>
27413 * ListView.cs: Calculate the scrollbar positioning on resize and
27414 paint, so they get put in the correct place.
27416 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
27418 * ColorDialogs.cs: The small color panels are now handled by
27419 SmallColorControl. This fixes drawing of the focus rectangle
27420 and adds a 3D border.
27422 2005-05-03 Peter Bartok <pbartok@novell.com>
27424 * Control.cs: Modified version of Jonathan Chamber's fix for
27427 2005-05-03 Jackson Harper <jackson@ximian.com>
27429 * ListView.cs: Remove redraw variable. Control now handles whether
27430 or not a redraw needs to be done, and will only raise the paint
27431 event if redrawing is needed.
27433 2005-05-03 Jackson Harper <jackson@ximian.com>
27435 * Splitter.cs: No decorations for the splitter form. Cache the
27438 2005-05-03 Jackson Harper <jackson@ximian.com>
27440 * TreeView.cs: Use dashed lines to connect nodes. Use the
27441 ControlPaint method for drawing the focus rect instead of doing
27444 2005-05-02 Peter Bartok <pbartok@novell.com>
27446 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
27448 2005-04-29 Jackson Harper <jackson@ximian.com>
27450 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
27451 entire image buffer. Just clear the clipping rectangle.
27453 2005-04-29 Jackson Harper <jackson@ximian.com>
27455 * ThemeWin32Classic.cs: Don't draw list view items that are
27456 outside the clipping rectangle.
27458 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
27460 * ListBox.cs: added horizontal item scroll
27462 2005-04-29 Jackson Harper <jackson@ximian.com>
27464 * ThemeWin32Classic.cs: Remove some old debug code that was
27465 causing flicker with the new double buffering code.
27467 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
27469 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
27470 behave like combobox and comboboxlist (still not sure if this is
27473 2005-04-28 Jackson Harper <jackson@ximian.com>
27475 * ThemeWin32Classic.cs: Don't fill the middle of progress
27476 bars. This fills areas outside of the clip bounds that don't need
27479 2005-04-28 Jackson Harper <jackson@ximian.com>
27481 * Control.cs: Don't expose functionality to touch the image buffers.
27483 * ListView.cs: We do not need to (and no longer can) manipulate
27484 the image buffers directly. All of this is handled by Control.
27486 2005-04-28 Peter Bartok <pbartok@novell.com>
27488 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
27489 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
27490 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
27492 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
27495 - Adjust control's height for non-simple comboboxes (bug fix)
27497 * MenuAPI.cs: remove unused var
27498 * ScrollBar.cs: remove unsed var
27500 * ListBox.cs: unselect items when clearing
27502 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
27504 * ListControl.cs: honors OnPositionChanged and default Selected Item
27505 * ListBox.cs: unselect items when clearing
27507 2005-04-27 Jackson Harper <jackson@ximian.com>
27509 * X11Keyboard.cs: Initialize a default keyboard and give a warning
27510 if a "correct" keyboard is not found. This will make us not crash,
27511 but might give some users bad keyboard layouts...seems to be the
27512 same thing rewind does.
27514 2005-04-27 Jackson Harper <jackson@ximian.com>
27516 * BindingManagerBase.cs: Attach the current/position changed
27517 handlers to their respective events.
27519 2005-04-27 Jackson Harper <jackson@ximian.com>
27521 * Control.cs: Make sure that the first WM_PAINT does a full draw,
27523 * ThemeWin32Classic.cs: Don't fill the background for picture
27524 boxes. This could overright user drawing.
27525 * ComboBox.cs: Just fill the clipping rect not the entire client
27526 rect when drawing the background. This prevents pieces of the
27527 image buffer from getting overwritten and is theoretically faster.
27529 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
27531 * ComboBox.cs: Databinding support fixes, fire missing events
27532 * ListControl.cs: implement missing methods and properties, fixes
27533 * ThemeWin32Classic.cs: Databiding support on Drawing
27534 * CheckedListBox.cs: Databinding support fixes, fire missing events
27535 * ListBox.cs: Databinding support fixes, fire missing events
27537 2005-04-25 Peter Bartok <pbartok@novell.com>
27539 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
27541 2005-04-25 Jackson Harper <jackson@ximian.com>
27543 * TreeView.cs: Use the horizontal scrollbars height not width when
27544 determining how much of the client area is available.
27546 2005-04-25 Jackson Harper <jackson@ximian.com>
27548 * Control.cs: Double buffering is handled differently now. As per
27549 the spec, the extra buffer is created in the WM_PAINT message and
27550 passed down to the control's drawing code.
27558 * PropertyGridView.cs:
27570 * DateTimePicker.cs:
27572 * TreeView.cs: Update to new double buffering system.
27573 * MonthCalendar.cs: Uncomment block, as Capture is now
27574 working. Update to new double buffering
27575 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
27576 * PaintEventArgs.cs: New internal method allows us to set the
27577 graphics object. This is used for double buffering.
27578 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
27579 rectangle. The internal paint_area var has been removed from
27580 StatusBar. The clipping rect should be used instead.
27581 * Theme.cs: Give the PictureBox drawing method a clipping rect.
27582 * TabPage.cs: The RefreshTabs method was removed, so just call the
27583 tab controls Refresh method now.
27584 * TabControl.cs: Update to new double buffering. Make sure the
27585 handle is created before sizing the tab pages, otherwise we will
27586 get stuck in a loop.
27588 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
27590 * LinkLabel.cs: Fix typo, bug #74719; patch
27591 from Borja Sanchez Zamorano
27593 2005-04-22 Jackson Harper <jackson@ximian.com>
27595 * TreeNode.cs: Implement Handle stuff.
27596 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
27598 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
27600 * DataGridTextBoxColumn.cs: call base constructors, fixes
27601 * GridColumnStylesCollection.cs: missing events, methods, and functionality
27602 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
27603 * DataGridTableStyle.cs: implements create default column styles
27604 * DataGridBoolColumn.cs: which types can handle
27605 * DataGrid.cs: missing methods, fixes, new functionality
27606 * DataGridColumnStyle.cs: fixes
27608 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
27609 * FolderBrowserDialog.cs:
27610 - Use a thread to fill the TreeView
27611 - Adjusted some sizes
27613 2005-04-19 Peter Bartok <pbartok@novell.com>
27615 * LinkLabel.cs: (Re-)create the pieces when setting the Text
27616 property. Fixes #74360.
27618 2005-04-19 Jackson Harper <jackson@ximian.com>
27620 * XEventQueue.cs: Lock when getting the lockqueue size.
27621 * PictureBox.cs: Call base OnPaint
27623 2005-04-19 Peter Bartok <pbartok@novell.com>
27625 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
27626 messages were no longer being processed (this broke BeginInvoke)
27629 2005-04-18 Jackson Harper <jackson@ximian.com>
27631 * TreeView.cs: buglet that caused node images to get drawn
27632 regardless of whether or not they were in the clipping rectangle.
27634 2005-04-18 Jackson Harper <jackson@ximian.com>
27636 * CurrencyManager.cs: There are four rules for GetItemProperties:
27637 - If the type is an array use the element type of the array
27638 - If the type is a typed list, use the type
27639 - If the list contains an Item property that is not an object, use
27641 - use the first element of the list if there are any elements in
27644 2005-04-17 Jackson Harper <jackson@ximian.oom>
27646 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
27647 click. This handles offsets for scrolling properly and reduces
27648 memory. Also fixed GetNode to not offset now that TopNode works
27650 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
27652 2005-04-17 Jackson Harper <jackson@ximian.com>
27654 * CursorConverter.cs: Initial implementation.
27656 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
27658 * ListControl.cs: work towards complex data binding support on ListControl
27659 * CurrencyManager.cs: work towards complex data binding support on ListControl
27660 * ListBox.cs: work towards complex data binding support on ListControl
27663 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
27665 * GridTableStylesCollection.cs: fixes name and constructor
27666 * DataGridTableStyle.cs: fixes
27667 * DataGridBoolColumn.cs: fixes names and constructors
27668 * DataGrid.cs: define methods and properties. Some init implementations
27669 * DataGridCell.cs: define methods and properties. Some init implementations
27670 * GridTablesFactory.cs: Define methods and properties
27672 2005-04-15 Geoff Norton <gnorton@customerdna.com>
27674 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
27675 graphics port changes. We still want the coordinates in global screen
27678 2005-04-14 Jackson Harper <jackson@ximian.com>
27680 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
27681 check plus minus or checkbox clicks unless those features are enabled.
27683 2005-04-14 Jackson Harper <jackson@ximian.com>
27685 * TreeView.cs: Add methods for setting the top and bottom visible
27686 nodes. TreeNode::EnsureVisible uses these methods.
27687 * TreeNode.cs: Implement EnsureVisible
27689 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
27691 * Form.cs: Pospone menu assignation if the window has not been created yet
27692 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
27695 2005-04-12 Jackson Harper <jackson@ximian.com>
27697 * TreeView.cs: Set the TopNode properly when scrolling
27698 occurs. This has the added benifit of reducing the amount of
27699 walking that needs to be done when drawing. Also removed an old
27701 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
27703 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
27705 * Timer.cs: fixes interval setting when the timer is already enabled
27707 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
27709 * FolderBrowserDialog.cs: First approach
27711 2005-04-09 Peter Bartok <pbartok@novell.com>
27713 * FolderBrowserDialog: Added
27715 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
27717 * LinkLabel.cs: move drawing code into the theme
27718 * ThemeWin32Classic.cs: drawing code and painting background bugfix
27719 * Theme.cs: define DrawLinkLabel method
27721 2005-04-05 Jackson Harper <jackson@ximian.com>
27723 * BindingContext.cs: Use weak references so these bad actors don't
27724 stay alive longer then they need to.
27726 2005-04-05 Jackson Harper <jackson@ximian.com>
27728 * ListControl.cs: Basic implementation of complex databinding.
27730 * ListBox.cs: Add calls to ListControl databinding methods.
27732 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
27735 - Don't change PopupButtonState to Normal when the
27736 PopupButton gets pressed several times.
27737 - Renamed ButtonPanel to PopupButtonPanel
27739 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
27741 * ColorDialog.cs: Use cached objects instead of creating them
27742 * LinkLabel.cs: Use cached objects instead of creating them
27743 * Splitter.cs: Use cached objects instead of creating them
27744 * FontDialog.cs: Use cached objects instead of creating them
27745 * PropertyGridView.cs: Use cached objects instead of creating them
27746 * MessageBox.cs: Use cached objects instead of creating them
27747 * FileDialog.cs: Use cached objects instead of creating them
27748 * ThemeWin32Classic.cs: Use cached objects instead of creating them
27749 * TreeView.cs: Use cached objects instead of creating them
27751 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
27753 * Control.cs: use Equals to compare the font since no == op
27754 * ScrollBar.cs: use Equals to compare the font since no == op
27756 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
27758 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
27760 2005-04-01 Jackson Harper <jackson@ximian.com>
27762 * Binding.cs: Implement IsBinding.
27763 * BindingManagerBase.cs:
27764 * PropertyManager.cs:
27765 * CurrencyManager.cs: Add IsSuspended property.
27767 2005-04-01 Jackson Harper <jackson@ximian.com>
27769 * Binding.cs: Had some IsAssignableFrom calls backwards.
27771 2005-04-01 Jackson Harper <jackson@ximian.com>
27773 * Binding.cs: Handle null data members when pulling data.
27774 * PropertyManager.cs: Handle the data member being a property that
27777 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
27779 * DataGridTextBoxColumn.cs: fixes signature
27780 * DataGrid.cs: calls right constructor
27782 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
27784 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
27785 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
27786 * GridTableStylesCollection.cs: implements GridTableStylesCollection
27787 * DataGridTableStyle.cs: implements DataGridTableStyle
27788 * DataGridBoolColumn.cs: implements DataGridBoolColumn
27789 * DataGridTextBox.cs: implements DataGridTextBox
27790 * DataGridColumnStyle.cs: implements DataGridColumnStyle
27792 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
27794 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
27796 2005-03-29 Peter Bartok <pbartok@novell.com>
27799 - Properly implemented CompanyName property
27800 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
27801 returns a path that includes CompanyName, ProductName and
27802 Version (fixes bug #70330)
27804 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
27806 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
27809 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
27811 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
27813 - Added ReadOnly CheckBox
27814 - Further refactoring: moved some code from Open-/SaveFileDialog
27817 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
27819 * OpenFileDialog.cs: Fixed CheckFileExists
27821 Moved FileView and DirComboBox outside FileDialog class.
27822 They can now be used outside FileDialog
27824 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
27826 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
27827 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
27829 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
27831 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
27832 - Added missing CreatePrompt property in SaveDialog
27833 - Overall SaveDialog handling should be better now
27834 - Added non standard ShowHiddenFiles property
27835 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
27836 - Added InitialDirectory and RestoreDirectory support
27838 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
27840 * FileDialog.cs: Made dirComboBox usable
27842 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
27844 * FileDialog.cs: Added Filter support (case sensitiv)
27846 2005-03-24 Jackson Harper <jackson@ximian.com>
27848 * TabControl.cs: Need a couple more pixels for the lines.
27850 2005-03-23 Jackson Harper <jackson@ximian.com>
27852 * TabControl.cs: Give the tab page focus when it is selected.
27854 2005-03-23 Jackson Harper <jackson@ximian.com>
27856 * TabControl.cs: Account for the drawing of tabs borders when
27857 invalidating. If the slider was clicked dont do click detection on
27860 2005-03-23 Jackson Harper <jackson@ximian.com>
27862 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
27864 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
27866 * CategoryGridEntry.cs: Added
27867 * GridItem.cs: Added helper properties
27868 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
27869 * GridEntry.cs: Updated code for collection
27870 * PropertyGrid.cs: Cleaned up some formatting
27871 * PropertyGridView.cs: Added drop down functionality for enums.
27872 * GridItemCollection.cs: Added enumerator logic
27873 * PropertyGridEntry.cs: Added
27875 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
27878 - Removed unnecessary commented code
27879 - Fixed handling for entering the filename manually in the combobox
27881 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
27883 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
27885 2005-03-18 Peter Bartok <pbartok@novell.com>
27887 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
27888 them being touching the border
27890 2005-03-18 Peter Bartok <pbartok@novell.com>
27892 * TextControl.cs: Quick hack to center text better
27894 2005-03-18 Peter Bartok <pbartok@novell.com>
27897 - Don't throw NotImplemented exceptions, just print a notice once
27898 instead (requested by Miguel). This makes running existing SWF
27901 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
27902 - Added context menu trigger on right click
27903 * Panel.cs: Trigger invalidate on resize
27905 - Removed old double-buffer drawing
27906 - Added ResizeRedraw style to force proper update of statusbar
27908 - Removed debug output
27909 * ThemeWin32Classic.cs:
27910 - Fixed drawing of status bar, now draws Text property if there
27911 are no defined panels
27913 2005-03-18 Jackson Harper <jackson@ximian.com>
27915 * ImageList.cs: When the image stream is set pull all the images
27917 * ImageListStreamer.cs: Implement reading image list streams.
27919 2005-03-18 Peter Bartok <pbartok@novell.com>
27921 * ThemeWin32Classic.cs (DrawPictureBox):
27922 - Fixed calculations for centered drawing
27923 - Fixed drawing for normal mode, not scaling the image on normal
27925 2005-03-18 Peter Bartok <pbartok@novell.com>
27927 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
27930 - Made Open/Save button the accept button for FileDialog
27931 - Tied the cancel button to the IButtonControl cancel button
27932 - Save/Open now properly builds the pathname
27933 - Now handles user-entered text
27934 - Preventing crash on right-click if no item is selected
27935 - Fixed Text property, now uses contents of textbox
27936 - Fixed SelectedText property, now just returns the text part that
27937 is selected in the text box
27939 2005-03-18 Jackson Harper <jackson@ximian.com>
27941 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
27942 rect, make sure to de-adjust the interior rect after drawing the
27945 2005-03-18 Peter Bartok <pbartok@novell.com>
27947 * MenuAPI.cs: Remove menu *before* executing selected action to
27948 prevent the menu from 'hanging around'
27950 2005-03-17 Geoff Norton <gnorton@customerdna.com>
27952 * XplatUIOSX.cs: Implemented WorkingArea property
27954 2005-03-17 Peter Bartok <pbartok@novell.com>
27956 * XplatUIX11.cs: Fixed menu coord calculations
27957 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
27958 for calculating offsets
27960 2005-03-17 Peter Bartok <pbartok@novell.com>
27962 * Hwnd.cs: Do not consider menu presence for default client
27963 rectangle location/size
27964 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
27965 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
27966 translation functions
27967 * FileDialog.cs: Fixed (what I presume is a) typo
27969 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
27971 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
27972 X access (avoids X-Async errors)
27974 2005-03-16 Jackson Harper <jackson@ximian.com>
27976 * TabControl.cs: Raise the SelectedIndexChanged event.
27978 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
27980 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
27981 - Removed vertical ToolBar and replaced it with a custom panel
27982 (desktop and home button already work)
27983 - Added Help button (some controls get resized or relocated then)
27984 - Draw correct text depending on Open or Save.
27985 - Fixed some typos...
27987 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
27990 - Only change Maximum and Minimum when need it (bug fix)
27992 2005-03-15 Peter Bartok <pbartok@novell.com>
27994 * Form.cs: Use Handle for icon, to trigger creation if
27995 the window does not yet exist
27997 - CanSelect: Slight performance improvement
27998 - Focus(): Preventing possible recursion
27999 - Invalidate(): Removed ControlStyle based clear flag setting
28000 - WM_PAINT: fixed logic for calling OnPaintBackground
28001 - WM_ERASEBKGND: Fixed logic, added call to new driver method
28002 EraseWindowBackground if the control doesn't paint background
28004 - Moved EraseWindowBackground() method to internal methods
28005 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
28006 is sent via SendMessage on BeginPaint call on Win32
28008 - Added EraseWindowBackground() method
28009 - No longer sends WM_ERASEBKGND on .Expose, but on call to
28010 PaintEventStart, which more closely matches Win32 behaviour
28011 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
28012 - Fixed SetFocus() to properly deal with client and whole windows
28013 * Hwnd.cs: Added ErasePending property
28014 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
28015 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
28017 2005-03-12 Geoff Norton <gnorton@customerdna.com>
28020 - Fix hard loop when timers exist.
28021 - Fix bugs with middle and right click for 3 button mice.
28023 2005-03-11 Peter Bartok <pbartok@novell.com>
28026 - get_WorkingArea: Need to call X directly, GetWindowPos only
28027 returns cached data now
28028 - Added sanity check to GetWindowPos hwnd usage
28030 2005-03-11 Jackson Harper <jackson@ximian.com>
28032 * BindingManagerBase.cs: This method isn't used anymore as
28033 PullData now updates the data in the control.
28035 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
28037 * Form.cs: fixes menu drawing on X11
28038 * MenuAPI.cs: fixes menu drawing on X11
28040 2005-03-11 Peter Bartok <pbartok@novell.com>
28042 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
28043 from Jonathan Gilbert; should fix bug #73606
28044 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
28045 in Screen coordinates. Thanks, Jordi.
28046 * Form.cs: Added missing attribute
28048 2005-03-11 Peter Bartok <pbartok@novell.com>
28051 - Rudimentary Mdi support
28052 - Removed outdated FormParent code
28053 - Implemented lots of missing properties and methods, still missing
28054 transparency support
28055 - Added missing attributes
28056 - Implemented support for MaximumBounds
28057 - Added firing of various events
28058 * XplatUI.cs: Added SetIcon() method
28059 * XplatUIDriver.cs: Added SetIcon() abstract
28060 * XplatUIOSX.cs: Stubbed out SetIcon() method
28062 - Implemented SetIcon() support
28063 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
28064 - Switched to unix line endings
28066 - Made POINT internal so for can access it as part of MINMAX
28067 - Implemented SetIcon() support
28068 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
28069 native Mdi support again, might have to go managed)
28070 * Control.cs: Now fires the StyleChanged event
28071 * MdiClient.cs: Added; still mostly empty
28073 2005-03-10 Peter Bartok <pbartok@novell.com>
28075 * SaveFileDialog.cs: Added emtpy file
28077 2005-03-08 Peter Bartok <pbartok@novell.com>
28079 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
28080 in turn triggers OnCreateContro) when creating a handle for the
28082 * TextControl.cs: Fixed endless loop in certain cases when
28083 replacing the current selection
28085 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
28088 - Honors NewValue changes in Scroll events allowing apps to change it
28089 - Adds First and Last Scroll events
28090 - Fixes Thumb events
28092 2005-03-07 Peter Bartok <pbartok@novell.com>
28094 * Hwnd.cs: Added DefaultClientRectangle property
28095 * XplatUI.cs: Now using the X11 driver Where() method, which provides
28096 more detailed debug information
28098 - Fixed size-change feedback loop, where we would pull an old size
28099 off the queue and mistakenly change our window's size to an
28101 - Now compressing ConfigureNotify events, to reduce looping and
28103 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
28106 2005-03-07 Jackson Harper <jackson@ximian.com>
28108 * Binding.cs: Push data pushes from data -> property. Check if the
28109 property is readonly when attempting to set it.
28111 2005-03-07 Jackson Harper <jackson@ximian.com>
28113 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
28114 instead of IsSubclassOf. Pulling data now sets the value on the
28116 * PropertyManager.cs:
28117 * CurrencyManager.cs: Just need to pull data when updating now,
28118 because PullData will set the value on the control.
28120 2005-03-04 Jackson Harper <jackson@ximian.com>
28122 * Binding.cs: Implement data type parsing and converting on pulled
28123 data. TODO: Are there more ways the data can be converted?
28125 2005-03-04 Jackson Harper <jackson@ximian.com>
28127 * Binding.cs: Support <Property>IsNull checks. Also bind to the
28128 controls Validating method so we can repull the data when the
28129 control loses focus.
28131 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
28134 - Fixes null string format
28137 - Adds enum type checks
28138 - Fixes redrawing and recalc need after changing some properties
28139 - Fixes on focus_item set after the event
28140 - Fixes adding columns after the control has been created
28142 * ThemeWin32Classic.cs:
28143 - Fixes CheckBox focus rectangle
28144 - Fixes ColumnHeader drawing
28147 2005-03-03 Jackson Harper <jackson@ximian.com>
28149 * Binding.cs: Bind to <Property>Changed events so we can detect
28150 when properties are changed and update the data.
28152 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
28155 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
28156 - Fixes ImageList constructor with ImageList container
28157 - Fixes image scaling (wrong parameters at DrawImage)
28159 2005-02-02 Jackson Harper <jackson@ximian.com>
28161 * Binding.cs: Make property searches case-insensitive. Eliminate
28162 some duplicated code.
28164 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
28167 - Handle focus event
28168 - Fix scrollbar events
28169 - Discard highlighted item if remove it
28170 - Fixes SelectedItem with strings
28172 2005-03-01 Peter Bartok <pbartok@novell.com>
28175 - Fixed Visible property, now follows (once again) parent chain
28176 to return false if any control in the chain is visible=false
28177 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
28178 - Fixed several places where is_visible instead of Visible was used
28179 - Implemented FIXME related to focus selection when setting focused
28180 control to be invisible
28182 * XplatUIWin32.cs: Now using proper method to find out if window is
28183 visible. Thanks to Jordi for pointing it out
28185 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
28187 * ComboBox.cs: show/hide scrollbar instead of creating it
28189 2005-02-27 Jackson Harper <jackson@ximian.com>
28191 * CurrencyManager.cs: Add PositionChanged stuff.
28193 2005-02-27 Peter Bartok <pbartok@novell.com>
28195 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
28196 * XplatUIOSX.cs: Added GetMenuOrigin() stub
28197 * XplatUIWin32.cs: Implemented GetMenuOrigin()
28199 - Implemented GetMenuDC()
28200 - Implemented GetMenuOrigin()
28201 - Implemented ReleaseMenuDC()
28202 - Implemented generation of WM_NCPAINT message
28203 - Implemented generation and handling of WM_NCCALCSIZE message
28204 * Form.cs: Added debug helper message for Jordi's menu work
28206 - Modified ClientRect property; added setter, fixed getter to handle
28207 setting of ClientRect
28208 - Added MenuOrigin property
28210 2005-02-26 Peter Bartok <pbartok@novell.com>
28213 - Destroys the caret if a window that's being destroyed contains it
28214 - Ignores expose events coming from the X11 queue for windows that
28215 already are destroyed
28216 - Now uses the proper variable for handling DestroyNotify, before we
28217 marked the wrong window as destroyed
28218 - Improved/added some debug output
28220 2005-02-26 Peter Bartok <pbartok@novell.com>
28222 * X11Keyboard.cs: Fixes to work on 64bit systems
28224 2005-02-26 Peter Bartok <pbartok@novell.com>
28227 - Now calling OnHandleDestroyed from DestroyHandle()
28228 instead of Dispose()
28229 - Removed bogus call to controls.Remove() from DestroyHandle()
28231 2005-02-26 Peter Bartok <pbartok@novell.com>
28233 * Control.cs: Properly destroy child windows when our handle is
28236 2005-02-25 Peter Bartok <pbartok@novell.com>
28239 - Added 'DriverDebug' define to allow tracing XplatUI API calls
28240 - Alphabetized Static Methods and Subclasses
28243 - Added XException class to allow custom handling of X11 exceptions
28244 - Created custom X11 error handler, tied into XException class
28245 - Added support for MONO_XEXCEPTIONS env var to allow the user
28246 to either throw an exception on X errors or continue running
28247 after displaying the error
28248 - Added handling of DestroyNotify message
28249 - Added handler for CreateNotify message (still disabled)
28250 - Improved (tried to at least) Where method to provide file and lineno
28252 - Added XErrorHandler delegate
28253 - Added XRequest enumeration (to suppor translation of errors)
28255 2005-02-25 Jackson Harper <jackson@ximian.com>
28257 * PropertyManager.cs: Implement editing features
28258 * CurrencyManager.cs:
28259 * Binding.cs: First attempt at UpdateIsBinding
28260 * BindingManagerBase.cs: Call UpdateIsBinding before
28261 pushing/pulling data.
28263 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
28265 * MenuAPI.cs: Respect disabled items
28266 * ThemeWin32Classic.cs
28267 - Caches ImageAttributes creation for DrawImageDisabled
28268 - Fixes vertical menu line drawing
28269 - Draws disabled arrows in disable menu items
28271 2005-02-24 Peter Bartok <pbartok@novell.com>
28274 - Added UserData property to allow associating arbitrary objects
28276 - Fixed leak; now removing Hwnd references from static windows array
28278 - Fixed Graphics leak in PaintEventEnd
28279 - Removed usage of HandleData, switched over to Hwnd class
28280 * HandleData.cs: Removed, obsoleted by Hwnd.cs
28282 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
28284 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
28285 * ScrollBar.cs: Fixes bug
28286 * TrackBar.cs: removes death code, clipping, mimize refreshes,
28287 keyboard navigation enhancements
28289 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
28291 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
28292 * GroupBox.cs: Add control styles
28293 * Label.cs: Add control styles
28294 * UpDownBase.cs: Add control styles
28295 * ListBox.cs: Add control styles
28296 * XplatUIWin32.cs: Fixes wrong parameter order
28299 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
28301 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
28303 2005-02-23 Jackson Harper <jackson@ximian.com>
28305 * PropertyManager.cs: Implement property binding. This doesn't
28306 seem to work yet though as (I think) there are some bugs in
28307 System.ComponentModel.PropertyDescriptor.
28308 * BindingContext.cs: Use new PropertyManager constructor.
28310 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
28312 * ProgressBar.cs: use clip region in ProgressBar
28313 * ThemeWin32Classic.cs: use clip region in ProgressBar
28315 2004-02-22 Jackson Harper <jackson@ximian.com>
28317 * BindingsCollection.cs: Remove some debug code.
28319 2005-02-22 Jackson Harper <jackson@ximian.com>
28321 * BindingContext.cs:
28322 * ControlBindingsCollection.cs:
28323 * CurrencyManager.cs:
28325 * BindingManagerBase.cs: Initial implementation
28326 * BindingsCollection.cs: Add an internal contains method that the
28327 BindingManagerBase uses to ensure bindings aren't added twice to
28329 * PropertyManager.cs: Stubbed out.
28331 * ContainerControl.cs: Hook up databinding
28333 2005-02-22 Geoff Norton <gnorton@customerdna.com>
28336 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
28337 Fixed Invalidate/Update chain.
28338 Fixed tons of other minor bugs (this is almost a complete rewrite).
28340 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
28342 * ComboBox.cs: do subcontrol creation when the control is created
28344 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
28346 * Label.cs: fixes image drawing (image and imagelist)
28347 * ThemeWin32Classic.cs: cache brushes
28349 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
28351 * Form.cs: Move menu drawing code to Theme class
28352 * ComboBox.cs: Move ComboBox drawing code to Theme class
28353 * MenuItem.cs: Move menu drawing code to Theme class
28354 * MenuAPI.cs: Move menu drawing code to Theme class
28355 * ThemeWin32Classic.cs: New methods
28356 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
28357 * ListBox.cs: Move Listbox drawing code to Theme class
28358 * Theme.cs: New methods
28360 2005-02-20 Peter Bartok <pbartok@novell.com>
28363 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
28364 only process mnemonics on those)
28365 - Fixed event sequence for key handling; first calling
28366 ProcessKeyEventArgs now
28368 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
28369 for processing non-character keys
28370 - Fixed WM_CHAR to generate proper event sequence before processing
28371 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
28374 2005-02-19 Peter Bartok <pbartok@novell.com>
28376 * UserControl.cs: Added TextChanged event; added attributes
28377 * SizeGrip.cs: Implemented resizing and optional display of grip
28378 * Form.cs: Fixed attribute
28379 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
28380 Changed meaning of ScrollWindow bool argument; instead of the
28381 clear attribute (which will be true usually anyway), it gives the
28382 option of moving child controls as well.
28384 - Changed to match new ScrollWindow argument
28385 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
28386 now handles the implicit parent window a WM puts around us
28387 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
28389 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
28390 * TreeView.cs: Adjusted to new ScrollWindow arguments
28392 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
28394 * Form.cs: Menu integration with non-client area
28395 * MenuItem.cs: Menu integration with non-client area
28396 * MenuAPI.cs: Menu integration with non-client area
28398 2005-02-18 Peter Bartok <pbartok@novell.com>
28400 * MethodInvoker.cs: Added
28401 * MdiLayout.cs: Added
28402 * SendKeys.cs: Started implementation
28403 * ErrorIconAlignment.cs: Added
28405 2005-02-18 Peter Bartok <pbartok@novell.com>
28407 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
28408 * Form.cs: Added handling for Menu-related Non-client messages
28410 2005-02-17 Peter Bartok <pbartok@novell.com>
28412 * UpDownBase.cs: Fixed typo, compilation errors
28413 * DomainUpDown.cs: Fixed attribute value
28415 2005-02-16 Miguel de Icaza <miguel@novell.com>
28417 * UpDownBase.cs: Attach entry events.
28419 Add ForeColor property, Focused, InterceptArrowKeys (interception
28420 does not work yet).
28422 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
28425 - Redraw non client are on Setmenu
28426 - Calc proper menu starting point
28428 2005-02-17 Peter Bartok <pbartok@novell.com>
28430 * Application.cs: Fixed message_filter check
28432 2005-02-17 Peter Bartok <pbartok@novell.com>
28434 * Application.cs: Now calls registered message filters
28435 * DockStyle.cs: Fixed attribute
28436 * Form.cs: Fixed attribute
28437 * Menu.cs: Fixed attribute
28438 * ToolTip.cs: Fixed attribute
28439 * TreeNode.cs: Added missing attributes and arranged in regions
28440 * PropertyGrid.cs: Fixed signatures
28441 * TreeNodeCollection.cs: Added attributes
28442 * Splitter.cs: Added missing attributes; arranged into regions
28443 * TabPage.cs: Added missing attributes; arranged into regions
28444 * TextBoxBase.cs: Added missing attributes
28445 * TextBox.cs: Added missing attributes
28446 * ArrangeDirection.cs: Added missing attributes
28447 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
28448 * ToolBarButton.cs: Fixed attributes
28449 * AnchorStyles.cs: Fixed attribute
28450 * TrackBar.cs: Fixed attributes
28451 * TabControl.cs: Added missing attributes and arranged into regions
28452 * ToolBar.cs: Fixed attribute
28453 * StatusBar.cs: Fixed signature, organized into regions and added
28455 * StatusBarPanel.cs: Fixed attributes
28456 * ContentsResizedEventArgs.cs: Implemented
28457 * ContentsResizedEventHandler.cs: Implemented
28458 * DateBoldEventArgs.cs: Implemented
28459 * DateBoldEventHandler.cs: Implemented
28460 * UpDownEventArgs.cs: Implemented
28461 * UpDownEventHandler.cs: Implemented
28463 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
28465 * Form.cs: first Menu NC refactoring
28466 * MenuAPI.cs: first Menu NC refactoring
28468 2005-02-16 Peter Bartok <pbartok@novell.com>
28470 * ImeMode.cs: Added missing attributes
28471 * Menu.cs: Fixed attribute
28472 * GroupBox.cs: Fixed attribute
28473 * Label.cs: Fixed attribute
28474 * ColorDialog.cs (RunDialog): Removed TODO attribute
28475 * ComboBox.cs: Fixed attributes
28476 * ListControl.cs: Added missing attributes
28477 * PropertyGrid.cs: Fixed attributes
28478 * Control.cs: Fixed attributes
28479 * ListViewItem.cs: Added TypeConverter attribute
28480 * NotifyIcon.cs: Fixed attributes
28481 * ListView.cs: Fixed attributes
28482 * ButtonBase.cs: Fixed attribute
28483 * ImageList.cs: Added missing attributes
28484 * ContainerControl.cs: Fixed signature
28485 * CheckedListBox.cs: Fixed attribute; added missing attributes
28486 * Panel.cs: Fixed attributes
28487 * PropertyTabChangedEventArgs.cs: Added missing attribute
28488 * PropertyValueChangedEventArgs.cs: Added missing attribute
28489 * Binding.cs: Fixed attribute
28490 * ListViewItemConverter: Implemented ListViewSubItemConverter class
28491 * ListBox.cs: Fixed attribute; added missing attributes;
28492 * ScrollableControl.cs: Added missing attributes
28493 * PictureBox.cs: Added missing attributes; implemented missing property
28494 * DateTimePicker.cs: Added missing attributes
28495 * Theme.cs (ToolWindowCaptionHeight): Fixed type
28496 * MonthCalendar.cs: Fixed attributes
28497 * StatusBarPanel.cs: Added missing attributes
28498 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
28500 2005-02-16 Peter Bartok <pbartok@novell.com>
28502 * TextBoxBase.cs: The previous method to enforce height yet remember
28503 the requested high was less than ideal, this is an attempt to do
28505 * Control.cs: Added comment about possible problem
28506 * Copyright: Updated format
28507 * GridItemType.cs: Fixed swapped values
28509 2005-02-15 Jackson Harper <jackson@ximian.com>
28511 * BaseCollection.cs: Use property so we never access an
28512 uninitialized list. Also initialize the list in the property.
28514 2005-02-15 Peter Bartok <pbartok@novell.com>
28516 * GroupBox.cs (ProcessMnemonic): Implemented
28517 * Label.cs (ProcessMnemonic): Implemented
28518 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
28521 2005-02-15 Peter Bartok <pbartok@novell.com>
28523 * RadioButton.cs (ProcessMnemonic): Implemented
28524 * CheckBox.cs (ProcessMnemonic): Implemented
28526 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
28528 - Added internal method to allow calling ProcessMnemonic from other
28530 * ContainerControl.cs:
28531 - Started support for handling validation chain handling
28532 - Implemented ProcessMnemonic support
28533 - Added Select() call to Active, to make sure the active control
28535 * Form.cs: Setting toplevel flag for Forms (this was lost in the
28536 FormParent rewrite)
28537 * ThemeWin32Classic.cs:
28538 - DrawCheckBox(): Fixed stringformat to show hotkeys
28539 - DrawRadioButton(): Fixed stringformat to show hotkeys
28540 * CommonDialog.cs: Removed WndProc override, not needed
28542 2005-02-14 Peter Bartok <pbartok@novell.com>
28544 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
28545 missed those in the rewrite
28547 2005-02-14 Miguel de Icaza <miguel@novell.com>
28549 * NumericUpDown.cs (Increment, ToString): Add.
28550 (DecimalPlaces): implement.
28554 * UpDownBase.cs: Add the designer attributes.
28556 2005-02-13 Peter Bartok <pbartok@novell.com>
28558 * Panel.cs: Removed border_style, now in Control
28559 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
28560 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
28562 2005-02-13 Peter Bartok <pbartok@novell.com>
28564 * MouseButtons.cs: Added missing attributes
28565 * XplatUIStructs.cs: Added enumeration for title styles
28566 * LeftRightAlignment.cs: Added missing attributes
28567 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
28568 it compatible with Graphics.FromHwnd()
28569 * SelectedGridItemChangedEventArgs.cs: Fixed property type
28570 * Keys.cs: Added missing attributes
28571 * SelectionRange.cs: Added missing attributes
28572 * SelectionRangeConverter.cs: Added
28574 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
28575 ReleaseMenuDC methods
28576 - Renamed ReleaseWindow to UngrabWindow
28577 - Added proper startup notice to allow version identification
28579 - Added missing attributes
28580 - Removed FormParent concept
28581 * Label.cs: Removed border_style field, now in Control
28582 * RadioButton.cs: Now properly selects RadioButton when focus is
28584 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
28586 - Added missing attributes
28587 - Added borderstyle handling
28588 - Removed FormParent concept support
28589 - Fixed calls to XplatUI to match changed APIs
28590 - Fixed bug that would case us to use disposed Graphics objects
28591 - Removed unneeded internal methods
28592 - PerformLayout(): Fixed to handle DockStyle.Fill properly
28593 - SelectNextControl(): Fixed to properly check common parents
28594 * TextBoxBase.cs: Removed border_style field (now in Control)
28596 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
28597 fixed calculations for form size
28598 - Added support for localized strings and icons
28599 - Improved form size calculations, added border
28600 * ListView.cs: Removed border_style field (now in Control)
28601 * X11Structs.cs: Moved several structs from X11 driver here
28602 * X11Keyboard.cs: Changed debug message
28603 * Application.cs: Removed FormParent concept support
28605 - Resetting end_modal flag
28606 - Removed FormParent concept support
28607 * NativeWindow.cs: Removed FormParent concept support
28608 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
28609 Client area and Non-Client whole window to allow support for WM_NC
28611 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
28612 prevent using it until it supports Hwnd as per Geoff Norton's request
28613 * ToolBar.cs: Fixed drawing, was not doing proper drawing
28614 * PictureBox.cs: Removed border_style field, now in Control
28615 * XplatUIWin32.cs: Added new driver methods
28617 2005-02-12 Peter Bartok <pbartok@novell.com>
28619 * OpacityConverter.cs: Implemented
28620 * Hwnd.cs: Internal class to support drivers that need to emulate
28621 client area/non-client area window behaviour
28623 2005-02-11 Peter Bartok <pbartok@novell.com>
28625 * KeysConverter.cs: Implemented
28627 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
28629 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
28630 * LinkLabel: Added missing attributes
28631 * MainMenu.cs: fixes ToString
28632 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
28633 * ListBox.cs: fixes event position
28634 * TrackBar.cs: adds missing attributes and events
28636 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
28638 * MenuItem.cs: Use SystemInformation and bug fixes
28639 * MenuAPI.cs: Use SystemInformation and bug fixes
28641 2005-02-09 Jackson Harper <jackson@ximian.com>
28643 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
28644 their keystate otherwise things like VK_MENU get stuck "on".
28646 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
28648 * ListBox.cs: Fixes AddRange bug
28650 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
28653 - Add missing attributes
28654 - Add missing method
28656 * CheckedListBox.cs: Added missing attributes
28657 - Add missing attributes
28658 - Remove extra method
28660 * ComboBox.cs: Added missing attributes
28661 * VScrollBar.cs: Added missing attributes
28662 * ScrollBar.cs: Added missing attributes
28663 * ListBox.cs: Fixes signature, add missing consts
28664 * LinkArea.cs: Added missing attributes
28667 2005-02-08 Peter Bartok <pbartok@novell.com>
28669 * Menu.cs: Added missing attributes
28670 * MainMenu.cs: Added missing attributes
28671 * GroupBox.cs: Added missing attributes
28672 * Label.cs: Added missing attributes
28673 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
28675 - Added Instance and Options properties
28676 - Added missing attributes
28677 * Cursor.cs: Made Serializable
28678 * NotifyIcon: Added missing attributes
28679 * MenuItem.cs: Added missing attributes
28680 * TextBoxBase.cs: Implemented AppendText() and Select() methods
28681 * Panel.cs: Added Missing attributes
28682 * MonthCalendar.cs: Fixed CreateParams
28684 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
28688 - Fixes issues with links
28689 - Adds the class attributes
28691 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
28694 - Fixes button when no items available in dropdown
28695 - Fixes repainting problems
28696 - Adds the class attributes
28698 2005-02-07 Geoff Norton <gnorton@customerdna.com>
28700 * XplatUIOSX.cs: Detect the menu bar and title bar height from
28701 the current theme. Cache these on startup.
28703 2005-02-07 Jackson Harper <jackson@ximian.com>
28705 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
28706 the scrollbar buttons when they are depressed.
28708 2005-02-07 Geoff Norton <gnorton@customerdna.com>
28710 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
28711 Get the display size from the main displayid. We currently dont
28712 support multiple display configurations.
28714 2005-02-07 Geoff Norton <gnorton@customerdna.com>
28716 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
28718 2005-02-07 Miguel de Icaza <miguel@novell.com>
28720 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
28722 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
28724 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
28726 2005-02-04 Jackson Harper <jackson@ximian.com>
28728 * ThemeWin32Classic.cs: Respect the clipping rect when
28729 drawing. Only fill the intersection of clips and rects so there
28730 isn't a lot of large fills.
28731 * ScrollBar.cs: Pass the correct clipping rect to the theme
28732 engine. Remove some debug code.
28734 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
28736 * DateTimePicker.cs:
28737 - Fixed crash on DateTime.Parse, use Constructor instead
28739 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
28743 - Owner draw support (MeasureItem and DrawItem)
28745 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
28748 - Implements FindMergePosition and MergeMenu functions (very poor documented)
28749 - Fixes MenuItems.Add range
28751 - MergeMenu and Clone and CloneMenu functions
28753 2005-02-03 Jackson Harper <jackson@ximian.com>
28755 * ScrollBar.cs: Make abstract
28756 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
28759 2005-02-03 Jackson Harper <jackson@ximian.com>
28761 * ScrollBar.cs: First part of my scrollbar fixups. This removes
28762 all the unneeded refreshes and uses invalidates with properly
28765 2005-02-03 Peter Bartok <pbartok@novell.com>
28767 * ComponentModel.cs: Added
28768 * IDataGridEditingService.cs: Added
28769 * Timer.cs: Added missing attributes
28770 * ToolTip.cs: Added missing attributes
28772 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
28774 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
28776 2005-02-03 Peter Bartok <pbartok@novell.com>
28778 * ListBox.cs: Added missing attributes
28780 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
28783 - Fixes font height after font change
28784 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
28786 2005-02-02 Peter Bartok <pbartok@novell.com>
28788 * HandleData.cs: Introduced static methods to allow class
28789 to be more self-contained and track it's own HandleData objects
28790 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
28791 HandleData to use new static methods
28793 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
28796 - Fixes default size and PreferredHeight
28798 - ObjectCollection.Insert implementation
28804 - ObjectCollection.Insert implementation
28805 - No selection after clean
28808 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
28810 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
28812 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
28815 - Caches ItemHeight calculation for OwnerDrawVariable
28816 - Handles dropdown properly
28817 - Fixes several minor bugs
28819 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
28822 - Fixes 71946 and 71950
28823 - Fixes changing Multicolumn on the fly
28824 - Fixes keyboard navigation on Multicolumn listboxes
28826 2005-01-31 Geoff Norton <gnorton@customerdna.com>
28828 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
28829 crash reporter log.
28831 2005-01-31 Geoff Norton <gnorton@customerdna.com>
28833 * XplatUIOSX.cs: Allow applications to actually exit.
28835 2005-01-31 Geoff Norton <gnorton@customerdna.com>
28837 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
28838 their parent at creation time rather than lazily later. Fixes a major
28839 regression we were experiencing.
28841 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
28843 * ThemeWin32Classic.cs: more date time picker painting fixes
28844 * DateTimePicker.cs: more monthcalendar drop down fixes
28845 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
28847 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
28850 - When moving the thumb going outside the control should stop the moving
28851 - Adds the firing of missing events
28852 - Fixes no button show if Size is not specified
28853 - End / Home keys for keyboard navigation
28855 2005-01-30 Peter Bartok <pbartok@novell.com>
28857 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
28858 sanity check to prevent theoretical loop
28859 * XplatUIWin32.cs (SetVisible): Removed debug output
28860 * XplatUIX11.cs (SystrayChange): Added sanity check
28861 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
28862 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
28863 behaviour, valid until the X11 client window rewrite is done
28864 * TextBox.cs (ctor): Setting proper default foreground and background
28867 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
28869 * Theme: Added DrawDateTimePicker to interface
28870 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
28871 * DateTimePicker.cs: Created (still needs keys and painting code)
28872 * DateTimePickerFormat.cs: added
28873 * MonthCalendar.cs: fixed CreateParams for popup window mode
28875 2005-01-29 Peter Bartok <pbartok@novell.com>
28877 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
28878 this should also the calculations for ligher/darker
28879 * Theme.cs: Fixed defaults for ScrollBar widths/heights
28881 2005-01-29 Peter Bartok <pbartok@novell.com>
28883 * ArrangeDirection.cs: Added
28884 * ArrangeStartingPositon.cs: Added
28885 * SystemInformation.cs: Implemented
28886 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
28887 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
28888 used by SystemInformation class
28889 * X11Strucs.cs: Added XSizeHints structure
28891 - Fixed CreateParams to make sure the menu window is always visible
28892 - TrackPopupMenu: Added check to make sure we don't draw the
28895 2005-01-29 Peter Bartok <pbartok@novell.com>
28897 * HandleData.cs: Added method for altering invalid area
28898 * TextBoxBase.cs: Implemented TextLength
28900 2005-01-28 Peter Bartok <pbartok@novell.com>
28902 * XplatUIX11.cs: Improvement over last patch, not sending
28903 the WM_PAINT directly anymore, instead we scroll any pending
28904 exposed areas and let the system pick out the WM_PAINT later
28906 2005-01-28 Peter Bartok <pbartok@novell.com>
28908 * SWF.csproj: Deleted, no longer used. Instead,
28909 Managed.Windows.Forms/SWF.csproj should be used
28910 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
28911 directly, to avoid a potential race condition with the next
28914 2005-01-28 Peter Bartok <pbartok@novell.com>
28916 * XplatUI.cs: Made class internal
28918 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
28920 * CheckedListBox.cs:
28923 - Missing methods and events
28925 2005-01-27 Peter Bartok <pbartok@novell.com>
28927 * Application.cs (Run): Don't use form if we don't have one
28929 2005-01-27 Peter Bartok <pbartok@novell.com>
28931 * TextBoxBase.cs (get_Lines): Fixed index off by one error
28933 2005-01-27 Peter Bartok <pbartok@novell.com>
28935 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
28936 * GridItem.cs: Added; Patch by Jonathan S. Chambers
28937 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
28938 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
28939 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
28940 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
28941 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
28942 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
28943 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
28944 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
28945 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
28946 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
28948 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
28951 - Draw focus on Simple Combobox
28952 - Fixes drawing issues
28955 2005-01-27 Peter Bartok <pbartok@novell.com>
28958 - Place window in default location, instead of hardcoded 0/0
28959 - Send initial LocationChanged event
28961 - UpdateBounds after creation to find out where the WM placed us
28962 - Make sure that if the ParentForm changes location the Form
28964 * XplatUIX11.cs: XGetGeometry will not return the coords relative
28965 to the root, but to whatever the WM placed around us.
28966 Translate to root coordinates before returning toplevel
28968 * XplatUIWin32.cs: Removed debug output
28969 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
28970 flag to GetWindowPos, to allow translation of coordinates on X11
28972 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
28974 * ListBox.cs: connect LostFocus Event
28976 2005-01-27 Peter Bartok <pbartok@novell.com>
28978 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
28979 XplatUIX11.cs: Extended the Systray API
28980 * Form.cs: Removed debug output
28981 * Application.cs: Fixed focus assignment, always need to call
28982 XplatUI.Activate() since Form.Activate() has rules that may
28984 * NotifyIcon.cs: Should be complete now
28985 * ToolTip.cs: Worked around possible timer bug
28987 2005-01-27 Jackson Harper <jackson@ximian.com>
28990 - Only invalidate the effected tabs when the
28991 selected index changes. This reduces drawing and gets rid of some
28993 - Only refresh if the tabs need to be shifted, otherwise only
28994 invalidate the slider button.
28995 - On windows the tabs are not filled to right if the slider is
28998 2005-01-27 Jackson Harper <jackson@ximian.com>
29000 * TabControl.cs: Only refresh on mouseup if we are showing the
29001 slider. Also only invalidate the button whose state has changed.
29003 2005-01-26 Peter Bartok <pbartok@novell.com>
29005 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
29006 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
29007 and SystrayRemove() methods
29008 * XplatUIOSX.cs: Stubbed Systray methods
29010 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
29012 - Fixed broken XChangeProperty calls (marshalling messed up things)
29013 * X11Structs.cs: Added enums and structs required for Size hinting
29014 * NotifyIcon.cs: Added & implemented
29016 2005-01-26 Jackson Harper <jackson@ximian.com>
29018 * TabControl.cs: Space vertically layed out tabs properly.
29020 2005-01-26 Peter Bartok <pbartok@novell.com>
29022 * Form.cs (CreateClientParams): Always set the location to 0,0
29023 since we're a child window.
29025 * Control.cs (SetVisibleCore): Always explicitly setting the location
29026 of a toplevel window, apparently X11 doesn't like to move windows
29027 while they're not mapped.
29029 2005-01-26 Jackson Harper <jackson@ximian.com>
29031 * TabControl.cs: Implement FillToRight size mode with vertically
29034 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
29036 * ControlPaint.cs, ThemeWin32Classic.cs
29037 - Fixes DrawFocusRectangle
29039 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
29042 - MenuBar tracking only starts when item is first clicked
29043 - Fixes menu hidding for multiple subitems
29044 - Unselect item in MenuBar when item Executed
29047 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
29050 - IsInputKey for ListBox
29053 - Shift and Control item selection
29054 - Implement SelectionMode.MultiExtended
29055 - Fixes RightToLeft
29057 - IsInputKey implemented
29058 - Do not generate OnTextChangedEdit on internal txt changes
29060 2005-01-23 Peter Bartok <pbartok@novell.com>
29062 * AccessibleObject.cs: Partially implemented Select()
29063 * MonthCalendar.cs: Added missing attributes and events
29064 * Form.cs: Fixed CreateParams behaviour, now controls derived from
29065 form can properly override CreateParams.
29066 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
29067 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
29068 Control performs Invalidate & Update
29069 * NativeWindow (CreateHandle): Added special handling for Form
29070 and Form.FormParent classes to allow overriding of From.CreateParams
29072 - ControlNativeWindow: Renamed 'control' variable to more intuitive
29074 - ControlNativeWindow: Added Owner property
29075 - Removed usage of Refresh() on property changes, changed into
29076 Invalidate(), we need to wait until the queue is processed for
29077 updates, direct calls might cause problems if not all vars for
29078 Paint are initialized
29079 - Added call to UpdateStyles() when creating the window, to set any
29080 styles that CreateWindow might have ignored.
29081 - Added support for Form CreateParent overrides to UpdateStyles()
29082 * MessageBox.cs: Removed no longer needed FormParent override stuff,
29083 CreateParams are now properly overridable
29084 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
29085 CreateParams are now properly overridable
29087 2005-01-23 Miguel de Icaza <miguel@ximian.com>
29089 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
29092 Capture LostFocus and OnTextBoxChanged. The later introduces a
29093 recursive invocation that I have not figured out yet.
29095 Reset the timer when not using (it was accumulating).
29098 (OnTextBoxChanged): Set UserEdit to true here to track whether the
29099 user has made changes that require validation.
29101 Reset changing to avoid loops.
29103 2005-01-22 Miguel de Icaza <miguel@ximian.com>
29105 * NumericUpDown.cs: Display value at startup.
29107 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
29110 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
29111 filled in. Added some basic parsing of text.
29113 Still missing the OnXXX method overrides, and figuring out the
29114 events that must be emitted.
29116 * UpDownBase.cs: Handle UserEdit on the Text property.
29118 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
29121 - Fixes IntegralHeight
29124 2005-01-21 Jackson Harper <jackson@ximian.com>
29126 * TabControl.cs: Set the SelectedIndex property when SelectedTab
29127 is set so that the page visibility is updated and the tabs are
29130 2005-01-21 Jackson Harper <jackson@ximian.com>
29132 * TabControl.cs: Use cliping rectangle for blitting. Give the
29133 theme the clipping rect so we can do clipping while
29134 drawing. Remove some debug code.
29136 2005-01-21 Jackson Harper <jackson@ximian.com>
29138 * TabPage.cs: Add a new method so tab pages can force the tab
29139 control to recalculate the tab page sizes.
29140 * TabControl.cs: UpdateOwner needs to make the tab control recalc
29143 2005-01-20 Jackson Harper <jackson@ximian.com>
29145 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
29147 2005-01-20 Jackson Harper <jackson@ximian.com>
29149 * TreeView.cs: Set the bounds for nodes properly. They were
29150 getting screwed up when checkboxes were not enabled, but images
29153 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
29156 - Owner draw support
29159 2005-01-20 Jackson Harper <jackson@ximian.com>
29161 * XplatUIStructs.cs: More misc keys
29162 * X11Keyboard.cs: Ignore some control keys.
29164 2005-01-20 Jackson Harper <jackson@ximian.com>
29166 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
29167 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
29169 2005-01-19 Peter Bartok <pbartok@novell.com>
29171 * Control.cs: Un-selecting the control when it is loosing focus
29173 2005-01-19 Jackson Harper <jackson@ximian.com>
29175 * TreeView.cs: Hook up to the text controls leave event so we can
29176 end editing when the users clicks outside the text box.
29178 2005-01-19 Jackson Harper <jackson@ximian.com>
29180 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
29181 get set in the conversion array.
29183 2005-01-19 Peter Bartok <pbartok@novell.com>
29185 * Application.cs (ModalRun): Added a call to CreateControl to ensure
29186 focus is properly set
29188 - Added missing attributes
29189 - removed styles, those are already set in the base class
29191 - Added missing attributes
29192 - Added clip window styles
29193 * CheckBox.cs: Added missing attributes
29195 - FormParentWindow.CreateParams: Added required clip styles
29196 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
29197 also filters modifier keys
29199 - Added assignment of Accept and Cancel button to enable Enter
29200 and Esc keys in MessageBox dialogs
29201 - FormParentWindow.CreateParams: Added required clip styles
29202 * RadioButton.cs: Added missing attributes
29203 * TextControl.cs: No longer draws selection if control does not
29206 - Now draws simple rectangle around test area to make it obvious
29207 there's a control. This is a hack until we properly support borders
29208 - A few simple fixes to support selections better, now erases selected
29209 text when typing, and resets selection when using movement keys
29211 2005-01-19 Miguel de Icaza <miguel@ximian.com>
29213 * UpDownBase.cs: Added some new properties.
29215 * DomainUpDown.cs: Implement a lot to get my test working.
29217 2005-01-19 Geoff Norton <gnorton@customerdna.com>
29219 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
29221 2005-01-19 Geoff Norton <gnorton@customerdna.com>
29223 * OSXStructs (WindowAttributes): Fixed csc complaints
29225 2005-01-19 Geoff Norton <gnorton@customerdna.com>
29228 OSXStructs.cs: Initial refactor to move enums and consts into
29229 OSXStructs and use them in the driver for greater readability.
29231 2005-01-19 Geoff Norton <gnorton@customerdna.com>
29233 * XplatUIOSX.cs: Initial support for Standard Cursors.
29234 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
29236 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
29238 * ComboBox.cs: ability to change style when the ctrl is already
29239 created, missing methods and events, bug fixes, signature fixes
29241 2005-01-19 Peter Bartok <pbartok@novell.com>
29243 * Cursors.cs (ctor): Added ctor to fix signature
29245 2005-01-18 Peter Bartok <pbartok@novell.com>
29247 * Button.cs: Implemented DoubleClick event
29249 - Fixed keyboard handling to behave like MS, where the press of
29250 Spacebar is equivalent to a mousedown, and the key release is
29251 equivalent to mouseup. Now a spacebar push will give the same
29252 visual feedback like a mouse click.
29253 - Added missing attributes
29254 - Added ImeModeChanged event
29255 - Added support for generating DoubleClick event for derived classes
29257 - Implemented DoubleClick event
29258 - Added missing attributes
29259 * CommonDialog.cs: Added missing attribute
29260 * ContextMenu.cs: Added missing attributes
29262 - AutoChecked buttons do not allow to be unselected when clicked
29263 (otherwise we might end up with no selected buttons in a group)
29264 - Added missing attributes
29265 - Implemented DoubleClickEvent
29266 * ThreadExceptionDialog.cs: Enabled TextBox code
29268 2005-01-18 Peter Bartok <pbartok@novell.com>
29270 * Form.cs: Removed debug output
29271 * Button.cs: Added support for DoubleClick method
29273 2005-01-18 Peter Bartok <pbartok@novell.com>
29276 - Added method to parent window that allows triggering size
29277 calculations when a menu is added/removed
29278 - set_Menu: Cleaned up mess from early days of Form and Control,
29279 now properly triggers a recalc when a menu is added/removed
29280 - Added case to select form itself as focused form if no child
29282 - Added PerformLayout call when showing dialog, to ensure properly
29285 - Select(): Made internal so Form can access it
29286 - Focus(): Only call Xplat layer if required (avoids loop), and sets
29288 * Application.cs (Run): Removed hack and calls PerformLayout instead
29289 to trigger calculation when Form becomes visible
29291 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
29293 * ComboBox.cs: fixes for ownerdraw
29295 2005-01-18 Peter Bartok <pbartok@novell.com>
29298 - Sentinel is no longer static, each Document gets it's own, this
29299 avoids locking or alternatively overwrite problems when more
29300 than one text control is used simultaneously.
29301 - Switched to use Hilight and HilightText brushes for text selection
29303 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
29305 2005-01-18 Peter Bartok <pbartok@novell.com>
29308 - Hooked up the following events:
29316 o SystemColorsChanged
29317 o ParentFontChanged
29319 - Removed debug output
29320 - Added a call to the current theme's ResetDefaults when a color change
29322 * Form.cs: Now setting the proper ImeMode
29323 * Theme.cs: Defined a method to force recreation of cached resources
29324 and rereading of system defaults (ResetDefaults())
29325 * ThemeWin32Classic.cs: Added ResetDefaults() stub
29327 2005-01-17 Peter Bartok <pbartok@novell.com>
29329 * Control.cs: Added missing attributes
29331 2005-01-17 Jackson Harper <jackson@ximian.com>
29333 * TreeNode.cs: Implement editing. Add missing properties selected
29335 * TreeView.cs: Implement node editing. Also some fixes to use
29336 Invalidate (invalid area) instead of Refresh when selecting.
29338 2005-01-17 Peter Bartok <pbartok@novell.com>
29341 - Implemented InvokeGotFocus() method
29342 - Implemented InvokeLostFocus() method
29343 - Implemented InvokePaint() method
29344 - Implemented InvokePaintBackground() method
29345 - Implemented InvokeClick() method
29346 - Implemented FindForm() method
29347 - Implemented RectangleToClient() method
29348 - Implemented ClientToRectangle() method
29349 - Implemented ResetBackColor() method
29350 - Implemented ResetCursor() method
29351 - Implemented ResetFont() method
29352 - Implemented ResteForeColor() method
29353 - Implemented ResetImeMode() method
29354 - Implemented ResetLeftToRight() method
29355 - Implemented ResetText() method
29356 - Implemented Scale() methods
29357 - Implemented ScaleCore() method
29358 - Implemented Update() method
29359 - Removed unused variables
29360 - Stubbed AccessibilityNotifyClients and
29361 ControlAccessibleObject.NotifyClients() methods (dunno what to do
29363 - Now setting proper default for RightToLeft property
29364 - Fixed bug in SetClientSizeCore that would cause windows to get
29366 - Now sending Click/DoubleClick events
29367 - Now selecting controls when left mouse button is clicked on
29369 * AccessibleEvents.cs: Added
29370 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
29371 * XplatUIOSX.cs: Stubbed UpdateWindow() method
29372 * XplatUIWin32.cs: Implemented UpdateWindow() method
29373 * XplatUIX11.cs: Implemented UpdateWindow() method
29374 * Form.cs: Removed stray semicolon causing CS0162 warning
29375 * ThemeWin32Classic.cs: Fixed unused variable warnings
29376 * ScrollableControl.cs: Now calls base method for ScaleCore
29377 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
29378 style to avoid interference with internal click handler (which is
29379 different than standard Control click handling)
29381 - Now unchecks all sibling radio buttons when control is
29382 selected (Fixes #68756)
29383 - Removed internal tabstop variable, using the one inherited from
29386 2005-01-17 Jackson Harper <jackson@ximian.com>
29388 * NavigateEventArgs.cs: Fix base type.
29389 * LinkLabel.cs: Sig fix
29391 2005-01-17 Jackson Harper <jackson@ximian.com>
29393 * TreeView.cs: Only invalidate the effected nodes bounds when
29396 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
29398 * XplatUIWin32.cs: fixes Win32 marshaling
29399 * XplatUIX11.cs: fixes method signature
29401 2005-01-17 Peter Bartok <pbartok@novell.com>
29403 * XplatUIX11.cs: Clean up resources when we no longer need them
29405 2005-01-17 Peter Bartok <pbartok@novell.com>
29407 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
29408 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
29409 and DestroyCursor() methods.
29410 * Cursor.cs: Partially implemented, now supports standard cursors;
29411 still contains some debug code
29412 * Cursors.cs: Implemented class
29414 - WndProc(): Added handling of WM_SETCURSOR message, setting the
29416 - Implemented Cursor property
29417 - Replaced break; with return; more straightforwar and possibly
29419 - Now properly setting the result for WM_HELP
29420 * X11Structs.cs: Added CursorFontShape enum
29421 * XplatUIStructs.cs:
29422 - Added StdCursor enum (to support DefineStdCursor() method)
29423 - Added HitTest enum (to support sending WM_SETCURSOR message)
29425 - Now sends the WM_SETCURSOR message
29426 - Implemented new cursor methods
29427 * XplatUIOSX.cs: Stubbed new cursor methods
29429 - Implemented new cursor methods
29430 - Added GetSystemMetrics function and associated enumeration
29432 2005-01-15 Peter Bartok <pbartok@novell.com>
29435 - WndProc(): Now handles EnableNotifyMessage
29436 - SelectNextControl(): Fixed bug where if no child or sibling
29437 controls exist we looped endlessly
29439 2005-01-14 Jackson Harper <jackson@ximian.com>
29441 * TreeView.cs: Recalculate the tab pages when a new one is added
29442 so that the proper bounding rects are created.
29444 2005-01-14 Jackson Harper <jackson@ximian.com>
29446 * TreeView.cs: Draw a gray box instead of a grip in the lower
29447 right hand corner when there are both horizontal and vertical
29450 2005-01-14 Jackson Harper <jackson@ximian.com>
29452 * Control.cs: When erasing backgrounds use FromHwnd instead of
29453 FromHdc when there is a NULL wparam. This occurs on the X driver.
29454 * XplatUIX11.cs: Set the wparam to NULL.
29456 2005-01-13 Jackson Harper <jackson@ximian.com>
29458 * PictureBox.cs: Implement missing methods (except ToString, need
29459 to test that on windows) and events. When visibility is changed we
29460 need to redraw the image because the buffers are killed. When size
29461 is changed refresh if the sizemode needs it.
29463 2005-01-13 Peter Bartok <pbartok@novell.com>
29465 * Control.cs (SelectNextControl): Was using wrong method to select
29468 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
29470 * ComboBox.cs: fixes dropstyle
29472 2005-01-13 Peter Bartok <pbartok@novell.com>
29475 - Implemented Select() override
29476 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
29477 - Now sets keyboard focus on startup
29478 * Control.cs (SelectNextControl): Now properly handles directed=true
29480 - WndProc: Now passes tab key on to base if AcceptTabChar=false
29481 - Added (really bad) focus rectangle (mostly for testing)
29482 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
29483 to enforce redraw on focus changes
29484 * ContainerControl.cs:
29485 - Fixed detection of Shift-Tab key presses
29486 - Fixed traversal with arrow keys
29487 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
29488 gonna keep this or if it's complete yet
29490 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
29492 * ComboBox.cs: missing properties, fixes
29494 2005-01-13 Peter Bartok <pbartok@novell.com>
29496 * Panel.cs (ctor): Setting Selectable window style to off
29497 * Splitter.cs (ctor): Setting Selectable window style to off
29498 * GroupBox.cs (ctor): Setting Selectable window style to off
29499 * Label.cs (ctor): Setting Selectable window style to off
29501 2005-01-12 Miguel de Icaza <miguel@ximian.com>
29503 * UpDownBase.cs (InitTimer): If the timer has been already
29504 created, enable it.
29506 Use a TextBox instead of a Label.
29508 2005-01-12 Jackson Harper <jackson@ximian.com>
29510 * TreeView.cs: Refresh the tree after sorting the nodes. Always
29511 draw the connecting node lines (when ShowLines is true).
29512 * TreeNode.cs: The nodes index can now be updated. This is used
29513 when a node collection is sorted.
29514 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
29515 insert or an existing unsorted node collection can be sorted.
29517 2005-01-12 Peter Bartok <pbartok@novell.com>
29519 * ContainerControl.cs: Implemented ProcessDialogKeys()
29521 2005-01-12 Peter Bartok <pbartok@novell.com>
29524 - Implemented SelectNextControl() method
29525 - Several focus related bug fixes
29526 - Fixed Docking calculations to match MS documentation and
29529 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
29531 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
29534 2005-01-12 Peter Bartok <pbartok@novell.com>
29537 - Fixed broken Contains() method
29538 - Implemented GetNextControl() method. Finally. This is the pre-
29539 requisite for focus handling.
29541 2005-01-12 Peter Bartok <pbartok@novell.com>
29543 * OSXStrucs.cs: Added
29545 2005-01-12 Peter Bartok <pbartok@novell.com>
29548 - Removed PeekMessageFlags
29549 - Implemented SetWindowStyle() method
29550 * XplatUIStructs.cs: Added PeekMessageFlags
29551 * X11Structs: Added missing border_width field to XWindowChanges struct
29553 - PeekMessage: Now throws exception if flags which are not yet
29554 supported are passed
29555 - Implemented SetWindowStyle() method
29556 - Fixed SetZOrder to handle AfterHwnd properly
29557 * XplatUI.cs: Added SetWindowStyle() method
29558 * XplatUIDriver.cs: Added SetWindowStyle() abstract
29560 - Implemented UpdateStyles() method
29561 - Implemented UpdateZOrder() method
29562 * XplatUIOSX.cs: Added SetWindowStyle() stub
29564 2005-01-12 Geoff Norton <gnorton@customerdna.com>
29566 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
29570 2005-01-11 Jackson Harper <jackson@ximian.com>
29572 * TreeView.cs: Still need to draw lines to siblings even if out of
29573 the current node is out of the clip.
29575 2005-01-11 Jackson Harper <jackson@ximian.com>
29577 * TreeView.cs: When setting the hbar/vbar/grip position use
29578 SetBounds so that perform layout is only called once. Also suspend
29579 and resume layout so layout is only done once for all controls.
29580 - Removed some debug fluff
29581 * SizeGrip.cs: Call base implmentation in overriding methods.
29582 - When visibility is changed the drawing buffers are killed so we
29585 2005-01-11 Jackson Harper <jackson@ximian.com>
29587 * TreeView.cs: Calculate the open node count while drawing. This
29588 saves us an entire tree traversal for every paint operation. Use
29589 a member var for the open node count so less vars are passed around.
29591 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
29593 * MonthCalendar.cs:
29594 - fixed selection to use mousemove, not mouse polling on timer
29595 * ThemeWin32Classic.cs
29596 - removed redundant unused variable "no_more_content"
29598 2005-01-11 Peter Bartok <pbartok@novell.com>
29600 * XplatUIX11.cs (DoEvents): Needs to return when no more events
29601 are pending, so it now calls PeekMessage instead of GetMessage;
29602 implemented a incomplete version of PeekMessage
29604 2005-01-11 Peter Bartok <pbartok@novell.com>
29606 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
29608 * TextBoxBase.cs: Added sending of TextChanged event
29610 2005-01-10 Jackson Harper <jackson@ximian.com>
29612 * TreeView.cs: Try not to draw outside the clipping rectangle on
29615 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
29617 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
29619 2005-01-10 Jackson Harper <jackson@ximian.com>
29622 - Implement fast scrolling. Now only the newly
29623 exposed nodes are drawn and the old image is moved using the
29624 XplatUI::ScrollWindow method.
29625 - Factor in height of nodes when calculating whether or not the
29626 node is in the clipping rect.
29628 2005-01-10 Jackson Harper <jackson@ximian.com>
29630 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
29632 2005-01-10 Peter Bartok <pbartok@novell.com>
29634 * Application.cs: Added temporary hack to resolve all our resize
29635 required issues on startup. This will get fixed properly at
29636 some point in the future
29638 2005-01-10 Jackson Harper <jackson@ximian.com>
29640 * SizeGrip.cs: New internal class that is used as a sizing
29641 grip control...hence the name.
29643 2005-01-10 Peter Bartok <pbartok@novell.com>
29645 * Control.cs: Implemented proper TabIndex handling, now assigning
29646 a tabindex when a control is added to a container
29647 * GroupBox.cs (ctor): Now sets the Container style bit, required
29648 for Control.GetNextControl()
29650 2005-01-09 Jackson Harper <jackson@ximian.com>
29652 * TextBoxBase.cs: Clear window when scrolling (fixes build).
29654 2005-01-09 Peter Bartok <pbartok@novell.com>
29656 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
29657 XplatUIX11.cs: Added ability to control ScrollWindow expose and
29658 an overload for ScrollWindow to allow only scrolling a rectangle
29660 2005-01-09 Peter Bartok <pbartok@novell.com>
29663 - Implemented SetDesktopBounds method
29664 - Implemented SetDesktopLocation method
29666 2005-01-08 Jackson Harper <jackson@ximian.com>
29668 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
29669 the node count has changed, this removes to VScroll::Refresh calls
29672 2005-01-08 Geoff Norton <gnorton@customerdna.com>
29674 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
29676 2005-01-07 Jackson Harper <jackson@ximian.com>
29678 * TreeNode.cs: Just update the single node when it is
29679 checked. Don't refresh after toggling, the Expand/Collapse already
29681 * TreeView.cs: Respect clipping a little more when drawing. Try
29682 not to redraw things that don't need to be redrawn. Just hide the
29683 scrollbars when they are no longer needed instead of removing
29684 them, so they don't have to be created again and again.
29686 2005-01-07 Geoff Norton <gnorton@customerdna.com>
29688 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
29689 coordinates to window space to place the caret properly, FIXED.
29690 Implement GetWindowState & SetWindowState
29692 2005-01-06 Peter Bartok <pbartok@novell.com>
29695 - Implemented ClientSize property
29696 - Implemented DesktopBounds property
29697 - Implemented DesktopLocation property
29698 - Implemented IsRestrictedWindow property
29699 - Implemented Size property
29700 - Implemented TopLevel property
29701 - Implemented FormWindowState property
29703 - Implemented GetTopLevel() method
29704 - Implemented SetTopLevel() method
29705 * X11Structs.cs (Atom):
29706 - Added AnyPropertyType definition
29707 - Added MapState definiton and updated XWindowAttribute struct
29708 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
29709 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
29710 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
29712 - Implemented GetWindowState() and SetWindowState() methods
29713 - Fixed Win32GetWindowLong return type
29715 - Introduced central function for sending NET_WM messages
29716 - Implemented GetWindowState() and SetWindowState() methods
29717 * TextBoxBase.cs (set_Lines):
29718 - Now uses Foreground color for text added via Text property (Duh!)
29719 - Added code to remember programmatically requested size (fixes
29720 behaviour when Multiline is set after Size)
29721 - Added AutoSize logic
29723 2005-01-06 Jackson Harper <jackson@ximian.com>
29725 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
29727 2005-01-06 Jackson Harper <jackson@ximian.com>
29729 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
29730 set to less then 0.
29732 2005-01-06 Jackson Harper <jackson@ximian.com>
29734 * ScrollableControl.cs: Lazy init the scrollbars.
29736 2005-01-06 Jackson Harper <jackson@ximian.com>
29738 * Theme.cs: Speed up getting pens and solid brushes, by using
29739 their ARGB as a hash instead of tostring and not calling Contains.
29741 2005-01-06 Peter Bartok <pbartok@novell.com>
29744 - Implemented OnActivated and OnDeactivate event trigger
29745 - Implemented Activate() method
29746 - Fixed ShowDialog() to activate the form that was active before
29747 the dialog was shown
29749 - Added global active_window var that tracks the currently active
29751 - Now always grabs Property changes from the root window to always
29752 catch changes on the active window property
29753 - Added code to PropertyNotify handler to send Active/Inactive
29754 messages when state changes. This puts X11 and Win32 en par on
29755 WM_ACTIVATE notifications (except for double notifications when
29756 the user clicks away from our modal window to another one of our
29759 2005-01-05 Jackson Harper <jackson@ximian.com>
29761 * ImageList.cs: Implment ctor
29763 2005-01-05 Geoff Norton <gnorton@customerdna.com>
29765 * XplatUIOSX.cs: Implement Activate/SetTopmost
29767 2005-01-05 Geoff Norton <gnorton@customerdna.com>
29769 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
29771 2005-01-05 Geoff Norton <gnorton@customerdna.com>
29773 * XplatUIOSX.cs: Implement GetActive/SetFocus.
29775 2005-01-05 Peter Bartok <pbartok@novell.com>
29777 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
29778 XplatUIOSX.cs: Added GetActive method to return the currently
29779 active window for the application (or null, if none is active)
29781 - Implemented ActiveForm
29782 - Commented out owner assignment for modal dialogs (causes problems
29783 on Win32, since the owner will be disabled)
29784 - Reworked some Active/Focus handling (still incomplete)
29785 * CommonDialog.cs: Commented out owner assignment for modal dialogs
29786 (causes problems on Win32, since the owner will be disabled)
29787 * IWin32Window: Added ComVisible attribute
29789 2005-01-05 Peter Bartok <pbartok@novell.com>
29791 * ToolTip.cs (WndProc): Enable setting focus now that we have the
29792 required XplatUI functions.
29794 2005-01-05 Peter Bartok <pbartok@novell.com>
29796 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
29797 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
29798 to implement focus and activation handling; still incomplete and
29801 2005-01-04 Peter Bartok <pbartok@novell.com>
29803 * TextBoxBase.cs: Changed access level for Document property to
29804 match switch to internal for TextControl
29806 2005-01-04 Peter Bartok <pbartok@novell.com>
29808 * AccessibleObject: Added ComVisible attribute
29810 2005-01-04 Jackson Harper <jackson@ximian.com>
29812 * X11Keyboard.cs: Remove unneeded var.
29814 2005-01-04 Jackson Harper <jackson@ximian.com>
29816 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
29818 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
29819 ClientMessage. This makes apps exit cleanly (more often).
29821 2005-01-04 Jackson Harper <jackson@ximian.com>
29823 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
29824 handling focus, return correct colors and fonts,
29825 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
29826 handle selection, horizontal scrolling, and mouse interaction.
29828 2005-01-04 Peter Bartok <pbartok@novell.com>
29830 * ICommandExecutor.cs: Added
29831 * IDataGridColumnStyleEditingNotificationService.cs: Added
29832 * IFeatureSupport.cs: Added
29833 * IFileReaderService.cs: Added
29834 * IDataObject.cs: Added ComVisible attribute
29835 * AmbientProperties.cs: Added
29836 * BaseCollection.cs: Added missing attributes
29837 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
29838 * BaseCollection.cs: Added missing attributes
29839 * Binding.cs: Added TypeConverter attribute
29840 * BindingContext.cs: Added DefaultEvent attribute
29841 * BindingsCollection.cs: Added DefaultEvent attribute
29842 * Button.cs: Added DefaultValue attribute
29843 * DragEventArgs.cs: Added ComVisible attribute
29844 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
29845 * KeyEventArgs.cs: Added ComVisible attribute
29846 * KeyPressEventArgs.cs: Added ComVisible attribute
29847 * MouseEventArgs.cs: Added ComVisible attribute
29848 * NavigateEventArgs.cs: Added
29849 * NavigateEventHandler.cs: Added
29850 * FeatureSupport.cs: Added
29851 * OSFeature.cs: Added
29852 * Theme.cs: Added abstract Version property to support OSFeature
29853 * ThemeWin32Classic.cs: Added Version property to
29854 support OSFeature.Themes
29855 * ProgressBar.cs: Removed OnPaintBackground override, not required since
29856 the proper styles to avoid background drawing are set, also doesn't
29858 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
29859 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
29860 * ScrollEventArgs.cs: Added ComVisible attribute
29861 * SplitterEventArgs.cs: Added ComVisible attribute
29862 * AccessibleSelection.cs: Added Flags attribute
29863 * Appearance.cs: Added ComVisible attribute
29864 * Border3DSide.cs: Added ComVisible attribute
29865 * Border3DStyle.cs: Added ComVisible attribute
29866 * BorderStyle.cs: Added ComVisible attribute
29867 * DragAction.cs: Added ComVisible attribute
29868 * ErrorBlinkStyle.cs: Added
29869 * ScrollEventType.cs: Added ComVisible attribute
29870 * AnchorStyles.cs: Added Editor attribute
29871 * DockStyle.cs: Added Editor attribute
29872 * HorizontalAlignment.cs: Added ComVisible attribute
29873 * HelpEventArgs.cs: Added ComVisible attribute
29874 * PaintEventArgs.cs: Added IDisposable
29876 2005-01-04 Peter Bartok <pbartok@novell.com>
29878 * TextControl.cs: Switched Line, LineTag and Document classes to
29881 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
29883 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
29884 Simple mode, fixes, IntegralHeight, etc.
29886 2005-01-04 Peter Bartok <pbartok@novell.com>
29888 * TextBoxBase.cs: Using proper font variable now
29890 2005-01-04 Peter Bartok <pbartok@novell.com>
29892 * Form.cs (ShowDialog): Set parent to owner, if provided
29893 * GroupBox.cs: Removed unused vars
29895 - Added GetHashCode() for Document and LineTag classes
29896 - Removed unused variables
29897 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
29898 to allow translation between continuous char position and line/pos
29899 * CheckBox.cs: Removed vars that are provided by base class
29900 * RadioButton.cs: Removed vars that are provided by base class, added
29901 new keyword where required
29902 * LinkLabel.cs: Added new keyword where required
29903 * Control.cs (WndProc): Removed unused variable
29905 - Finished SelectionLength property
29906 - Implemented SelectionStart property
29907 - Implemented Text property
29908 - Removed unused vars
29909 * MessageBox.cs: Added new keyword where required
29910 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
29912 * MenuAPI.cs: Added new keyword where required
29913 * ButtonBase.cs: Removed vars that are provided by base class, added
29914 new keyword where required
29915 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
29916 argument to double, to allow compiling with csc 2.0 (Atsushi ran
29918 * Application.cs (Run): Now triggers the ThreadExit event
29919 * CommonDialog.cs: Added new keyword where required; now properly sets
29920 parent (owner) for dialog
29921 * XplatUIX11.cs: Commented out unused vars
29922 * StatusBar.cs: Fixed signature for Text property
29923 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
29925 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
29927 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
29928 TrackBar.cs, MonthCalendar.cs: remove unused vars
29930 2005-01-03 Jackson Harper <jackson@ximian.com>
29932 * ThemeWin32Classic.cs:
29933 * X11Keyboard.cs: Remove unused vars.
29935 2005-01-03 Peter Bartok <pbartok@novell.com>
29938 - set_Text: Tied into TextControl
29939 - set_TextAlignment: Tied into TextControl
29941 - Added alignment properties and implemented alignment handling
29942 and drawing (still has a bug, not generating proper expose events)
29943 - Added new Line() constructor to allow passing the line alignment
29944 - Fixed selection setting, properly handling end<start now
29945 - Added aligment considerations to RecalculateDocument()
29947 - Now properly enforces control height for single line controls
29948 - Added support for CharacterCasing
29949 - Added IsInputKey override
29950 - Fixed Keys.Enter logic
29951 - Added SetBoundsCore override
29952 - Fixed mouse selection handling
29954 2005-01-03 Jackson Harper <jackson@ximian.com>
29957 - Collapse and uncheck all nodes when CheckBoxes is disabled.
29958 - Checkboxes are always aligned to the bottom of the node,
29959 regardless of item height.
29960 - Use the node bounds to draw the text so we can center it when
29961 the item height is greater then the font height.
29962 - Node::Bounds are only the text part of the node.
29963 * TreeNode.cs: New method to combine collapsing and unchecking all
29966 2005-01-02 Jackson Harper <jackson@ximian.com>
29968 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
29969 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
29970 tree when a check is changed. TODO: Only refresh the checked node.
29972 2004-12-30 Jackson Harper <jackson@ximian.com>
29974 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
29975 * TreeNode.cs: When collapsing make sure to never collapse the
29978 2004-12-29 Jackson Harper <jackson@ximian.com>
29980 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
29982 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
29984 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
29986 2004-12-28 Peter Bartok <pbartok@novell.com>
29988 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
29991 2004-12-28 Peter Bartok <pbartok@novell.com>
29993 * Control.cs (WndProc): Added WM_HELP handler, now generates
29994 HelpRequested event
29995 * Form.cs: Added HelpButton property and required support code
29996 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
29998 2004-12-28 Peter Bartok <pbartok@novell.com>
30001 - Made DialogForm.owner variable internal
30002 - Added check to ensure owner form is set before setting
30003 owner properties in CreateParams
30005 2004-12-28 Geoff Norton <gnorton@customerdna.com>
30007 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
30008 swizzling. Implement ClientToScreen and ScreenToClient. Implement
30009 GetCursorPos. Fix major visibility issues. Rework the windowing
30010 system to support borderless/titleless windows (implements menus).
30011 Fix GetWindowPos. Implement initial background color support for
30014 2004-12-28 Peter Bartok <pbartok@novell.com>
30016 * Form.cs (get_CreateParams): Make sure we have an owner before using
30017 the owner variable. Implement proper default if no owner exists
30019 2004-12-28 Peter Bartok <pbartok@novell.com>
30021 * In preparation for making Managed.Windows.Forms the default build target
30022 for System.Windows.Forms, the following stubbed files were added.
30023 Dialogs are currently being implemented by contributors and are only
30024 short-term place holders.
30025 * ColorDialog.cs: Initial check-in (minmal stub)
30026 * DataGrid.cs: Initial check-in (minimal stub)
30027 * DataGridLineStyle.cs: Initial check-in (minimal stub)
30028 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
30029 * DataGridTableStyle.cs: Initial check-in (minimal stub)
30030 * FontDialog.cs: Initial check-in (minimal stub)
30031 * FileDialog.cs: Initial check-in (minimal stub)
30032 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
30033 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
30034 * OpenFileDialog: Initial check-in (minimal stub)
30035 * IComponentEditorPageSite.cs: Initial check-in
30036 * Splitter.cs: Initial check-in (for Jackson)
30037 * SplitterEventArgs.cs: Initial check-in (for Jackson)
30038 * SplitterEventHandler.cs: Initial check-in (for Jackson)
30039 * TextBox.cs: Initial check-in; still needs some wiring to
30040 TextControl backend
30041 * Form.cs: Implemented ControlBox property
30042 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
30043 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
30044 * TextControl.cs: Added selection functionality; added todo header
30046 - Implemented Lines property
30047 - Implemented TextHeight property
30048 - Implemented SelectedText property
30049 - Implemented SelectionLength property
30050 - Implemented SelectAll method
30051 - Implemented ToString method
30052 - Removed and cleaned up some debug code
30053 - Implemented (still buggy) mouse text selection
30055 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
30057 * ComboBox.cs: Complete DropDownList implementation, fixes.
30059 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
30061 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
30062 * ComboBoxStyle.cs: ComboBoxStyle enum
30063 * ComboBox.cs: Initial work on ComboBox control
30065 2004-12-21 Peter Bartok <pbartok@novell.com>
30067 * Control.cs (ctor, CreateParams): Moved setting of is_visible
30068 forward so that anything that creates a window gets the default,
30069 also no longer uses Visible property in CreateParams to avoid
30070 walking up the parent chain and possibly get the wrong visible
30071 status. Fixed IsVisible to no longer walk up to the parent.
30073 2004-12-21 Peter Bartok <pbartok@novell.com>
30075 * Form.cs (ShowDialog): Unset modality for the proper window
30077 2004-12-20 Peter Bartok <pbartok@novell.com>
30079 * CommonDialog.cs: Initial check-in
30081 2004-12-20 Peter Bartok <pbartok@novell.com>
30083 * Control.cs (Visible): Now uses the parent window instead of the
30084 client area window for the property
30087 - ShowDialog(): Now uses the proper window for modality
30088 - The default visibility state for the form parent is now false. This
30089 will prevent the user from seeing all the changes to the form and
30090 its controls before the application hits Application.Run()
30091 - Removed some stale commented out code
30094 - Added FindWindow() method to have a method to check for existence
30096 - Added ability to override default exception handling (for example
30097 when debugging with VS.Net; to do this the ExternalExceptionHandler
30099 - Removed some useless debug output
30102 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
30103 not working as expected
30104 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
30105 property to allow switching back to the modal window if focus is
30106 given to another one of our windows (Application Modal)
30107 - Now only sets override_redirect if we create a window
30109 - Moved EventMask selection before mapping of newly created window
30110 so we can catch the map event as well
30111 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
30112 - Added various Atom related DllImports
30113 - Implemented Exit() method
30114 - .ctor() : No longer shows window if WS_VISIBLE is not defined
30115 in the CreateParams
30117 * MessageBox.cs: Now properly deals with the FormParent window by
30118 providing an override the FormParent CreateParams property to
30119 set as POPUP instead of OVERLAPPED window.
30121 2004-12-19 Geoff Norton <gnorton@customerdna.com>
30123 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
30124 Minor code cleanup.
30126 2004-12-19 Geoff Norton <gnorton@customerdna.com>
30128 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
30130 2004-12-18 Peter Bartok <pbartok@novell.com>
30132 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
30133 implementing SetModal() method
30135 2004-12-18 Peter Bartok <pbartok@novell.com>
30137 * X11Structs.cs (XGCValues): Fixed type of function element
30138 * XplatUI.cs: Added ScrollWindow() method
30139 * XplatUIDriver.cs: Added ScrollWindow() abstract
30140 * XplatUIWin32.cs: Implemented ScrollWindow() method
30141 * XplatUIX11.cs: Implemented ScrollWindow() method
30142 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
30144 2004-12-17 Geoff Norton <gnorton@customerdna.com>
30146 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
30147 Some more keyboard support (INCOMPLETE)
30149 2004-12-17 Peter Bartok <pbartok@novell.com>
30152 - Added color attribute to line tags.
30153 - Added color argument to all functions dealing with tags
30154 - Added color argument support to various functions
30155 - Fixed miss-calculation of baseline/shift in certain circumstances
30157 * TextBoxBase.cs: Added new color option to test code
30159 2004-12-17 Jackson Harper <jackson@ximian.com>
30162 * MonthCalendar.cs: Signature fixes
30164 2004-12-17 Geoff Norton <gnorton@customerdna.com>
30166 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
30167 keyboard event moved it. Create a new graphics context for each paint resolves this
30169 2004-12-17 Geoff Norton <gnorton@customerdna.com>
30171 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
30172 Make caret exist and go blink blink. Initial keyboard support.
30173 Fix exception handler, Add Invalidate support. Change way RefreshWindow
30176 2004-12-17 Jackson Harper <jackson@ximian.com>
30178 * XplatUIStructs.cs: Updated set of virtual keycodes.
30179 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
30181 2004-12-17 Jackson Harper <jackson@ximian.com>
30183 * XplatUIX11.cs: Prune old keyboard code.
30185 2004-12-17 Jackson Harper <jackson@ximian.com>
30187 * XplatUIX11.cs: When generating mouse wparams get the modifier
30188 keys from the ModifierKeys property.
30190 2004-12-17 Jackson Harper <jackson@ximian.com>
30192 * X11Keyboard.cs: Send up/down input when generating
30193 messages. Remove some unused vars.
30195 2004-12-17 Jackson Harper <jackson@ximian.com>
30198 * TreeView.cs: get rid of warnings.
30200 2004-12-17 Jackson Harper <jackson@ximian.com>
30202 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
30204 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
30206 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
30207 CheckedListBox.cs: Implementation
30209 2004-12-17 Peter Bartok <pbartok@novell.com>
30211 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
30213 2004-12-16 Peter Bartok <pbartok@novell.com>
30216 - InsertCharAtCaret(): Fixed start pos fixup
30217 - CaretLine_get: No longer derives the line from the tag, the tag
30218 could be stale if lines in the document have been added or deleted
30219 - RebalanceAfterDelete(): Fixed bug in balancing code
30220 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
30221 - Line.Streamline(): Now can also elminate leading empty tags
30222 - DumpTree(): Added a few more tests and prevented exception on
30224 - Added Debug section for Combining lines
30225 - Delete(): Now copies all remaining properties of a line
30228 - Left mousebutton now sets the caret (and middle button still acts
30229 as formatting tester, which must go away soon)
30230 - Added Debug section for Deleting/Combining lines
30231 - Fixed calculations for UpdateView after Combining lines
30233 2004-12-16 Peter Bartok <pbartok@novell.com>
30235 * TextControl.cs: Now properly aligns text on a baseline, using the
30236 new XplatUI.GetFontMetrics() method. Simplified several calculations
30237 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
30240 2004-12-16 Peter Bartok <pbartok@novell.com>
30242 * XplatUI.cs: Added GetFontMetrics() method
30243 * XplatUIDriver.cs: Added GetFontMetrics() abstract
30244 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
30245 into libgdiplus, our private GetFontMetrics function
30246 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
30247 * XplatUIWin32.cs: Implemented GetFontMetrics() method
30249 2004-12-16 Jackson Harper <jackson@ximain.com>
30251 * XplatUIStruct.cs: Add enum for dead keys
30252 * X11Keyboard.cs: Map and unmap dead keys.
30254 2004-12-16 Jackson Harper <jackson@ximian.com>
30256 * X11Keyboard.cs: Detect and use the num lock mask.
30258 2004-12-16 Peter Bartok <pbartok@novell.com>
30260 * Control.cs (CreateGraphics): Added check to make sure the
30261 handle of the window exists before calling Graphics.FromHwnd()
30263 2004-12-16 Peter Bartok <pbartok@novell.com>
30265 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
30266 contains a lot of code that's not supposed to be there for the
30267 real thing, but required for developing/testing the textbox
30270 2004-12-16 Peter Bartok <pbartok@novell.com>
30273 - Fixed Streamline method
30274 - Added FindTag method to Line
30275 - Added DumpTree method for debugging
30276 - Added DecrementLines() method for deleting lines
30277 - Fixed UpdateView to update the cursor to end-of-line on single-line
30279 - Added PositionCaret() method
30280 - Fixed MoveCaret(LineDown) to move into the last line, too
30281 - Added InsertChar overload
30282 - Fixed InsertChar tag offset calculations
30283 - Added DeleteChar() method
30284 - Added Combine() method for folding lines
30285 - Fixed Delete() method, no longer allocates wasted Line object and
30286 now copies all properties when swapping nodes
30287 - Delete() method now updates document line counter
30289 2004-12-15 Jackson Harper <jackson@ximian.com>
30291 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
30292 * X11Keyboard.cs: Expose the currently selected modifier keys
30293 through a property.
30295 2004-12-15 Peter Bartok <pbartok@novell.com>
30297 * TextControl.cs: Initial check-in. Still incomplete
30299 2004-12-15 Jackson Harper <jackson@ximian.com>
30302 * TreeView.cs: Fix build on csc (second time today ;-))
30304 2004-12-15 Jackson Harper <jackson@ximian.com>
30306 * TreeView.cs: Store the treenodes plus/minus box bounds when it
30307 is calculated and use this for click testing.
30308 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
30310 2004-12-15 Jackson Harper <jackson@ximian.com>
30312 * TreeView.cs: Pass the nodes image index to the image list when
30313 drawing that image.
30315 2004-12-15 Jackson Harper <jackson@ximian.com>
30317 * X11Keyboard.cs: Set messages hwnd.
30318 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
30319 post_message calls.
30321 2004-12-15 Jackson Harper <jackson@ximian.com>
30323 * X11Keyboard.cs: Fix to compile with csc.
30325 2004-12-15 Jackson Harper <jackson@ximian.com>
30327 * X11Structs.cs: Add key mask values
30328 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
30329 * X11Keyboard.cs: New file - Extrapolates and interpolates key
30330 down/up foo into WM_CHAR foo
30331 * KeyboardLayouts.cs: Common keyboard layouts
30332 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
30333 post messages into the main queue.
30335 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
30337 * Button.cs: implement ProcessMnemonic
30338 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
30340 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
30341 * ButtonBase.cs: Show HotkeyPrefix (not the &)
30343 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
30345 * MonthCalendar.cs: Implemented click-hold for next/previous month
30348 2004-12-11 Peter Bartok <pbartok@novell.com>
30351 - Added XKeyboardState (moved from XplatUIX11.cs)
30352 - Added XCreateGC related enums and structures
30353 - Added GXFunction for XSetFunction
30355 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
30357 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
30358 CaretVisible() calls
30360 * ToolTip.cs: Added code to prevent stealing focus from app windows
30362 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
30363 DestroyCaret, SetCaretPos and CaretVisible)
30366 - Added implementation for caret functions
30367 - Moved hover variables into a struct, to make it a bit easier
30368 on the eyes and to debug
30369 - Removed XKeyboardState (moved to XplatUIX11.cs)
30370 - Moved Keyboard properties into the properties region
30372 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
30373 call to get a graphics context for our control
30375 * XplatUIOSX.cs: Added empty overrides for the new caret functions
30377 * TreeView.cs: Fixed bug. No matter what color was set it would always
30378 return SystemColors.Window
30380 * XplatUIWin32.cs: Implemented caret overrides
30382 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
30384 * ListBox.cs: fire events, implement missing methods and properties,
30387 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
30389 * MonthCalendar.cs: invalidation bug fixing
30390 * ThemeWin32Classic.cs: paint fixing
30392 2004-12-09 Geoff Norton <gnorton@customerdna.com>
30394 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
30395 prepare the CGContextRef there now.
30397 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
30399 * MonthCalendar.cs:
30400 - optimisationL only invalidate areas that have changed
30401 * ThemeWin32Classic.cs:
30402 - only paint parts that intersect with clip_area
30404 2004-12-09 Peter Bartok <pbartok@novell.com>
30406 * Application.cs: Undid changes from r37004 which cause problems
30409 2004-12-09 Ravindra <rkumar@novell.com>
30411 * ToolBar.cs: Added support for displaying ContextMenu
30412 attached to a button on ToolBar.
30413 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
30416 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
30418 * Label.cs: autosize works in text change and removes unnecessary
30421 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
30423 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
30426 2004-12-08 Geoff Norton <gnorton@customerdna.com>
30428 * XplatUIOSX.cs: Added mouse move/click/grab support
30429 Remove some debugging WriteLines not needed anymore.
30430 Add window resizing/positioning.
30431 Fix visibility on reparenting.
30433 2004-12-08 Peter Bartok <pbartok@novell.com>
30435 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
30437 2004-12-07 Geoff Norton <gnorton@customerdna.com>
30439 * XplatUIOSX.cs: Initial checkin
30440 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
30442 2004-12-03 Ravindra <rkumar@novell.com>
30444 * ListView.cs: Added some keybindings and fixed scrolling.
30445 ScrollBars listen to ValueChanged event instead of Scroll
30446 Event. This would let us take care of all changes being
30447 done in the scrollbars' values programmatically or manually.
30448 * ListView.cs (CanMultiselect): Added a check for shift key.
30449 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
30450 * ListViewItem.cs (Clone): Fixed. We need to make a copy
30451 of ListViewSubItemCollection as well.
30453 2004-12-06 Peter Bartok <pbartok@novell.com>
30455 * Control.cs (Parent): Added check and exception to prevent
30458 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
30460 * ListBox.cs: implemented clipping, selection single and multiple,
30463 2004-12-03 Ravindra <rkumar@novell.com>
30465 * ListView.cs (ListView_KeyDown):
30466 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
30467 when CTRL key is pressed.
30468 * ListViewItem.cs (Selected): Fixed setting the property.
30470 2004-12-03 Marek Safar <marek.safar@seznam.cz>
30472 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
30474 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
30475 MinimizeBox, ShowInTaskbar, TopMost properties.
30477 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
30478 will be implemented).
30480 2004-12-03 Marek Safar <marek.safar@seznam.cz>
30482 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
30484 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
30487 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
30489 * TreeView.cs: BackColor is Colors.Window.
30491 2004-12-01 Jackson Harper <jackson@ximian.com>
30493 * TreeView.cs: When resizing the tree if the user is making it
30494 smaller we don't get expose events, so we need to handle adding
30495 the horizontal scrollbar in the size changed handler as well as
30496 the expose handler.
30498 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
30500 * DrawItemState.cs: fixes wrong enum values
30502 2004-12-01 Jackson Harper <jackson@ximian.com>
30504 * TreeView.cs: Resize the hbar as well as the vbar on resize.
30506 2004-12-01 Jackson Harper <jackson@ximian.com>
30508 * NodeLabelEditEventArgs.cs:
30509 * NodeLabelEditEventHandler.cs:
30510 * OpenTreeNodeEnumerator.cs:
30512 * TreeNodeCollection.cs:
30514 * TreeViewAction.cs:
30515 * TreeViewCancelEventArgs.cs:
30516 * TreeViewCancelEventHandler.cs:
30517 * TreeViewEventArgs.cs:
30518 * TreeViewEventHandler.cs: Initial implementation.
30520 2004-12-01 Ravindra <rkumar@novell.com>
30522 * ListView.cs (CalculateListView): Fixed scrolling related
30523 calculations. Also, removed some debug statements from other
30525 * ListViewItem.cs: Changed access to 'selected' instance variable
30526 from private to internal.
30527 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
30529 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
30531 * ThemeWin32Classic.cs: remove cache of brush and pens for
30532 specific controls and use the global system, fixes scrollbutton
30533 bugs (for small sizes, disabled, etc)
30535 * ScrollBar.cs: does not show the thumb for very small controls
30536 (as MS) and allow smaller buttons that the regular size
30538 2004-12-01 Miguel de Icaza <miguel@ximian.com>
30540 * UpDownBase.cs: Add abstract methods for the interface.
30541 Add new virtual methods (need to be hooked up to TextEntry when it
30543 Add override methods for most features.
30544 Computes the size, forces the height of the text entry.
30546 * NumericUpDown.cs: Put here the current testing code.
30548 * Set eol-style property on all files that do not have mixed line
30549 endings, to minimize the future problems. There are still a few
30550 files with mixed endings, and someone should choose whether they
30551 want to move it or not.
30553 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
30555 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
30558 2004-11-30 Ravindra <rkumar@novell.com>
30560 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
30561 drawing and replaced use of SystemColors by theme colors.
30562 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
30563 * ListView.cs (ListViewItemCollection.Add): Throw exception when
30564 same ListViewItem is being added more than once.
30566 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
30568 * MonthCalendar.cs:
30569 - ControlStyles love to make the control not flicker
30571 2004-11-30 Peter Bartok <pbartok@novell.com>
30573 * CharacterCasing.cs: Added
30575 2004-11-29 Peter Bartok <pbartok@novell.com>
30577 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
30578 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
30579 I am removing these files as they conflict with already completed
30580 work. While it is fantastic to get contributions to MWF, I
30581 respectfully ask that everyone please coordinate their contributions
30582 through mono-winforms-list or #mono-winforms at this time. We're
30583 explicitly avoiding stubbing and don't want controls that don't have
30584 their basic functionality implemented in svn. Please also see
30585 http://www.mono-project.com/contributing/winforms.html
30588 2004-11-29 Marek Safar <marek.safar@seznam.cz>
30590 * Application.cs (ModalRun): Don't hang after exit.
30592 * Theme.cs: New TreeViewDefaultSize property.
30594 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
30595 with less hardcoded SystemColors constant.
30596 Implemented TreeViewDefaultSize.
30598 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
30599 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
30602 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
30604 * MonthCalendar.cs:
30605 - Fix NextMonthDate and PrevMonthDate click moving calendar
30607 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
30609 * MonthCalendar.cs:
30610 - Fix usage of ScrollChange Property when scrolling months
30612 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
30614 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
30615 - Fixes menu destroying
30616 - Support adding and removing items on already created menus
30618 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
30620 * MonthCalendar.cs:
30621 - Re-worked all bolded dates handling to match win32
30622 * ThemeWin32Classic.cs:
30623 - Fixed rendering with bolded dates
30625 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
30627 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
30628 - Horizontal scroolbar
30633 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
30635 * MonthCalendar.cs:
30636 - Fix Usage of MaxSelectionCount from SelectionRange
30637 - Fixed Shift + Cursor Selection
30638 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
30639 - Fixed normal cursor selection to be compat with win32
30640 - Fixed Shift + Mouse Click selection
30642 2004-11-24 Peter Bartok <pbartok@novell.com>
30644 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
30645 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
30647 - CreatedKeyBoardMsg now updates keystate with Alt key
30648 - Added workaround for timer crash to CheckTimers, Jackson will
30649 develop a proper fix and check in later
30650 - Implemented DispatchMessage
30651 - Removed calling the native window proc from GetMessage (call
30652 now moved to DispatchMessage)
30654 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
30655 the keydata (Fixes bug #69831)
30658 - (DispatchMessage): Switched to return IntPtr
30659 - Added DllImport for SetFocus
30661 2004-11-24 Ravindra <rkumar@novell.com>
30663 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
30664 background drawing.
30665 * ListViewItem.cs: Fixed various properties, calculations
30666 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
30667 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
30668 and some internal properties. Fixed MouseDown handler and Paint
30671 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
30673 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
30675 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
30677 * ContainerControl.cs: correct accidental check in of local changes
30679 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
30681 * ThemeWin32Classic.cs:
30682 - Fixed Drawing Last month in grid (sometimes not showing)
30683 * MonthCalendar.cs:
30684 - Fixed title width calculation bug (makeing title small)
30686 2004-11-23 Peter Bartok <pbartok@novell.com>
30689 - Added generation of WM_MOUSEHOVER event
30690 - Added missing assignment of async_method atom
30691 - Fixed WM_ERASEBKGND; now only redraws the exposed area
30693 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
30695 * ThemeWin32Classic.cs:
30696 - Fixed Drawing of today circle when showtodaycircle not set
30697 - fixed drawing of first and last month in the grid (gay dates)
30698 * MonthCalendar.cs:
30699 - Fixed Drawing of today circle
30700 - Fixed drawing of grady dates
30701 - Fixed HitTest for today link when ShowToday set to false
30702 - Fixed DefaultSize to obey ShowToday
30704 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
30706 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
30707 * System.Windows.Forms/Theme.cs
30708 * MonthCalendar.cs: added for MonthCalendar
30709 * SelectionRange.cs: added for MonthCalendar
30710 * Day.cs: added for MonthCalendar: added for MonthCalendar
30711 * DateRangeEventArgs.cs: added for MonthCalendar
30712 * DateRangeEventHandler.cs: added for MonthCalendar
30714 2004-11-22 Ravindra <rkumar@novell.com>
30716 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
30719 2004-11-22 Miguel de Icaza <miguel@ximian.com>
30721 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
30724 * NumericUpDown.cs: Added new implementation.
30725 * UpDownBase.cs: Added new implementation.
30727 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
30730 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
30733 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
30736 2004-11-21 Miguel de Icaza <miguel@ximian.com>
30738 * Timer.cs (Dispose): Should call the base dispose when
30741 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
30743 * ScrollBar.cs: updates thumb position when max, min or increment
30746 2004-11-21 Ravindra <rkumar@novell.com>
30748 * ListView.cs: Implemented item selection, activation and
30749 column header style. Fixed properties to do a redraw, if
30750 required. Added support for MouseHover, DoubleClick, KeyDown
30751 and KeyUp event handling and some minor fixes.
30752 * ListViewItem.cs: Fixed constructor.
30753 * ThemeWin32Classic.cs: Improved drawing for ListView.
30755 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
30757 * ThemeWin32Classic.cs: initial listbox drawing code
30758 * DrawMode.cs: new enumerator
30759 * ListControl.cs: stubbed class
30760 * ListBox.cs: initial implementation
30761 * Theme.cs: new methods definitions
30762 * SelectionMode.cs: new enumerator
30764 2004-11-17 Peter Bartok <pbartok@novell.com>
30766 * XplatUIWin32.cs: Added double-click events to the class style
30767 * Control.cs (WndProc):
30768 - Added handling of click-count to MouseDown/ MouseUp events.
30769 - Added handling of middle and right mouse buttons
30770 - Removed old debug code
30772 2004-11-17 Jackson Harper <jackson@ximian.com>
30774 * XplatUIX11.cs: Use the new Mono.Unix namespace.
30776 2004-11-17 Ravindra <rkumar@novell.com>
30778 * ListView.cs: Added event handling for MouseMove/Up/Down.
30779 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
30780 * ThemeWin32Classic.cs: We need to clear the graphics context and
30781 draw column header in a proper state.
30784 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
30786 * Menu.cs: fixes signature
30788 2004-11-16 Peter Bartok <pbartok@novell.com>
30790 * XplatUIX11.cs (GetMessage): Implemented generation of
30791 double click mouse messages
30793 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
30795 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
30798 2004-11-11 Peter Bartok <pbartok@novell.com>
30800 * HandleData.cs: Added Visible property
30801 * XplatUIX11.cs (IsVisible): Now uses Visible property from
30803 * XplatUIX11.cs: Removed old debug leftovers
30804 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
30805 * Control.cs (WndProc): Removed old debug leftovers,
30806 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
30807 needed WM_SIZE handling
30809 2004-11-11 Jackson Harper <jackson@ximian.com>
30811 * OwnerDrawPropertyBag.cs:
30812 * TreeViewImageIndexConverter.cs: Initial implementation
30814 2004-11-10 Jackson Harper <jackson@ximian.com>
30816 * ThemeWin32Classic.cs:
30817 * TabControl.cs: instead of moving tabs by the slider pos just
30818 start drawing at the tab that is offset by the slider. This way
30819 scrolling always moves by exactly one tab.
30821 2004-11-10 Jackson Harper <jackson@ximian.com>
30823 * TabControl.cs: You can only scroll left when the slider has
30824 already ben moved right.
30826 2004-11-10 Jackson Harper <jackson@ximian.com>
30828 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
30831 2004-11-10 Jackson Harper <jackson@ximian.com>
30833 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
30836 2004-11-09 Jackson Harper <jackson@ximian.com>
30838 * TabControl.cs (CalcXPos): New helper method so we can determine
30839 the proper place to start drawing vertical tabs.
30840 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
30842 2004-11-09 Jackson Harper <jackson@ximian.com>
30844 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
30845 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
30846 and Bottom, left and right are illegal values for this and
30847 multiline is enabled when the alignment is set to left or right.
30848 (DrawTab): Each alignment block should draw the text itself now
30849 because Left requires special love. Also add rendering for Left
30852 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
30854 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
30855 does not destroy the windows, removes debugging messages
30857 2004-11-09 jba <jba-mono@optusnet.com.au>
30859 * ThemeWin32Classic.cs
30860 (DrawButtonBase): Fix verticle text rect clipping in windows
30861 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
30862 rendering and incorrect text rect clipping
30863 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
30864 rendering and incorrect text rect clipping
30866 2004-11-08 Jackson Harper <jackson@ximian.com>
30868 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
30869 bottom when they are bottom aligned so the bottoms of the tabs get
30871 * TabControl.cs (DropRow): Move rows up instead of down when the
30872 tab control is bottom aligned.
30874 2004-11-08 13:59 pbartok
30877 - Added handling for various window styles
30878 - Added handling for popup windows
30879 - Added SetTopmost handling
30881 2004-11-08 13:55 pbartok
30884 - Added argument to SetTopmost method
30885 - Fixed broken ClientToScreen function
30887 2004-11-08 13:53 pbartok
30889 * XplatUIStructs.cs:
30890 - Added missing WS_EX styles
30892 2004-11-08 13:53 pbartok
30894 * XplatUI.cs, XplatUIDriver.cs:
30895 - Added argument to SetTopmost
30897 2004-11-08 13:52 pbartok
30900 - Added XSetWindowAttributes structure
30901 - Improved XWindowAttributes structure
30902 - Added SetWindowValuemask enum
30903 - Added window creation arguments enum
30904 - Added gravity enum
30905 - Added Motif hints structure
30906 - Added various Motif flags and enums
30907 - Added PropertyMode enum for property functions
30909 2004-11-08 13:50 pbartok
30912 - Fixed arguments for updated SetTopmost method
30914 2004-11-08 13:49 pbartok
30917 - Fixed arguments for updated SetTopmost function
30918 - Fixed usage of PointToClient
30920 2004-11-08 13:44 pbartok
30923 - Added Clipping of children and siblings
30925 2004-11-08 13:41 pbartok
30928 - Removed SetMenuBarWindow call. We do this in Form.cs
30930 2004-11-08 13:40 jackson
30932 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
30933 scrolling jimmi in the correct location with bottom aligned tabs
30935 2004-11-08 13:36 pbartok
30937 * ContainerControl.cs:
30938 - Implemented BindingContext
30939 - Implemented ParentForm
30941 2004-11-08 12:46 jackson
30943 * TabControl.cs: Put bottom rendered tabs in the right location
30945 2004-11-08 07:15 jordi
30947 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
30950 2004-11-05 17:30 jackson
30952 * TabControl.cs: When selected tabs are expanded make sure they
30953 don't go beyond the edges of the tab control
30955 2004-11-05 14:57 jackson
30957 * TabControl.cs: Reset show_slider so if the control is resized to
30958 a size where it is no longer needed it's not displayed anymore
30960 2004-11-05 13:16 jackson
30962 * TabControl.cs: Make tab pages non visible when added to the
30965 2004-11-05 12:42 jackson
30967 * TabControl.cs: Implement SizeMode.FillToRight
30969 2004-11-05 12:16 jackson
30971 * Control.cs: Do not call CreateHandle if the handle is already
30974 2004-11-05 11:46 jackson
30976 * TabControl.cs: Remove superflous call to CalcTabRows
30978 2004-11-05 09:07 jackson
30980 * XplatUIX11.cs: Update for Mono.Posix changes
30982 2004-11-05 07:00 ravindra
30984 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
30987 2004-11-04 22:47 jba
30989 * ThemeWin32Classic.cs:
30990 - Fix Button rendering for FlatStyle = Flat or Popup
30991 - Fix RadioButton and CheckBox rendering when Appearance = Button
30992 (normal and flatstyle).
30993 - Correct outer rectangle color when drawing focus rectangle
30994 - Adjust button bounds to be 1 px smaller when focused
30995 - Make button not draw sunken 3d border when pushed (windows compat)
30996 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
30997 - Offset the text in RadioButton and Checkbox when being rendered as
30999 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
31001 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
31002 - Fixed disabled text rendering for normally rendered radiobuttons
31004 2004-11-04 10:26 jackson
31006 * TabControl.cs: Recalculate tab rows when resizing
31008 2004-11-04 07:47 jordi
31010 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
31011 collection completion, drawing issues, missing features
31013 2004-11-04 05:03 ravindra
31016 - We need to recalculate the Thumb area when
31017 LargeChange/maximum/minimum values are changed.
31018 - We set the 'pos' in UpdatePos() method to minimum, if it's less
31019 than minimum. This is required to handle the case if large_change is
31020 more than max, and use LargeChange property instead of large_change
31022 - We return max+1 when large_change is more than max, like MS does.
31024 2004-11-04 04:29 ravindra
31026 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
31027 - Changed default value signatures (prefixed all with ListView).
31028 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
31030 - Fixed calculations for ListViewItem and implemented Clone()
31033 2004-11-04 04:26 ravindra
31035 * Theme.cs, ThemeWin32Classic.cs:
31036 - Changed default ListView values signatures (prefixed all with
31038 - Fixed default size values for VScrollBar and HScrollBar.
31039 - Fixed DrawListViewItem method.
31041 2004-11-04 04:05 ravindra
31043 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
31045 2004-11-04 04:04 ravindra
31047 * ImageList.cs: Implemented the missing overload for Draw method.
31049 2004-11-03 19:29 jackson
31051 * TabControl.cs: Handle dropping rows on selection properly
31053 2004-11-03 11:59 jackson
31055 * TabControl.cs: remove debug code
31057 2004-11-03 11:52 jackson
31059 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
31060 the scrolly widgerywoo
31062 2004-11-02 13:52 jackson
31064 * TabControl.cs: Resize the tab pages and tabs when the tab control
31067 2004-11-02 13:40 jackson
31069 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
31070 selected tab to the bottom
31072 2004-11-02 13:39 jackson
31074 * TabPage.cs: Store the tab pages row
31076 2004-11-02 12:33 jordi
31078 * MenuItem.cs: fixes handle creation
31080 2004-11-02 11:42 jackson
31082 * TabControl.cs: signature fix
31084 2004-11-02 08:56 jackson
31086 * TabControl.cs: Calculate whether the tab is on an edge properly.
31087 Remove top secret debugging code
31089 2004-11-01 19:57 jackson
31091 * TabControl.cs: Add click handling, and proper sizing
31093 2004-11-01 19:47 jackson
31095 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
31098 2004-11-01 19:39 jackson
31100 * TabPage.cs: add internal property to store the bounds of a tab
31103 2004-10-30 04:23 ravindra
31105 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
31108 2004-10-30 04:21 ravindra
31110 * ListView.cs, ListViewItem.cs: Added support for scrolling and
31111 fixed calculations.
31113 2004-10-30 03:06 pbartok
31116 - Removed extension of DllImported libs
31118 2004-10-29 09:55 jordi
31120 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
31121 navigation, itemcollection completion, menu fixes
31123 2004-10-27 22:58 pbartok
31126 - Now throws a nice error message when no X display could be opened
31128 2004-10-26 13:51 jordi
31130 * ListView.cs: removes warning
31132 2004-10-26 03:55 ravindra
31134 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
31135 ThemeWin32Classic.cs: Some formatting for my last checkins.
31137 2004-10-26 03:36 ravindra
31139 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
31140 control and default values.
31142 2004-10-26 03:35 ravindra
31144 * Theme.cs: Added some default values for ListView control.
31146 2004-10-26 03:33 ravindra
31148 * ToolBar.cs: ToolBar should use the user specified button size, if
31149 there is any. Added a size_specified flag for the same.
31151 2004-10-26 03:33 ravindra
31153 * ColumnHeader.cs: Added some internal members and calculations for
31156 2004-10-26 03:32 ravindra
31158 * ListViewItem.cs: Calculations for ListViewItem.
31160 2004-10-26 03:31 ravindra
31162 * ListView.cs: Added some internal members and calculations for
31165 2004-10-22 13:31 jordi
31167 * MenuAPI.cs: speedup menus drawing
31169 2004-10-22 13:16 jackson
31171 * XplatUIX11.cs: Make sure to update exposed regions when adding an
31174 2004-10-22 11:49 jackson
31178 2004-10-22 11:41 jackson
31180 * Control.cs: Check to see if the window should have its background
31181 repainted by X when drawing.
31183 2004-10-22 11:31 jackson
31185 * XplatUIX11.cs: When invalidating areas only use XClearArea if
31186 clear is true, this way we do not get flicker from X repainting the
31189 2004-10-22 11:28 jackson
31191 * XEventQueue.cs: Queue properly
31193 2004-10-21 09:38 jackson
31195 * XEventQueue.cs: Fix access modifier
31197 2004-10-21 09:36 jackson
31199 * XEventQueue.cs: Don't loose messages
31201 2004-10-21 09:22 jackson
31203 * XEventQueue.cs: Don't loose messages
31205 2004-10-20 04:15 jordi
31207 * BootMode.cs: enum need it by SystemInfo
31209 2004-10-19 21:58 pbartok
31212 - Small sanity check
31214 2004-10-19 21:56 pbartok
31217 - Added private FormParentWindow class which acts as the container
31218 for our form and as the non-client area where menus are drawn
31219 - Added/Moved required tie-ins to Jordi's menus
31220 - Fixed/Implemented the FormStartPosition functionality
31222 2004-10-19 21:52 pbartok
31225 - Removed unneeded locals
31226 - Added code to all size and location properties to understand and
31227 deal with the parent container of Form
31229 2004-10-19 21:33 pbartok
31232 - Fixed to deal with new Form subclasses for menus
31234 2004-10-19 17:48 jackson
31236 * XEventQueue.cs: commit correct version of file
31238 2004-10-19 16:50 jackson
31240 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
31242 2004-10-19 16:15 jordi
31244 * MenuAPI.cs: MenuBarCalcSize returns the height
31246 2004-10-19 08:31 pbartok
31249 - Added missing call to PreProcessMessage before calling OnXXXKey
31252 2004-10-19 00:04 ravindra
31254 * ToolTip.cs: Fixed constructor.
31256 2004-10-18 09:31 jordi
31258 * MenuAPI.cs: menuitems in menubars do not have shortcuts
31260 2004-10-18 09:26 jordi
31262 * MenuItem.cs: fixes MenuItem class signature
31264 2004-10-18 08:56 jordi
31266 * MenuAPI.cs: prevents windows from showing in the taskbar
31268 2004-10-18 00:28 ravindra
31270 * ToolTip.cs: Suppressed a warning message.
31272 2004-10-18 00:27 ravindra
31274 * Control.cs: Default value of visible property must be true.
31276 2004-10-17 23:19 pbartok
31279 - Complete implementation
31281 2004-10-17 23:19 pbartok
31284 - Added EnableWindow method
31285 - Added SetModal stub
31286 - Added generation of WM_ACTIVATE message (still needs testing)
31287 - Added SetTopMost stub
31288 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
31290 2004-10-17 23:17 pbartok
31293 - Removed VirtualKeys to XplatUIStructs
31294 - Implemented SetTopMost method
31295 - Implemented EnableWindow method
31296 - Bugfix in ScreenToClient()
31297 - Bugfixes in ClientToScreen()
31299 2004-10-17 22:51 pbartok
31301 * XplatUIStructs.cs:
31302 - Added WS_EX styles to WindowStyles enumeration
31304 2004-10-17 22:50 pbartok
31306 * XplatUI.cs, XplatUIDriver.cs:
31307 - Added method for enabling/disabling windows
31308 - Added method for setting window modality
31309 - Added method for setting topmost window
31311 2004-10-17 22:49 pbartok
31313 * ThemeWin32Classic.cs:
31314 - Added ToolTip drawing code
31316 2004-10-17 22:49 pbartok
31319 - Added ToolTip abstracts
31321 2004-10-17 22:47 pbartok
31324 - Fixed Form.ControlCollection to handle owner relations
31325 - Added Owner/OwnedForms handling
31326 - Implemented Z-Ordering for owned forms
31327 - Removed unneeded private overload of ShowDialog
31328 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
31330 - Fixed Close(), had wrong default
31331 - Added firing of OnLoad event
31332 - Added some commented out debug code for Ownership handling
31334 2004-10-17 22:16 pbartok
31337 - Fixed/implemented flat list of controls
31339 2004-10-17 22:14 pbartok
31342 - Added code to simulate modal dialogs on Win32
31344 2004-10-17 16:11 jordi
31346 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
31349 2004-10-17 13:39 jordi
31351 * MenuAPI.cs: menu drawing fixes
31353 2004-10-15 09:10 ravindra
31355 * StructFormat.cs: General Enum.
31357 2004-10-15 09:09 ravindra
31359 * SizeGripStyle.cs: Enum for Form.
31361 2004-10-15 09:08 ravindra
31363 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
31364 in Theme for ListView.
31366 2004-10-15 09:06 ravindra
31368 * ColumnHeader.cs: Flushing some formatting changes.
31370 2004-10-15 09:05 ravindra
31372 * ListViewItem.cs: Implemented GetBounds method and fixed coding
31375 2004-10-15 09:03 ravindra
31377 * ListView.cs: Implemented Paint method and fixed coding style.
31379 2004-10-15 07:34 jordi
31381 * MenuAPI.cs: fix for X11
31383 2004-10-15 07:32 ravindra
31385 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
31386 - Renamed Paint() method to Draw() for clarity. Also, moved
31387 DrawImage() to OnPaint().
31389 2004-10-15 07:25 ravindra
31391 * CheckBox.cs, RadioButton.cs:
31392 - Removed Redraw (), we get it from ButtonBase.
31393 - Implemented Paint (), to do class specific painting.
31395 2004-10-15 07:16 ravindra
31398 - Redraw () is not virtual now.
31399 - Added an internal virtual method Paint (), so that
31400 derived classes can do their painting on their own.
31401 - Modified OnPaint () to call Paint ().
31403 2004-10-15 06:43 jordi
31405 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
31406 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
31408 2004-10-15 00:30 ravindra
31411 - MessageBox on windows does not have min/max buttons.
31412 This change in CreateParams fixes this on Windows. We
31413 still need to implement this windowstyle behavior in
31416 2004-10-14 05:14 ravindra
31419 - Changed Redraw () to do a Refresh () always.
31420 - Fixed the MouseMove event handling when mouse is pressed,
31421 ie drag event handling.
31422 - Replaced the usage of ToolBarButton.Pressed property to
31423 ToolBarButton.pressed internal variable.
31425 2004-10-14 05:10 ravindra
31427 * ToolBarButton.cs:
31428 - Added an internal member 'inside' to handle mouse move
31429 with mouse pressed ie mouse drag event.
31430 - Changed 'Pressed' property to return true only when
31431 'inside' and 'pressed' are both true.
31432 - Some coding style love.
31434 2004-10-14 00:17 ravindra
31436 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
31439 2004-10-14 00:15 ravindra
31441 * ButtonBase.cs: Redraw () related improvements.
31443 2004-10-14 00:14 ravindra
31445 * MessageBox.cs: Moved InitFormSize () out of Paint method and
31446 removed unnecessary calls to Button.Show () method.
31448 2004-10-13 17:50 pbartok
31452 - Removed destroying of window until we solve the problem of X
31453 destroying the window before us on shutdown
31455 2004-10-13 16:32 pbartok
31458 - Now Redraws on MouseUp for FlatStyle Flat and Popup
31460 2004-10-13 14:18 pbartok
31463 - Added code to destroy the X window
31465 2004-10-13 14:18 pbartok
31468 - Added code to destroy a window
31470 2004-10-13 14:12 pbartok
31473 - Added the Redraw on Resize that got dropped in the last rev
31475 2004-10-13 09:06 pbartok
31477 * ThemeWin32Classic.cs:
31478 - Path from John BouAntoun:
31479 * Fix check rendering (centre correctly for normal style, offset
31480 correctly for FlatStyle).
31481 * Fix border color usage (use backcolor) for FlatStyle.Popup
31482 * Use checkbox.Capture instead of checkbox.is_pressed when
31483 rendering flatstyle states.
31485 2004-10-12 21:48 pbartok
31487 * ThemeWin32Classic.cs:
31488 - Removed all occurences of SystemColors and replaced them with the
31489 matching theme color
31491 2004-10-12 21:41 pbartok
31493 * ThemeWin32Classic.cs:
31494 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
31495 him using the function for flatstyle drawing
31496 - Changed functions to use the new version of CPDrawBorder3D
31498 2004-10-12 21:15 pbartok
31501 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
31502 match MS documentation. They need to return defined colors if the
31503 passed color matches the configured control color. Thanks to John
31504 BouAntoun for pointing this out.
31506 2004-10-12 20:57 pbartok
31509 - Fix from John BouAntoun: Raise ForeColorChanged event when text
31512 2004-10-12 20:46 pbartok
31515 - Fix from John BouAntoun: Now properly sets the Appearance property
31517 2004-10-12 20:45 pbartok
31519 * ThemeWin32Classic.cs:
31520 - Fixes from John BouAntoun: now handles forecolors and backcolors
31521 for flatstyle rendered controls much better; It also fixes normal
31522 checkbox rendering when pushed or disabled.
31524 2004-10-08 02:50 jordi
31526 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
31529 2004-10-07 08:56 jordi
31531 * ThemeWin32Classic.cs: Removes deletion of cached brushes
31533 2004-10-06 03:59 jordi
31535 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
31536 XplatUIWin32.cs: removes warnings from compilation
31538 2004-10-05 12:23 jackson
31540 * RadioButton.cs: Fix ctor
31542 2004-10-05 11:10 pbartok
31545 - Partial implementation by Benjamin Dasnois
31547 2004-10-05 10:15 jackson
31549 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
31552 2004-10-05 03:07 ravindra
31555 - Removed a private method, Draw ().
31556 - Fixed the ButtonDropDown event handling.
31557 - Fixed MouseMove event handling.
31559 2004-10-05 03:04 ravindra
31561 * ThemeWin32Classic.cs:
31562 - Added DrawListView method and ListViewDefaultSize property.
31563 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
31564 - Changed DOS style CRLF to Unix format (dos2unix).
31566 2004-10-05 03:03 ravindra
31569 - Added DrawListView method and ListViewDefaultSize property.
31571 2004-10-05 02:42 ravindra
31573 * ToolBarButton.cs: Added an internal member dd_pressed to handle
31574 clicks on DropDown arrow.
31576 2004-10-04 22:56 jackson
31578 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
31579 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
31580 Control handle the buffers, derived classes should not have to
31581 CreateBuffers themselves.
31583 2004-10-04 21:20 jackson
31585 * StatusBar.cs: The control handles resizing the buffers now.
31587 2004-10-04 21:18 jackson
31589 * Control.cs: When resizing the buffers should be invalidated. This
31590 should be handled in Control not in derived classes.
31592 2004-10-04 14:45 jackson
31596 2004-10-04 02:14 pbartok
31598 * LeftRightAlignment.cs:
31601 2004-10-04 01:09 jordi
31603 * ThemeWin32Classic.cs: fixes right button position causing right
31604 button not showing on horizontal scrollbars
31606 2004-10-02 13:12 pbartok
31609 - Simplified the Invalidate method by using an X call instead of
31610 generating the expose ourselves
31611 - Added an expose when the window background is changed
31612 - Implemented ClientToScreen method
31614 2004-10-02 13:08 pbartok
31617 - Added Win32EnableWindow method (test for implementing modal
31619 - Added ClientToScreen method and imports
31621 2004-10-02 13:07 pbartok
31623 * XplatUI.cs, XplatUIDriver.cs:
31624 - Added ClientToScreen coordinate translation method
31626 2004-10-02 13:06 pbartok
31628 * KeyPressEventArgs.cs:
31629 - Fixed access level for constructor
31631 2004-10-02 13:06 pbartok
31634 - Changed access level for the window_collection hash table
31636 2004-10-02 13:05 pbartok
31639 - Added KeyPreview property
31640 - Added Menu property (still incomplete, pending Jordi's menu work)
31641 - Implemented ProcessCmdKey
31642 - Implemented ProcessDialogKey
31643 - Implemented ProcessKeyPreview
31645 2004-10-02 13:02 pbartok
31648 - Added private method to get the Control object from the window
31650 - Implemented ContextMenu property
31651 - Implemented PointToScreen
31652 - Implemented PreProcessMessage
31653 - Implemented IsInputChar
31654 - Implemented IsInputKey
31655 - Implemented ProcessCmdKey
31656 - Completed ProcessKeyEventArgs
31657 - Fixed message loop to call the proper chain of functions on key
31659 - Implemented ProcessDialogChar
31660 - Implemented ProcessDialogKey
31661 - Implemented ProcessKeyMessage
31662 - Implemented ProcessKeyPreview
31663 - Added RaiseDragEvent stub (MS internal method)
31664 - Added RaiseKeyEvent stub (MS internal method)
31665 - Added RaiseMouseEvent stub (MS Internal method)
31666 - Added RaisePaintEvent stub (MS Internal method)
31667 - Added ResetMouseEventArgs stub (MS Internal method)
31668 - Implemented RtlTranslateAlignment
31669 - Implemented RtlTranslateContent
31670 - Implemented RtlTranslateHorizontal
31671 - Implemented RtlTranslateLeftRight
31672 - Added generation of KeyPress event
31674 2004-10-02 05:57 ravindra
31676 * ListViewItem.cs: Added attributes.
31678 2004-10-02 05:32 ravindra
31680 * ListView.cs: Added attributes.
31682 2004-10-01 11:53 jackson
31684 * Form.cs: Implement the Close method so work on MessageBox can
31687 2004-09-30 14:06 pbartok
31692 2004-09-30 11:34 jackson
31694 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
31696 2004-09-30 07:26 ravindra
31698 * ListViewItemConverter.cs: Converter for ListViewItem.
31700 2004-09-30 07:26 ravindra
31702 * SortOrder.cs: Enum for ListView control.
31704 2004-09-30 07:25 ravindra
31706 * ColumnHeader.cs: Supporting class for ListView control.
31708 2004-09-30 07:24 ravindra
31710 * ListView.cs, ListViewItem.cs: Initial implementation.
31712 2004-09-30 07:20 ravindra
31714 * ItemActivation.cs: Enum for ListView Control.
31716 2004-09-29 20:29 pbartok
31719 - Added lookup of pixel value for background color; tries to get a
31720 color 'close' to the requested color, it avoids having to create a
31721 colormap. Depending on the display this could mean the used color
31722 is slightly off the desired color. Might have to change it to a more
31723 resource intensive colormap approach, but it will work as a
31724 workaround to avoid red screens.
31726 2004-09-29 14:27 jackson
31728 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
31730 2004-09-28 12:44 pbartok
31732 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
31733 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
31734 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
31735 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
31736 TrackBar.cs, VScrollBar.cs:
31737 - Streamlined Theme interfaces:
31738 * Each DrawXXX method for a control now is passed the object for
31739 the control to be drawn in order to allow accessing any state the
31740 theme might require
31742 * ControlPaint methods for the theme now have a CP prefix to avoid
31743 name clashes with the Draw methods for controls
31745 * Every control now retrieves it's DefaultSize from the current
31748 2004-09-28 12:17 jackson
31750 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
31753 2004-09-24 14:57 jackson
31755 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
31756 Gives us a nice little performance boost.
31758 2004-09-24 12:02 jackson
31760 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
31761 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
31762 Control and supporting classes. Initial checkin
31764 2004-09-23 13:08 jackson
31766 * Form.cs: Temp build fixage
31768 2004-09-23 01:39 ravindra
31770 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
31771 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
31772 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
31773 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
31774 EventHandlers needed by ListView Control.
31776 2004-09-22 14:12 pbartok
31778 * ScrollableControl.cs:
31779 - Implemented DockPadding property
31780 - Implemented AutoScroll property
31781 - Implemented AutoScrollMargin property
31782 - Implemented AutoScrollMinSize property
31783 - Implemented AutoScrollPosition property
31784 - Implemented DisplayRectangle property (still incomplete)
31785 - Implemented CreateParams property
31786 - Implemented HScroll property
31787 - Implemented VScroll property
31788 - Implemented OnVisibleChanged property
31790 2004-09-22 14:09 pbartok
31793 - Added Form.ControllCollection class
31794 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
31795 RemoveOwnedForm (still incomplete, missing on-top and common
31796 minimize/maximize behaviour)
31797 - Added StartPosition property (still incomplete, does not use when
31799 - Added ShowDialog() methods (still incomplete, missing forcing the
31802 2004-09-22 14:05 pbartok
31805 - Added message loop for modal dialogs
31807 2004-09-22 14:02 pbartok
31810 - Fixed wrong types for events
31812 2004-09-22 14:00 pbartok
31814 * Shortcut.cs, FormWindowState.cs:
31815 - Fixed wrong values
31817 2004-09-22 12:01 jackson
31819 * Control.cs: Text is never null
31821 2004-09-20 22:14 pbartok
31824 - Fixed accessibility level for Idle handler
31826 2004-09-20 18:54 jackson
31828 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31829 XplatUIX11.cs: New message loop that uses poll so we don't get a
31832 2004-09-17 10:43 pbartok
31835 - Fixed behaviour of arrow buttons. Now properly behaves like
31836 Buttons (and like Microsoft's scrollbar arrow buttons)
31838 2004-09-17 10:14 pbartok
31841 - Added missing release of keyboard/mouse capture
31843 2004-09-17 06:18 jordi
31845 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
31846 Theme.cs: Very early menu support
31848 2004-09-16 17:45 pbartok
31851 - Fixed sending a window to the front
31852 - Added overload for SetWindowPos to avoid casting
31854 2004-09-16 17:44 pbartok
31857 - Added SendToBack and BringToFront methods
31859 2004-09-16 07:00 ravindra
31861 * Copyright: Added Novell URL.
31863 2004-09-16 07:00 ravindra
31865 * ToolBar.cs: Invalidate should be done before redrawing.
31867 2004-09-15 21:19 ravindra
31869 * ColumnHeaderStyle.cs: Enum for ListView Control.
31871 2004-09-15 21:18 ravindra
31873 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
31876 2004-09-13 18:26 jackson
31878 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
31881 2004-09-13 18:13 jackson
31883 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
31884 a second thread and post messages into the main threads message
31885 queue. This makes timing much more consistent. Both win2K and XP
31886 have a minimum timer value of 15 milliseconds, so we now do this
31889 2004-09-13 15:18 pbartok
31891 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31893 - Added Z-Ordering methods
31895 2004-09-13 10:56 pbartok
31898 - Fixed #region names
31899 - Moved properties and methods into their proper #regions
31901 2004-09-13 10:51 pbartok
31904 - Added Accept and CancelButton properties
31905 - Added ProcessDialogKey() method
31907 2004-09-13 08:18 pbartok
31909 * IWindowTarget.cs:
31912 2004-09-10 21:50 pbartok
31915 - Added DoDragDrop() [incomplete]
31916 - Properly implemented 'Visible' handling
31917 - Added SetVisibleCore()
31918 - Implemented FindChildAtPoint()
31919 - Implemented GetContainerControl()
31920 - Implemented Hide()
31922 2004-09-10 19:28 pbartok
31925 - Moved methods into their appropriate #regions
31926 - Reordered methods within regions alphabetically
31928 2004-09-10 18:57 pbartok
31930 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
31931 - Added method to retrieve text from window
31933 2004-09-10 18:56 pbartok
31936 - Moved some internal functions into the internal region
31937 - Implemented FontHeight
31938 - Implemented RenderRightToLeft
31939 - Implemented ResizeRedraw
31940 - Implemented ShowFocusCues
31941 - Implemented ShowKeyboardCues
31942 - Implemented FromChildHandle
31943 - Implemented FromHandle
31944 - Implemented IsMnemonic
31945 - Implemented ReflectMessage
31946 - All public and protected Static Methods are now complete
31948 2004-09-10 16:54 pbartok
31951 - Implemented remaining missing public instance properties
31952 - Alphabetized some out of order properties
31954 2004-09-10 05:51 ravindra
31956 * PictureBox.cs: Added a check for null image.
31958 2004-09-10 00:59 jordi
31960 * GroupBox.cs: remove cvs tag
31962 2004-09-09 05:25 ravindra
31964 * ToolBar.cs: Make redraw accessible from ToolBarButton.
31966 2004-09-09 05:23 ravindra
31968 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
31971 2004-09-09 02:28 pbartok
31973 * ThemeWin32Classic.cs:
31974 - Improve disabled string look
31976 2004-09-09 01:15 jordi
31978 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
31981 2004-09-08 23:56 ravindra
31983 * ItemBoundsPortion.cs: It's enum, not a class!
31985 2004-09-08 23:47 ravindra
31987 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
31990 2004-09-08 21:13 ravindra
31992 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
31995 2004-09-08 21:03 ravindra
31997 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
32000 2004-09-08 21:01 ravindra
32002 * ScrollableControl.cs: Removed unreachable code.
32004 2004-09-08 06:45 jordi
32006 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
32008 2004-09-08 01:00 jackson
32010 * XplatUIX11.cs: Only run the timers when updating the message
32011 queue. This effectively gives X messages a higher priority then
32012 timer messages. Timers still need love though
32014 2004-09-07 14:01 jackson
32016 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
32017 this for us and the handle is no longer valid.
32019 2004-09-07 13:59 jackson
32021 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
32022 loop that manages to not crash. TODO: Add poll and cleanup timers
32024 2004-09-07 11:12 jordi
32026 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
32028 2004-09-07 03:40 jordi
32030 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
32031 fixes, methods, multiple links
32033 2004-09-06 06:55 jordi
32035 * Control.cs: Caches ClientRectangle rectangle value
32037 2004-09-05 02:03 jordi
32039 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
32042 2004-09-04 11:10 jordi
32044 * Label.cs: Refresh when font changed
32046 2004-09-02 16:24 pbartok
32049 - Added sanity check to creation of double buffer bitmap
32051 2004-09-02 16:24 pbartok
32054 - Fixed selection of text color
32055 - Fixed handling of resize event; now properly recreates double
32057 - Added missing assignment of TextAlignment
32058 - Added proper default for TextAlignment
32060 2004-09-02 14:26 pbartok
32063 - Added missing RadioButton.RadioButtonAccessibleObject class
32065 2004-09-02 14:26 pbartok
32068 - Added missing Control.ControlAccessibleObject class
32069 - Started to implement Select()ion mechanisms, still very incomplete
32071 2004-09-02 14:25 pbartok
32073 * AccessibleObject.cs:
32074 - Added missing methods
32076 2004-09-02 14:23 pbartok
32078 * AccessibleNavigation.cs, AccessibleSelection.cs:
32081 2004-09-02 10:32 jordi
32083 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
32084 pool for pens, brushes, and hatchbruses
32086 2004-09-01 15:30 jackson
32088 * StatusBar.cs: Fix typo
32090 2004-09-01 14:44 pbartok
32095 2004-09-01 14:39 pbartok
32097 * Button.cs, RadioButton.cs:
32098 - Functional initial check-in
32100 2004-09-01 14:01 pbartok
32103 - Added missing default
32104 - Added missing region mark
32106 2004-09-01 09:10 jordi
32108 * Label.cs: fixes method signatures, new methods, events, fixes
32111 2004-09-01 07:19 jordi
32113 * Control.cs: Init string variables with an empty object
32115 2004-09-01 04:20 jordi
32117 * Control.cs: fires OnFontChanged event
32119 2004-08-31 20:07 pbartok
32122 - Enabled display of strings
32124 2004-08-31 20:05 pbartok
32127 - Added (partial) implementation of DialogResult; rest needs to be
32128 implemented when the modal loop code is done
32130 2004-08-31 19:55 pbartok
32133 - Fixed to match the removal of the needs_redraw concept
32135 2004-08-31 19:55 pbartok
32138 - Removed the rather odd split between 'needs redraw' and redrawing
32139 - Now handles the events that require regeneration (ambient
32140 properties and size)
32142 2004-08-31 19:41 pbartok
32145 - Added firing of BackColorChanged event
32146 - Added TopLevelControl property
32147 - Fixed handling of WM_ERASEBKGRND message
32149 2004-08-31 12:49 pbartok
32155 2004-08-31 12:48 pbartok
32158 - Finished (famous last words)
32160 2004-08-31 04:35 jordi
32162 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
32163 scrolling bugs, adds new methods
32165 2004-08-30 14:42 pbartok
32168 - Implemented CheckBox drawing code
32170 2004-08-30 14:42 pbartok
32173 - Made Redraw() and CheckRedraw() virtual
32174 - Improved mouse up/down/move logic to properly track buttons
32176 2004-08-30 09:44 pbartok
32179 - Updated to fix broken build. Not complete yet.
32181 2004-08-30 09:28 pbartok
32186 2004-08-30 09:17 pbartok
32191 2004-08-27 16:12 ravindra
32193 * ToolBarButton.cs: Added TypeConverter attribute.
32195 2004-08-27 16:07 ravindra
32197 * ImageIndexConverter.cs: Implemented.
32199 2004-08-27 14:17 pbartok
32202 - Removed unneeded stack vars
32203 - First attempt to fix sizing issues when layout is suspended
32205 2004-08-25 15:35 jordi
32207 * ScrollBar.cs: more fixes to scrollbar
32209 2004-08-25 14:04 ravindra
32211 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
32212 Added the missing divider code and grip for ToolBar Control.
32214 2004-08-25 13:20 pbartok
32217 - Control now properly passes the ambient background color to child
32220 2004-08-25 13:20 jordi
32222 * ScrollBar.cs: small bug fix regarding bar position
32224 2004-08-25 12:33 pbartok
32227 - Now only calls SetTimer or KillTimer if the enabled state has
32230 2004-08-25 12:33 pbartok
32233 - Fixed timer handling, now seems to work
32234 - Improved error message for window creation
32236 2004-08-25 12:32 pbartok
32239 - Fixed generation of MouseUp message
32241 2004-08-25 12:29 jordi
32243 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
32244 and fixes for progressbar
32246 2004-08-24 18:43 ravindra
32248 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
32249 in ToolBar control.
32251 2004-08-24 17:15 pbartok
32255 - Added missing events
32258 2004-08-24 17:14 pbartok
32260 * StatusBar.cs, PictureBox.cs:
32261 - Now uses Control's CreateParams
32263 2004-08-24 16:36 pbartok
32266 - Fixed background color handling
32267 - Fixed sending of enter/leave events on a grab
32269 2004-08-24 16:35 pbartok
32272 - Refined definitions for CrossingEvent
32274 2004-08-24 12:37 jordi
32276 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
32277 formmating, methods signature, and adds missing events
32279 2004-08-24 12:24 jordi
32281 * Control.cs: fire OnEnabledChanged event
32283 2004-08-24 11:17 pbartok
32286 - Implemented SetTimer() and KillTimer()
32288 2004-08-24 11:16 pbartok
32291 - Now uses Remove instead of Add to kill the timer
32293 2004-08-24 10:16 jackson
32295 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
32296 picture boxes in the theme now. Draw picture box borders and obey
32299 2004-08-24 05:49 jackson
32301 * Timer.cs: Remove top secret debugging code
32303 2004-08-24 05:34 jackson
32305 * PictureBox.cs: Temp hack to make picture boxes draw their full
32308 2004-08-24 05:29 jackson
32310 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
32311 XplatUIX11.cs: Move timers to the driver level. On X they are
32312 queued by the driver and checked on idle.
32314 2004-08-24 01:07 jackson
32316 * XplatUIX11.cs: Use a queue for async messages instead of passing
32317 them as ClientMessages since that was totally broken. Also simply
32318 check for events and return an idle message if none are found. This
32319 gives us an idle handler, and prevents deadlocking when no messages
32322 2004-08-23 18:19 ravindra
32324 * XplatUIWin32.cs: Removed the unwanted destructor.
32326 2004-08-23 17:27 pbartok
32329 - Finishing touches. Works now, just needs some optimizations.
32331 2004-08-23 16:53 jordi
32333 * ScrollBar.cs: small fix
32335 2004-08-23 16:45 pbartok
32338 - Removed debug output
32341 2004-08-23 16:43 jordi
32343 * ScrollBar.cs: [no log message]
32345 2004-08-23 16:10 pbartok
32348 - Fixed handling of WM_CLOSE message
32349 - Removed debug output
32351 2004-08-23 16:09 pbartok
32354 - Added handling of Idle event
32355 - Added handling of form closing
32356 - Fixed reporting of MessageLoop property
32357 - Removed some unneeded code, should provide a bit of a speedup
32359 2004-08-23 15:22 pbartok
32362 - Added InitLayout() method
32363 - Added code to properly perform layout when Anchor or Dock property
32365 - Changed 'interpretation' of ResumeLayout. MS seems to have a
32366 LAMESPEC, tried to do it in a way that makes sense
32368 2004-08-23 14:10 jordi
32370 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
32371 properties and methods
32373 2004-08-23 13:55 pbartok
32376 - Properly fixed Jordi's last fix
32377 - Now uses Cursor's Position property instead of calling XplatUI
32380 2004-08-23 13:44 jordi
32382 * PaintEventHandler.cs: Adding missing attribute
32384 2004-08-23 13:39 pbartok
32387 - Implemented Position property
32389 2004-08-23 13:39 pbartok
32391 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
32392 - Added method to move mouse cursor
32394 2004-08-23 13:39 pbartok
32397 - Fixed setting of background color
32398 - Added method to move mouse cursor
32400 2004-08-23 13:16 jordi
32402 * Control.cs: avoids null exception
32404 2004-08-22 17:46 jackson
32406 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
32409 2004-08-22 17:40 jackson
32411 * XplatUIX11.cs: Add some missing locks
32413 2004-08-22 15:10 pbartok
32415 * Control.cs, Form.cs:
32416 - Removed OverlappedWindow style from Control, instead it's default
32418 - Made form windows OverlappedWindow by default
32420 2004-08-22 13:34 jackson
32422 * ScrollBar.cs: Update the position through the Value property so
32423 the OnValueChanged event is raised.
32425 2004-08-22 12:04 pbartok
32428 - Added Cursor.cs and UserControl.cs
32430 2004-08-22 12:03 pbartok
32433 - Started implementation, not usable yet
32435 2004-08-22 12:00 pbartok
32438 - Implemented UserControl (complete)
32440 2004-08-21 19:20 ravindra
32442 * ToolBar.cs: Correcting the formatting mess of VS.NET.
32444 2004-08-21 18:49 ravindra
32446 * ToolBar.cs: Probably this completes the missing attributes in
32449 2004-08-21 18:03 ravindra
32451 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
32452 Fixed toolbar control signatures.
32454 2004-08-21 16:32 pbartok
32459 2004-08-21 16:30 pbartok
32464 2004-08-21 16:19 pbartok
32466 * Control.cs, Label.cs:
32469 2004-08-21 15:57 pbartok
32472 - Added loads of debug output for development
32473 - Fixed typo in method name
32475 2004-08-21 15:52 pbartok
32477 * ToolBarButtonClickEventArgs.cs:
32478 - Added missing base class
32480 2004-08-21 14:53 pbartok
32483 - Updated to match new GrabWindow signature
32485 2004-08-21 14:51 pbartok
32487 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
32488 - Added method to get default display size
32490 2004-08-21 14:23 pbartok
32492 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
32493 - Added method to query current grab state
32494 - Added argument to allow confining a grab to a window
32496 2004-08-21 14:22 pbartok
32499 - Added [Flags] attribute so that modifiers can be used in bitwise
32502 2004-08-21 14:21 pbartok
32504 * TrackBar.cs, ScrollBar.cs:
32505 - Replaced direct XplatUI calls with their Control counterpart
32507 2004-08-21 13:32 pbartok
32510 - Implemented Created property
32512 2004-08-21 13:28 pbartok
32515 - Implemented ContainsFocus
32517 2004-08-21 13:26 pbartok
32520 - Implemented CausesValidation
32522 2004-08-21 13:21 pbartok
32525 - Implemented CanFocus
32526 - Implemented CanSelect
32527 - Implemented Capture
32529 2004-08-21 12:35 pbartok
32532 - Fixed bug with Async message handling
32533 - Implemented getting the ModifierKeys
32535 2004-08-21 12:32 jackson
32537 * AsyncMethodResult.cs: Make sure we have the mutex before we
32538 release it. Fixes BeginInvoke on windows
32540 2004-08-21 11:31 pbartok
32542 * XplatUIWin32.cs, XplatUIX11.cs:
32543 - Drivers now return proper mouse state
32545 2004-08-21 10:54 jackson
32547 * Control.cs: Implement EndInvoke
32549 2004-08-21 10:48 jackson
32551 * Timer.cs: Remove unneeded finalizer
32553 2004-08-20 19:52 ravindra
32555 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
32556 in mouse event handling in the ToolBar control.
32558 2004-08-20 19:50 ravindra
32560 * ImageList.cs: Changed draw method to use the arguments passed in
32563 2004-08-20 18:58 pbartok
32565 * XplatUIStructs.cs:
32566 - Added private message for async communication
32568 2004-08-20 17:38 ravindra
32570 * Control.cs: Made RightToLeft property virtual and removed a
32573 2004-08-20 14:39 jordi
32575 * ThemeGtk.cs: use style_attach
32577 2004-08-20 14:39 pbartok
32580 - Added jackson's Async code from X11 to Win32
32582 2004-08-20 14:09 pbartok
32585 - Added all new files
32587 2004-08-20 14:09 pbartok
32590 - Added call to set window background color
32592 2004-08-20 14:03 pbartok
32594 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
32595 - Added method for setting the window background
32597 2004-08-20 14:02 pbartok
32600 - Added method for setting the background color
32601 - Added handling for erasing the window background
32603 2004-08-20 13:45 jordi
32605 * TrackBar.cs: fixes timer, new properties and methods
32607 2004-08-20 13:34 jackson
32609 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
32612 2004-08-20 13:22 jackson
32614 * Timer.cs: Timer Tick events are now handed through Controls Async
32615 mechanism so the callbacks are executed in the same thread as X
32617 2004-08-20 13:19 jackson
32619 * XplatUIDriver.cs: Expose functionality to send async messages
32622 2004-08-20 13:18 jackson
32624 * Control.cs: Implement Begininvoke
32626 2004-08-20 13:14 jackson
32628 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
32629 messages through the driver
32631 2004-08-20 13:12 jackson
32633 * XplatUIX11.cs: Lock before all X operations. Also added Async
32634 method functionality through XSendEvent
32636 2004-08-20 13:11 jackson
32638 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
32639 This will screw up on 64 bit systems)
32641 2004-08-20 13:10 jackson
32643 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
32644 Async messages through X/Win32
32646 2004-08-19 19:39 pbartok
32649 - Updated code to match new HandleData.DeviceContext type
32651 2004-08-19 19:38 pbartok
32654 - Made DeviceContext a generic object to allow usage from various
32656 - Added support for queueing Windows messages
32658 2004-08-19 19:37 pbartok
32661 - Added generation of MouseEnter, MouseLeave and MouseHover events
32662 - Added cleanup on EndPaint
32664 2004-08-19 19:17 pbartok
32667 - Added handling of WM_MOUSEHOVER
32668 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
32671 2004-08-19 18:55 jordi
32673 * ThemeGtk.cs: fixes button order
32675 2004-08-19 18:12 jordi
32677 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
32679 2004-08-19 17:09 pbartok
32682 - Added Right property
32683 - Added RightToLeft property
32685 2004-08-19 16:27 jordi
32687 * ThemeGtk.cs: experimental GTK theme support
32689 2004-08-19 16:26 jordi
32691 * ITheme.cs, Theme.cs: move themes from an interface to a class
32693 2004-08-19 16:25 jordi
32695 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
32698 2004-08-19 16:04 pbartok
32701 - Added colormap basics
32702 - Added a way to re-initialize with a different display handle
32703 - Fixed setting of the window background color
32704 - Added various X11 imports related to colors and colormaps
32706 2004-08-19 15:51 pbartok
32709 - Removed packing hints (Paolo suggested this a while back)
32710 - fixed colormap type
32711 - Added default Atom types
32712 - Added Screen and color structs and enums
32714 2004-08-19 15:39 pbartok
32717 - Added missing Draw() method
32718 - Added missing RecreateHandle event
32720 2004-08-19 15:30 pbartok
32723 - Added handling of WM_CLOSE
32725 2004-08-18 13:16 jordi
32727 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
32730 2004-08-18 09:56 jordi
32732 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
32734 2004-08-17 15:31 ravindra
32736 * SWF.csproj: Updated project.
32738 2004-08-17 15:25 pbartok
32741 - Drawing improvement; don't call UpdateBounds if we are not visible
32742 (or have been minimized)
32744 2004-08-17 15:24 pbartok
32747 - Finished IsVisible
32748 - Added Win32GetWindowPlacement
32750 2004-08-17 15:08 jackson
32752 * Panel.cs: Initial checkin of the Panel
32754 2004-08-17 14:25 pbartok
32757 - Fixed broken handling of default window sizes
32759 2004-08-17 13:29 jackson
32761 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
32762 has a large startup time.
32764 2004-08-17 10:25 jackson
32766 * HandleData.cs: union areas properly
32768 2004-08-17 10:12 jackson
32770 * HandleData.cs: union areas properly
32772 2004-08-16 20:00 ravindra
32774 * ToolBar.cs, ToolBarButton.cs: Added attributes.
32776 2004-08-16 18:48 ravindra
32778 * ToolBar.cs: Added attributes.
32780 2004-08-16 17:17 ravindra
32782 * SWF.csproj: Updated project.
32784 2004-08-16 17:16 jackson
32786 * XplatUIX11.cs: Check for more expose events before sending a
32787 WM_PAINT so they can all be grouped together. This makes dragging a
32788 window across another window redraw in a sane way.
32790 2004-08-16 15:47 pbartok
32793 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
32794 support OnMouseEnter/Leave()
32795 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
32798 2004-08-16 15:46 pbartok
32800 * XplatUIStructs.cs, XplatUIX11.cs:
32801 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
32802 OnMouseEnter/Leave()
32804 2004-08-16 15:34 jackson
32806 * XplatUIX11.cs: Group multiple expose events in HandleData, make
32807 sure messages get the message field set to WM_NULL if they are not
32810 2004-08-16 15:24 jackson
32812 * HandleData.cs: HandleData is used for storing message information
32815 2004-08-15 17:23 ravindra
32817 * ColorDepth.cs: Added attribute.
32819 2004-08-15 17:23 ravindra
32821 * SWF.csproj: Updated project for ToolBar Control.
32823 2004-08-15 17:20 ravindra
32825 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
32826 control and also dos2unix format.
32828 2004-08-15 17:13 ravindra
32830 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
32831 ToolBarButtonClickEventArgs.cs,
32832 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
32833 ToolBarTextAlign.cs: First Implementation of ToolBar control.
32835 2004-08-15 15:31 pbartok
32838 - First (mostly) working version
32840 2004-08-13 16:15 pbartok
32843 - Fixed Anchor default
32845 2004-08-13 15:43 pbartok
32848 - Changed GetCursorPos signature
32850 2004-08-13 15:42 pbartok
32852 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
32853 - Changed signature for GetCursorPos
32855 2004-08-13 15:25 pbartok
32859 - Fixed resizing/exposure handling
32861 2004-08-13 15:22 jordi
32863 * ThemeWin32Classic.cs: removes redundant code and fixes issues
32866 2004-08-13 14:55 jordi
32868 * TrackBar.cs: change from wndproc to events
32870 2004-08-13 13:00 jordi
32872 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
32873 XplatUIX11.cs: implements PointToClient (ScreenToClient)
32875 2004-08-13 12:53 pbartok
32878 - Changed GetWindowPos to also provide client area size
32879 - Fixed broken prototypes for several win32 functions
32881 2004-08-13 12:53 pbartok
32883 * XplatUI.cs, XplatUIDriver.cs:
32884 - Changed GetWindowPos to also provide client area size
32886 2004-08-13 12:52 pbartok
32889 - Added generation of WM_POSCHANGED
32890 - Changed GetWindowPos to also provide client area size
32892 2004-08-13 12:52 pbartok
32895 - Added Dispose() and destructor
32896 - Fixed resizing and bounds calculation
32898 - Added memory savings for invisible windows
32900 2004-08-13 12:46 jordi
32902 * TrackBar.cs: adds timer and grap window
32904 2004-08-13 10:25 jackson
32906 * Timer.cs: SWF Timer
32908 2004-08-12 16:59 pbartok
32910 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
32911 - Implemented method to get current mouse position
32913 2004-08-12 14:29 jordi
32915 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
32916 enhancement, fix mouse problems, highli thumb, etc
32918 2004-08-12 13:31 pbartok
32921 - Fixed Anchoring bugs
32923 2004-08-12 13:01 jackson
32925 * StatusBar.cs: Don't forget things
32927 2004-08-12 12:54 jackson
32929 * ThemeWin32Classic.cs: Handle owner draw status bars
32931 2004-08-12 12:54 jackson
32933 * StatusBar.cs: Implement missing properties, events, and methods.
32934 Handle mouse clicking
32936 2004-08-12 10:19 jackson
32938 * StatusBarPanelClickEventArgs.cs,
32939 StatusBarPanelClickEventHandler.cs: Classes for handling status
32940 bar panel click events
32942 2004-08-12 10:10 jackson
32944 * Control.cs: Add missing properties
32946 2004-08-12 09:46 pbartok
32948 * BindingsManagerBase.cs:
32949 - Name changed to BindingManagerBase.cs
32951 2004-08-12 09:25 jordi
32953 * ScrollableControl.cs: calls ctrlbase instead of exeception
32955 2004-08-11 16:28 pbartok
32957 * InputLanguageChangingEventArgs.cs:
32958 - Never check in before compiling. Fixes the last check-in
32960 2004-08-11 16:26 pbartok
32962 * InputLanguageChangingEventArgs.cs:
32963 - More signature fixes
32965 2004-08-11 16:20 pbartok
32967 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
32968 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
32969 ImageListStreamer.cs, InputLanguage.cs,
32970 InputLanguageChangedEventArgs.cs,
32971 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
32972 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
32973 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
32974 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
32977 2004-08-11 16:16 pbartok
32981 - Added .Net 1.1 method
32983 2004-08-11 15:25 pbartok
32986 - Fixed BindingManagerBase.cs filename
32988 2004-08-11 15:22 pbartok
32990 * BindingManagerBase.cs:
32991 - Was checked in with wrong filename
32993 2004-08-11 14:50 pbartok
32998 2004-08-11 13:41 jordi
33000 * XplatUIWin32.cs: Fixes ClientRect
33002 2004-08-11 13:19 pbartok
33004 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33006 - We had SetWindowPos and MoveWindow to set window positions and
33007 size, removed MoveWindow. We have GetWindowPos, so it made sense to
33008 keep SetWindowPos as matching counterpart
33009 - Added some X11 sanity checking
33011 2004-08-11 12:59 pbartok
33014 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
33015 (It seems that SetBounds is just a front for SetBoundsCore and
33016 SetBoundsCore updates the underlying window system and
33017 UpdateBounds is responsible for updating the variables associated
33018 with the Control and sending the events)
33019 - Major cleanup of Size handling; we now have two sizes, client_size
33020 and bounds. Bounds defines the window with decorations, client_size
33023 2004-08-11 12:55 pbartok
33025 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33026 - Added method to calculate difference between decorated window and
33029 2004-08-11 12:54 pbartok
33032 - Forcing redraw on resize
33034 2004-08-11 11:43 pbartok
33037 - Removed disposing of the actual images when the list is disposed
33039 2004-08-11 09:13 pbartok
33042 - Now properly reparents windows
33044 2004-08-11 08:37 pbartok
33049 2004-08-11 07:47 pbartok
33052 - Rewrote the collection stuff. Might not be as fast now, not
33053 keeping the number of children around and accessible directly, but
33054 it's more straightforward
33056 2004-08-11 07:44 pbartok
33058 * AccessibleObject.cs:
33059 - Fixed to match ControlCollection rewrite
33061 2004-08-11 07:43 pbartok
33064 - Added missing creation of the collection list
33066 2004-08-10 20:08 jackson
33068 * StatusBar.cs: Get the paint message from WndProc
33070 2004-08-10 19:31 jackson
33072 * ThemeWin32Classic.cs: Create Brushes as little as possible
33074 2004-08-10 19:20 jackson
33076 * UICues.cs: Add Flags attribute
33078 2004-08-10 19:19 jackson
33080 * StatusBarPanel.cs: Signature cleanup
33082 2004-08-10 19:10 jackson
33084 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
33085 Initial implementation of status bar item drawing
33087 2004-08-10 17:27 jordi
33089 * TrackBar.cs: add missing methods, properties, and restructure to
33092 2004-08-10 16:24 jackson
33094 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
33095 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
33098 2004-08-10 13:21 jordi
33100 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
33101 enhancements and standarize on win colors defaults
33103 2004-08-10 12:52 jackson
33105 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
33106 ThemeWin32Classic.cs: Implement DrawItem functionality
33108 2004-08-10 12:47 jordi
33110 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
33112 2004-08-10 12:32 jordi
33114 * Control.cs: throw ontextchange event
33116 2004-08-10 11:43 pbartok
33119 - Added more to the still unfinished Dock/Anchor layout code
33121 2004-08-10 11:39 pbartok
33123 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
33124 - Added GetWindowPos method
33126 2004-08-10 11:36 pbartok
33129 - Implemented several methods
33131 2004-08-10 09:47 jackson
33133 * TrackBar.cs: Allow control to handle buffering
33135 2004-08-10 09:41 jackson
33137 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
33139 2004-08-10 09:24 jackson
33141 * Label.cs, LinkLabel.cs: Let Control handle buffering.
33143 2004-08-10 09:09 jackson
33145 * StatusBar.cs: Let Control handle all the buffering.
33147 2004-08-10 09:08 jackson
33149 * Control.cs: Control will now handle the buffering code, so each
33150 control does not have to implement this.
33152 2004-08-10 08:34 jackson
33154 * XplatUIDriver.cs: Use default colors from the theme
33156 2004-08-09 17:12 pbartok
33159 - Fixed several bugs Ravindra pointed out
33161 2004-08-09 16:11 pbartok
33164 - Added incomplete dock layout code
33165 - Added support for mouse wheel
33167 2004-08-09 16:09 pbartok
33170 - Added handling for middle and right mousebutton
33171 - Added handling for mouse wheel
33172 - Added handling for key state and mouse state and position
33173 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
33176 2004-08-09 15:40 jackson
33178 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
33179 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
33182 2004-08-09 15:37 jackson
33184 * StatusBar.cs: Initial implementation of StatusBar
33186 2004-08-09 15:36 jackson
33188 * ITheme.cs: Add support for drawing status bar and getting status
33191 2004-08-09 15:35 pbartok
33196 2004-08-09 15:34 jackson
33198 * ThemeWin32Classic.cs: Add support for drawing status bar and get
33199 status bar item sizes
33201 2004-08-09 15:21 jackson
33203 * ThemeWin32Classic.cs: Use known colors for default control
33206 2004-08-09 15:12 jackson
33208 * ThemeWin32Classic.cs: Make the default font static, it is static
33209 in control so this doesn't change functionality and creating fonts
33212 2004-08-09 14:56 pbartok
33215 - Added GrabMode enum
33217 2004-08-09 14:55 pbartok
33219 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33220 - Removed Run method, was only required for initial development
33222 2004-08-09 14:51 pbartok
33224 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33225 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
33228 2004-08-09 13:48 pbartok
33231 - Fixed default sizing for child windows
33233 2004-08-09 12:56 pbartok
33236 - Added generation of WM_DESTROY message
33237 - Added handling of window manager induced shutdown
33239 2004-08-09 11:31 jackson
33241 * ThemeWin32Classic.cs: New names for control properties
33243 2004-08-09 11:25 jackson
33245 * Control.cs: Use new color names
33247 2004-08-09 11:02 jackson
33249 * XplatUI.cs: Get default window properties from the theme
33251 2004-08-09 11:01 jackson
33253 * ITheme.cs: The theme engine now controls default window
33256 2004-08-09 11:00 jackson
33258 * ThemeWin32Classic.cs: Add default window color properties
33260 2004-08-09 10:17 jackson
33262 * ThemeWin32Classic.cs: Use correct default back color
33264 2004-08-09 10:05 jackson
33266 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
33269 2004-08-09 09:56 jackson
33271 * XplatUI.cs: Remove defaults, these are handled by the theme now.
33273 2004-08-09 09:54 jackson
33275 * Control.cs: Get default properties from the theme.
33277 2004-08-09 09:53 jackson
33279 * ITheme.cs: Themes now handle default control properties
33281 2004-08-09 09:53 jackson
33283 * ThemeWin32Classic.cs: Themes now handle default control
33284 properties so coloring will be consistent
33286 2004-08-08 16:54 jordi
33288 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
33290 2004-08-08 15:08 jordi
33292 * XplatUIX11.cs: fixes keyboard crash
33294 2004-08-08 13:47 jordi
33296 * Label.cs: add cvs header info
33298 2004-08-08 12:09 jackson
33300 * ThemeWin32Classic.cs: Add pen_buttonface
33302 2004-08-08 11:52 jordi
33304 * Label.cs, LinkLabel.cs: [no log message]
33306 2004-08-08 11:34 jordi
33308 * ThemeWin32Classic.cs: Use Windows Standard Colours
33310 2004-08-07 17:32 jordi
33312 * TrackBar.cs: throw exceptions of invalid enums values
33314 2004-08-07 17:31 jordi
33316 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
33319 2004-08-07 16:56 jackson
33321 * HorizontalAlignment.cs: Initial checkin
33323 2004-08-07 13:16 jordi
33325 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
33328 2004-08-07 13:05 jordi
33330 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
33331 GetSysColor defines
33333 2004-08-06 18:01 pbartok
33335 * ThemeWin32Classic.cs:
33336 - Fixed some rounding issues with float/int
33338 2004-08-06 18:00 jackson
33340 * DockStyle.cs, AnchorStyles.cs:
33342 Add flags and serializable attributes.
33344 2004-08-06 17:46 pbartok
33347 - Implemented GetParent
33349 2004-08-06 17:18 pbartok
33352 - Fixed some rounding issues with float/int
33354 2004-08-06 17:17 pbartok
33356 * X11Structs.cs, XplatUIX11.cs:
33357 - Fixed Refresh and Invalidate
33359 2004-08-06 15:30 pbartok
33361 * Control.cs, X11Structs.cs, XplatUIX11.cs:
33362 - Fixed recursive loop when resizing
33363 - Improved/fixed redrawing on expose messages
33365 2004-08-06 09:53 jordi
33367 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
33368 keyboard navigation
33370 2004-08-06 08:02 pbartok
33372 * X11Structs.cs, XplatUIX11.cs:
33373 - Fixed reparenting
33374 - Fixed window border creation
33376 2004-08-05 15:38 pbartok
33379 - Attempted fix for reparenting problems
33381 2004-08-04 15:14 pbartok
33384 - Fixed Invalidation bug (calculated wrong client area)
33385 - Added ClientSize setter
33387 2004-08-04 15:13 pbartok
33390 - Added AutoScale properties
33392 2004-08-04 15:13 pbartok
33395 - Added latest files
33397 2004-08-04 14:11 pbartok
33399 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33401 - Added Invalidate handling
33403 2004-08-03 17:09 jordi
33405 * XplatUIDriver.cs: fixes spelling mistake
33407 2004-07-27 09:53 jordi
33409 * TrackBar.cs: fixes trackbar events, def classname, methods
33412 2004-07-27 09:29 jordi
33414 * ScrollBar.cs: fixes scrollbar events
33416 2004-07-27 04:38 jordi
33418 * Control.cs: changes to be able to run winforms samples
33420 2004-07-26 11:42 jordi
33422 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
33423 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
33425 2004-07-26 05:41 jordi
33427 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
33428 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
33431 2004-07-22 09:22 jordi
33433 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
33434 check link overlapping, implement events, and fixes
33436 2004-07-21 10:28 jordi
33438 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
33440 2004-07-21 10:19 jordi
33442 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
33443 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
33444 LinkLabelLinkClickedEventArgs.cs,
33445 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
33446 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
33449 2004-07-19 13:09 jordi
33451 * Control.cs, Label.cs: label control re-written: added missing
33452 functionlity, events, and properties
33454 2004-07-19 10:49 jordi
33456 * Control.cs: fixes SetBounds logic
33458 2004-07-19 01:29 jordi
33460 * Control.cs: Call RefreshWindow only if the window has created
33462 2004-07-15 14:05 pbartok
33464 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
33465 - Implemented ImageList and ImageList.ImageCollection classes
33466 - Added ColorDepth enumeration
33467 - Updated SWF VS.Net project
33469 2004-07-15 11:06 jordi
33471 * XplatUIStructs.cs: added MsgButons enum
33473 2004-07-15 11:03 jordi
33475 * Control.cs: added basic mouse handeling events
33477 2004-07-15 03:38 jordi
33479 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
33480 Vertical TrackBar control implementation
33482 2004-07-13 09:33 jordi
33484 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
33486 2004-07-13 09:31 jordi
33488 * Control.cs, Form.cs: commit: new properties and fixes form size
33491 2004-07-09 14:13 miguel
33493 * ProgressBar.cs: Spelling
33495 2004-07-09 11:25 pbartok
33498 - Removed usage of Rectangle for drawing. Miguel pointed out it's
33501 2004-07-09 11:17 miguel
33503 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
33505 * ProgressBar.cs: Fixed spelling for `block'
33507 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
33510 Avoid using the += on rect.X, that exposed a bug in the compiler.
33512 2004-07-08 23:21 pbartok
33514 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
33515 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
33516 BaseCollection.cs, Binding.cs, BindingContext.cs,
33517 BindingMemberInfo.cs, BindingsCollection.cs,
33518 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
33519 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
33520 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
33521 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
33522 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
33523 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
33524 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
33525 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
33526 FrameStyle.cs, GiveFeedbackEventArgs.cs,
33527 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
33528 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
33529 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
33530 InputLanguageChangedEventArgs.cs,
33531 InputLanguageChangedEventHandler.cs,
33532 InputLanguageChangingEventArgs.cs,
33533 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
33534 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
33535 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
33536 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
33537 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
33538 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
33539 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
33540 QueryAccessibilityHelpEventArgs.cs,
33541 QueryAccessibilityHelpEventHandler.cs,
33542 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
33543 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
33544 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
33545 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
33546 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
33547 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
33548 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
33549 XplatUIX11.cs, lang.cs: